joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014ab0
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
cmp word [ecx], 0x5a4d
je 0x10014abe
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10014abb
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
ret

Function at 0x10014ae0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [eax + 0x3c]
add edx, eax
movzx eax, word [edx + 0x14]
push ebx
lea eax, [eax + edx + 0x18]
push esi
xor ebx, ebx
movzx esi, word [edx + 6]
or esi, esi
push edi
jbe 0x10014b1c
mov edx, dword [esp + 0x14]
mov edi, dword [eax + 0xc]
cmp edx, edi
jb 0x10014b12
mov ecx, dword [eax + 8]
add ecx, edi
cmp edx, ecx
jb 0x10014b1e
sub ebx, 0xffffffff
sub eax, 0xffffffd8
cmp ebx, esi
jb 0x10014b02
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x4053e0
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ecx
push esi
push edi
sub esp, 8
mov esi, eax
mov edi, edx
xor edx, edx
mov ecx, eax
inc eax
cmp byte [ecx], 0
je 0x4053f7
inc edx
jmp 0x4053ec
push 0
lea eax, [esp + 4]
push eax
push edx
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push 0
lea eax, [esp + 4]
push eax
push 2
lea eax, [esp + 0x10]
push eax
push 0xfffffffffffffff4
mov word [esp + 0x18], 0xa0d
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, edi
jmp 0x402390

Function at 0x402403
Capabilities:
Enumerate files on windows
Get disk size
Get geographical location
Print debug messages
Query environment variable

Disassembly:
inc eax
add dl, bh
jbe 0x402397
add dl, ah
mov dword [0xa22759], eax
push 0x40c0cd
jmp [ebp - 0x1dbfc917]
daa
mov byte [0xc0cd6800], al
inc eax
add bh, bh
lodsd eax, dword [esi]
jmp 0xe92263e0
inc eax
loop 0x402392
popal
add dl, ah
add byte [ebx + 0x40bb6d], ah
push 0x402249
jecxz 0x4023ef
jmp 0xe840c5f5
and ah, byte [edx - 0x3417b000]
add byte [eax], al
add byte [edi], bh
popal
daa
inc eax
loop 0x402456
push 0x40bf32
push eax
cli
push es
add byte [eax], al
loop 0x4023ad
daa
mov byte [0x5955c300], al
in eax, 0x83
in al, dx
salc
mov edi, dword [ebp + 8]
jl 0x40239b
aas
dec ebp
mov byte [ebp + 0x65], dh
mov eax, ebp
add edx, dword [edi + 0x3c]
jl 0x4023a7
cmp dl, byte [eax - 0x63]
jne 0x402484
mov dword [ebp + 0x6a428bf4], ecx
add eax, dword [ebp + 8]
pop ecx
inc ebp
clc
mov esp, dword [edx - 0x25bafce0]
mov dword [ebp - 4], eax
mov cl, 0xc9
mov edx, dword [ebp - 0x16]
cmp ecx, dword [edx + 0x18]
cmp cl, byte gs:[ebx + 0x1c8be65d]
mov ebx, edi
pop ebp
or bh, bh
insd dword es:[edi], dx
or al, 0x53
push ebx
call fcn.0040220a
pop edi
clc
add dword [edi + ebx*8 + 0x41], esi
jmp 0x402442
mov cl, 0xc0
mov esp, ebp
test edx, eax
or byte [eax], al

Function at 0x4042a0
Capabilities:
Terminate process

Disassembly:
mov edx, eax
push dword [0x402740]
call dword [sym.imp.pdh.dll_PdhValidatePathA]
and eax, 0xf
add eax, 0xb
xor edi, edi
xor esi, esi
cmp eax, 0x18
je 0x4042c9
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
mov dword [0x403705], eax
ret
Function at 0x4010f6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x464004]
jne 0x401100
repz ret
jmp fcn.0040132c

Function at 0x403bcb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x464004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004023b3
and dword [ebp - 0x14], 0
cmp dword [0x466acc], 0
mov dword [ebp - 0x18], eax
jne 0x403c7e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403d26
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x403d26
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x466acc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x466ad0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x466ad4], eax
call edi
push eax
call esi
mov dword [0x466adc], eax
test eax, eax
je 0x403c7e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x466ad8], eax
mov eax, dword [0x466ad8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403cd7
cmp dword [0x466adc], ecx
je 0x403cd7
push eax
call esi
push dword [0x466adc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x403cd7
test ebx, ebx
je 0x403cd7
call edi
test eax, eax
je 0x403cce
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x403cce
test byte [ebp - 8], 1
jne 0x403cd7
or dword [ebp + 0x10], 0x200000
jmp 0x403d0a
mov eax, dword [0x466ad0]
cmp eax, dword [ebp - 0x18]
je 0x403d0a
push eax
call esi
test eax, eax
je 0x403d0a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x403d0a
mov eax, dword [0x466ad4]
cmp eax, dword [ebp - 0x18]
je 0x403d0a
push eax
call esi
test eax, eax
je 0x403d0a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x466acc]
call esi
test eax, eax
je 0x403d26
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x403d28
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004010f6
leave
ret
Function at 0x452ed0
Capabilities:
Get system information on windows
Read file on windows
Set file attributes

Disassembly:
sub esp, 0x41c
mov eax, dword [0x464004]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [0x4677cc]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ebp, 0x1519a5
mov ebx, 0x8e46a7b8
mov dword [0x467434], ebx
cmp eax, 0x3dc
jne 0x452f22
push 0
push 0x461a5c
call esi
push 0
call edi
mov eax, dword [0x4677cc]
dec ebp
jne 0x452f03
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [sym.imp.KERNEL32.dll_CancelIo]
xor esi, esi
cmp eax, 0x933
jne 0x452f6b
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebp
lea edx, [esp + 0x34]
push edx
push ebp
mov dword [esp + 0x24], ebp
call edi
push ebp
call ebx
mov eax, dword [0x4677cc]
cmp esi, 0x845fef
jne 0x452f82
mov eax, dword [0x465940]
add eax, 0xa231
mov dword [0x4677cc], eax
cmp eax, 0x141
jne 0x452f9d
mov dword [0x467008], 0xec58acac
mov dword [0x46700c], 0xffffffff
inc esi
cmp esi, 0x12d1832
jl 0x452f33
call fcn.00452b20
mov ecx, dword [esp + 0x428]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004010f6
add esp, 0x41c
ret 0x10
Function at 0x408076
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a080]
jne 0x408080
repz ret
jmp 0x408abd
mov edi, edi
push ebp
mov ebp, esp
mov dword [0x4ab848], eax
mov dword [0x4ab844], ecx
mov dword [0x4ab840], edx
mov dword [0x4ab83c], ebx
mov dword [0x4ab838], esi
mov dword [0x4ab834], edi
add esp, 0xfffffcd8
mov word [0x4ab860], ss
mov word [0x4ab854], cs
mov word [0x4ab830], ds
mov word [0x4ab82c], es
mov word [0x4ab828], fs
mov word [0x4ab824], gs
pushfd
pop dword [0x4ab858]
mov eax, dword [ebp]
mov dword [0x4ab84c], eax
mov eax, dword [ebp + 4]
mov dword [0x4ab850], eax
lea eax, [ebp + 8]
mov dword [0x4ab85c], eax
mov ebx, dword [ebp - 0x320]
mov dword [0x4ab798], 0x10001
mov eax, dword [0x4ab850]
mov dword [0x4ab74c], eax
mov dword [0x4ab740], 0xc0000409
mov dword [0x4ab744], 1
mov eax, dword [0x42a080]
mov dword [ebp - 0x328], eax
mov eax, dword [0x42a084]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x4ab790], eax
push 1
call fcn.0040b459
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x423250
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x4ab790], 0
jne 0x408baf
push 1
call fcn.0040b459
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

Function at 0x408abd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a080]
jne 0x408080
repz ret
jmp 0x408abd
mov edi, edi
push ebp
mov ebp, esp
mov dword [0x4ab848], eax
mov dword [0x4ab844], ecx
mov dword [0x4ab840], edx
mov dword [0x4ab83c], ebx
mov dword [0x4ab838], esi
mov dword [0x4ab834], edi
add esp, 0xfffffcd8
mov word [0x4ab860], ss
mov word [0x4ab854], cs
mov word [0x4ab830], ds
mov word [0x4ab82c], es
mov word [0x4ab828], fs
mov word [0x4ab824], gs
pushfd
pop dword [0x4ab858]
mov eax, dword [ebp]
mov dword [0x4ab84c], eax
mov eax, dword [ebp + 4]
mov dword [0x4ab850], eax
lea eax, [ebp + 8]
mov dword [0x4ab85c], eax
mov ebx, dword [ebp - 0x320]
mov dword [0x4ab798], 0x10001
mov eax, dword [0x4ab850]
mov dword [0x4ab74c], eax
mov dword [0x4ab740], 0xc0000409
mov dword [0x4ab744], 1
mov eax, dword [0x42a080]
mov dword [ebp - 0x328], eax
mov eax, dword [0x42a084]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x4ab790], eax
push 1
call fcn.0040b459
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x423250
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x4ab790], 0
jne 0x408baf
push 1
call fcn.0040b459
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x4098d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov esi, esi
mov eax, dword [0x42a080]
sub esp, 0x1fc
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
push esi
push edi
call fcn.004098aa
mov esi, eax
xor ebx, ebx
cmp esi, ebx
pop ecx
mov dword [ebp - 0x1fc], esi
je 0x409a70
push 3
call fcn.00411a38
pop ecx
cmp eax, 1
je 0x409a1c
push 3
call fcn.00411a38
pop ecx
test eax, eax
jne 0x40992e
cmp dword [0x42a078], 1
je 0x409a1c
cmp edi, 0xfc
je 0x409a70
push str.Runtime_Error__n_nProgram:
mov esi, 0x4abaa8
push 0x314
push esi
call fcn.004119d5
add esp, 0xc
or eax, eax
jne 0x409a12
mov edi, 0x4abada
push 0x104
push edi
push ebx
mov word [0x4abce2], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, 0x2fb
or eax, eax
jne 0x40999a
push str._program_name_unknown_
push ebx
push edi
call fcn.004119d5
add esp, 0xc
or eax, eax
je 0x40999a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040acf6
push edi
call fcn.004119ba
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4099d1
push edi
call fcn.004119ba
push 3
push 0x423c3c
lea eax, [eax*2 + 0x4aba64]
mov ecx, eax
sub ecx, edi
sar ecx, 1
sub ebx, ecx
push ebx
push eax
call fcn.004118ed
add esp, 0x14
test eax, eax
jne 0x40998e
mov edi, 0x314
push 0x423c34
push edi
push esi
call fcn.00411878
add esp, 0xc
test eax, eax
jne 0x40998e
push dword [ebp - 0x1fc]
push edi
push esi
call fcn.00411878
add esp, 0xc
test eax, eax
jne 0x40998e
push 0x12010
push 0x423be8
push esi
call fcn.0041170c
add esp, 0xc
jmp 0x409a70
push ebx
push ebx
push ebx
push ebx
push ebx
jmp 0x409995
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x409a70
cmp edi, 0xffffffff
je 0x409a70
xor eax, eax
mov cl, byte [esi + eax*2]
mov byte [ebp + eax - 0x1f8], cl
cmp word [esi + eax*2], bx
je 0x409a49
inc eax
cmp eax, 0x1f4
jb 0x409a31
push ebx
lea esi, [ebp - 0x1fc]
push esi
lea eax, [ebp - 0x1f8]
push eax
mov byte [ebp - 5], bl
call fcn.00408d00
pop ecx
push eax
lea eax, [ebp - 0x1f8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
pop edi
pop ebx
call fcn.00408076
leave
ret
Function at 0x409fe7
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push edi
push ebx
mov esi, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x40a003
xor eax, eax
jmp 0x40a07a
cmp word [edi], bx
je 0x40a018
sub eax, 0xfffffffe
cmp word [eax], bx
jne 0x40a008
add eax, 2
cmp word [eax], bx
jne 0x40a008
sub eax, edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
sar eax, 1
inc eax
push ebx
push ebx
push ebx
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40a070
push eax
call fcn.0041129d
pop ecx
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40a070
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x40a064
push dword [ebp - 4]
call fcn.00408d8b
pop ecx
mov dword [ebp - 4], ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, dword [ebp - 4]
jmp 0x40a079
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret

Function at 0x40acf6
Capabilities:
Terminate process

Disassembly:
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
mov edi, edi
call fcn.0040ab99
sub esp, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret
Function at 0x40b29e
Capabilities:
Get geographical location

Disassembly:
mov ebx, ebx
push ebp
mov ebp, esp
mov eax, dword [0x42a080]
sub esp, 0x90
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 1
mov eax, dword [ebp + 8]
push edi
push esi
push ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x88], eax
jne 0x40b3bb
and dword [ebp - 0x8c], 0
push 0x80
lea edi, [ebp - 0x84]
mov ecx, edi
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call fcn.00412de6
mov esi, eax
sub esp, 0xffffffec
test esi, esi
jne 0x40b358
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40b379
push esi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x88]
call fcn.00412de6
mov dword [ebp - 0x90], eax
add esp, 0x14
test eax, eax
je 0x40b379
inc esi
push esi
push eax
call fcn.004112e2
pop edi
pop ecx
mov edi, eax
test edi, edi
je 0x40b379
push dword [ebp - 0x90]
mov dword [ebp - 0x8c], esi
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x88]
call fcn.00412de6
mov esi, eax
sub esp, 0xffffffec
or esi, esi
je 0x40b372
push 1
push esi
call fcn.004112e2
mov dword [ebx], eax
xor ebx, ebx
cmp eax, ebx
pop ecx
pop ecx
jne 0x40b38b
cmp dword [ebp - 0x8c], ebx
je 0x40b379
push edi
call fcn.00408d8b
pop edx
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop ebx
pop esi
pop edi
xor ecx, ebp
call fcn.00408076
leave
ret
lea ecx, [esi - 1]
push ecx
push edi
push esi
push eax
call fcn.00412c21
sub esp, 0xfffffff0
or eax, eax
jne 0x40b3b1
cmp dword [ebp - 0x8c], ebx
je 0x40b3ad
push edi
call fcn.00408d8b
pop edx
xor eax, eax
jmp 0x40b37c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040acf6
cmp dword [ebp + 0xc], 2
jne 0x40b409
xor eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push eax
push eax
push dword [ebp + 0x14]
mov dword [ebx], eax
push dword [ebp + 0x10]
call edi
mov esi, eax
or esi, esi
je 0x40b3f9
push 2
push esi
call fcn.004112e2
test eax, eax
pop ecx
pop ecx
mov dword [ebx], eax
je 0x40b3f9
push esi
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call edi
or eax, eax
jne 0x40b3ad
push dword [ebx]
call fcn.00408d8b
and dword [ebx], 0
pop ecx
jmp 0x40b379
cmp dword [ebp + 0xc], 0
jne 0x40b379
and dword [ebp - 0x88], 0
lea edi, [ebp - 0x88]
push 2
push edi
mov eax, dword [ebp + 0x14]
or eax, 0x20000000
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
or eax, eax
je 0x40b379
mov al, byte [ebp - 0x88]
mov byte [ebx], al
jmp 0x40b3ad
Function at 0x40b2a0
Capabilities:
Get geographical location

Disassembly:
mov ebx, ebx
push ebp
mov ebp, esp
mov eax, dword [0x42a080]
sub esp, 0x90
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 1
mov eax, dword [ebp + 8]
push edi
push esi
push ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x88], eax
jne 0x40b3bb
and dword [ebp - 0x8c], 0
push 0x80
lea edi, [ebp - 0x84]
mov ecx, edi
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call fcn.00412de6
mov esi, eax
sub esp, 0xffffffec
test esi, esi
jne 0x40b358
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40b379
push esi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x88]
call fcn.00412de6
mov dword [ebp - 0x90], eax
add esp, 0x14
test eax, eax
je 0x40b379
inc esi
push esi
push eax
call fcn.004112e2
pop edi
pop ecx
mov edi, eax
test edi, edi
je 0x40b379
push dword [ebp - 0x90]
mov dword [ebp - 0x8c], esi
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x88]
call fcn.00412de6
mov esi, eax
sub esp, 0xffffffec
or esi, esi
je 0x40b372
push 1
push esi
call fcn.004112e2
mov dword [ebx], eax
xor ebx, ebx
cmp eax, ebx
pop ecx
pop ecx
jne 0x40b38b
cmp dword [ebp - 0x8c], ebx
je 0x40b379
push edi
call fcn.00408d8b
pop edx
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop ebx
pop esi
pop edi
xor ecx, ebp
call fcn.00408076
leave
ret
lea ecx, [esi - 1]
push ecx
push edi
push esi
push eax
call fcn.00412c21
sub esp, 0xfffffff0
or eax, eax
jne 0x40b3b1
cmp dword [ebp - 0x8c], ebx
je 0x40b3ad
push edi
call fcn.00408d8b
pop edx
xor eax, eax
jmp 0x40b37c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040acf6
cmp dword [ebp + 0xc], 2
jne 0x40b409
xor eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push eax
push eax
push dword [ebp + 0x14]
mov dword [ebx], eax
push dword [ebp + 0x10]
call edi
mov esi, eax
or esi, esi
je 0x40b3f9
push 2
push esi
call fcn.004112e2
test eax, eax
pop ecx
pop ecx
mov dword [ebx], eax
je 0x40b3f9
push esi
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call edi
or eax, eax
jne 0x40b3ad
push dword [ebx]
call fcn.00408d8b
and dword [ebx], 0
pop ecx
jmp 0x40b379
cmp dword [ebp + 0xc], 0
jne 0x40b379
and dword [ebp - 0x88], 0
lea edi, [ebp - 0x88]
push 2
push edi
mov eax, dword [ebp + 0x14]
or eax, 0x20000000
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
or eax, eax
je 0x40b379
mov al, byte [ebp - 0x88]
mov byte [ebx], al
jmp 0x40b3ad
Function at 0x4115c0
Capabilities:
Parse pe header

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

Function at 0x411600
Capabilities:
Enumerate pe sections

Disassembly:
mov ebp, ebp
push esi
mov edx, esp
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
push ebx
xor ebx, ebx
push edi
movzx esi, word [ecx + 6]
push ebp
or esi, esi
je 0x41163d
mov ebp, dword [edx + 0xc]
mov ecx, dword [eax + 0xc]
cmp ebp, ecx
jb 0x411635
mov edi, dword [eax + 8]
add edi, ecx
cmp ebp, edi
jb 0x41163f
inc ebx
add eax, 0x28
cmp ebx, esi
jb 0x411625
xor eax, eax
pop ebp
pop edi
pop ebx
pop esi
ret
Function at 0x41170c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov esi, esi
mov ebp, esp
mov eax, dword [0x42a080]
add esp, 0xffffffdc
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push edi
push esi
mov dword [ebp - 0x1c], eax
call fcn.0040a362
and dword [ebp - 0x14], 0
cmp dword [0x4ac3dc], 0
mov dword [ebp - 0x18], eax
jne 0x4117bf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
or ebx, ebx
je 0x411867
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
or eax, eax
je 0x411867
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4ac3dc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4ac3e0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4ac3e4], eax
call edi
push eax
call esi
mov dword [0x4ac3ec], eax
or eax, eax
je 0x4117bf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4ac3e8], eax
mov edi, dword [sym.imp.KERNEL32.dll_DecodePointer]
mov eax, dword [0x4ac3e8]
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
je 0x411818
cmp dword [0x4ac3ec], ecx
je 0x411818
push eax
call edi
push dword [0x4ac3ec]
mov esi, eax
call edi
test esi, esi
mov ebx, eax
je 0x411818
test ebx, ebx
je 0x411818
call esi
test eax, eax
je 0x41180f
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x10]
push 0xc
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41180f
test byte [ebp - 8], 1
jne 0x411818
or dword [ebp + 0x10], 0x200000
jmp 0x41184b
mov eax, dword [0x4ac3e0]
cmp eax, dword [ebp - 0x18]
je 0x41184b
push eax
call edi
or eax, eax
je 0x41184b
call eax
mov dword [ebp - 0x14], eax
or eax, eax
je 0x41184b
mov eax, dword [0x4ac3e4]
cmp eax, dword [ebp - 0x18]
je 0x41184b
push eax
call edi
or eax, eax
je 0x41184b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4ac3dc]
call edi
or eax, eax
je 0x411867
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x411869
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408076
leave
ret
Function at 0x412d0c
Capabilities:
Get geographical location

Disassembly:
mov esi, esi
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov eax, dword [0x42a080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
push edi
push ebx
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor esi, esi
push esi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 8], eax
push dword [ebp + 0xc]
call ebx
mov ecx, eax
mov dword [ebp - 0xc], ecx
cmp ecx, esi
jne 0x412d4e
xor eax, eax
jmp 0x412dd4
jle 0x412d95
push 0xffffffffffffffe0
xor edx, edx
pop eax
div ecx
cmp eax, 2
jb 0x412d95
lea eax, [ecx + ecx + 8]
cmp eax, 0x400
ja 0x412d7d
call fcn.004149a0
mov edi, esp
cmp edi, esi
je 0x412d47
mov dword [edi], 0xcccc
sub edi, 0xfffffff8
jmp 0x412d97
push eax
call fcn.00408c61
pop ecx
cmp eax, esi
je 0x412d91
mov dword [eax], 0xdddd
sub eax, 0xfffffff8
mov edi, eax
jmp 0x412d97
xor edi, edi
cmp edi, esi
je 0x412d47
push dword [ebp - 0xc]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call ebx
test eax, eax
je 0x412dcb
push esi
push esi
cmp dword [ebp + 0x18], esi
jne 0x412db6
push esi
push esi
jmp 0x412dbc
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
push edi
call fcn.00412cec
pop edx
mov eax, esi
lea esp, [ebp - 0x18]
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408076
leave
ret