joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f463
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x47f538
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x47f538
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x47f538
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, ebx
mov esi, dword [eax + 0x1c]
sub ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add esi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
cmp ecx, edx
ja 0x47f4be
mov eax, dword [esi + ecx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
mov ebp, dword [eax + 0x18]
add edx, edi
add ecx, edi
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x47f538
mov eax, dword [edx + esi*4]
add eax, edi
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x47f503
test dl, dl
je 0x47f4ff
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x47f503
add ecx, 2
add eax, 2
test dl, dl
jne 0x47f4e3
xor eax, eax
jmp 0x47f508
sbb eax, eax
or eax, 1
test eax, eax
jne 0x47f51a
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + esi*2]
cmp eax, dword [esp + 0x20]
jbe 0x47f525
inc esi
cmp esi, ebp
jae 0x47f538
mov edx, dword [esp + 0x10]
jmp 0x47f4d9
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8

Function at 0x47f79c
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x47f7a7
xor eax, eax
ret
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x40
jb 0x47f7bb
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x47f7bf
xor eax, eax
pop esi
ret
push edi
mov edi, dword [ecx + 0x3c]
lea eax, [edi + 0xf8]
cmp esi, eax
jb 0x47f7f8
cmp dword [edi + ecx], 0x4550
jne 0x47f7f8
mov eax, 0x14c
cmp word [edi + ecx + 4], ax
jne 0x47f7f8
test byte [edi + ecx + 0x16], 2
je 0x47f7f8
movzx eax, word [edi + ecx + 0x14]
mov edx, 0xe0
cmp ax, dx
jae 0x47f7fd
pop edi
xor eax, eax
pop esi
ret
push ebx
add eax, 0xffffff20
movzx ebx, ax
add ebx, edi
movzx edi, word [edi + ecx + 6]
add ebx, ecx
xor edx, edx
test edi, edi
jle 0x47f839
xor eax, eax
jmp 0x47f81c
lea eax, [eax + eax*4]
mov ecx, dword [ebx + eax*8 + 0x10c]
add ecx, dword [ebx + eax*8 + 0x108]
cmp ecx, esi
ja 0x47f842
inc edx
movzx eax, dx
cmp eax, edi
jl 0x47f81c
pop ebx
pop edi
mov eax, 1
pop esi
ret
pop ebx
pop edi
xor eax, eax
pop esi
ret
Function at 0x47f848
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x10]
mov edi, dword [ebp + 0x30]
mov esi, dword [esp + 0x18]
movzx ebx, word [esi]
mov eax, ebx
lea ecx, [eax - 0x41]
cmp ecx, 0x19
ja 0x47f880
add eax, 0x20
movzx edx, word [edi]
lea ecx, [edx - 0x41]
cmp ecx, 0x19
ja 0x47f88e
add edx, 0x20
cmp eax, edx
jne 0x47f89f
test bx, bx
je 0x47f8d4
add esi, 2
add edi, 2
jmp 0x47f870
movzx ecx, word [esi]
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x47f8ad
add ecx, 0x20
movzx edx, word [edi]
lea eax, [edx - 0x41]
cmp eax, 0x19
ja 0x47f8bb
add edx, 0x20
sub ecx, edx
je 0x47f8d4
mov ebp, dword [ebp]
mov dword [esp + 0x10], ebp
cmp dword [ebp + 0x18], 0
jne 0x47f869
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x48034d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x48040e
test ecx, ecx
je 0x48040e
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x48040e
test ebx, ebx
je 0x48040e
mov ebx, eax
add ebx, edx
je 0x48040e
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x48040e
cmp dword [edx + eax + 0x14], 0
je 0x48040e
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x48040e
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x4803fe
test dl, dl
je 0x4803fa
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x4803fe
add edi, 2
add esi, 2
test dl, dl
jne 0x4803de
xor eax, eax
jmp 0x480403
sbb eax, eax
or eax, 1
test eax, eax
je 0x48041a
inc ebp
cmp ebp, dword [esp + 4]
jb 0x4803cb
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x48d68a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ebx, dword [ebp + 8]
cmp ebx, 0
je 0x48d6cf
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov edx, dword [eax + 0x78]
add edx, ebx
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x20]
push ecx
push ecx
push eax
xor eax, eax
or ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
repne scasb al, byte es:[edi]
not ecx
pop eax
push ecx
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
mov esi, dword [eax + ebx]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x48d6d5
add eax, 4
pop esi
dec esi
push esi
jne 0x48d6b7
xor eax, eax
leave
ret 8
pop esi
pop ecx
sub ecx, esi
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + ebx]
mov ecx, dword [edx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
leave
ret 8

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 0x4f5c40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov edx, dword [esp + 0x50]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x60]
mov ebp, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
test eax, eax
je 0x4f5cd4
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
call fcn.004eaf6c
mov ebx, eax
inc dword [eax]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov edx, dword [esp + 0x2c]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x28]
mov dword [esp], edx
call fcn.004f49d8
mov edx, dword [ebx]
dec edx
mov dword [ebx], edx
test edx, edx
jle 0x4f5d0c
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], 0
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x50], edx
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004f49d8
mov dword [esp], ebx
mov dword [esp + 0x24], eax
call fcn.004dd020
mov eax, dword [esp + 0x24]
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4fa710
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x4fa744
mov dword [esp + 4], ebx
mov dword [esp], 0x67b820
call dword [0x67b84c]
test eax, eax
je 0x4fa754
mov eax, dword [eax + 0xc]
inc dword [eax + 0x1c]
add esp, 0x14
pop ebx
pop esi
ret
mov eax, dword [0x67b85c]
inc dword [eax + 0x1c]
add esp, 0x14
pop ebx
pop esi
ret
mov edx, ebx
mov eax, esi
add esp, 0x14
pop ebx
pop esi
jmp fcn.004f9e90
Function at 0x4fb294
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebp, dword [esp + 0x70]
mov ebx, dword [esp + 0x7c]
mov dword [esp], ebx
call fcn.004fd824
mov edi, dword [ebx]
mov edx, dword [ebx + 8]
dec edx
test ebp, ebp
je 0x4fb398
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4fb3ac
mov eax, dword [esp + 0x78]
test eax, eax
js 0x4fb3b9
mov eax, 3
jmp 0x4fb2f8
lea eax, [eax + eax + 1]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.004fd8e8
mov edi, dword [ebx]
add edi, esi
mov edx, esi
not edx
add edx, dword [ebx + 4]
mov eax, 2
lea ecx, [esp + 0x4c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x40]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x74]
mov dword [esp + 4], ecx
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
mov dword [esp + 0x3c], edx
call dword [ebp + 4]
mov esi, dword [esp + 0x48]
add esi, edi
sub esi, dword [ebx]
cmp eax, 0xfffffffc
mov edx, dword [esp + 0x3c]
jne 0x4fb380
mov eax, dword [esp + 0x44]
add dword [esp + 0x74], eax
sub dword [esp + 0x78], eax
mov eax, dword [ebx + 4]
test eax, eax
jne 0x4fb2d8
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.004fd8e8
mov eax, dword [ebx + 4]
jmp 0x4fb2d8
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004fd8e8
mov eax, dword [ebx]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, dword [0x67b85c]
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x4fb2c5
nop
mov dword [esp + 0x78], 0
jmp 0x4fb2d1
mov ecx, dword [esp + 0x74]
mov dword [esp], ecx
mov dword [esp + 0x3c], edx
call dword [ebp + 0x18]
mov dword [esp + 0x78], eax
mov edx, dword [esp + 0x3c]
jmp 0x4fb2d1
Function at 0x406864
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406888
xor eax, eax
test eax, eax
je 0x40689b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40689b
xor ecx, ecx
jmp 0x40689e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4069c1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dac], 0
push esi
jne 0x4069f8
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4069d2
mov dword [ecx*4 + 0x427da8], eax
inc ecx
cmp ecx, 0x100
jl 0x4069cd
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a29
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427da8]
xor eax, esi
inc ecx
dec edx
jne 0x406a0b
pop edi
not eax
pop esi
ret 0xc

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 0x401112
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80e030]
jne 0x40111c
repz ret
jmp fcn.00401b21

Function at 0x408eec
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004047e5
and dword [ebp - 4], 0
cmp dword [0x81078c], 0
mov ebx, eax
jne 0x408f9d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40904e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40904e
push eax
call fcn.00404773
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x81078c], eax
call esi
push eax
call fcn.00404773
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x810790], eax
call esi
push eax
call fcn.00404773
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x810794], eax
call esi
push eax
call fcn.00404773
pop ecx
mov dword [0x81079c], eax
test eax, eax
je 0x408f9d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404773
pop ecx
mov dword [0x810798], eax
mov eax, dword [0x810798]
cmp eax, ebx
je 0x408ff5
cmp dword [0x81079c], ebx
je 0x408ff5
push eax
call fcn.004047ee
push dword [0x81079c]
mov esi, eax
call fcn.004047ee
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408ff5
test edi, edi
je 0x408ff5
call esi
test eax, eax
je 0x408fec
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408fec
test byte [ebp - 0xc], 1
jne 0x408ff5
or dword [ebp + 0x10], 0x200000
jmp 0x40902e
mov eax, dword [0x810790]
cmp eax, ebx
je 0x40902e
push eax
call fcn.004047ee
pop ecx
test eax, eax
je 0x40902e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40902e
mov eax, dword [0x810794]
cmp eax, ebx
je 0x40902e
push eax
call fcn.004047ee
pop ecx
test eax, eax
je 0x40902e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x81078c]
call fcn.004047ee
pop ecx
test eax, eax
je 0x40904e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409050
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b130
Capabilities:
Set console window title

Disassembly:
sub esp, 0x428
mov eax, dword [0x80e030]
xor eax, esp
mov dword [esp + 0x424], eax
mov eax, dword [0x2ec91cc]
push ebx
mov ebx, dword [0x2ec8eec]
push esi
mov esi, dword [0x80ef60]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40b171
push str.wozekajevirifegavonetucusiva
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov eax, dword [0x2ec91cc]
mov dword [0x2ec8ee8], esi
cmp eax, 0x114e
jne 0x40b199
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
lea eax, [esp + 0x14]
push eax
push str.gavipokucohuj
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov eax, dword [0x2ec91cc]
cmp eax, 0x2f
jne 0x40b1bb
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
call fcn.0040b060
mov ecx, dword [esp + 0x430]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401112
add esp, 0x428
ret
Function at 0x40b15f
Capabilities:
Set console window title

Disassembly:
sub esp, 0x428
mov eax, dword [0x80e030]
xor eax, esp
mov dword [esp + 0x424], eax
mov eax, dword [0x2ec91cc]
push ebx
mov ebx, dword [0x2ec8eec]
push esi
mov esi, dword [0x80ef60]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40b171
push str.wozekajevirifegavonetucusiva
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov eax, dword [0x2ec91cc]
mov dword [0x2ec8ee8], esi
cmp eax, 0x114e
jne 0x40b199
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
lea eax, [esp + 0x14]
push eax
push str.gavipokucohuj
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov eax, dword [0x2ec91cc]
cmp eax, 0x2f
jne 0x40b1bb
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
call fcn.0040b060
mov ecx, dword [esp + 0x430]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401112
add esp, 0x428
ret
Function at 0x419210
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe000]
push edi
or ebp, 0xffffffff
jmp 0x419232
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419239
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419228
mov eax, 1
add ebx, ebx
jne 0x41924b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419240
jne 0x41925c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419240
xor ecx, ecx
sub eax, 3
jb 0x419270
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4192e2
mov ebp, eax
add ebx, ebx
jne 0x41927b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419288
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4192ac
inc ecx
add ebx, ebx
jne 0x419298
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41928d
jne 0x4192a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41928d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4192cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4192bd
jmp 0x41922e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4192cc
add edi, ecx
jmp 0x41922e
pop esi
mov edi, esi
mov ecx, 0x4e5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4192ea
cmp byte [edi], 5
jne 0x4192ea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4192ef
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x419367
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19090]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x190fc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41931c
mov ecx, edi
jns 0x41934b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19104]
or eax, eax
je 0x419361
mov dword [ebx], eax
add ebx, 4
jmp 0x419339
call dword [esi + 0x19100]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x419398
cmp al, 0xef
ja 0x41938b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x41936d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x41937a
mov ebp, dword [esi + 0x19108]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4193cc
sub esp, 0xffffff80
jmp 0x404285
Function at 0x40b2d0
Capabilities:
Set console window title

Disassembly:
sub esp, 0x428
mov eax, dword [0x454030]
xor eax, esp
mov dword [esp + 0x424], eax
mov eax, dword [0x2b0f1cc]
push ebx
mov ebx, dword [0x2b0eeec]
push esi
mov esi, dword [0x454f60]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40b311
push str.tirasumocatum
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x2b0f1cc]
mov dword [0x2b0eee8], esi
cmp eax, 0x114e
jne 0x40b336
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
mov eax, dword [0x2b0f1cc]
cmp eax, 0x2f
jne 0x40b364
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
push edi
push ebx
call fcn.0040b170
mov ecx, dword [esp + 0x438]
add esp, 8
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040110c
add esp, 0x428
ret
Function at 0x4044dc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406708
test esi, esi
jne 0x404514
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406844
jmp 0x404532
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404420
mov edi, eax
test esi, esi
je 0x404532
cmp dword [ebx], 0
je 0x404532
dec esi
jmp 0x40451b
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405cb4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x44004c], 0
je 0x405d15
cmp word [0x440328], 0xd7b2
jne 0x405cdd
cmp dword [0x440330], 0
jbe 0x405cdd
mov eax, 0x440324
call dword [0x440340]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
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 0x405d40
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x43e030], 0
jne 0x405d31
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405ea0
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 [0x43e034], 0
je 0x405ec6
mov edx, esi
mov eax, ebx
call dword [0x43e034]
jmp 0x405ed5
mov eax, 8
call fcn.00404188
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x44004d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405e68
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 0x408238
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40839f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406708
cmp si, word [0x43e7d4]
jb 0x4082d2
cmp si, word [0x43e9d4]
ja 0x4082d2
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4082d2
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x43e7d4]
jae 0x4082ac
mov edi, ebx
dec edi
jmp 0x4082cd
cmp si, word [ebx*8 + 0x43e7d4]
jbe 0x4082bc
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4082cd
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x43e7d8]
call fcn.00408148
jmp 0x4082d2
cmp edi, dword [ebp - 0xc]
jae 0x408296
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408381
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408381
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.004068f0
push dword [ebp - 0x164]
push 0x4083bc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.004068f0
push dword [ebp - 0x168]
push 0x4083cc
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.004068f0
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406c9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4083a6
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406700
ret