joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449902
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x44993b
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004498c5
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00436f30
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x44b44f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x44b492
call fcn.0044ea9f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x44b492
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x44b4ad
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0044b006
test ebx, ebx
mov esi, eax
je 0x44b4ab
test edi, edi
je 0x44b4ab
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x44f7e5
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4a1620]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x44f825
push 0x486388
push 4
push eax
call fcn.004698a9
push eax
call fcn.00436c70
add esp, 0x10
jmp 0x44f837
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x44f8a5
push edi
call fcn.004680b5
mov edi, dword [eax]
call fcn.004680b5
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0046805b
add esp, 0x18
mov ebx, eax
call fcn.004680b5
cmp dword [eax], 0
je 0x44f885
call fcn.004680b5
push dword [eax]
call fcn.00446142
pop ecx
jmp 0x44f88c
call fcn.004680b5
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x44f8a5
cmp ebx, esi
jae 0x44f8a5
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x44f8a7
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00465b73
leave
ret
Function at 0x4504a5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x4504eb
call fcn.0044ea9f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4504eb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x45052e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x450517
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x450517
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x45052b
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x451dd4
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x451dde
call fcn.0044c4a2
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0046a731
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x451e0b
mov esi, dword [esi + 0xc]
call fcn.004680c8
push esi
push dword [eax]
push 1
call fcn.00452dd0
pop esi
ret 8

Function at 0x4533ce
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x4533f7
call fcn.0044ea9f
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x45341a
push eax
push dword [esi + 4]
call fcn.00453359
push esi
push eax
mov ecx, 0x4a4c5c
call fcn.0045300f
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x453bb7
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x47d3d1
call fcn.00467b61
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00453b79
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00402440
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 4], eax
jne 0x453c1d
push eax
push dword [esi + 8]
call fcn.00453359
push dword [esi + 0xc]
mov ecx, 0x4a4c5c
push eax
call fcn.0045300f
mov eax, esi
call fcn.00467c39
ret 0x18
Function at 0x457896
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4578c4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4578e2
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00457800
jmp 0x4578e2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4578e2
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00457800
test edi, edi
mov eax, edi
jne 0x4578cc
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4a4cf0]
test ecx, ecx
je 0x4579a5
jmp 0x457895
ret 8

Function at 0x465b73
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a1620]
jne 0x465b7d
repz ret
jmp fcn.0046c4dc
Function at 0x46a31b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x46a358
cmp dword [ebp + 0x14], edi
je 0x46a358
cmp ecx, edi
jne 0x46a35f
call fcn.004680b5
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0046d022
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x46a373
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x46a394
cmp ebx, 0xffffffff
je 0x46a383
push ebx
push edi
push ecx
call fcn.00467720
add esp, 0xc
cmp esi, edi
je 0x46a340
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x46a340
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x46a3b0
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x46a3b7
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x46a4a8
test word [esi + 0xc], 0x10c
je 0x46a40b
mov eax, dword [esi + 4]
test eax, eax
je 0x46a40b
jl 0x46a509
cmp ebx, eax
mov edi, ebx
jb 0x46a3dc
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x46a4b0
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00465e9e
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x46a4a0
cmp ebx, dword [ebp - 0xc]
jb 0x46a478
cmp dword [ebp - 0xc], 0
je 0x46a435
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x46a42a
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x46a431
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x46a440
mov eax, SysReAllocString
cmp ebx, eax
ja 0x46a440
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x46a4dc
push eax
push dword [ebp - 8]
push esi
call fcn.00469f70
pop ecx
push eax
call fcn.004747c9
add esp, 0xc
test eax, eax
je 0x46a51b
cmp eax, 0xffffffff
je 0x46a509
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x46a4a0
push esi
call fcn.004740e8
cmp eax, 0xffffffff
pop ecx
je 0x46a50d
cmp dword [ebp - 4], 0
je 0x46a4dc
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x46a3bf
mov eax, dword [ebp + 0x14]
jmp 0x46a35a
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x46a4c7
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00467720
add esp, 0xc
call fcn.004680b5
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x46a350
cmp dword [ebp + 0xc], 0xffffffff
je 0x46a4f2
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00467720
add esp, 0xc
call fcn.004680b5
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x46a350
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x46a35a
or dword [esi + 0xc], 0x10
jmp 0x46a50d
Function at 0x46cb9c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4a17b8]
je 0x46cbb7
inc edi
cmp edi, 0x17
jb 0x46cba8
cmp edi, 0x17
jae 0x46cd37
push ebp
push 3
call fcn.00477492
cmp eax, 1
pop ecx
je 0x46cd03
push 3
call fcn.00477492
test eax, eax
pop ecx
jne 0x46cbeb
cmp dword [0x4a1610], 1
je 0x46cd03
cmp ebx, 0xfc
je 0x46cd36
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4a5328
push ebp
call fcn.004698a9
add esp, 0xc
test eax, eax
je 0x46cc21
push esi
push esi
push esi
push esi
push esi
call fcn.0046cf26
add esp, 0x14
push 0x104
mov esi, 0x4a5341
push esi
push 0
mov byte [0x4a5445], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x46cc65
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004698a9
add esp, 0xc
test eax, eax
je 0x46cc65
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0046cf26
add esp, 0x14
push esi
call fcn.00467f40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x46ccaa
push esi
call fcn.00467f40
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4a563c
push 0x488ba4
sub ecx, eax
push ecx
push eax
call fcn.00467c86
add esp, 0x14
test eax, eax
je 0x46ccaa
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0046cf26
add esp, 0x14
jmp 0x46ccac
xor esi, esi
push 0x488ba0
push ebx
push ebp
call fcn.00469995
add esp, 0xc
test eax, eax
je 0x46cccc
push esi
push esi
push esi
push esi
push esi
call fcn.0046cf26
add esp, 0x14
push dword [edi*8 + 0x4a17bc]
push ebx
push ebp
call fcn.00469995
add esp, 0xc
test eax, eax
je 0x46ccee
push esi
push esi
push esi
push esi
push esi
call fcn.0046cf26
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004772d5
add esp, 0xc
jmp 0x46cd36
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x46cd36
cmp ebp, 0xffffffff
je 0x46cd36
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4a17bc]
push dword [esi]
call fcn.00467f40
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4772d5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0046c6ba
xor ebx, ebx
cmp dword [0x4a5a00], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4773ab
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x47748b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x488e58
push edi
call esi
cmp eax, ebx
je 0x47748b
push eax
call fcn.0046c64c
mov dword [esp], 0x488e48
push edi
mov dword [0x4a5a00], eax
call esi
push eax
call fcn.0046c64c
mov dword [esp], 0x488e34
push edi
mov dword [0x4a5a04], eax
call esi
push eax
call fcn.0046c64c
mov dword [0x4a5a08], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00465c2b
test eax, eax
pop ecx
pop ecx
je 0x477379
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0046cf26
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4773ab
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0046c64c
cmp eax, ebx
pop ecx
mov dword [0x4a5a10], eax
je 0x4773ab
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0046c64c
pop ecx
mov dword [0x4a5a0c], eax
mov eax, dword [0x4a5a0c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x477430
cmp dword [0x4a5a10], ecx
je 0x477430
push eax
call fcn.0046c6c3
push dword [0x4a5a10]
mov esi, eax
call fcn.0046c6c3
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x477430
cmp edi, ebx
je 0x477430
call esi
cmp eax, ebx
je 0x4773fd
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4773fd
test byte [ebp - 0x18], 1
jne 0x477430
lea eax, [ebp - 0x10]
push eax
call fcn.00465c62
test eax, eax
pop ecx
je 0x477418
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0046cf26
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x477427
or dword [ebp + 0x10], 0x200000
jmp 0x47746b
or dword [ebp + 0x10], 0x40000
jmp 0x47746b
mov eax, dword [0x4a5a04]
cmp eax, dword [ebp - 8]
je 0x47746b
push eax
call fcn.0046c6c3
cmp eax, ebx
pop ecx
je 0x47746b
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x47746b
mov eax, dword [0x4a5a08]
cmp eax, dword [ebp - 8]
je 0x47746b
push eax
call fcn.0046c6c3
cmp eax, ebx
pop ecx
je 0x47746b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a5a00]
call fcn.0046c6c3
cmp eax, ebx
pop ecx
je 0x47748b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x47748d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47bcb9
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4a1620]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0047bc4e
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00467720
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x47bd08
cmp dword [ebp - 0x1c], 5
jb 0x47bd20
jmp 0x47bd1c
cmp dword [ebp - 0x10], 1
jne 0x47bd20
cmp dword [ebp - 0x1c], 4
ja 0x47bd1c
jne 0x47bd20
cmp dword [ebp - 0x18], 0
jbe 0x47bd20
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x48a780
call fcn.0047bb3f
test eax, eax
jge 0x47bd41
mov byte [0x4a5bac], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00465b73
add ebp, 0x78
leave
ret
Function at 0x474940
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x51000]
push edi
jmp 0x47495a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x474961
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x474950
mov eax, 1
add ebx, ebx
jne 0x474973
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x474968
jne 0x474984
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x474968
xor ecx, ecx
sub eax, 3
jb 0x474998
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x474a0a
mov ebp, eax
add ebx, ebx
jne 0x4749a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4749b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4749d4
inc ecx
add ebx, ebx
jne 0x4749c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4749b5
jne 0x4749d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4749b5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4749f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4749e5
jmp 0x474956
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4749f4
add edi, ecx
jmp 0x474956
pop esi
lea edi, [esi + 0x38000]
mov ecx, 8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x474a16
cmp byte [edi], 0xa
jne 0x474a16
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 0x474a1b
lea edi, [esi + 0x72000]
mov eax, dword [edi]
or eax, eax
je 0x474a93
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x76140]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7617c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x474a48
mov ecx, edi
jns 0x474a77
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 + 0x76180]
or eax, eax
je 0x474a8d
mov dword [ebx], eax
add ebx, 4
jmp 0x474a65
call dword [esi + 0x76190]
mov ebp, dword [esi + 0x76184]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x15f]
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 0x474ac7
sub esp, 0xffffff80
jmp 0x402940
Function at 0x404548
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.0040688c
test esi, esi
jne 0x404580
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.004069c8
jmp 0x40459e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040448c
mov edi, eax
test esi, esi
je 0x40459e
cmp dword [ebx], 0
je 0x40459e
dec esi
jmp 0x404587
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405e08
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x50b050], 0
je 0x405e69
cmp word [0x50b32c], 0xd7b2
jne 0x405e31
cmp dword [0x50b334], 0
jbe 0x405e31
mov eax, 0x50b328
call dword [0x50b344]
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 0x405e94
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x508030], 0
jne 0x405e85
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406014
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 [0x508034], 0
je 0x40603a
mov edx, esi
mov eax, ebx
call dword [0x508034]
jmp 0x406049
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x50b051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405fdc
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 0x408630
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 0x408797
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040688c
cmp si, word [0x5087d0]
jb 0x4086ca
cmp si, word [0x5089d0]
ja 0x4086ca
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4086ca
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5087d0]
jae 0x4086a4
mov edi, ebx
dec edi
jmp 0x4086c5
cmp si, word [ebx*8 + 0x5087d0]
jbe 0x4086b4
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4086c5
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5087d4]
call fcn.00408540
jmp 0x4086ca
cmp edi, dword [ebp - 0xc]
jae 0x40868e
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408779
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408779
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.00406a74
push dword [ebp - 0x164]
push 0x4087b4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406a74
push dword [ebp - 0x168]
push 0x4087c4
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406a74
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406e2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40879e
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406884
ret
Function at 0x4087c8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 6], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x4089ae
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x50db58
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x50db70]
cmp ax, word [ebp - 2]
jne 0x408820
mov eax, dword [ebp - 6]
mov edx, 0x50db74
mov ecx, 0x55
call fcn.00406a74
push 0x50db58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408998
push 0x50db58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.0040688c
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408960
cmp byte [0x50db54], 0
je 0x408916
call dword [0x50db4c]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x50db50]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x40890f
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x50db48]
test al, al
je 0x4088e8
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.004041d4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x50db48]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x4088dd
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x4088d9
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x4088c6
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00406a38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408960
movzx eax, word [ebp - 0x16]
push eax
call dword [0x50db50]
cmp dword [ebp - 0x10], 0
je 0x40890e
mov eax, dword [ebp - 0x10]
call fcn.004041f0
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.00408630
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x408960
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x408945
mov eax, dword [ebp - 6]
mov edx, 0x4089c8
call fcn.00406c88
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.00408630
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00406c88
mov eax, dword [ebp - 6]
push 0x50db58
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x50db70], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.00406918
push eax
push 0x50db74
call sub.kernel32.dll_lstrcpynW
push 0x50db58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4089b5
lea eax, [ebp - 0x1c]
call fcn.0040687c
ret