joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404d83
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x407de8], ebx
mov esi, eax
mov dword [ebp - 0xc], esi
jne 0x404db9
push 0x407dcc
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x407de8], 1
push 0x407dcc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x407de4]
cmp eax, ebx
mov edi, eax
je 0x404e1d
cmp dword [ebp - 4], ebx
jne 0x404f56
xor eax, eax
inc eax
lea ecx, [edi + 0x114]
cmp esi, dword [ecx]
je 0x404df0
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x404de1
jmp 0x404e0e
push dword [ebp + 0xc]
lea esi, [edi + eax*4 + 0x210]
push dword [ebp + 8]
call fcn.00404bd5
mov esi, dword [ebp - 0xc]
pop ecx
pop ecx
mov dword [ebp - 4], 1
mov edi, dword [edi]
cmp edi, ebx
jne 0x404dcf
cmp dword [ebp - 4], ebx
jne 0x404f56
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push ebx
push 0x100000
lea eax, [ebp - 8]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x404f56
mov edi, dword [0x407de4]
jmp 0x404e5d
cmp dword [edi + 0xc], 0x3f
jl 0x404ef0
mov edi, dword [edi]
cmp edi, ebx
jne 0x404e51
push 0x310
push 8
push dword [0x407c54]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x404f4d
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
cmp eax, ebx
mov dword [edi + 8], eax
je 0x404f3f
push ebx
push ebx
push edi
push 0x404c26
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x114], esi
push 0x1000
lea esi, [edi + 0x214]
push ebx
mov dword [edi + 0x14], eax
mov dword [esi], ebx
mov dword [edi + 0xc], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x404f36
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00404bd5
mov eax, dword [0x407de4]
cmp eax, ebx
pop ecx
pop ecx
mov dword [edi + 4], ebx
mov dword [edi], eax
je 0x404ee8
mov dword [eax + 4], edi
mov dword [0x407de4], edi
jmp 0x404f56
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 8]
push dword [ebp + 0xc]
mov dword [edi + eax*4 + 0x10], ecx
mov eax, dword [edi + 0xc]
push dword [ebp + 8]
mov dword [edi + eax*4 + 0x110], esi
mov eax, dword [edi + 0xc]
mov dword [edi + eax*4 + 0x210], ebx
mov eax, dword [edi + 0xc]
lea esi, [edi + eax*4 + 0x210]
call fcn.00404bd5
inc dword [edi + 0xc]
pop ecx
pop ecx
push ebx
push 1
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x404f56
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push dword [0x407c54]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x407dcc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0xed0435
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop eax
call fcn.00ed03a2
setl bl
mov si, bp
jmp 0xed045f
sub esp, 0xbc
jmp 0xed0508
mov esi, esp
mov ah, byte [esp]
xchg ch, ah
sub esp, 0x1a
jge 0xed0a1b
jl 0xed0580
xchg esp, eax
pop es
scasb al, byte es:[edi]
mov ecx, 0x6b860f98
cld
invalid
neg al
lea esp, [esp + 2]
jmp fcn.00ed06e2
jmp fcn.00ed06dc

Function at 0xed9df6
Capabilities:
Encode data using xor

Disassembly:
push dword [esp + 1]
lea esp, [esp + 8]
jmp 0xec102a
pushfd
jmp 0xed9d86

Function at 0xedb3f6
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 4], 0
stc
clc
jmp 0xf018e1
mov ecx, dword [esp + 0x2c]
lea esp, [esp + 0x30]
jmp 0xec0665
lea ecx, reloc.KERNEL32.dll_SetEndOfFile
lea ecx, [eax*4]
mov dword [esp], esi
xchg word [esp + 1], cx
mov cx, di
mov cl, byte [esp + 1]
jmp 0xedabd5
jmp 0xedac5b
mov dword [eax + 0x10], reloc.KERNEL32.dll_SetEndOfFile
jmp 0xf018f4
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
jmp 0xf018cb
mov dword [eax + 0x14], reloc.KERNEL32.dll_SetEndOfFile
ret

Function at 0xefba22
Capabilities:
Execute anti-debugging instructions

Disassembly:
push dword [esp + 3]
mov dl, byte [esp + 5]
mov dword [esp + 1], esi
lea eax, [eax + ecx]
mov al, 0x71
jmp 0xefbb2a
mov dl, 0xae
xchg al, ah
mov dx, 0xe562
rdtsc
mov eax, dword [esp + 0x10]
bswap edx
mov edx, dword [esp]
jmp 0xefba8b
push esp
setb dl
mov dx, 0x64aa
mov esi, dword [esp + 5]
push esi
xchg edx, eax
jmp 0xefbada
Function at 0xfa3b50
Capabilities:
Execute anti-debugging instructions

Disassembly:
rdtsc
lea ecx, [ebx*4]
pop dword [esp + 0x1b]
push bp
lea esi, [edx + ebp]
pop word [esp + 2]
jmp 0xfa3b70
pop dword [esp + 0x29]
mov edx, dword [esp + 6]
jmp 0xfa3b2f
lea ecx, [eax*4]
not eax
xchg word [esp + 0x2f], si
push ebx
cld
jmp 0xfa3b84
ror esi, 0x1d
bts eax, esp
bsr esi, esp
bswap esi
mov word [esp + 0x11], sp
mov ah, ch
jmp 0xfa3b5a
mov dword [esp + 8], eax
mov ebp, edi
pop edx
bsr ax, cx
mov bp, di
lea ebx, [ecx + ebx]
jmp 0xfa3bcd
lea edx, [edx*4]
popal
mov ebx, dword [esp + 4]
add esp, 3
mov dword [esp + 8], ebp
jmp 0xfa3be4
push word [esp + 8]
inc ah
setp ah
xchg word [esp + 0x2f], bp
neg al
mov ecx, dword [esp + 1]
jmp 0xfa3bb3
xchg ch, bl
bswap ebp
mov cl, byte [esp + 0x10]
pop dword [esp + 1]
std
xchg word [esp + 6], si
jmp 0xfa3d33
mov bh, ch
xchg cl, bh
not bl
mov di, word [esp + 0xc]
or esi, ebp
mov bh, 0x96
jmp 0xfa3c65
ror ecx, 0xc
or ebx, edx
push cx
mov al, byte [esp + 0xc]
inc bp
setb dh
jmp 0xfa3c06
rdtsc
push word [esp + 2]
push word [esp + 0xc]
lea eax, [edi*4]
lea edi, [eax + edi]
setne al
jmp 0xfa3c1c
xchg al, cl
inc bx
push dword [esp + 0xd]
rdtsc
mov bp, bx
xchg esi, edi
jmp 0xfa3ca1
mov ecx, 0x35237bbd
setno al
mov ebx, dword [esp + 2]
xchg di, bp
lea esi, [eax + eax]
xchg word [esp + 6], cx
jmp 0xfa3c4f
rdtsc
mov ch, al
lea esp, [esp + 0x12]
lea eax, [edi*4]
xchg byte [esp], bh
setl ch
call fcn.00fa3cde
add dword [ebp + reloc.KERNEL32.dll_SetEndOfFile], eax
mov ah, 0xa7
into
mov dl, bh
cpuid
xchg ah, al
xchg byte [esp + 0xd], ch
bswap eax
pop word [esp + 6]
jmp 0xfa3c7e
cld
pop dword [esp + 5]
mov cx, 0x58d4
mov edx, 0x987bd3e3
mov byte [esp + 3], bl
clc
jmp 0xfa3c34
Function at 0xfa3e61
Capabilities:
Execute anti-debugging instructions

Disassembly:
push dword [esp + 2]
seto cl
push word [esp + 8]
pop dword [esp + 6]
btr bp, dx
jmp 0xfa3e49
neg edi
mov edx, 0x880a4e06
xchg dword [esp + 2], eax
cld
lea ecx, [eax + ecx]
mov ch, byte [esp + 6]
jmp 0xfa3e19
mov esi, dword [esp + 3]
push dword [esp + 1]
mov di, word [esp + 5]
and ax, 0x33ed
jmp 0xfa3e81
jmp 0xfa3e34
lea eax, [ebp*4]
dec eax
cpuid
clc
cpuid
pop dx
jmp 0xfa3e94
mov dh, 0x77
cpuid
add ecx, eax
mov edx, 0xd62d4f0
mov ecx, 0xed42b3ce
pop edx
jmp 0xfa3e63
xchg word [esp + 4], ax
lea esp, [esp + 4]
mov bh, dl
push dword [esp + 4]
mov esi, esp
pop dword [esp]
jmp 0xfa3f42
xchg byte [esp + 1], ch
push ebx
cpuid
rdtsc
rdtsc
std
jmp 0xfa3ec7
bts esi, esi
mov cl, 0x4c
pop word [esp]
xchg cx, bx
xchg byte [esp + 1], bh
not ch
jmp 0xfa3edd

Function at 0xfa4434
Capabilities:
Execute anti-debugging instructions

Disassembly:
neg ebp
sub esp, 0x1a
mov bh, byte [esp + 0xf]
xchg di, cx
xchg byte [esp + 9], dl
jmp 0xfa443e
setno ah
xchg bl, ah
setle al
jmp 0xfa441b
mov word [esp + 0x17], di
bt ebp, eax
sub esi, edx
xchg word [esp + 0xe], di
sub esp, 0xc
add esp, 0x13
jmp 0xfa4487
lea edi, reloc.KERNEL32.dll_SetEndOfFile
xchg dword [esp + 0x15], edx
ror cx, cl
not edi
dec ah
mov edx, 0x5774c327
jmp 0xfa4471

Function at 0xfa4595
Capabilities:
Execute anti-debugging instructions

Disassembly:
shl dh, cl
xchg byte [esp + 0xc], al
neg bl
btr edi, edx
xchg word [esp + 0x15], bp
jmp 0xfa45b3
not eax
rdtsc
xchg ecx, edi
jmp 0xfa457f
xchg dword [esp + 0xf], esi
mov word [esp + 0xb], si
rdtsc
jmp 0xfa45e6
std
mov di, 0xeb7
mov byte [esp + 0xf], ch
sub esp, 0x14
mov cl, bh
lea ebx, [ecx + edi]
jmp 0xfa459d

Function at 0xfa86f6
Capabilities:
Access peb ldr_data
Execute anti-debugging instructions
Parse pe header

Disassembly:
lea esp, [esp + 0x70]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
jmp 0xfa86b3
mov word [esp + 2], cx
mov dword [esp + 0x54], esi
pushal
mov dword [esp + 0x70], edi
jmp 0xfa86c9
Function at 0x403158
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 0x403194
movzx eax, 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 0x4031b4
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.0040564c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4034b4
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.004053dc
test esi, esi
jne 0x4034ea
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.004054cc
jmp 0x403508
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403358
mov edi, eax
test esi, esi
je 0x403508
cmp dword [ebx], 0
je 0x403508
dec esi
jmp 0x4034f1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4041d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x549024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404268
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404248
xor eax, eax
push ebp
push 0x404241
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 0x404284
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 0x404248
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x549024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x549024], ax
mov esp, ebp
pop ebp
ret

Function at 0x405188
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x55404c], 0
je 0x4051e9
cmp word [0x554220], 0xd7b2
jne 0x4051b1
cmp dword [0x554228], 0
jbe 0x4051b1
mov eax, 0x55421c
call dword [0x554238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x405210
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x549030], 0
jne 0x405205
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405360
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x549038], 0
je 0x405386
mov edx, esi
mov eax, ebx
call dword [0x549038]
jmp 0x405395
mov eax, 8
call fcn.00402f18
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x55404d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405328
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x406bb8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406de8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406c3b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406de8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406c3b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406e04
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406cc4
xor eax, eax
push ebp
push 0x406cbd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004069f4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406ca2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406e24
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406ca2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cc4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406dde
cmp byte [ebp - 0xd], 0
jne 0x406d0b
cmp byte [ebp - 0x12], 0
je 0x406dde
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406d24
dec ebx
cmp byte [ebx], 0x2e
je 0x406d33
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406d23
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406dde
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406d70
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406dde
cmp byte [ebp - 0xd], 0
je 0x406dde
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406dde
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409750
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4097a2
test eax, edx
je 0x4097a5
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409765
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40978b
add ecx, 4
js 0x40977b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409788
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4097b1
test edx, edx
jne 0x409758
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40a27c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405888
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a29a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x40a2bb
cmp ebx, 3
je 0x40a2bb
cmp ebx, 0x7b
je 0x40a2bb
mov eax, esi
call fcn.0040a23c
test al, al
jne 0x40a2bf
xor eax, eax
jmp 0x40a2c1
mov al, 1
pop esi
pop ebx
ret

Function at 0x40a2c4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405888
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a2dd
test al, 0x10
jne 0x40a2e1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40d994
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40d9cd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004054cc
jmp 0x40d9d6
mov eax, ebx
mov edx, esi
call fcn.00405430
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d9e0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40da02
movzx eax, byte [esp]
jmp 0x40da04
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40e094
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40df0c
mov eax, dword [0x55375c]
cmp byte [eax], 0
je 0x40e110
mov eax, dword [0x553304]
call fcn.00403990
call fcn.004030e4
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040aa2c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40e158
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40e146
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x55325c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5567fc]
call fcn.0040699c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40ea00
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ead6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405474
lea eax, [ebp - 4]
call fcn.004058e0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405888
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40eac0
mov eax, ebx
call fcn.00402f18
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40eab9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405888
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40eaa3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40eae8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40eaa3
mov eax, dword [ebp - 0x14]
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 0x40eac0
mov eax, dword [ebp - 0x10]
call fcn.00402f34
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eadd
lea eax, [ebp - 4]
call fcn.004053dc
ret

Function at 0x424890
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0042455c
dec esi
jne 0x4248b2
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x425a24
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5589f4
cmp dword [edi], 0
jne 0x425aa0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5589f0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x549c28
mov ecx, 2
call fcn.00403258
mov edx, 0x4259fc
lea eax, [esi + 5]
call fcn.00425a1c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00425a1c
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x425a75
mov dword [0x5589f0], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4282cc
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov ebx, eax
xor esi, esi
push 0x40
push ebx
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x42830b
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x42830b
cmp dword [eax + 0x3c], 0
je 0x42830b
mov esi, dword [eax + 0x3c]
add esi, ebx
push 0xf8
push esi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x428309
cmp dword [esi], 0x4550
je 0x42830b
xor esi, esi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x42ce30
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.004053dc
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00405888
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x42ce75
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.004054cc
jmp 0x42ce8e
mov edx, ebx
dec edx
mov eax, esi
call fcn.00405b18
push ebx
mov eax, dword [esi]
call fcn.00405888
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42d0dc
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, eax
mov eax, pe_nt_image_headers32
push eax
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.0040564c
add esp, 0x100
pop ebx
ret