joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415d40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x415d6b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x415d8f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x415daa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41a057
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41a099
call fcn.0041eb28
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41a099
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41a090
xor eax, eax
jmp 0x41a0a1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041a0a7
pop edi
pop esi
pop ebx
ret 4

Function at 0x41f0e0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41f10e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41f12c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041f046
jmp 0x41f12c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41f12c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041f046
test edi, edi
mov eax, edi
jne 0x41f116
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402938
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.004029f0
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
mov eax, dword [ebp - 8]
leave
ret 4
Function at 0x402280
Capabilities:
Delete file

Disassembly:
sub esp, 0x164
push esi
push edi
mov ecx, 5
mov esi, str.C:TUCFILEF300.DAT
lea edi, [esp + 8]
mov eax, dword [0x4ae788]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 5
mov esi, str.C:TUCFILEF300UA.DAT
lea edi, [esp + 0x38]
lea edx, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 5
mov esi, str.C:TUCFILEF300.IDX
lea edi, [esp + 0x20]
push edx
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 5
mov esi, str.C:TUCFILEF300UA.IDX
lea edi, [esp + 0x54]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov cx, word [eax + 0x66]
mov word [esp + 0x6c], cx
mov al, byte [esp + 0x6c]
mov byte [esp + 0xc], al
mov byte [esp + 0x3c], al
mov byte [esp + 0x24], al
mov byte [esp + 0x54], al
lea eax, [esp + 0xc]
push eax
call fcn.00415803
lea ecx, [esp + 0x58]
lea edx, [esp + 0x28]
push ecx
push edx
mov esi, eax
call fcn.00415803
add esp, 0x10
test esi, esi
jne 0x4023cf
test eax, eax
jne 0x4023cf
call fcn.004023e0
cmp ax, 1
jge 0x402365
movsx eax, ax
push eax
call fcn.00408850
lea ecx, [esp + 0xc]
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.00415803
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x5c]
push eax
push ecx
call fcn.00415803
add esp, 0x14
xor eax, eax
pop edi
pop esi
add esp, 0x164
ret
movsx edx, ax
push edx
call fcn.00408850
add esp, 4
call fcn.00402490
test ax, ax
jge 0x4023bb
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 8]
push eax
call esi
lea ecx, [esp + 0x20]
push ecx
call esi
lea edx, [esp + 8]
lea eax, [esp + 0x38]
push edx
push eax
call fcn.00415803
lea ecx, [esp + 0x28]
lea edx, [esp + 0x58]
push ecx
push edx
call fcn.00415803
add esp, 0x10
xor eax, eax
pop edi
pop esi
add esp, 0x164
ret
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x38]
push eax
call esi
lea ecx, [esp + 0x50]
push ecx
call esi
pop edi
xor eax, eax
pop esi
add esp, 0x164
ret
Function at 0x4081b0
Capabilities:
Get hostname
Get session user name

Disassembly:
sub esp, 0xc4
push ebx
push ebp
push esi
push edi
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x34]
mov dword [esp + 0x10], 0x28
rep stosd dword es:[edi], eax
mov eax, dword [0x4ae788]
cmp dword [eax + 0x3dc60], 1
jne 0x4081ef
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
jmp 0x4081ff
lea eax, [esp + 0x10]
lea ecx, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov al, byte [esp + 0x34]
test al, al
jne 0x408238
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x34]
lea edx, [esp + 0x34]
rep stosd dword es:[edi], eax
mov edi, str.Standalone
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x84]
mov dl, byte [esp + 0x34]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x34]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov al, byte [esp + 0x35]
dec ecx
mov byte [esp + 0x85], dl
mov byte [esp + 0x86], al
mov cl, byte [esp + ecx + 0x33]
mov byte [esp + 0x84], cl
mov cl, byte [esp + 0x36]
mov byte [esp + 0x87], cl
mov eax, dword [esp + 0x84]
push eax
mov dword [0x4c0a64], eax
call fcn.00415ac3
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
xor ebx, ebx
mov edx, dword [0x49fb50]
mov ecx, 0x14
add edx, 0x66
xor eax, eax
mov edi, 0x4c0c8c
push edx
push str._sTUCFILELOCKMOTI
push 0x4c0c8c
rep stosd dword es:[edi], eax
call fcn.004157b1
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push 0x4c0c8c
call esi
cmp eax, 0xffffffff
jne 0x408371
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc ebx
mov dword [0x4c0a74], eax
cmp ebx, 0x12c
jg 0x408376
call fcn.00415acd
mov edx, eax
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x84]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x88]
push 0x42068c
push eax
call fcn.004157b1
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x20]
mov dl, byte [esp + 0x91]
rep stosd dword es:[edi], eax
mov cl, byte [esp + 0x90]
stosw word es:[edi], ax
lea eax, [esp + 0x20]
mov byte [esp + 0x20], cl
push eax
mov byte [esp + 0x25], dl
mov byte [esp + 0x26], 0x30
call fcn.0041571f
add esp, 0x10
mov dword [0x4c3374], eax
push eax
call ebp
jmp 0x4082a3
mov dword [0x4c0cf4], eax
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0xc4
ret
Function at 0x4083b0
Capabilities:
Get hostname
Get session user name

Disassembly:
sub esp, 0xc4
push ebx
push ebp
push esi
push edi
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x34]
mov dword [esp + 0x10], 0x28
rep stosd dword es:[edi], eax
mov eax, dword [0x4ae788]
cmp dword [eax + 0x3dc60], 1
jne 0x4083ef
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
jmp 0x4083ff
lea eax, [esp + 0x10]
lea ecx, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov al, byte [esp + 0x34]
test al, al
jne 0x408438
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x34]
lea edx, [esp + 0x34]
rep stosd dword es:[edi], eax
mov edi, str.Standalone
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x84]
mov dl, byte [esp + 0x34]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x34]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov al, byte [esp + 0x35]
dec ecx
mov byte [esp + 0x85], dl
mov byte [esp + 0x86], al
mov cl, byte [esp + ecx + 0x33]
mov byte [esp + 0x84], cl
mov cl, byte [esp + 0x36]
mov byte [esp + 0x87], cl
mov eax, dword [esp + 0x84]
push eax
mov dword [0x4c337c], eax
call fcn.00415ac3
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
xor ebx, ebx
mov edx, dword [0x49fb50]
mov ecx, 0x14
xor eax, eax
mov edi, 0x4c0bec
rep stosd dword es:[edi], eax
mov cx, word [edx + 0x66]
lea eax, [edx + 0x66]
push eax
push str._sTUCFILELOCKTFNAME
push 0x4c0bec
mov word [0x4c0bec], cx
call fcn.004157b1
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push 0x4c0bec
call esi
cmp eax, 0xffffffff
jne 0x40857c
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc ebx
mov dword [0x4c3378], eax
cmp ebx, 0x12c
jg 0x408581
call fcn.00415acd
mov edx, eax
mov ecx, 0x14
push edx
xor eax, eax
lea edi, [esp + 0x88]
lea edx, [esp + 0x88]
push 0x42068c
push edx
rep stosd dword es:[edi], eax
call fcn.004157b1
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x20]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
mov cl, byte [esp + 0x91]
push edx
stosw word es:[edi], ax
mov al, byte [esp + 0x94]
mov byte [esp + 0x25], cl
mov byte [esp + 0x24], al
mov byte [esp + 0x26], 0x30
call fcn.0041571f
add esp, 0x10
mov dword [0x4c0bdc], eax
push eax
call ebp
jmp 0x4084a3
mov dword [0x4c336c], eax
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0xc4
ret
Function at 0x40c0d0
Capabilities:
Get disk information

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esp], eax
push esi
movsx edx, byte [ecx]
mov dword [esp + 8], eax
push edx
mov word [esp + 0x10], ax
lea eax, [esp + 8]
push str._C:_
push eax
call fcn.004157b1
add esp, 0xc
lea ecx, [esp + 4]
xor esi, esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
mov eax, 1
je 0x40c116
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x4067d0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x406992
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Aristknc
push 0x473f70
call fcn.00401940
push eax
call fcn.00401ef0
add byte [esi + ebx], 0x34
push str.Aristknc
push 0x473f70
call fcn.00401940
push eax
call fcn.00401ef0
add byte [esi + ebx], 0xa2
push str.Aristknc
push 0x473f70
call fcn.00401940
push eax
call fcn.00401ef0
xor byte [esi + ebx], 0x70
push str.Aristknc
push 0x473f70
call fcn.00401940
push eax
call fcn.00401ef0
xor byte [esi + ebx], 0xc7
push str.Aristknc
push 0x473f70
call fcn.00401940
push eax
call fcn.00401ef0
add byte [esi + ebx], 0xaf
push str.Aristknc
push 0x473f70
call fcn.00401940
add esp, 0x44
push eax
call fcn.00401ef0
add byte [esi + ebx], 0x8a
push str.Aristknc
push 0x473f70
call fcn.00401940
push eax
call fcn.00401ef0
add byte [esi + ebx], 0x1a
push str.Aristknc
push 0x473f70
call fcn.00401940
push eax
call fcn.00401ef0
add byte [esi + ebx], 0x57
push str.Aristknc
push 0x473f70
call fcn.00401940
push eax
call fcn.00401ef0
add byte [esi + ebx], 0x26
push str.Aristknc
push 0x473f70
call fcn.00401940
push eax
call fcn.00401ef0
xor byte [esi + ebx], 0x4b
push str.Aristknc
push 0x473f70
call fcn.00401940
push eax
call fcn.00401ef0
xor byte [esi + ebx], 0xea
add esp, 0x40
push str.Aristknc
push 0x473f70
call fcn.00401940
push eax
call fcn.00401ef0
xor byte [esi + ebx], 0x9b
push str.Aristknc
push 0x473f70
call fcn.00401940
push eax
call fcn.00401ef0
add byte [esi + ebx], 0xa3
push str.Aristknc
push 0x473f70
call fcn.00401940
push eax
call fcn.00401ef0
add byte [esi + ebx], 0x6b
push str.Aristknc
push 0x473f70
call fcn.00401940
push eax
call fcn.00401ef0
inc byte [esi + ebx]
push str.Aristknc
push 0x473f70
call fcn.00401940
push eax
call fcn.00401ef0
xor byte [esi + ebx], 0x21
add esp, 0x3c
inc esi
cmp esi, edi
jb 0x4067f0
pop ebx
pop edi
pop esi
ret
Function at 0x407a90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [0x471f00]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
push edi
mov eax, dword [ebx + 0x3c]
xor esi, esi
mov dword [esp + 0x10], 0
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov dword [esp + 0x1c], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, ebx
mov dword [esp + 0x18], eax
test eax, eax
je 0x407b79
mov ebp, dword [esp + 0x44]
mov edx, dword [edi]
xorps xmm0, xmm0
add edx, ebx
mov dword [esp + 0x30], 0
mov eax, edx
mov dword [esp + 0x34], 0
movups xmmword [esp + 0x20], xmm0
lea ecx, [eax + 1]
mov dword [esp + 0x14], ecx
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407b00
sub eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push edx
call fcn.00401dd0
test ebx, ebx
je 0x407b39
cmp ebp, 3
jbe 0x407b39
lea eax, [esp + 0x20]
push 0x14d
push eax
call fcn.004080c0
add esp, 8
test eax, eax
je 0x407b39
cmp eax, ebp
je 0x407b92
mov ecx, dword [esp + 0x34]
add edi, 4
cmp ecx, 0x10
jb 0x407b6e
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407b64
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407be1
push ecx
push edx
call fcn.0040d4a6
add esp, 8
inc esi
cmp esi, dword [esp + 0x18]
jb 0x407ad5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
add eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040d8ef
add esp, 0x2c
ret
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + ebx]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x34]
cmp ecx, 0x10
jb 0x407b79
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407bd5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407be1
push ecx
push edx
call fcn.0040d4a6
add esp, 8
jmp 0x407b79
call fcn.0041219f
int3
Function at 0x408420
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x473ab0], eax
push 0xda4c2ca8
push dword [0x473ab0]
call fcn.00407a90
add esp, 8
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
call edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40ba50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40ba71
jl 0x40ba68
test edi, edi
jne 0x40ba71
xor eax, eax
xor edx, edx
jmp 0x40bb32
cmp dword [ebx + 0x38], 0
je 0x40ba86
push eax
push edi
push dword [ebp + 8]
call fcn.0040bb38
jmp 0x40bb32
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40bacd
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40bacd
cmp eax, edi
jb 0x40baa7
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040ea20
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40bad3
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40bb27
mov ecx, ebx
call fcn.0040b2bb
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40bb12
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00415654
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x40bb27
jmp 0x40bae5
test edx, edx
je 0x40bb27
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00415654
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40e0d3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40e112
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e112
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e112
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40e112
cmp dword [ecx + 0x74], 0xe
jbe 0x40e112
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41ce98
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f850
push 0x42f848
push str.FlsAlloc
push 0x1e
call fcn.0041cd62
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41cecc
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b18c]
call esi
jmp 0x41ced2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x41cf16
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f860
push 0x42f858
push str.FlsGetValue
push 0x20
call fcn.0041cd62
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41cf4d
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b18c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41f62e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041f2d0

Function at 0x41f639
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041f45f

Function at 0x41fa33
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040e520
mov eax, dword [0x471f00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041c76e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41fa75
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41fbd1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004299f0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x474848]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004207d2
mov ecx, dword [esi*4 + 0x474848]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41fbca
cmp eax, dword [edi + ecx + 0x24]
jne 0x41fbca
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41fbca
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004207d2
add esp, 0x14
test edx, edx
jl 0x41fbca
jg 0x41fb40
test eax, eax
jb 0x41fbca
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41fbca
jl 0x41fb5a
cmp dword [ebp - 0x1008], eax
ja 0x41fbca
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41fb78
test ebx, ebx
je 0x41fbb1
cmp ecx, edi
jae 0x41fbb1
mov al, byte [ecx]
cmp al, 0xd
jne 0x41fb92
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41fb9e
cmp byte [ecx + 1], 0xa
jne 0x41fb9e
inc ecx
jmp 0x41fb9e
movzx eax, al
movsx eax, byte [eax + 0x4721a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41fb78
cmp edx, ebx
jne 0x41fb78
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41fbcf
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040d8ef
leave
ret
Function at 0x41fc70
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x474848]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41fcb0
cmp byte [ebx], 0xa
jne 0x41fcb0
or byte [eax + edi + 0x28], 4
jmp 0x41fcb5
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41fdb3
mov al, byte [edx]
cmp al, 0x1a
je 0x41fd95
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41fce4
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41fd09
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41fd13
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41fcc6
jmp 0x41fdb3
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41fd90
cmp dword [ebp - 0xc], 0
je 0x41fd90
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x474848]
test byte [eax + edi + 0x28], 0x48
je 0x41fd6a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41fd55
mov byte [esi], dl
jmp 0x41fd66
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x474848]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41fdb3
cmp byte [ebp - 1], 0xa
jne 0x41fd79
cmp esi, ebx
jne 0x41fd79
mov byte [esi], 0xa
jmp 0x41fdb2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004207f0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41fdb3
mov byte [esi], 0xd
jmp 0x41fdb2
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x474848]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41fdaf
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41fdb3
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret