joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401fa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
cmp dword [0x41af80], 0xffffffff
je 0x401fd8
push 0
lea ecx, [ebp - 8]
push ecx
push 1
lea edx, [ebp - 4]
push edx
mov eax, dword [0x41af80]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x401fdd
or eax, 0xffffffff
jmp 0x401fdf
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x402030
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
cmp dword [0x41af80], 0xffffffff
je 0x402069
push 0
lea eax, [ebp - 8]
push eax
push 1
lea ecx, [ebp - 1]
push ecx
mov edx, dword [0x41af80]
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x402069
cmp dword [ebp - 8], 1
je 0x40206e
or eax, 0xffffffff
jmp 0x402072
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x402196
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x41b690], esi
push edi
jne 0x4021b6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x41b68c], esi
mov byte [0x41b688], al
jne 0x40221c
mov ecx, dword [0x41cc0c]
test ecx, ecx
je 0x4021fd
mov eax, dword [0x41cc08]
sub eax, 4
cmp eax, ecx
jmp 0x4021f6
mov eax, dword [eax]
test eax, eax
je 0x4021e8
call eax
mov eax, dword [0x41cc08]
sub eax, 4
cmp eax, dword [0x41cc0c]
mov dword [0x41cc08], eax
jae 0x4021e0
mov eax, 0x40a020
mov esi, 0x40a02c
cmp eax, esi
mov edi, eax
jae 0x40221c
mov eax, dword [edi]
test eax, eax
je 0x402215
call eax
add edi, 4
cmp edi, esi
jb 0x40220d
mov eax, 0x40a030
mov esi, 0x40a034
cmp eax, esi
mov edi, eax
jae 0x40223b
mov eax, dword [edi]
test eax, eax
je 0x402234
call eax
add edi, 4
cmp edi, esi
jb 0x40222c
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x402255
push dword [ebp + 8]
mov dword [0x41b690], 1
call fcn.004020fc
pop ebp
ret
Function at 0x402605
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x408120
call fcn.00404054
mov edi, 0x94
mov eax, edi
call fcn.004041b0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x41b650], ecx
mov eax, dword [esi + 4]
mov dword [0x41b65c], eax
mov edx, dword [esi + 8]
mov dword [0x41b660], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x41b654], esi
cmp ecx, 2
je 0x402665
or esi, 0x8000
mov dword [0x41b654], esi
shl eax, 8
add eax, edx
mov dword [0x41b658], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40269e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40269e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4026b6
cmp eax, 0x20b
je 0x4026a3
mov dword [ebp - 0x1c], edi
jmp 0x4026ca
cmp dword [ecx + 0x84], 0xe
jbe 0x40269e
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4026c4
cmp dword [ecx + 0x74], 0xe
jbe 0x40269e
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.00404001
pop ecx
test eax, eax
jne 0x4026f6
cmp dword [0x41b6a0], 2
je 0x4026e3
call fcn.00403a46
push 0x1c
call fcn.004038cf
push 0xff
call fcn.004020fc
pop ecx
pop ecx
call fcn.00402888
mov dword [ebp - 4], edi
call fcn.004032e8
test eax, eax
jge 0x40270f
push 0x1b
call fcn.004025e0
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x41bbe0], eax
call fcn.00403ec5
mov dword [0x41b698], eax
call fcn.00403e23
test eax, eax
jge 0x402735
push 8
call fcn.004025e0
pop ecx
call fcn.00403bf0
test eax, eax
jge 0x402746
push 9
call fcn.004025e0
pop ecx
push 1
call fcn.0040212c
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x40275c
push eax
call fcn.004025e0
pop ecx
mov eax, dword [0x41b670]
mov dword [0x41b674], eax
push eax
push dword [0x41b668]
push dword [0x41b664]
call fcn.00401150
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x40278b
push esi
call fcn.00402257
call fcn.00402279
jmp 0x4027bd
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.0040408f
ret
Function at 0x403493
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x41bac4]
mov eax, dword [0x41b380]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x403659
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x41bae0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x403659
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x4034fd
xor eax, eax
jmp 0x40366d
test al, 0x20
je 0x40350e
push 2
push edi
push edi
push ecx
call fcn.0040472a
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4035e3
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x40362a
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x403570
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x403561
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x403543
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4035b0
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x4035bc
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x403537
jmp 0x4035be
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x403654
cmp dword [ebp + 0x3a4], edi
je 0x40362a
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x40361c
mov dword [0x41b648], eax
jmp 0x403660
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x40360e
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x4035be
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x4035be
push dword [ebp + 0x3a4]
call fcn.00404615
pop ecx
jmp 0x40366a
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x403642
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x4034f6
mov dword [0x41b644], 0x1c
mov dword [0x41b648], edi
jmp 0x40366a
sub eax, dword [ebp - 0x7c]
jmp 0x40366d
and dword [0x41b648], 0
mov dword [0x41b644], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00404572
add ebp, 0x39c
leave
ret
Function at 0x4038cf
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x41b380]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x41b238]
je 0x403904
inc eax
cmp eax, 0x13
jb 0x4038f5
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x41b238]
jne 0x403a2a
mov eax, dword [0x41b6a0]
cmp eax, 1
je 0x403a02
cmp eax, edx
jne 0x403934
cmp dword [0x41b224], 1
je 0x403a02
cmp ecx, 0xfc
je 0x403a2a
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x40396a
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004054b0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00404450
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40399e
mov eax, edi
push eax
call fcn.00404450
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4085b0
push edi
call fcn.004055b0
add esp, 0x10
push edi
call fcn.00404450
push dword [esi + 0x41b23c]
mov ebx, eax
call fcn.00404450
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004041b0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004054b0
push edi
push ebx
call fcn.004054c0
push 0x408590
push ebx
call fcn.004054c0
push dword [esi + 0x41b23c]
push ebx
call fcn.004054c0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004053b4
add esp, 0x2c
jmp 0x403a2a
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x41b23c]
push dword [esi]
call fcn.00404450
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00404572
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4053b4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41b7cc], ebx
push esi
push edi
jne 0x405434
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40546f
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x41b7cc], eax
je 0x40546f
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x41b7d0], eax
call esi
cmp dword [0x41b650], 2
mov dword [0x41b7d4], eax
jne 0x405434
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41b7dc], eax
je 0x405434
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x41b7d8], eax
mov eax, dword [0x41b7d8]
test eax, eax
je 0x405479
call eax
test eax, eax
je 0x405460
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41b7dc]
test eax, eax
je 0x405460
test byte [ebp - 8], 1
jne 0x405479
cmp dword [0x41b65c], 4
jb 0x405473
or byte [ebp + 0x12], 0x20
jmp 0x405498
xor eax, eax
jmp 0x4054a8
or byte [ebp + 0x12], 4
jmp 0x405498
mov eax, dword [0x41b7d0]
test eax, eax
je 0x405498
call eax
mov ebx, eax
test ebx, ebx
je 0x405498
mov eax, dword [0x41b7d4]
test eax, eax
je 0x405498
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41b7cc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405eee
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x405f1c
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x405f23
cmp ebx, dword [eax + 4]
jae 0x405f23
xor eax, eax
jmp 0x406113
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x405f34
xor eax, eax
inc eax
jmp 0x406112
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x405f4a
cmp ecx, edx
jae 0x40608f
cmp dword [eax + 4], 0
je 0x405f53
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x405f3b
cmp dword [ebp + 8], 0
je 0x405f75
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40608f
cmp eax, esi
jae 0x40608f
mov eax, dword [0x41b7e8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x405f9a
cmp dword [esi*4 + 0x41b7f0], edi
je 0x406093
inc esi
cmp esi, eax
jl 0x405f88
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x40610f
cmp dword [ebp - 8], 0x1000000
jne 0x40610f
test byte [ebp - 0xc], 0xcc
je 0x406018
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40610f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40610f
cmp word [eax + 0x18], 0x10b
jne 0x40610f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40610f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x406018
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x406018
test byte [ecx + 0x27], 0x80
jne 0x40608f
push 1
push 0x41b830
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x405f2c
mov ecx, dword [0x41b7e8]
test ecx, ecx
mov edx, ecx
jle 0x40604c
lea eax, [ecx*4 + 0x41b7ec]
cmp dword [eax], edi
je 0x40604c
dec edx
sub eax, 4
test edx, edx
jg 0x406040
test edx, edx
jne 0x40607d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x406059
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x406071
lea eax, [edx*4 + 0x41b7f0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40605f
cmp ecx, 0x10
jge 0x40607d
inc ecx
mov dword [0x41b7e8], ecx
push 0
push 0x41b830
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x405f2c
xor eax, eax
jmp 0x406112
test esi, esi
jle 0x405f2c
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x41b830
call ebx
test eax, eax
jne 0x405f2c
cmp dword [esi*4 + 0x41b7f0], edi
je 0x4060e9
mov eax, dword [0x41b7e8]
lea esi, [eax - 1]
test esi, esi
jl 0x4060d7
cmp dword [esi*4 + 0x41b7f0], edi
je 0x4060d3
dec esi
jns 0x4060c7
test esi, esi
jge 0x4060e7
cmp eax, 0x10
jge 0x4060e2
inc eax
mov dword [0x41b7e8], eax
lea esi, [eax - 1]
jmp 0x4060e9
je 0x406101
xor ecx, ecx
test esi, esi
jl 0x406101
lea eax, [ecx*4 + 0x41b7f0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4060ef
push 0
push 0x41b830
call ebx
jmp 0x405f2c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406e6d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004041b0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x406f08
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x41b650]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x406f08
cmp eax, 1
je 0x406f29
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x406f08
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x406ed5
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x406f04
xor eax, eax
inc eax
jmp 0x406f48
cmp edi, eax
jae 0x406f0c
xor eax, eax
jmp 0x406f48
cmp eax, esi
jae 0x406f13
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov eax, dword [0x41b650]
jmp 0x406f2c
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40152e
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
lea eax, [ebp - 0x124]
mov dword [esp + 8], 1
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x120]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x10c]
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [ebp - 0x124], 0x14
mov byte [ebp - 0x10c], 0
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
movzx eax, word [ebp - 0x120]
sub esp, 0x14
leave
sub eax, 0x41
ret

Function at 0x40158a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xa0
mov dword [ebp - 0x88], 0
call fcn.0040152e
mov dword [esp], 0x401664
mov dword [ebp - 0x8c], 0
mov ebx, eax
lea eax, [ebp - 0x8c]
mov dword [esp + 0xc], eax
mov eax, ebx
or eax, 0x40
mov dword [esp + 8], eax
mov eax, 0x4020c6
sub eax, 0x401664
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x40162d
mov dword [esp], ebx
lea esi, [ebp - 0x88]
call fcn.0040144c
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.004014ad
lea eax, [ebx + 0x1b600]
mov cl, bl
mov edx, 0x40300c
shl eax, cl
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov eax, edx
or eax, 1
imul ebx, eax
sub edx, ebx
mov dword [esp], edx
call fcn.00401dc9
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x4046d8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00406954
test esi, esi
jne 0x40470e
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.00406abc
jmp 0x40472c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040461c
mov edi, eax
test esi, esi
je 0x40472c
cmp dword [ebx], 0
je 0x40472c
dec esi
jmp 0x404715
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405aec
mov byte [esp], al
cmp byte [esp], 0
jne 0x405889
test edi, edi
je 0x405889
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4057c0
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40579b
cmp edi, 0xffffffff
je 0x40575f
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40575f
mov byte [esp], 0
jmp 0x405889
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40579b
test ebx, ebx
jne 0x405794
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402568
test eax, eax
jne 0x405794
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405889
pause
dec ebp
test ebp, ebp
jg 0x405744
cmp edi, 0xffffffff
je 0x4057c0
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4057be
mov byte [esp], 0
jmp 0x405889
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40570e
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402568
cmp ebx, eax
jne 0x4057c0
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004058fc
mov edx, eax
mov ebx, dword [0x4d38c8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405827
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405825
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405827
xor edi, edi
cmp byte [esp], 0
je 0x405850
mov ebx, dword [esi]
test bl, 1
jne 0x405869
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402568
cmp ebx, eax
jne 0x40582d
mov byte [esp + 1], 1
jmp 0x405869
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402568
cmp ebx, eax
jne 0x405850
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4057da
cmp byte [esp], 0
je 0x405889
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406604
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d3050], 0
je 0x406665
cmp word [0x4d332c], 0xd7b2
jne 0x40662d
cmp dword [0x4d3334], 0
jbe 0x40662d
mov eax, 0x4d3328
call dword [0x4d3344]
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 0x406690
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d0028], 0
jne 0x406681
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406810
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x4d002c], 0
je 0x40683b
mov edx, edi
mov eax, esi
call dword [0x4d002c]
mov ebx, eax
jmp 0x40684c
mov eax, 8
call fcn.00404350
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4d3051], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4067d8
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x406881
mov edx, 8
mov eax, ebx
call fcn.0040436c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x4089d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408b35
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406954
cmp si, word [0x4d07dc]
jb 0x408a68
cmp si, word [0x4d09dc]
ja 0x408a68
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408a68
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4d07dc]
jae 0x408a42
mov edi, ebx
dec edi
jmp 0x408a63
cmp si, word [ebx*8 + 0x4d07dc]
jbe 0x408a52
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408a63
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4d07e0]
call fcn.004088e0
jmp 0x408a68
cmp edi, dword [ebp - 8]
jae 0x408a2c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408b17
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408b17
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407358
push dword [ebp - 0x160]
push 0x408b50
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407358
push dword [ebp - 0x164]
push 0x408b60
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407358
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407590
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408b3c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004069b4
ret
Function at 0x408ce8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408deb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4d5b51
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4d5b6a]
jne 0x408d34
mov eax, esi
mov edx, 0x4d5b6c
mov ecx, 0x55
call fcn.00407358
push 0x4d5b51
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408dd5
push 0x4d5b51
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406954
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408da3
cmp byte [0x4d5b50], 0
je 0x408d68
mov edx, esi
mov eax, ebx
call fcn.00408bcc
jmp 0x408da3
mov edx, esi
mov eax, ebx
call fcn.004089d0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408da3
cmp dword [esi], 0
je 0x408d8c
mov eax, esi
mov edx, 0x408e04
call fcn.004074b0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004089d0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004074b0
push 0x4d5b51
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4d5b6a], bx
push 0xaa
mov eax, dword [esi]
call fcn.004072cc
push eax
push 0x4d5b6c
call sub.kernel32.dll_lstrcpynW
push 0x4d5b51
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408df2
lea eax, [ebp - 4]
call fcn.00406954
ret