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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x8600bf
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x4d40b1
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x4d409a
test esi, esi
jbe 0x4d40b1
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a644
test eax, eax
jne 0x4d408c
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x4d40b1
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x4d4069
jmp 0x4d40b1
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x4d40b1
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8600c6
ret
Function at 0x4d4ae0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x860c8f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404980
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4d4b1b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4d4b34
lea eax, [ebp - 0x10]
mov edx, dword [0x8c0f00]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.004049e0
jmp 0x4d4b47
lea eax, [ebp - 0x10]
mov edx, dword [0x8c0f00]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.004049e0
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4d4b53
adc edx, 0
mov edx, dword [edx*4 + 0x8ae8ac]
call fcn.00404bec
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404bd0
push eax
call fcn.00406b4c
mov esi, eax
cmp esi, 0xffffffff
je 0x4d4c61
mov eax, 0x40
call fcn.00402714
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406f5c
test eax, eax
je 0x4d4c54
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4d4c54
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406fcc
mov eax, edi
call fcn.00402734
mov eax, 0x18
call fcn.00402714
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406f5c
test eax, eax
je 0x4d4c54
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4d4c54
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x4d4c54
cmp dx, 0x150
ja 0x4d4c54
mov eax, edi
call fcn.00402734
mov eax, 0xe0
call fcn.00402714
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406f5c
test eax, eax
je 0x4d4c54
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x4d4c54
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.004049bc
mov eax, edi
call fcn.00402734
push esi
call fcn.00406b04
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.00404cf8
jne 0x4d4c79
inc ebx
cmp ebx, 0x19
jne 0x4d4b0d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x860c96
lea eax, [ebp - 0x10]
call fcn.00404980
ret
Function at 0x5093a0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x8cd594
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x5093c2
shr eax, 1
xor eax, 0xedb88320
jmp 0x5093c4
shr eax, 1
dec edx
jne 0x5093b0
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x5093a9
mov byte [0x8cd994], 1
pop esi
pop ebx
ret

Function at 0x5093e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x8cd994], 0
jne 0x5093f7
call fcn.005093a0
mov eax, edi
dec eax
test eax, eax
jl 0x509420
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x8cd594]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x509401
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x10003afc
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
push 2
push esi
call dword [0x1001642c]
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push 0x100164e4
push 1
push esi
push 0x10016564
call dword [0x1001641c]
test eax, eax
jne 0x10003b7a
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
push esi
mov dword [ebp - 4], esi
mov ecx, dword [eax]
push edx
push 0x10016554
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x10003b7a
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x10]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x10003b6b
push 1
pop eax
jmp 0x10003b7c
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [0x10016430]
xor eax, eax
pop esi
leave
ret

Function at 0x10003b7f
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
push 2
push esi
call dword [0x1001642c]
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push 0x100164e4
push 1
push esi
push 0x10016564
call dword [0x1001641c]
test eax, eax
jne 0x10003bfd
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
push esi
mov dword [ebp - 4], esi
mov ecx, dword [eax]
push edx
push 0x10016544
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x10003bfd
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x10]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x10003bee
push 1
pop eax
jmp 0x10003bff
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [0x10016430]
xor eax, eax
pop esi
leave
ret
Function at 0x1000907c
Capabilities:
Enumerate devices by category

Disassembly:
mov eax, 0x10015ad0
call fcn.10015840
sub esp, 0x20
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
jl 0x100090f4
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
push eax
push 0x100164e4
push 1
push ebx
push 0x10016564
call dword [0x1001641c]
cmp eax, ebx
jne 0x100090e3
mov dword [ebp + 8], ebx
mov eax, dword [ebp - 0x10]
lea edx, [ebp + 8]
push ebx
push edx
mov ecx, dword [eax]
push 0x10016554
push eax
mov byte [ebp - 4], 1
call dword [ecx + 0xc]
cmp eax, ebx
je 0x100090fb
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x100090e3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x100090f4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor al, al
jmp 0x100091c1
mov eax, dword [ebp + 8]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x14]
mov ecx, dword [eax]
push edx
push 1
push eax
xor esi, esi
call dword [ecx + 0xc]
cmp edi, ebx
jl 0x1000919d
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
push edx
push 0x1001649c
mov ecx, dword [eax]
push ebx
push ebx
push eax
call dword [ecx + 0x24]
cmp eax, ebx
jl 0x1000917c
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x2c]
push ebx
mov word [ebp - 0x2c], 8
mov ecx, dword [eax]
push edx
push 0x10094214
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jne 0x10009173
cmp esi, edi
jne 0x1000916a
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push 0x100164d4
push ebx
push ebx
push eax
call dword [ecx + 0x20]
push dword [ebp - 0x24]
call dword [0x10016338]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x14]
mov ecx, dword [eax]
push edx
push 1
push eax
inc esi
call dword [ecx + 0xc]
cmp esi, edi
jle 0x1000911e
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
pop esi
je 0x100091ae
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x100091bf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x10009279
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
xor edi, edi
push 2
push edi
call dword [0x1001642c]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
push 0x100164e4
push 1
push edi
push 0x10016564
call dword [0x1001641c]
cmp eax, edi
jne 0x10009370
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
push edi
mov dword [ebp - 4], edi
mov ecx, dword [eax]
push edx
push 0x10016554
push eax
call dword [ecx + 0xc]
cmp eax, edi
jne 0x10009370
mov eax, dword [ebp - 4]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0xc]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
mov esi, eax
cmp esi, edi
jne 0x1000935e
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
push edx
push 0x1001649c
mov dword [ebp - 8], edi
mov ecx, dword [eax]
push edi
push edi
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x10009350
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x24]
push edi
mov word [ebp - 0x24], 8
mov ecx, dword [eax]
push edx
push 0x10094214
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x10009347
push dword [ebp - 0x1c]
call fcn.100119d9
push eax
push dword [ebp + 0xc]
call fcn.100157b0
push 0x10094260
push dword [ebp + 0xc]
call fcn.100157b0
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x100092d5
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [0x10016430]
mov eax, esi
pop esi
pop edi
leave
ret
Function at 0x4031b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x5b00cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x403223
push esi
push 0x57e6cc
push 0x3be
push str.........Common_application.cpp
lea eax, [esi + 4]
call fcn.004f1f50
push eax
push 4
push str.Runtime_Error__d:__s_nPress_OK_to_Continue_nPress_Cancel_to_Quit._n_nPlease_report_what_caused_this_error_nalong_with_the_information_below._n_n_s:__d_nFailure_Condition:__s_n_s
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.00567446
add esp, 0x24
push 0x111
push str.Runtime_Error
lea ecx, [ebp - 0x404]
push ecx
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x403223
push esi
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x403237
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x403237
add ecx, 1
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x2c]
xor ecx, ebp
pop esi
call fcn.00566120
mov esp, ebp
pop ebp
ret
Function at 0x403df0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x5b00cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
push edi
mov dword [ebx], 0x57e7d0
jne 0x403e69
push ecx
push str.base
push 0x5fd
push str.........Common_application.cpp
lea eax, [ecx + 4]
call fcn.004f1f50
push eax
push 4
push str.Runtime_Error__d:__s_nPress_OK_to_Continue_nPress_Cancel_to_Quit._n_nPlease_report_what_caused_this_error_nalong_with_the_information_below._n_n_s:__d_nFailure_Condition:__s_n_s
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.00567446
add esp, 0x24
push 0x111
push str.Runtime_Error
lea ecx, [ebp - 0x404]
push ecx
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x403e69
push esi
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
test esi, esi
mov dword [ebx + 4], esi
je 0x403e7d
mov eax, dword [esi + 0xc]
test eax, eax
je 0x403e7d
add eax, 1
mov dword [esi + 0xc], eax
mov dword [ebx + 8], 0
call fcn.00402170
mov esi, dword [ebx + 4]
push eax
call fcn.0047a430
push eax
push esi
call fcn.004ff5b0
add esp, 0xc
test al, al
je 0x403ee5
push ecx
mov eax, esp
mov edi, 5
mov esi, str._Poll
mov dword [ebp - 0x408], eax
mov dword [eax], 0
call fcn.004ab970
mov edx, dword [ebp - 0x408]
mov eax, dword [edx]
test eax, eax
je 0x403ed1
mov dword [eax + 0x10], 0x600
call fcn.00402170
push eax
mov eax, dword [ebx + 4]
call fcn.0045c790
add esp, 8
mov dword [ebx + 8], eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, ebx
pop esi
call fcn.00566120
mov esp, ebp
pop ebp
ret

Function at 0x404500
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x5b00cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
jl 0x404536
cmp eax, dword [ecx + 4]
jge 0x404536
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov eax, dword [edx + eax*4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00566120
mov esp, ebp
pop ebp
ret 4
push 0
push 0x57e0a8
push 0x47
push str.........Common_array.cpp
mov eax, 4
call fcn.004f1f50
push eax
push 4
push str.Runtime_Error__d:__s_nPress_OK_to_Continue_nPress_Cancel_to_Quit._n_nPlease_report_what_caused_this_error_nalong_with_the_information_below._n_n_s:__d_nFailure_Condition:__s_n_s
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.00567446
add esp, 0x24
push 0x111
push str.Runtime_Error
lea ecx, [ebp - 0x404]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x404590
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00566120
mov esp, ebp
pop ebp
ret 4
Function at 0x4045b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x5b00cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4045e9
cmp eax, dword [ecx + 4]
jge 0x4045e9
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
mov dword [edx + eax*4], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00566120
mov esp, ebp
pop ebp
ret 8
push 0
push 0x57e0a8
push 0x5b
push str.........Common_array.cpp
mov eax, 4
call fcn.004f1f50
push eax
push 4
push str.Runtime_Error__d:__s_nPress_OK_to_Continue_nPress_Cancel_to_Quit._n_nPlease_report_what_caused_this_error_nalong_with_the_information_below._n_n_s:__d_nFailure_Condition:__s_n_s
lea edx, [ebp - 0x404]
push 0x400
push edx
call fcn.00567446
add esp, 0x24
push 0x111
push str.Runtime_Error
lea eax, [ebp - 0x404]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x4045d9
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x404650
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x5b00cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
mov edi, ecx
mov dword [ebp - 0x408], edi
jl 0x404710
mov eax, dword [edi + 4]
cmp esi, eax
jg 0x404710
mov ecx, dword [edi + 8]
cmp eax, ecx
push ebx
jne 0x4046d1
mov eax, dword [edi + 0x10]
add ecx, eax
add eax, eax
cmp eax, 0x1000
mov dword [edi + 8], ecx
mov dword [edi + 0x10], eax
jle 0x4046a6
mov dword [edi + 0x10], 0x1000
mov esi, dword [edi]
test esi, esi
je 0x4046b9
mov ebx, ecx
add ebx, ebx
add ebx, ebx
call fcn.004141e0
jmp 0x4046ce
mov edi, ecx
add edi, edi
add edi, edi
call fcn.004141b0
mov edx, dword [ebp - 0x408]
mov dword [edx], eax
mov edi, edx
mov esi, dword [ebp + 8]
mov eax, dword [edi]
mov ebx, dword [eax]
mov eax, dword [edi + 4]
cmp esi, eax
je 0x4046f3
sub eax, esi
add eax, eax
add eax, eax
push eax
lea ecx, [ebx + esi*4]
push ecx
add ecx, 4
push ecx
call fcn.00566500
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov dword [ebx + esi*4], ecx
add dword [edi + 4], 1
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00566120
mov esp, ebp
pop ebp
ret 8
push 0
push 0x57e0a8
push 0x7e
push str.........Common_array.cpp
mov eax, 4
call fcn.004f1f50
push eax
push 4
push str.Runtime_Error__d:__s_nPress_OK_to_Continue_nPress_Cancel_to_Quit._n_nPlease_report_what_caused_this_error_nalong_with_the_information_below._n_n_s:__d_nFailure_Condition:__s_n_s
lea edx, [ebp - 0x404]
push 0x400
push edx
call fcn.00567446
add esp, 0x24
push 0x111
push str.Runtime_Error
lea eax, [ebp - 0x404]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x4046fe
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x404770
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x5b00cc]
xor eax, ebp
mov dword [ebp - 4], eax
test edi, edi
jl 0x40478c
cmp edi, dword [esi + 4]
jl 0x4047e3
push 0
push str.not__idx___0__idx___lCount_
push 0xb0
push str.........Common_array.cpp
push str.Failed_Assertion
push 4
push str.Runtime_Error__d:__s_nPress_OK_to_Continue_nPress_Cancel_to_Quit._n_nPlease_report_what_caused_this_error_nalong_with_the_information_below._n_n_s:__d_nFailure_Condition:__s_n_s
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.00567446
add esp, 0x24
push 0x111
push str.Runtime_Error
lea ecx, [ebp - 0x404]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x4047e3
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
add dword [esi + 4], 0xffffffff
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0xc]
mov edx, dword [esi]
mov edx, dword [edx]
sub ecx, edi
imul ecx, eax
push ecx
lea ecx, [edi + 1]
imul ecx, eax
imul eax, edi
add ecx, edx
push ecx
add eax, edx
push eax
call fcn.00566500
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0xc
mov dword [esi + 0x10], 0x10
call fcn.00566120
mov esp, ebp
pop ebp
ret

Function at 0x404bb0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x5f4d88], 0
jbe 0x404c8c
cmp byte [ebp + 8], 0
je 0x404bd6
call fcn.00404c90
test al, al
je 0x404c8c
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call ebx
test eax, eax
mov dword [ebp - 4], eax
fild dword [ebp - 4]
jge 0x404bef
fadd qword [0x5a1050]
fmul qword [0x5a10e0]
call fcn.005734f0
cmp dword [0x5f495c], 0
mov ecx, eax
mov dword [ebp - 4], ecx
jg 0x404c24
cmp byte [0x5f1499], 0
jne 0x404c24
mov eax, dword [0x5f149c]
add eax, 0xf
cmp ecx, eax
jle 0x404c24
mov byte [0x5f1499], 1
mov eax, dword [0x5f4d88]
push edi
lea edi, [eax - 1]
cmp edi, eax
jae 0x404c8a
push esi
cmp byte [ebp + 8], 0
mov edx, dword [0x5f4d84]
mov esi, dword [edx + edi*4]
je 0x404c47
cmp dword [esi + 4], 0
jne 0x404c82
mov edx, dword [esi + 0xc]
add edx, dword [esi + 8]
cmp ecx, edx
jl 0x404c82
call ebx
test eax, eax
mov dword [ebp - 8], eax
fild dword [ebp - 8]
jge 0x404c63
fadd qword [0x5a1050]
fmul qword [0x5a10e0]
call fcn.005734f0
mov dword [esi + 8], eax
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov eax, dword [0x5f4d88]
mov ecx, dword [ebp - 4]
sub edi, 1
cmp edi, eax
jb 0x404c32
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409c60
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
fld qword [ebp + 8]
sub esp, 0xc
push ebx
push esi
push edi
sub esp, 8
fstp qword [esp]
push 7
push 0xffffffffffffffff
lea eax, [ebp - 4]
call fcn.00457b10
add esp, 0x10
push 4
lea eax, [ebp - 8]
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
push ecx
mov ebx, esp
lea eax, [ebp - 8]
mov dword [ebx], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409ca3
sub eax, edx
mov edi, eax
lea esi, [ebp - 8]
mov eax, ebx
call fcn.004ab970
mov ebx, dword [ebx]
test ebx, ebx
je 0x409cc7
mov dword [ebx + 0x10], 0x600
push ecx
mov ebx, esp
mov edi, 1
mov esi, 0x57e72c
mov eax, ebx
mov dword [ebx], 0
call fcn.004ab970
mov ebx, dword [ebx]
test ebx, ebx
je 0x409cee
mov dword [ebx + 0x10], 0x600
mov eax, dword [ebp - 4]
test eax, eax
push ecx
mov ecx, esp
mov dword [ecx], eax
je 0x409cfc
add dword [eax], edi
lea ecx, [ebp - 0xc]
push ecx
call fcn.00406960
add esp, 0x10
mov ebx, eax
lea edi, [ebp - 4]
call fcn.004abdf0
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x409d1e
call fcn.004ab850
cmp byte [0x5f49d5], 0
jne 0x409d39
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov esi, dword [ebp - 4]
test esi, esi
je 0x409d4e
add dword [esi], 1
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
test esi, esi
je 0x409d62
call fcn.004ab850
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40cbc0
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0xa8]
test esi, esi
mov dword [edi], 0x57e920
je 0x40cbf5
add word [esi + 0x10], 0xffff
movzx eax, word [esi + 0x10]
test ax, ax
jne 0x40cbf5
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov esi, dword [edi + 0x88]
test esi, esi
je 0x40cc04
call fcn.004ab850
mov ecx, edi
pop edi
pop esi
jmp fcn.0051d940

Function at 0x40df90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ebx
push esi
mov esi, dword [edx]
mov edx, dword [ebp + 8]
push edi
lea edi, [edx + 0x1018]
mov dword [ebp + 8], 0x10
xor ecx, dword [edi]
add edi, 4
movzx eax, cl
mov dword [ebp - 4], eax
mov eax, ecx
shr eax, 8
mov dword [ebp - 8], ecx
movzx ebx, al
shr eax, 8
mov ecx, eax
shr ecx, 8
and ecx, 0xff
mov ecx, dword [edx + ecx*4 + 0x18]
movzx eax, al
add ecx, dword [edx + eax*4 + 0x418]
movzx eax, bx
xor ecx, dword [edx + eax*4 + 0x818]
movzx eax, word [ebp - 4]
add ecx, dword [edx + eax*4 + 0xc18]
xor ecx, esi
sub dword [ebp + 8], 1
mov esi, dword [ebp - 8]
jne 0x40dfb3
mov eax, dword [edx + 0x1058]
xor eax, ecx
mov ecx, dword [edx + 0x105c]
mov edx, dword [ebp + 0xc]
xor ecx, esi
pop edi
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
pop esi
mov dword [ecx], eax
pop ebx
mov esp, ebp
pop ebp
ret