joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ad0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x402afc
xor eax, eax
leave
ret 0xc
push 0
push dword [ebp - 4]
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 8], eax
add dword [ebp - 8], 0x20
push dword [ebp - 8]
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_ReadFile
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, 1
leave
ret 0xc
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x5a5d59ab
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x900e34b5
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Encrypt data using blowfish

Disassembly:
sub esp, 0x4c
mov eax, dword [0x44e6f0]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x50]
mov edx, dword [eax]
push ebp
mov dword [ebx], edx
mov edx, dword [eax + 4]
push esi
push edi
mov dword [ebx + 4], edx
mov edx, dword [eax]
push 0x20
push ecx
mov dword [ebx + 8], edx
mov eax, dword [eax + 4]
lea ecx, [esp + 0x24]
push ecx
mov dword [ebx + 0xc], eax
call fcn.0042d880
push 0x1000
lea ebp, [ebx + 0x10]
lea eax, [ebx + 0x58]
push 0x443598
mov ecx, 0x12
mov esi, 0x443550
mov edi, ebp
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0042d880
add esp, 0x18
lea ecx, [esp + 0x1c]
xor eax, eax
mov dword [esp + 0xc], 0x12
lea esp, [esp]
xor edx, edx
mov esi, 4
movzx edi, byte [ecx]
shl edx, 8
add eax, 1
sub esi, 1
or edx, edi
add ecx, 1
cmp eax, 0x20
jne 0x401093
xor eax, eax
lea ecx, [esp + 0x1c]
test esi, esi
jne 0x401077
xor dword [ebp], edx
add ebp, 4
sub dword [esp + 0xc], 1
jne 0x401070
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
xor ebp, ebp
lea edi, [ebx + 0x10]
lea esi, [esp + 0x10]
mov eax, ebx
call fcn.00401140
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [edi], edx
add edi, 4
add ebp, 1
mov dword [edi], eax
add ebp, 1
add edi, 4
cmp ebp, 0x12
jb 0x4010b1
lea eax, [ebx + 0x58]
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], 4
mov edi, dword [esp + 0xc]
xor ebp, ebp
mov edi, edi
lea esi, [esp + 0x10]
mov eax, ebx
call fcn.00401140
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [edi], ecx
add edi, 4
add ebp, 1
mov dword [edi], edx
add ebp, 1
add edi, 4
cmp ebp, 0x100
jl 0x4010f0
add dword [esp + 0xc], 0x400
sub dword [esp + 0x18], 1
jne 0x4010e8
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, ebx
call fcn.004271b8
add esp, 0x4c
ret 4

Function at 0x4018b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebx, ecx
xor ecx, ecx
cmp eax, ecx
push esi
push edi
je 0x401960
test al, 7
jne 0x401960
cmp eax, 8
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + 8]
mov ebp, dword [ecx + 0xc]
jb 0x401960
mov edi, edx
add edi, 0xfffffff9
shr eax, 3
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
mov ecx, ebx
call fcn.00401840
xor dword [esp + 0x18], esi
mov eax, dword [esp + 0x24]
xor dword [esp + 0x1c], ebp
lea esi, [esp + 0x18]
call fcn.00401140
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add edi, 8
mov byte [edi + 6], cl
mov edx, ecx
shr edx, 8
mov byte [edi + 5], dl
mov edx, ecx
shr edx, 0x10
mov byte [edi + 4], dl
mov ebp, ecx
shr ecx, 0x18
mov byte [edi + 3], cl
mov ecx, eax
mov byte [edi + 2], al
mov edx, eax
shr ecx, 8
shr edx, 0x10
mov esi, eax
mov byte [edi + 1], cl
shr eax, 0x18
add ebx, 8
sub dword [esp + 0x14], 1
mov byte [edi], dl
mov byte [edi - 1], al
jne 0x4018f2
lea esp, [esp]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x401970
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
push ebx
push ebp
xor ecx, ecx
cmp eax, ecx
push esi
push edi
je 0x401a40
test al, 7
jne 0x401a40
cmp eax, 8
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x30]
mov ebp, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
jb 0x401a40
mov edi, edx
add edi, 0xfffffff9
shr eax, 3
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x18]
call fcn.00401840
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
lea esi, [esp + 0x18]
mov dword [esp + 0x24], ecx
call fcn.004014c0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add dword [esp + 0x34], 8
xor ecx, ebx
mov ebx, dword [esp + 0x24]
add edi, 8
mov byte [edi + 6], cl
mov edx, ecx
shr edx, 8
mov byte [edi + 5], dl
mov edx, ecx
xor eax, ebp
mov ebp, dword [esp + 0x20]
shr edx, 0x10
mov byte [edi + 4], dl
mov dword [esp + 0x1c], ecx
shr ecx, 0x18
mov byte [edi + 3], cl
mov ecx, eax
mov byte [edi + 2], al
mov edx, eax
shr ecx, 8
shr edx, 0x10
mov dword [esp + 0x18], eax
mov byte [edi + 1], cl
shr eax, 0x18
sub dword [esp + 0x14], 1
mov byte [edi], dl
mov byte [edi - 1], al
jne 0x4019b0
lea ebx, [ebx]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
Function at 0x402520
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402539
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402574
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402570
lea ebx, [ebx]
cmp esi, eax
jae 0x402574
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402560
cmp esi, eax
jb 0x40257a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403ea0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
push 0x444614
lea ecx, [esp + 8]
call fcn.004022e0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x403f29
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403ee0
sub eax, edx
mov edx, dword [esp + 0x10]
add eax, 1
push eax
push esi
push 1
push 0
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x403f9e
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x403f89
lea edx, [esp + 0x10]
push edx
push 0xf003f
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403fa9
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403f46
sub eax, edx
add eax, 1
push eax
mov eax, dword [esp + 0x14]
push esi
push 1
push 0
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x403f9e
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403f95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop ebp
add esp, 8
ret 4
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403fc9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
pop ebp
add esp, 8
ret 4
Function at 0x403fe0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x43ccfb
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x44e6f0]
xor eax, esp
mov dword [esp + 0x410], eax
push ebp
push esi
mov eax, dword [0x44e6f0]
xor eax, esp
push eax
lea eax, [esp + 0x420]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x430]
mov esi, ecx
push 0x444614
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 1
call fcn.004022e0
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push edi
push esi
mov dword [esp + 0x43c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4040f9
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x1c]
push ebx
push eax
call esi
test eax, eax
jne 0x4040ee
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push ebx
push ecx
call esi
test eax, eax
jne 0x4040ee
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x14]
call fcn.004025f0
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.00403c90
mov dword [esp + 0x428], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4040ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x404127
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x428], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404124
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
mov ecx, dword [esp + 0x420]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.004271b8
add esp, 0x420
ret 4
Function at 0x407ae0
Capabilities:
Check os version
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x43d0a7
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x44e6f0]
xor eax, esp
mov dword [esp + 0xa4], eax
push ebx
push esi
push edi
mov eax, dword [0x44e6f0]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x20], vtable.CVersionOS.0
mov dword [esp + 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [esp + 0xc0], 0
cmp dword [esp + 0x24], 6
mov dword [esp + 0x18], vtable.CRegistry.0
jb 0x407bce
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0xc4], 1
call fcn.00407890
add esp, 4
push 1
push 0x444600
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc8], 2
call fcn.00403810
push 0x17
push 0x44481c
lea ecx, [esp + 0x1c]
call fcn.00403810
push 1
push 0x4446fc
lea ecx, [esp + 0x1c]
call fcn.00403810
push 8
push str._runonce
lea ecx, [esp + 0x1c]
call fcn.00403810
mov esi, dword [esp + 0x14]
push 0x444714
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00403ea0
mov byte [esp + 0xc0], 1
jmp 0x407c2b
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0xc4], 3
call fcn.00407890
add esp, 4
push 1
push 0x444600
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc8], 4
call fcn.00403810
push 0x17
push 0x44481c
lea ecx, [esp + 0x1c]
call fcn.00403810
mov esi, dword [esp + 0x14]
push 0x444714
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00403ea0
mov byte [esp + 0xc0], 3
xor edx, edx
test eax, eax
mov eax, dword [esp + 0x14]
sete dl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov esi, edx
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407c54
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.004271b8
add esp, 0xb4
ret
Function at 0x409620
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x43cf10
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x44e6f0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], vtable.CRegistry.0
push str.SoftwareTutoEnLigne
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 1
call fcn.004022e0
push 1
push 0x444600
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 2
call fcn.00403810
push 0x11
push str.UpdateTutoEnLigne
lea ecx, [esp + 0x20]
call fcn.00403810
mov edi, dword [esp + 0x18]
push str.hversion
mov esi, 0x4447f4
mov ebx, SysReAllocStringLen
call fcn.00403ea0
lea eax, [esp + 0x14]
push eax
call fcn.00407890
add esp, 4
mov ebx, 1
push ebx
push 0x444600
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 3
call fcn.00403810
push 0x15
push str.UpdateTutoEnLigne.exe
lea ecx, [esp + 0x1c]
call fcn.00403810
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov esi, esp
push eax
call fcn.00402190
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00402a90
add esp, 4
test eax, eax
je 0x4097a6
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
push ebx
push 0
push esi
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov byte [esp + 0x2c], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409747
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40976b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40978f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x20
ret 4
mov byte [esp + 0x2c], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4097cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4097ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409817
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x20
ret 4
Function at 0x40e883
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x44e6f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x40e8c3
push 0x43eb80
push 4
push eax
call fcn.00428492
push eax
call fcn.00403bf0
add esp, 0x10
jmp 0x40e8d5
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x40e943
push edi
call fcn.00429627
mov edi, dword [eax]
call fcn.00429627
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.004294f7
add esp, 0x18
mov ebx, eax
call fcn.00429627
cmp dword [eax], 0
je 0x40e923
call fcn.00429627
push dword [eax]
call fcn.0040c2f7
pop ecx
jmp 0x40e92a
call fcn.00429627
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x40e943
cmp ebx, esi
jae 0x40e943
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x40e945
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004271b8
leave
ret
Function at 0x41075f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x4107a5
call fcn.0041720d
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4107a5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x4107e8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x4107d1
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4107d1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4107e5
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41691e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x416961
call fcn.0041720d
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x416961
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41697c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004164d5
test ebx, ebx
mov esi, eax
je 0x41697a
test edi, edi
je 0x41697a
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x419b88
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 0x419bb6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x419bd4
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00419af2
jmp 0x419bd4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x419bd4
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00419af2
test edi, edi
mov eax, edi
jne 0x419bbe
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4548e8]
test ecx, ecx
je 0x419c97
jmp 0x419b87
ret 8

Function at 0x4271b8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44e6f0]
jne 0x4271c2
repz ret
jmp fcn.0042c3d7
Function at 0x42ea63
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x44efc8]
je 0x42ea7e
inc edi
cmp edi, 0x17
jb 0x42ea6f
cmp edi, 0x17
jae 0x42ebfe
push ebp
push 3
call fcn.0043592b
cmp eax, 1
pop ecx
je 0x42ebca
push 3
call fcn.0043592b
test eax, eax
pop ecx
jne 0x42eab2
cmp dword [0x44e6ec], 1
je 0x42ebca
cmp ebx, 0xfc
je 0x42ebfd
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4550c8
push ebp
call fcn.00428492
add esp, 0xc
test eax, eax
je 0x42eae8
push esi
push esi
push esi
push esi
push esi
call fcn.00427fb1
add esp, 0x14
push 0x104
mov esi, 0x4550e1
push esi
push 0
mov byte [0x4551e5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42eb2c
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00428492
add esp, 0xc
test eax, eax
je 0x42eb2c
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00427fb1
add esp, 0x14
push esi
call fcn.00428f00
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42eb71
push esi
call fcn.00428f00
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4553dc
push 0x441914
sub ecx, eax
push ecx
push eax
call fcn.0042b6fe
add esp, 0x14
test eax, eax
je 0x42eb71
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00427fb1
add esp, 0x14
jmp 0x42eb73
xor esi, esi
push 0x441910
push ebx
push ebp
call fcn.00429f93
add esp, 0xc
test eax, eax
je 0x42eb93
push esi
push esi
push esi
push esi
push esi
call fcn.00427fb1
add esp, 0x14
push dword [edi*8 + 0x44efcc]
push ebx
push ebp
call fcn.00429f93
add esp, 0xc
test eax, eax
je 0x42ebb5
push esi
push esi
push esi
push esi
push esi
call fcn.00427fb1
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043576e
add esp, 0xc
jmp 0x42ebfd
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x42ebfd
cmp ebp, 0xffffffff
je 0x42ebfd
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x44efcc]
push dword [esi]
call fcn.00428f00
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret