joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f616
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 0x41f653
cmp dword [ebp + 0x14], edi
je 0x41f653
cmp ecx, edi
jne 0x41f65a
call fcn.00420c22
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00420892
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x41f66e
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x41f68f
cmp ebx, 0xffffffff
je 0x41f67e
push ebx
push edi
push ecx
call fcn.00422aa0
add esp, 0xc
cmp esi, edi
je 0x41f63b
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x41f63b
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x41f6ab
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x41f6b2
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x41f7a3
test word [esi + 0xc], 0x10c
je 0x41f706
mov eax, dword [esi + 4]
test eax, eax
je 0x41f706
jl 0x41f804
cmp ebx, eax
mov edi, ebx
jb 0x41f6d7
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x41f7ab
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00420711
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 0x41f79b
cmp ebx, dword [ebp - 0xc]
jb 0x41f773
cmp dword [ebp - 0xc], 0
je 0x41f730
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x41f725
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x41f72c
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x41f73b
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x41f73b
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x41f7d7
push eax
push dword [ebp - 8]
push esi
call fcn.004230fc
pop ecx
push eax
call fcn.004252be
add esp, 0xc
test eax, eax
je 0x41f816
cmp eax, 0xffffffff
je 0x41f804
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x41f79b
push esi
call fcn.00424bdd
cmp eax, 0xffffffff
pop ecx
je 0x41f808
cmp dword [ebp - 4], 0
je 0x41f7d7
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 0x41f6ba
mov eax, dword [ebp + 0x14]
jmp 0x41f655
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x41f7c2
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00422aa0
add esp, 0xc
call fcn.00420c22
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x41f64b
cmp dword [ebp + 0xc], 0xffffffff
je 0x41f7ed
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00422aa0
add esp, 0xc
call fcn.00420c22
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x41f64b
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x41f655
or dword [esi + 0xc], 0x10
jmp 0x41f808
Function at 0x427058
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 + 0x443be0]
je 0x427073
inc edi
cmp edi, 0x17
jb 0x427064
cmp edi, 0x17
jae 0x4271f3
push ebp
push 3
call fcn.0042f7fa
cmp eax, 1
pop ecx
je 0x4271bf
push 3
call fcn.0042f7fa
test eax, eax
pop ecx
jne 0x4270a7
cmp dword [0x4431d4], 1
je 0x4271bf
cmp ebx, 0xfc
je 0x4271f2
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x445e80
push ebp
call fcn.00427d3d
add esp, 0xc
test eax, eax
je 0x4270dd
push esi
push esi
push esi
push esi
push esi
call fcn.00420796
add esp, 0x14
push 0x104
mov esi, 0x445e99
push esi
push 0
mov byte [0x445f9d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x427121
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00427d3d
add esp, 0xc
test eax, eax
je 0x427121
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00420796
add esp, 0x14
push esi
call fcn.00422590
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x427166
push esi
call fcn.00422590
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x446194
push 0x437c4c
sub ecx, eax
push ecx
push eax
call fcn.0042da76
add esp, 0x14
test eax, eax
je 0x427166
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00420796
add esp, 0x14
jmp 0x427168
xor esi, esi
push 0x437c48
push ebx
push ebp
call fcn.0042d9bb
add esp, 0xc
test eax, eax
je 0x427188
push esi
push esi
push esi
push esi
push esi
call fcn.00420796
add esp, 0x14
push dword [edi*8 + 0x443be4]
push ebx
push ebp
call fcn.0042d9bb
add esp, 0xc
test eax, eax
je 0x4271aa
push esi
push esi
push esi
push esi
push esi
call fcn.00420796
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042f63d
add esp, 0xc
jmp 0x4271f2
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4271f2
cmp ebp, 0xffffffff
je 0x4271f2
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x443be4]
push dword [esi]
call fcn.00422590
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 0x42f63d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00425f1d
xor ebx, ebx
cmp dword [0x44664c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x42f713
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42f7f3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x42f7f3
push eax
call fcn.00425eaf
mov dword [esp], 0x438730
push edi
mov dword [0x44664c], eax
call esi
push eax
call fcn.00425eaf
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x446650], eax
call esi
push eax
call fcn.00425eaf
mov dword [0x446654], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00428944
test eax, eax
pop ecx
pop ecx
je 0x42f6e1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00420796
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x42f713
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00425eaf
cmp eax, ebx
pop ecx
mov dword [0x44665c], eax
je 0x42f713
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00425eaf
pop ecx
mov dword [0x446658], eax
mov eax, dword [0x446658]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x42f798
cmp dword [0x44665c], ecx
je 0x42f798
push eax
call fcn.00425f26
push dword [0x44665c]
mov esi, eax
call fcn.00425f26
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x42f798
cmp edi, ebx
je 0x42f798
call esi
cmp eax, ebx
je 0x42f765
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42f765
test byte [ebp - 0x18], 1
jne 0x42f798
lea eax, [ebp - 0x10]
push eax
call fcn.0042897b
test eax, eax
pop ecx
je 0x42f780
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00420796
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x42f78f
or dword [ebp + 0x10], 0x200000
jmp 0x42f7d3
or dword [ebp + 0x10], 0x40000
jmp 0x42f7d3
mov eax, dword [0x446650]
cmp eax, dword [ebp - 8]
je 0x42f7d3
push eax
call fcn.00425f26
cmp eax, ebx
pop ecx
je 0x42f7d3
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42f7d3
mov eax, dword [0x446654]
cmp eax, dword [ebp - 8]
je 0x42f7d3
push eax
call fcn.00425f26
cmp eax, ebx
pop ecx
je 0x42f7d3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44664c]
call fcn.00425f26
cmp eax, ebx
pop ecx
je 0x42f7f3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42f7f5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x458670
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xcc]
mov ecx, 0x33
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov esi, esp
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, esp
call fcn.0046a950
pop edi
pop esi
pop ebx
add esp, 0xcc
cmp ebp, esp
call fcn.0046a950
mov esp, ebp
pop ebp
ret 8

Function at 0x458b20
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xcc]
mov ecx, 0x33
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov esi, esp
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp esi, esp
call fcn.0046a950
pop edi
pop esi
pop ebx
add esp, 0xcc
cmp ebp, esp
call fcn.0046a950
mov esp, ebp
pop ebp
ret 4

Function at 0x458b80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
lea edi, [ebp - 0x110]
mov ecx, 0x44
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push eax
call fcn.004696a0
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x458bbb
mov eax, 0x80004005
jmp 0x458c76
mov dword [ebp - 0x40], 0
mov ecx, 0xe
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x540
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov esi, esp
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp esi, esp
call fcn.0046a950
test eax, eax
jne 0x458c29
mov eax, 0x80004005
jmp 0x458c76
movzx eax, byte [ebp + 0x10]
test eax, eax
jne 0x458c35
xor eax, eax
jmp 0x458c76
mov esi, esp
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp esi, esp
call fcn.0046a950
mov dword [ebp - 0x4c], 0x80004005
mov esi, esp
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp esi, esp
call fcn.0046a950
test eax, eax
jne 0x458c73
mov eax, 0x80004005
jmp 0x458c76
mov eax, dword [ebp - 0x4c]
push edx
mov ecx, ebp
push eax
lea edx, [0x458c9c]
call fcn.0046a973
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x110
cmp ebp, esp
call fcn.0046a950
mov esp, ebp
pop ebp
ret
Function at 0x463900
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x48b0d0]
xor eax, ebp
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x21c], eax
xor eax, eax
mov word [esp + 0x10], 0
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
push 0x104
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x463958
push 0x47d0b4
jmp 0x463998
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.Xunlei
lea ecx, [esp + 0x14]
push ecx
call edi
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x463987
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x47dcb4
lea ecx, [esp + 0x14]
push ecx
call edi
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov ecx, dword [esp + 0x21c]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0046af7b
mov esp, ebp
pop ebp
ret

Function at 0x4682d0
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x468310
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [esi + 4]
push ecx
push 4
push esi
push 0x468260
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov cl, byte [esp + 8]
test cl, cl
mov dword [esi + 8], eax
jne 0x468310
pop esi
mov dword [esp + 4], eax
jmp dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
ret 4

Function at 0x468340
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
push edi
mov edi, dword [esp + 0x10]
xor ebx, ebx
cmp edi, ebx
je 0x4683f6
cmp word [edi], bx
je 0x4683f6
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x4683f0
inc eax
push esi
push eax
call fcn.0046a6d4
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4683ef
mov eax, dword [esp + 0x14]
push esi
push eax
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4683e6
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x47dcb4
push esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], 0x34
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4683e6
mov eax, dword [esp + 0xc]
mov cx, word [eax + 0xa]
mov edx, dword [esp + 0x18]
mov word [edx], cx
mov cx, word [eax + 8]
mov edx, dword [esp + 0x1c]
mov word [edx], cx
mov cx, word [eax + 0xe]
mov edx, dword [esp + 0x20]
mov word [edx], cx
mov ax, word [eax + 0xc]
mov ecx, dword [esp + 0x24]
mov word [ecx], ax
mov bl, 1
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
pop esi
pop edi
mov al, bl
pop ebx
pop ecx
ret
push 0x132b3a1
call fcn.00469470
add esp, 4
pop edi
xor al, al
pop ebx
pop ecx
ret
Function at 0x469390
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x477bf9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x48b0d0]
xor eax, esp
push esi
mov esi, dword [esp + 0x34]
push esi
mov dword [esp + 0x24], eax
call fcn.00468ca0
add esp, 4
test al, al
je 0x4693cc
mov al, 1
jmp 0x469451
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push esi
call edi
test eax, eax
jne 0x46944e
lea eax, [esp + 8]
push esi
push eax
call fcn.00463470
add esp, 8
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x30], 0
je 0x469438
cmp dword [esp + 0x20], 8
mov eax, dword [esp + 0xc]
jae 0x469409
lea eax, [esp + 0xc]
push eax
call fcn.00469390
add esp, 4
test al, al
je 0x469438
push ebx
push 0
push esi
call edi
test eax, eax
lea ecx, [esp + 0xc]
setne bl
mov dword [esp + 0x34], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, bl
pop ebx
jmp 0x469450
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor al, al
jmp 0x469450
mov al, 1
pop edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x20]
pop esi
xor ecx, esp
call fcn.0046af7b
add esp, 0x2c
ret
Function at 0x46ad34
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x481a48
call fcn.0046b030
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
cmp word [eax], 0x5a4d
jne 0x46ad74
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x46ad74
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x46ad8c
cmp eax, 0x20b
je 0x46ad79
mov dword [ebp - 0x1c], edi
jmp 0x46ada0
cmp dword [ecx + 0x84], 0xe
jbe 0x46ad74
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x46ad9a
cmp dword [ecx + 0x74], 0xe
jbe 0x46ad74
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x48c310], 0xffffffff
or dword [0x48c320], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x48c2b0]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x48c2ac]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x48c304], eax
call fcn.0046b6ce
call fcn.0046b777
cmp dword [0x48b114], edi
jne 0x46ae00
push 0x46b774
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.0046b75c
push 0x48a6a4
push 0x48a5a0
call sub.MSVCR71.dll__initterm
push 0x46b712
call fcn.0046ab0a
mov eax, dword [0x48c2a8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x48c2a4]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x46ae54
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x48a49c
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x46ae7e
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x46af38
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x46aeed
cmp ax, di
je 0x46ae94
cmp dword [ebp - 0x20], edi
jne 0x46aeed
mov ax, word [esi]
cmp ax, di
je 0x46aea9
cmp ax, 0x20
ja 0x46aea9
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x46ae94
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x46aec5
movzx eax, word [ebp - 0x54]
jmp 0x46aec8
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.00402608
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x46aee5
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x46af32
cmp ax, 0x22
jne 0x46aefe
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x46ae7e
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0046b06b
ret
Function at 0x719d8e
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00719e0d
jae 0x719d9a
xor ecx, ecx
call fcn.00719e0d
jae 0x719dc4
xor eax, eax
call fcn.00719e0d
jae 0x719dd5
mov al, 0x10
call fcn.00719e0d
adc al, al
jae 0x719db6
jne 0x719e02
stosb byte es:[edi], al
jmp 0x719d9b
call fcn.00719e19
dec ecx
loop 0x719de1
mov eax, ebp
call fcn.00719e17
jmp 0x719e03
lodsb al, byte [esi]
shr eax, 1
je 0x719e29
adc ecx, 2
mov ebp, eax
jmp 0x719e03
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00719e17
cmp eax, 0x7d00
jae 0x719e01
cmp eax, 0x500
jae 0x719e02
cmp eax, 0x7f
ja 0x719e03
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x719d9b
pop ebp
ret 8
Function at 0x402b10
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.00404b98
test esi, esi
jne 0x402b46
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.00404c88
jmp 0x402b64
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a24
mov edi, eax
test esi, esi
je 0x402b64
cmp dword [ebx], 0
je 0x402b64
dec esi
jmp 0x402b4d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403cb8
Capabilities:
Query or enumerate registry value

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

Function at 0x404a1c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d504c], 0
je 0x404a7d
cmp word [0x4d5220], 0xd7b2
jne 0x404a45
cmp dword [0x4d5228], 0
jbe 0x404a45
mov eax, 0x4d521c
call dword [0x4d5238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4d20c0
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 0x404aa4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d2034], 0
jne 0x404a99
push 0
push 0x4d20b8
push 0x4d20c0
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4061ec
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 0x40641c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40626f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40641c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40626f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406438
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4062f8
xor eax, eax
push ebp
push 0x4062f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406034
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 0x4062d6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406458
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4062d6
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 0x4062f8
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 0x406412
cmp byte [ebp - 0xd], 0
jne 0x40633f
cmp byte [ebp - 0x12], 0
je 0x406412
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406358
dec ebx
cmp byte [ebx], 0x2e
je 0x406367
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406357
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406412
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4063a4
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 0x406412
cmp byte [ebp - 0xd], 0
je 0x406412
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 0x406412
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