joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c27f
Capabilities:
Check os version

Disassembly:
mov eax, dword fs:[0x18]
sub esp, 0x74
mov eax, dword [eax + 0x30]
cmp dword [eax + 0xa4], 6
jae 0x1000c465
cmp dword [0x1002ef1c], 0
jne 0x1000c45e
push ebx
push ebp
push edi
push fcn.1000c0f8
mov edx, str.NtOpenKeyedEvent
mov ecx, 0x1002abd0
call fcn.1000c16d
mov ebx, eax
test ebx, ebx
jne 0x1000c2d1
push eax
push eax
push 1
push 0xc0000264
call dword [sym.imp.KERNEL32.dll_RaiseException]
push 0x5c
pop edx
push 0x4b
pop eax
push 0x65
pop ecx
push 0x72
mov word [esp + 0x36], ax
pop eax
push 0x6e
mov word [esp + 0x3a], ax
pop eax
push 0x6c
mov word [esp + 0x3c], ax
pop eax
push 0x4f
pop edi
push 0x62
mov word [esp + 0x40], ax
pop eax
push 0x6a
mov word [esp + 0x44], ax
pop eax
push 0x63
mov word [esp + 0x46], ax
mov word [esp + 0x38], cx
mov word [esp + 0x3e], cx
mov word [esp + 0x48], cx
pop ecx
push 0x74
pop ebp
push 0x73
pop eax
push 0x43
mov word [esp + 0x4e], ax
pop eax
push 0x72
mov word [esp + 0x52], ax
mov word [esp + 0x34], dx
mov word [esp + 0x50], dx
pop edx
push 0x69
pop eax
push 0x53
mov word [esp + 0x56], ax
pop eax
push 0x65
mov word [esp + 0x5a], ax
pop eax
push 0x75
mov word [esp + 0x5c], ax
pop eax
push 0x66
mov word [esp + 0x62], ax
pop eax
push 0x4d
mov word [esp + 0x68], ax
pop eax
push 0x65
mov word [esp + 0x4a], cx
mov word [esp + 0x5e], cx
pop ecx
push 0x6d
mov word [esp + 0x6a], ax
pop eax
push 0x6f
mov word [esp + 0x6e], ax
pop eax
push 0x79
mov word [esp + 0x70], ax
pop eax
mov word [esp + 0x3e], di
mov word [esp + 0x48], bp
mov word [esp + 0x50], dx
mov word [esp + 0x54], bp
mov word [esp + 0x5c], di
mov word [esp + 0x60], bp
mov word [esp + 0x62], di
mov word [esp + 0x68], cx
mov word [esp + 0x6e], dx
mov word [esp + 0x70], ax
push 0x45
pop eax
mov word [esp + 0x72], ax
lea edi, [esp + 0x24]
push 0x76
pop eax
mov word [esp + 0x74], ax
push 0x6e
pop eax
mov word [esp + 0x78], ax
xor eax, eax
mov word [esp + 0x7c], ax
push 0x4c
pop eax
mov word [esp + 0x10], ax
mov word [esp + 0x12], ax
lea eax, [esp + 0x30]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x20], eax
xor eax, eax
mov word [esp + 0x7a], bp
xor ebp, ebp
mov dword [esp + 0x18], 0x18
mov dword [esp + 0x1c], ebp
stosd dword es:[edi], eax
mov word [esp + 0x76], cx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
push 0x2000000
lea eax, [esp + 0x14]
push eax
call ebx
test eax, eax
jns 0x1000c43f
push ebp
push ebp
push 1
push 0xc0000264
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov ecx, dword [esp + 0xc]
mov edx, 0x1002ef1c
xor eax, eax
lock cmpxchg dword [edx], ecx
pop edi
pop ebp
pop ebx
test eax, eax
je 0x1000c45e
push dword [esp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x1002ef1c]
jmp 0x1000c467
xor eax, eax
add esp, 0x74
ret
Function at 0x1000e2c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1000e290
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1000e385
mov edx, dword [ebp - 4]
cmp edx, dword [0x1002a268]
jb 0x1000e305
mov eax, dword [ebp - 4]
cmp eax, dword [0x1002a26c]
ja 0x1000e305
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000e2d5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10013250
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1000e32b
jmp 0x1000e385
cmp dword [ebp - 0x14], 0x10000
jne 0x1000e36e
cmp dword [ebp - 0x18], 0x10000
jb 0x1000e36e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000e361
mov eax, dword [ebp - 8]
jmp 0x1000e387
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000e380
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1000e290
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000e2d5
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000e390
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1000e260
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1000e45d
mov edx, dword [ebp - 4]
cmp edx, dword [0x1002a268]
jb 0x1000e3da
mov eax, dword [ebp - 4]
cmp eax, dword [0x1002a26c]
ja 0x1000e3da
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000e3aa
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10013250
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1000e400
jmp 0x1000e45d
cmp dword [ebp - 0x14], 0x10000
jne 0x1000e443
cmp dword [ebp - 0x18], 0x10000
jb 0x1000e443
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000e436
mov eax, dword [ebp - 8]
jmp 0x1000e45f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000e458
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1000e260
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000e3aa
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10013569
Capabilities:
Parse pe header

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

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

Function at 0x10015e4d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10022520
push 0x10022518
push str.FlsAlloc
push 0x1f
call fcn.10016130
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015e81
push dword [ebp + 8]
mov ecx, esi
call dword [0x10027198]
call esi
jmp 0x10015e87
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10015ecb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10022530
push 0x10022528
push str.FlsGetValue
push 0x21
call fcn.10016130
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015f02
push dword [ebp + 8]
mov ecx, esi
call dword [0x10027198]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10015f0a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10022538
push 0x10022530
push str.FlsSetValue
push 0x22
call fcn.10016130
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015f44
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10027198]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x10018aed
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 0x10018b8a
push ebx
push esi
call fcn.10018b8d
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.100189f1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10018b37
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10018b89
push edi
push eax
call fcn.10019393
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10018b57
call fcn.100173fc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10018b88
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100189f1
add esp, 0x20
test eax, eax
jne 0x10018b76
push edi
call fcn.100173fc
jmp 0x10018b7e
push ebx
call fcn.100173fc
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 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x10001430
Capabilities:
Encode data using xor

Disassembly:
xchg edi, eax
push esp
leave
mov eax, dword [0x4b77081a]
lodsb al, byte [esi]
pop ebx
xor dword [ebx], 0x7a741ec
xchg edx, eax
xor esp, dword [edx - 0x425b3308]
xchg esp, ebp
stc
push 0x7bb16a52
salc
xchg esp, eax
out 0x1e, eax
push 0xffffffffffffffac
cmc
stc
fdiv dword [eax + edi*8 - 0x34]
mov esp, dword [eax - 0x3d0b2e4b]
mov bh, byte [esi + 0x73]
mov edi, 0x50506608
or al, 0xe0
push ecx
and dword [ebp + ebp*4 + 0x78], edx
lodsb al, byte [esi]
loop 0x100014d3
sub al, 0xdf
retf 0xa64a
loope 0x100014db
cmpsd dword [esi], dword es:[edi]
xlatb
adc bl, dh
invalid
jge 0x10001512
cdq
ja 0x100014e3
jb 0x100014bd
imul ebp, dword [eax - 0x196b78d5], 0xffffffc9
leave
idiv byte [edx - 0xe32f31d]
loopne 0x100014c5
jmp 0xe22b2caf
iretd
add al, 0xb7
pop edi
pop ebx
push edi
ljmp 0x527b
push es
xor byte [ebx + eax*4 + 0x11], 0x83
xchg ebp, eax
imul edi, eax, 0xc201a6cb
or dword [ebx + 0x281c268d], esp
scasd eax, dword es:[edi]
stc
dec ecx
xchg ecx, eax
sub bl, al
push esi
mov dl, 0xd6
jnp 0x10001592
push ebx
sbb dword [0xb0eea78], 0xaeca1026
scasb al, byte es:[edi]
jle 0x1000159f
and ch, ah
mov dword [0xc6b95738], eax
mov eax, dword [0xc7e4e1d6]
xchg dword [ebx + ebx*2 - 0x767eb252], ecx
mov edi, dword [0xfbaaa5d9]
inc edi
mov esp, ecx
mov dword [0x476a79f7], eax
invalid
xchg ecx, eax
and ebp, dword [ecx + 0x44]
and al, 0xcf
jns 0x100015b7
sahf
mov al, 0x99
ja 0x1000153a
inc ebp
add edx, ecx
retf
in al, dx
pop es
inc ecx
lodsd eax, dword [esi]
push cs
or byte [0x1877aa67], al
stosb byte es:[edi], al
ja 0x100015d2
arpl word [ebx], dx
fnstenv [eax + 0x2e]
dec eax
lodsd eax, dword [esi]
mov esi, 0x115eba54
sahf
pop esi
sub eax, 0xf4ba2c5a
mov eax, dword gs:[0x933f58ee]
xchg ebx, eax
push edx
sar bh, 0x17
out 0x93, al
pop es
xlatb
aam 0x21
push edx
mov bl, 0xae
pop ecx
fcmovb st(0), st(2)
pop ss
sub ah, byte [ebx - 0x71a20eea]
mov dword [0x8e5df116], eax
stc
sub al, 0xf2
lea edi, [ecx + edi*4 - 0x12]
sbb byte [ecx - 0x7c8f9458], cl
dec esi
dec ecx
sar dword [eax - 0xe], 0x98
sub edx, dword [edx - 0x39]
mov edi, 0xc01069fd
popal
sub dword [edx], ebx
sub al, 0x9e
lcall 0xd94a, 0x97deaa97
xor byte [ebx - 0x3196fd5d], cl
jg 0x100015e5
push ecx
fadd st(3), st(0)
or eax, 0x449653c2
jns 0x100015ae
mov edx, 0xd76ce85b
adc dword [edx + 0x4a], ebx
xchg esi, eax
lahf
enter 0xffffffffffffa428, 0xffffffffffffff87
pushal
stosd dword es:[edi], eax
arpl word [eax + 0x3f28025b], cx
sahf
invalid
Function at 0x40299c
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4029d9
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x4029f9
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404a60
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402b60
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004047f0
test esi, esi
jne 0x402b96
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004048e0
jmp 0x402bb4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a74
mov edi, eax
test esi, esi
je 0x402bb4
cmp dword [ebx], 0
je 0x402bb4
dec esi
jmp 0x402b9d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403248
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x503008], 0x8088405
inc edx
mov dword [ebx + 0x503008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x40384c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x503024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4038e4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4038c4
xor eax, eax
push ebp
push 0x4038bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403900
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4038c4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x503024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x503024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4045f0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x50904c], 0
je 0x404651
cmp word [0x509220], 0xd7b2
jne 0x404619
cmp dword [0x509228], 0
jbe 0x404619
mov eax, 0x50921c
call dword [0x509238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x503094
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404678
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x503034], 0
jne 0x40466d
push 0
push 0x50308c
push 0x503094
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4047a4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004027b4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x50904d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40476c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406838
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40689e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404a60
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403388
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406888
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4068a5
lea eax, [ebp - 0x10]
call fcn.004047f0
ret

Function at 0x409db8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x409de9
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x409df0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x409e21
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x409f08
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404cb0
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x40d7d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x40d818
mov ecx, dword [ebp - 0x10]
dec ecx
lea edx, [ebp - 0x110]
mov eax, dword [ebp + 8]
call fcn.004048e0
jmp 0x40d823
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.00404844
mov esp, ebp
pop ebp
ret 4

Function at 0x40d82c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40d85a
mov al, byte [ebp - 0xc]
mov byte [ebp - 0xa], al
jmp 0x40d860
mov al, byte [ebp - 9]
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret
Function at 0x40e16c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbb4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0x400
lea ecx, [ebp - 0x44c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040dfb4
mov eax, dword [0x5089f8]
cmp byte [eax], 0
je 0x40e1ff
mov eax, dword [0x5085fc]
call fcn.00402f78
call fcn.0040291c
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x44c]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x44c]
call fcn.0040a20c
push eax
lea eax, [ebp - 0x44c]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 0xc]
push eax
push 2
push 0x40e244
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40e235
push 0x40
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [0x508558]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x509668]
call fcn.00405d4c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov esp, ebp
pop ebp
ret

Function at 0x40ec98
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40ed76
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404888
lea eax, [ebp - 0xc]
call fcn.00404d00
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404cb0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40ed60
mov eax, dword [ebp - 0x10]
call fcn.004027b4
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x40ed59
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404cb0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ed43
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x40ed84
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ed43
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ed60
mov eax, dword [ebp - 0x18]
call fcn.004027d4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ed7d
lea eax, [ebp - 0xc]
call fcn.004047f0
ret
Function at 0x40f53c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40f5a6
push dword fs:[eax]
mov dword fs:[eax], esp
push 7
lea eax, [ebp - 0xf]
push eax
push 0x1004
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xf]
mov ecx, 7
call fcn.00404a60
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409a7c
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f5ad
lea eax, [ebp - 0x14]
call fcn.004047f0
ret

Function at 0x420e48
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindResourceA
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x420e7e
push ebp
call fcn.00420dd8
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LoadResource
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 0
jne 0x420ea4
push ebp
call fcn.00420dd8
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SizeofResource
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
push eax
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
call fcn.00420838
mov esp, ebp
pop ebp
ret 4

Function at 0x427298
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
setge dl
mov eax, dword [ebp - 4]
call fcn.00427068
cmp dword [ebp - 8], 1
jne 0x4272cc
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 0
pop ecx
pop ecx
pop ebp
ret