joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e3724
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [eax + 4]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
lea ecx, [eax + 8]
mov ecx, dword [ecx]
mov dword [edx + 8], ecx
lea ecx, [eax + 0xc]
mov ecx, dword [ecx]
mov dword [edx + 0xc], ecx
lea ecx, [eax + 0x10]
mov ecx, dword [ecx]
mov dword [edx + 0x10], ecx
add eax, 0x14
mov eax, dword [eax]
mov dword [edx + 0x14], eax
xor eax, eax
mov dword [esp], 1
mov ecx, dword [edx + eax*4 + 0x14]
mov ebx, ecx
shl ebx, 0x18
shr ecx, 8
or ebx, ecx
mov ecx, ebx
xor ebx, ebx
mov bl, cl
mov ebx, dword [ebx*4 + 0x508988]
mov dword [esp + 4], ebx
mov ebx, ecx
shr ebx, 8
and ebx, 0xff
mov esi, dword [ebx*4 + 0x508988]
mov ebx, ecx
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x508988]
mov dword [esp + 8], ebx
shr ecx, 0x18
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x508988]
mov ebx, esi
shl ebx, 8
shr esi, 0x18
or ebx, esi
xor ebx, dword [esp + 4]
mov esi, dword [esp + 8]
shl esi, 0x10
mov edi, dword [esp + 8]
shr edi, 0x10
or esi, edi
xor ebx, esi
mov esi, ecx
shl esi, 0x18
shr ecx, 8
or esi, ecx
xor ebx, esi
xor ebx, dword [edx + eax*4]
mov ecx, dword [esp]
xor ebx, dword [ecx*4 + 0x50890c]
mov dword [edx + eax*4 + 0x18], ebx
inc dword [esp]
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4 + 0x18]
mov dword [edx + eax*4 + 0x1c], ecx
mov ebx, dword [edx + eax*4 + 8]
xor ebx, ecx
mov dword [edx + eax*4 + 0x20], ebx
mov ecx, dword [edx + eax*4 + 0xc]
xor ecx, ebx
mov dword [edx + eax*4 + 0x24], ecx
mov ebx, dword [edx + eax*4 + 0x10]
xor ebx, ecx
mov dword [edx + eax*4 + 0x28], ebx
mov ecx, dword [edx + eax*4 + 0x14]
xor ecx, ebx
mov dword [edx + eax*4 + 0x2c], ecx
add eax, 6
cmp eax, 0x2e
jl 0x4e375f
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x4e3840
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [eax + 4]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
lea ecx, [eax + 8]
mov ecx, dword [ecx]
mov dword [edx + 8], ecx
lea ecx, [eax + 0xc]
mov ecx, dword [ecx]
mov dword [edx + 0xc], ecx
lea ecx, [eax + 0x10]
mov ecx, dword [ecx]
mov dword [edx + 0x10], ecx
lea ecx, [eax + 0x14]
mov ecx, dword [ecx]
mov dword [edx + 0x14], ecx
lea ecx, [eax + 0x18]
mov ecx, dword [ecx]
mov dword [edx + 0x18], ecx
add eax, 0x1c
mov eax, dword [eax]
mov dword [edx + 0x1c], eax
xor eax, eax
mov dword [esp], 1
mov ecx, dword [edx + eax*4 + 0x1c]
mov edi, ecx
shl edi, 0x18
shr ecx, 8
or edi, ecx
mov ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x508988]
mov dword [esp + 4], ecx
mov ecx, edi
shr ecx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x508988]
mov ebx, edi
shr ebx, 0x10
and ebx, 0xff
mov esi, dword [ebx*4 + 0x508988]
mov ebx, edi
shr ebx, 0x18
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x508988]
mov dword [esp + 8], ebx
mov ebx, ecx
shl ebx, 8
shr ecx, 0x18
or ebx, ecx
xor ebx, dword [esp + 4]
mov ecx, esi
shl ecx, 0x10
shr esi, 0x10
or ecx, esi
xor ebx, ecx
mov ecx, dword [esp + 8]
shl ecx, 0x18
mov esi, dword [esp + 8]
shr esi, 8
or ecx, esi
xor ebx, ecx
xor ebx, dword [edx + eax*4]
mov ecx, dword [esp]
xor ebx, dword [ecx*4 + 0x50890c]
mov dword [edx + eax*4 + 0x20], ebx
inc dword [esp]
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4 + 0x20]
mov dword [edx + eax*4 + 0x24], ecx
mov ebx, dword [edx + eax*4 + 8]
xor ebx, ecx
mov dword [edx + eax*4 + 0x28], ebx
mov edi, dword [edx + eax*4 + 0xc]
xor edi, ebx
mov dword [edx + eax*4 + 0x2c], edi
xor ecx, ecx
mov cl, byte [edx + eax*4 + 0x2c]
mov ecx, dword [ecx*4 + 0x508988]
mov dword [esp + 4], ecx
mov ecx, edi
shr ecx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x508988]
mov ebx, edi
shr ebx, 0x10
and ebx, 0xff
mov esi, dword [ebx*4 + 0x508988]
mov ebx, edi
shr ebx, 0x18
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x508988]
mov dword [esp + 8], ebx
mov ebx, ecx
shl ebx, 8
shr ecx, 0x18
or ebx, ecx
xor ebx, dword [esp + 4]
mov ecx, esi
shl ecx, 0x10
shr esi, 0x10
or ecx, esi
xor ebx, ecx
mov ecx, dword [esp + 8]
shl ecx, 0x18
mov esi, dword [esp + 8]
shr esi, 8
or ecx, esi
xor ebx, ecx
xor ebx, dword [edx + eax*4 + 0x10]
mov dword [edx + eax*4 + 0x30], ebx
mov ecx, dword [edx + eax*4 + 0x14]
xor ecx, dword [edx + eax*4 + 0x30]
mov dword [edx + eax*4 + 0x34], ecx
mov ebx, dword [edx + eax*4 + 0x18]
xor ebx, ecx
mov dword [edx + eax*4 + 0x38], ebx
mov ecx, dword [edx + eax*4 + 0x1c]
xor ecx, ebx
mov dword [edx + eax*4 + 0x3c], ecx
add eax, 8
cmp eax, 0x34
jl 0x4e388b
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x4f559c
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404d9c
xor eax, eax
push ebp
push 0x4f5604
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x1505
mov eax, dword [ebp - 4]
call fcn.00404bac
test eax, eax
jle 0x4f55e8
mov edx, 1
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + edx - 1]
mov esi, ebx
shl esi, 5
add ebx, esi
add ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x4f55d1
and ebx, 0x7fffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f560b
lea eax, [ebp - 4]
call fcn.004048ec
ret
Function at 0x4fcad4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 8], eax
mov eax, dword [0x509784]
mov eax, dword [eax + 0x20]
mov edx, dword [0x509784]
add eax, dword [edx + 0x24]
mov edx, dword [0x509784]
sub eax, dword [edx + 0x3c]
test eax, eax
jg 0x4fcb67
mov eax, dword [0x509784]
mov eax, dword [eax + 0x1c]
mov edx, dword [0x509784]
cmp eax, dword [edx + 0x18]
jge 0x4fcb67
push 0x50b390
call sub.kernel32.dll_EnterCriticalSection_1
xor eax, eax
push ebp
push 0x4fcb60
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x509784]
mov eax, dword [eax + 0x3c]
mov edx, dword [0x509784]
mov dword [edx + 0x24], eax
mov eax, dword [0x509784]
inc dword [eax + 0x1c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fcb67
push 0x50b390
call sub.kernel32.dll_LeaveCriticalSection_1
ret
mov eax, dword [0x509e7c]
cmp dword [eax + 8], 0x14
jne 0x4fcbb6
mov eax, dword [0x509e7c]
cmp byte [eax + 0x10], 0
jne 0x4fcbb6
push 1
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
mov ecx, 2
mov dl, 1
mov eax, dword [0x4e9730]
call fcn.004e97b0
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x68], ebx
mov byte [ebx + 0xf], 1
mov eax, ebx
call fcn.00425250
mov eax, dword [0x509e7c]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [0x509e7c]
cmp dword [eax + 8], 0xa
jne 0x4fcc06
mov eax, dword [0x509e7c]
cmp byte [eax + 0xc], 0
jne 0x4fcc06
mov eax, dword [0x509d50]
cmp byte [eax + 0x24], 0
je 0x4fcc06
push 1
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
mov ecx, 3
mov dl, 1
mov eax, dword [0x4e9730]
call fcn.004e97b0
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x68], ebx
mov byte [ebx + 0xf], 1
mov eax, ebx
call fcn.00425250
mov eax, dword [0x509e7c]
inc dword [eax + 8]
mov eax, dword [0x509e7c]
cmp dword [eax + 0x14], 0x960
jne 0x4fcc3d
mov edx, 0x4fccc8
mov eax, dword [ebp - 4]
call fcn.004f5614
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004fc984
mov eax, dword [0x509e7c]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [0x509e7c]
inc dword [eax + 0x14]
push 0
push 0x3e8
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 8]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405a0c
mov ebx, eax
cmp ebx, 1
jge 0x4fcc73
mov ebx, 1
push 0x50b390
call sub.kernel32.dll_EnterCriticalSection_1
xor eax, eax
push ebp
push 0x4fccb3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x509784]
add dword [eax + 0x3c], ebx
mov eax, dword [0x509784]
add dword [eax + 0x38], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fccba
push 0x50b390
call sub.kernel32.dll_LeaveCriticalSection_1
ret
Function at 0x5008f4
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd44
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x29c], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d9c
xor eax, eax
push ebp
push 0x500a46
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x198]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor ecx, ecx
push ebp
push 0x500a1e
push dword fs:[ecx]
mov dword fs:[ecx], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x298]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x298]
mov edx, dword [ebp - 4]
call fcn.00409ee8
lea eax, [ebp - 0x298]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x500a07
mov edx, dword [eax + 0xc]
test edx, edx
je 0x500a01
mov ebx, dword [edx]
test ebx, ebx
je 0x5009fb
lea eax, [ebp - 0x29c]
push eax
xor eax, eax
mov al, byte [ebx]
mov dword [ebp - 0x2bc], eax
mov byte [ebp - 0x2b8], 0
xor eax, eax
mov al, byte [ebx + 1]
mov dword [ebp - 0x2b4], eax
mov byte [ebp - 0x2b0], 0
xor eax, eax
mov al, byte [ebx + 2]
mov dword [ebp - 0x2ac], eax
mov byte [ebp - 0x2a8], 0
xor eax, eax
mov al, byte [ebx + 3]
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 0x2a0], 0
lea edx, [ebp - 0x2bc]
mov ecx, 3
mov eax, 0x500a60
call fcn.0040a52c
mov edx, dword [ebp - 0x29c]
mov eax, esi
call fcn.00404940
mov byte [ebp - 5], 1
jmp 0x500a0b
mov byte [ebp - 5], 0
jmp 0x500a0b
mov byte [ebp - 5], 0
jmp 0x500a0b
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500a25
call sub.wsock32.dll_WSACleanup
ret
Function at 0x500a6c
Capabilities:
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x500a75
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d9c
mov eax, dword [ebp - 8]
call fcn.00404d9c
mov eax, dword [ebp - 0xc]
call fcn.00404d9c
xor eax, eax
push ebp
push 0x500c22
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 1
lea eax, [ebp - 0x1c]
mov edx, 0x500c40
call fcn.00404984
lea eax, [ebp - 0x14]
mov edx, 0x500c5c
call fcn.00404984
lea eax, [ebp - 0x24]
mov edx, 0x500c74
call fcn.00404984
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.005008f4
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
call fcn.005008f4
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x24]
call fcn.005008f4
cmp dword [ebp - 4], 0
je 0x500b15
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
call fcn.00404cf8
je 0x500b15
mov byte [ebp - 0xd], 0
cmp dword [ebp - 8], 0
je 0x500b2c
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
call fcn.00404cf8
je 0x500b2c
mov byte [ebp - 0xd], 0
cmp dword [ebp - 0xc], 0
je 0x500b43
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0xc]
call fcn.00404cf8
je 0x500b43
mov byte [ebp - 0xd], 0
cmp byte [ebp + 8], 0
je 0x500bfa
mov eax, 0xff
call fcn.00402834
mov ebx, eax
mov edx, 0xff
mov eax, ebx
call fcn.00407d24
push 0xff
push ebx
call sub.kernel32.dll_GetWindowsDirectoryA
lea edx, [ebp - 0x2c]
mov eax, ebx
call fcn.0040a03c
mov eax, ebx
call fcn.00402854
xor eax, eax
push ebp
push 0x500bf0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x419ff4]
call fcn.00403aa8
mov ebx, eax
mov edx, 0x500c8c
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x500ca8
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x30]
mov ecx, 0x500ccc
mov edx, dword [ebp - 0x2c]
call fcn.00404bf8
push 0x20
mov eax, dword [ebp - 0x30]
call fcn.00404dac
push eax
call sub.kernel32.dll_SetFileAttributesA
mov edx, dword [ebp - 0x30]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, ebx
call fcn.00403ad8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x500bfa
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500c29
lea eax, [ebp - 0x30]
mov edx, 8
call fcn.00404910
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404910
ret
Function at 0x502598
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ecx
push 0x50264c
call sub.kernel32.dll_LoadLibraryA
test eax, eax
jbe 0x5025b7
push 0x502658
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
test ebx, ebx
je 0x5025d7
push esp
push 0x40
push 3
push ebx
call sub.kernel32.dll_VirtualProtect
mov edx, ebx
mov ecx, 3
mov eax, 0x502674
call fcn.00402a3c
push 0x502678
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
test ebx, ebx
jbe 0x5025f4
push 0x502684
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
test esi, esi
je 0x502614
push esp
push 0x40
push 3
push esi
call sub.kernel32.dll_VirtualProtect
mov edx, esi
mov ecx, 3
mov eax, 0x50269c
call fcn.00402a3c
test ebx, ebx
jbe 0x502625
push 0x5026a0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov edi, eax
test edi, edi
je 0x502645
push esp
push 0x40
push 3
push edi
call sub.kernel32.dll_VirtualProtect
mov edx, edi
mov ecx, 3
mov eax, 0x502674
call fcn.00402a3c
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x401215
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push edi
push 0x7f00
xor edi, edi
push edi
mov dword [ebp - 0x24], str.construct
mov dword [ebp - 0x44], 0x401000
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x4c], 0x30
call esi
push 0x7f00
push edi
mov dword [ebp - 0x34], eax
call esi
push 0x7f00
push edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
call esi
push edi
mov dword [0x4030f0], eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x401327
push 1
push dword [0x4030f0]
call dword [sym.imp.USER32.dll_LoadBitmapA]
push edi
push edi
call esi
push eax
push edi
push edi
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.displayed
push str.construct
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push eax
mov dword [0x4030f8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x401327
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x40130a
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401a20
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x118
mov eax, dword [0x420160]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0x128]
push ebx
mov ebx, dword [esp + 0x120]
push ebp
push esi
push edi
push 0x40
push ebx
mov dword [esp + 0x1c], eax
mov esi, 0x35
call dword [0x420c50]
test eax, eax
je 0x401a63
push 0x3d
jmp 0x401c2d
mov eax, 0x5a4d
cmp word [ebx], ax
je 0x401a74
push 0x44
jmp 0x401c2d
mov edi, dword [ebx + 0x3c]
push 0xf8
add edi, ebx
push edi
call dword [0x420c50]
test eax, eax
jne 0x401c2b
cmp dword [edi], 0x4550
jne 0x401c2b
mov eax, dword [edi + 0x78]
test eax, eax
jne 0x401aa7
push 0x58
jmp 0x401c2d
mov edx, dword [ebx + eax + 0x1c]
lea ecx, [ebx + eax]
mov ebp, dword [ecx + 0x20]
add edx, ebx
mov eax, dword [ecx + 0x24]
add ebp, ebx
mov edi, dword [edi + 0x7c]
add eax, ebx
cmp dword [esp + 0x130], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
jne 0x401afc
mov eax, dword [esp + 0x134]
sub eax, dword [ecx + 0x10]
cmp eax, dword [ecx + 0x14]
jb 0x401af4
push 0x69
push 0x12
call fcn.00402ca0
jmp 0x401c36
mov eax, dword [edx + eax*4]
jmp 0x401b83
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x401b59
mov ecx, dword [esp + 0x130]
mov esi, edi
shr esi, 1
mov eax, dword [ebp + esi*4]
add eax, ebx
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x401b34
test dl, dl
je 0x401b30
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x401b34
add ecx, 2
add eax, 2
test dl, dl
jne 0x401b14
xor eax, eax
jmp 0x401b39
sbb eax, eax
or eax, 1
test eax, eax
je 0x401b6c
jle 0x401b53
mov edx, dword [esp + 0x10]
inc esi
sub edi, esi
lea edx, [edx + esi*2]
lea ebp, [ebp + esi*4]
mov dword [esp + 0x10], edx
jmp 0x401b55
mov edi, esi
test edi, edi
jne 0x401b03
push 0xa1
push 0x10
call fcn.00402ca0
mov esi, eax
jmp 0x401c34
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
movzx eax, word [eax + esi*2]
mov eax, dword [ecx + eax*4]
mov ecx, dword [esp + 0x1c]
lea esi, [ebx + eax]
cmp esi, ecx
jb 0x401c21
lea eax, [ecx + edi]
cmp esi, eax
ja 0x401c21
push 0x2e
push esi
call fcn.00404dd0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x401bba
push 0x83
push 0x1b
call fcn.00402ca0
mov esi, eax
jmp 0x401c34
mov edi, ebx
sub edi, esi
cmp edi, 0xff
jb 0x401bd6
push 0x89
push 0x16
call fcn.00402ca0
mov esi, eax
jmp 0x401c34
push edi
lea eax, [esp + 0x28]
push esi
push eax
call fcn.004046f0
add esp, 0xc
mov byte [esp + edi + 0x24], 0
lea eax, [esp + 0x24]
push eax
call dword [0x420c40]
mov ecx, eax
test ecx, ecx
jne 0x401c0b
push 0x91
push 0x12
call fcn.00402ca0
mov esi, eax
jmp 0x401c34
mov eax, dword [esp + 0x14]
push eax
push 0
lea eax, [ebx + 1]
push eax
push ecx
call fcn.00401a20
add esp, 0x10
jmp 0x401c39
mov eax, dword [esp + 0x14]
mov dword [eax], esi
xor eax, eax
jmp 0x401c39
push 0x4f
push 0x35
call fcn.00402ca0
mov eax, esi
add esp, 8
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403b83
add esp, 0x118
ret
Function at 0x4038e0
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
mov eax, 0x5a4d
sub esp, 0xc
cmp word [ecx], ax
je 0x4038fc
mov edx, 0x1b
mov eax, edx
add esp, 0xc
ret
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x4038f1
push esi
push edi
mov edi, dword [eax + ecx + 0x88]
mov eax, dword [esp + 0x1c]
add edi, ecx
mov dword [esp + 0xc], edi
test eax, 0xffff0000
jne 0x403937
movzx esi, ax
test si, si
jne 0x403939
mov edx, 0x1b
pop edi
pop esi
mov eax, edx
add esp, 0xc
ret
xor esi, esi
lea eax, [esp + 8]
push eax
push dword [esp + 0x24]
movzx eax, word [edi + 0xe]
lea ecx, [edi + 0x10]
push eax
push ecx
mov dword [esp + 0x18], ecx
call fcn.00403890
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x403a9b
mov eax, dword [esp + 8]
mov eax, dword [eax + 4]
test eax, eax
js 0x403979
mov edx, 0x3a
pop edi
pop esi
mov eax, edx
add esp, 0xc
ret
and eax, 0x7fffffff
push ebx
push ebp
movzx ebx, word [eax + edi + 0xc]
lea ebp, [eax + 0x10]
add ebp, edi
test si, si
je 0x4039c4
movzx eax, word [eax + edi + 0xe]
lea edx, [esp + 0x10]
push edx
push esi
lea ecx, [ebx*8]
add ecx, ebp
push eax
push ecx
mov dword [esp + 0x20], ecx
call fcn.00403890
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x403a99
mov eax, dword [esp + 0x10]
jmp 0x403a69
test ebx, ebx
je 0x403a94
nop dword [eax]
mov edx, dword [esp + 0x24]
mov edi, ebx
shr edi, 1
lea eax, [edi*8]
add eax, ebp
mov dword [esp + 0x18], eax
mov eax, dword [eax]
and eax, 0x7fffffff
add eax, dword [esp + 0x14]
movzx ecx, word [eax]
add eax, 2
mov dword [esp + 0x10], ecx
lea esi, [ecx + ecx]
sub esi, 4
jb 0x403a13
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x403a18
add edx, 4
add eax, 4
sub esi, 4
jae 0x403a02
cmp esi, 0xfffffffc
je 0x403a4c
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x403a45
cmp esi, 0xfffffffd
je 0x403a4c
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x403a45
cmp esi, 0xfffffffe
je 0x403a4c
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x403a45
cmp esi, 0xffffffff
je 0x403a4c
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x403a4c
sbb eax, eax
or eax, 1
jmp 0x403a4e
xor eax, eax
test eax, eax
jne 0x403a7f
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
cmp word [eax + ecx*2], 0
jne 0x403a81
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
test eax, eax
js 0x403aa3
pop ebp
pop ebx
mov edx, 0x3a
pop edi
pop esi
mov eax, edx
add esp, 0xc
ret
jle 0x403a8a
inc edi
sub ebx, edi
lea ebp, [ebp + edi*8]
jmp 0x403a8c
mov ebx, edi
test ebx, ebx
jne 0x4039d0
mov edx, 0x10
pop ebp
pop ebx
pop edi
pop esi
mov eax, edx
add esp, 0xc
ret
and eax, 0x7fffffff
xor ecx, ecx
mov edx, 0x10
cmp cx, word [eax + edi + 0xe]
jae 0x403a99
mov esi, dword [eax + edi + 0x14]
xor edx, edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + edi]
add ecx, dword [esp + 0x20]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x403a99
mov eax, dword [esi + edi + 4]
pop ebp
pop ebx
pop edi
mov dword [ecx], eax
mov eax, edx
pop esi
add esp, 0xc
ret
Function at 0x4043b5
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40f088
push ebx
push esi
call fcn.0040efb4
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040eefd
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40f035
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40f087
push edi
push eax
call fcn.0040bb0c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40f055
call fcn.0040bad2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40f086
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040eefd
add esp, 0x20
test eax, eax
jne 0x40f074
push edi
call fcn.0040bad2
jmp 0x40f07c
push ebx
call fcn.0040bad2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40fd2f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41a718
push 0x41a710
push str.FlsAlloc
push 0x1e
call fcn.0040fc4d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40fd63
push dword [ebp + 8]
mov ecx, esi
call dword [0x418180]
call esi
jmp 0x40fd69
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40fdad
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41a728
push 0x41a720
push str.FlsGetValue
push 0x20
call fcn.0040fc4d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40fde4
push dword [ebp + 8]
mov ecx, esi
call dword [0x418180]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4169c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4169ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4169ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret