joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410180
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c8d5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x44b034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], 0
call fcn.004100c0
mov dword [ebp - 4], 0
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], esi
cmp edi, esi
je 0x41029f
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
nop dword [eax]
mov eax, dword [0x44fdb8]
cmp eax, dword [ecx + 4]
jle 0x410276
push 0x44fdb8
call fcn.0041466e
add esp, 4
cmp dword [0x44fdb8], 0xffffffff
jne 0x410276
mov dword [ebp - 4], 1
mov eax, dword [0x44fdb4]
test eax, eax
jne 0x410260
push 0x43330c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x410254
push str.SciterAPI
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41024d
call eax
mov dword [0x44fdb4], eax
jmp 0x410259
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x44fdb4]
test eax, eax
je 0x410298
mov esi, dword [ebp - 0x18]
push 0x44fdb8
mov dword [0x44fdbc], eax
mov byte [ebp - 4], 0
call fcn.0041462f
add esp, 4
lea eax, [edi + 0x10]
push eax
mov eax, dword [0x44fdbc]
push edi
push ebx
mov eax, dword [eax + 0x258]
call eax
add edi, 0x20
cmp edi, esi
je 0x41029f
mov ecx, dword [ebp - 0x10]
jmp 0x4101f0
push 0xffffffffffffffff
call fcn.00419bb0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410e50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x44b034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
mov dword [ebp - 0x214], eax
push edi
mov edi, ecx
test esi, esi
je 0x410f7d
cmp word [esi], 0
je 0x410f7d
push 4
push 0x433848
push esi
call fcn.004196e7
add esp, 0xc
test eax, eax
jne 0x410e9f
add esi, 8
push 2
push 0x433854
push esi
call fcn.004196e7
add esp, 0xc
test eax, eax
jne 0x410eb6
add esi, 4
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00417840
push 0x104
push esi
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.00419ebd
lea eax, [ebp - 0x210]
push 0x2e
push eax
call fcn.00416223
mov esi, eax
add esp, 0x24
test esi, esi
je 0x410f28
xor eax, eax
mov word [esi], ax
add esi, 2
je 0x410f28
push str.HTML
push esi
call fcn.00419741
add esp, 8
test eax, eax
je 0x410f28
push 0x433868
push esi
call fcn.00419741
add esp, 8
test eax, eax
je 0x410f28
push esi
jmp 0x410f2a
push 0x17
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x410f7d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x410f7d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebx], eax
test eax, eax
je 0x410f7d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x214]
test eax, eax
pop edi
pop esi
pop ebx
mov dword [ecx], eax
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414033
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414033
mov esp, ebp
pop ebp
ret
Function at 0x4134c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x44b034]
xor eax, esp
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
test edi, edi
je 0x4136bf
test esi, esi
je 0x4136bf
mov edx, dword [0x44f280]
test edx, edx
je 0x413537
push dword [esi + 0x1c]
push eax
push dword [esi + 0x18]
movzx eax, word [esi + 6]
push dword [esi + 0x14]
push dword [esi + 0x10]
push eax
movzx eax, word [esi + 4]
push eax
push str.CUITcpHelper::TcpDispose_1__0x_x____lu____lu____lu____lu____p____lu_
push 0x446238
push 0xffffffffffffffff
push 0x44f1f4
call fcn.004063c0
mov edx, dword [0x44f280]
add esp, 0x2c
movups xmm1, xmmword [esi]
mov ecx, dword [edi + 0xb8]
movups xmm0, xmmword [esi + 0x10]
mov dword [esp + 0x1c], ecx
movd eax, xmm1
movups xmmword [esp + 0x30], xmm0
shr eax, 0x10
mov edi, eax
not edi
and edi, 1
mov dword [esp + 0x4c], edi
test edx, edx
je 0x41358c
and eax, 1
push eax
push edi
push ecx
push str.CUITcpHelper::TcpDispose_2___d____d____d_
push 0x446238
push 0xffffffffffffffff
push 0x44f1f4
call fcn.004063c0
mov edi, dword [esp + 0x68]
add esp, 0x1c
mov edx, dword [0x44f280]
movzx eax, word [esi + 6]
xorps xmm0, xmm0
movzx ecx, word [esi + 4]
movaps xmmword [esp + 0x50], xmm0
mov word [esp + 0x56], ax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x5c], eax
mov eax, 0xf0e9
movaps xmmword [esp + 0x60], xmm0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0xf004
mov dword [esp + 0x6c], 0
mov word [esp + 0x54], cx
mov dword [esp + 0x50], 0x4d4f
cmp cx, ax
je 0x4135ee
test edi, edi
mov edi, dword [esp + 0x14]
je 0x413645
mov dword [esp + 0x48], 0xf001
jmp 0x413645
test edx, edx
je 0x413617
mov eax, dword [esp + 0x18]
push dword [eax + 8]
movzx eax, word [esi + 6]
push eax
push str.CUITcpHelper::TcpDispose__OT_A_UIHELPER_NOTIFY____d____p_
push 0x446238
push 0xffffffffffffffff
push 0x44f1f4
call fcn.004063c0
add esp, 0x18
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x413645
lea edx, [esp + 0x4c]
push edx
lea edx, [esp + 0x4c]
push edx
lea edx, [esp + 0x4c]
push edx
lea edx, [esp + 0x5c]
push edx
push edi
push esi
push dword [esp + 0x34]
push dword [eax + 0xc]
call ecx
push 0x20
push esi
call fcn.004142ac
add esp, 8
test edi, edi
je 0x41365f
push 0
push edi
call fcn.004142ac
add esp, 8
mov eax, dword [esp + 0x48]
test eax, eax
je 0x413679
or word [esp + 0x52], 2
mov dword [esp + 0x58], eax
mov dword [esp + 0x68], 0
cmp dword [esp + 0x4c], 0
je 0x413694
push dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x54]
call fcn.0040c810
add esp, 4
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4136a7
push 0
push eax
call fcn.004142ac
add esp, 8
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00414033
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x7c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00414033
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4025c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403b08
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40273f
cmp byte [ebx + 0x3d], 0
je 0x40273f
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x402614
xor al, al
jmp 0x402741
sub esp, 8
lea ecx, [ebp - 0x28]
call fcn.004017a0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
lea edi, [ebx + 0x40]
mov eax, dword [ebp - 0x28]
nop
cmp esi, 0x10
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmovae ecx, eax
cmovae edx, eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
push eax
push ecx
mov ecx, dword [ebx + 0x38]
push edi
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x402674
sub eax, 1
je 0x402678
mov esi, dword [ebp - 0x14]
sub eax, 2
mov eax, dword [ebp - 0x28]
je 0x402709
xor bl, bl
jmp 0x40270b
mov byte [ebx + 0x3d], 0
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp esi, 0x10
mov edi, dword [ebp - 0x2c]
cmovae ecx, eax
sub edi, ecx
je 0x4026b1
push dword [ebx + 0x4c]
cmp esi, 0x10
lea ecx, [ebp - 0x28]
push edi
cmovae ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov esi, dword [ebp - 0x14]
add esp, 0x10
cmp edi, eax
mov eax, dword [ebp - 0x28]
jne 0x40266d
cmp byte [ebx + 0x3d], 0
je 0x402709
test edi, edi
lea edi, [ebx + 0x40]
jne 0x402630
mov edx, dword [ebp - 0x18]
mov ecx, esi
sub ecx, edx
cmp ecx, 8
jb 0x4026ef
lea ecx, [edx + 8]
cmp esi, 0x10
mov dword [ebp - 0x18], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x28]
cmovae ecx, eax
movq qword [ecx + edx], xmm0
mov byte [ecx + edx + 8], 0
jmp 0x402626
push 0
push 8
mov byte [ebp - 0x30], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x30]
push 8
call fcn.004029b0
jmp 0x402626
mov bl, 1
cmp esi, 0x10
jb 0x40273b
inc esi
mov ecx, eax
cmp esi, 0x1000
jb 0x402731
mov eax, dword [eax - 4]
add esi, 0x23
sub ecx, eax
add ecx, 0xfffffffc
cmp ecx, 0x1f
jbe 0x402731
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push esi
push eax
call fcn.00402cbd
add esp, 8
mov al, bl
jmp 0x402741
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00402c7c
mov esp, ebp
pop ebp
ret
Function at 0x472ce0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4b000]
mov dword [edi + 0x60948], 0xec9f177f
push edi
or ebp, 0xffffffff
jmp 0x472d0a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x472d11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x472d00
mov eax, 1
add ebx, ebx
jne 0x472d23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x472d34
jne 0x472d53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x472d53
dec eax
add ebx, ebx
jne 0x472d40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x472d18
add ebx, ebx
jne 0x472d4f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x472da5
xor ecx, ecx
sub eax, 3
jb 0x472d6b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x472dda
sar eax, 1
mov ebp, eax
jmp 0x472d76
add ebx, ebx
jne 0x472d76
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x472d44
inc ecx
add ebx, ebx
jne 0x472d84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x472d44
add ebx, ebx
jne 0x472d91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x472d86
jne 0x472da2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x472d86
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x472dc4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x472db6
jmp 0x472d06
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x472dc4
add edi, ecx
jmp 0x472d06
pop esi
mov edi, esi
mov ecx, 0x1738
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x472de2
cmp byte [edi], 0x11
jne 0x472de2
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 0x472de7
lea edi, [esi + 0x6f000]
mov eax, dword [edi]
or eax, eax
je 0x472e56
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x732f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x73358]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x472e14
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7335c]
or eax, eax
je 0x472e50
mov dword [ebx], eax
add ebx, 4
jmp 0x472e31
call dword [esi + 0x7336c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x472e87
cmp al, 0xef
ja 0x472e7a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x472e5c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x472e69
mov ebp, dword [esi + 0x73360]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x472ebb
sub esp, 0xffffff80
jmp 0x42f640
Function at 0x10174760
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [fcn.10174760]
mov dword [ebp - 8], eax
jmp 0x101747aa
mov eax, dword [ebp - 8]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 8], eax
mov dword [0x1018b938], 0x53a
jmp 0x1017478f
jmp 0x10174771
mov al, 1
test al, 1
jne 0x101747aa
jmp 0x10174797
mov dword [0x1018b934], 0x154a
mov dword [ebp - 4], 0
jmp 0x101747cf
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x10174771
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 8]
cmp dword [ecx + eax], 0x4550
jne 0x1017478d
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add esp, 8
pop ebp
ret

Function at 0x10175180
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
mov dword [0x1018b938], 0x18d5
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [0x1018b938], 0x9b5
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [0x1018b934], 0x1044
mov dword [ebp - 0x10], 0
jmp 0x10175216
jmp 0x10175211
jmp 0x101752ff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dx, word [ecx + eax*2 - 0x1a]
mov word [ebp - 0x12], dx
mov ax, word [ebp - 0x12]
movzx ecx, ax
cmp ecx, 0x6c
je 0x10175249
jmp 0x10175308
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x12]
cmp eax, 0x64
je 0x101752a5
jmp 0x10175301
jmp 0x10175306
cmp dword [ebp - 0x10], 0x104
jge 0x101751d3
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2]
cmp eax, 0
jne 0x10175232
jmp 0x101751d3
mov dword [0x1018b934], 0xf03
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x10175216
mov eax, dword [0x1018b938]
sub eax, 0x327
mov dword [0x1018b938], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x18]
cmp eax, 0x6f
jne 0x10175306
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x16]
cmp eax, 0x61
jne 0x10175211
mov dword [0x1018b934], 0x1c42
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x14]
cmp eax, 0x64
je 0x101751f6
jmp 0x101751cc
mov dword [0x1018b934], 0x106b
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2 - 0x10]
cmp eax, 0x6c
jne 0x101752ff
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
shl ecx, 1
add eax, ecx
add eax, 0xfffffff2
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax]
cmp ecx, 0x6c
jne 0x101751ce
mov dword [0x1018b938], 0x196d
mov dword [ebp - 4], 1
jmp 0x10175319
jmp 0x10175301
jmp 0x101751cc
jmp 0x10175308
mov dword [0x1018b934], 0x17ef
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add esp, 0x1c
pop ebp
ret
Function at 0x421ab0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x421add
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x421add
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x404724
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.00407198
test esi, esi
jne 0x40475a
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.00407300
jmp 0x404778
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404668
mov edi, eax
test esi, esi
je 0x404778
cmp dword [ebx], 0
je 0x404778
dec esi
jmp 0x404761
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x404d7c
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x404d92
sub ecx, 2
jne 0x404db4
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x404dbb
cmp edx, dword [ebx + 8]
je 0x404dc5
mov eax, 0x64
jmp 0x404dc0
mov eax, 0x67
jmp 0x404dc0
call sub.kernel32.dll_GetLastError
call fcn.0040452c
pop ebx
ret

Function at 0x4050a4
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x4050d7
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_WriteFile
pop edx
dec eax
jne 0x4050de
cmp edx, dword [ebx + 8]
je 0x4050e8
mov eax, 0x65
jmp 0x4050e3
mov eax, 5
jmp 0x4050e3
call sub.kernel32.dll_GetLastError
call fcn.0040452c
mov eax, ebx
pop ebx
ret
Function at 0x405f44
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.00406330
mov byte [esp], al
cmp byte [esp], 0
jne 0x4060cd
test edi, edi
je 0x4060cd
mov byte [esp + 1], 0
test ebp, ebp
jle 0x406004
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405fdf
cmp edi, 0xffffffff
je 0x405fa3
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405fa3
mov byte [esp], 0
jmp 0x4060cd
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405fdf
test ebx, ebx
jne 0x405fd8
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402568
test eax, eax
jne 0x405fd8
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4060cd
pause
dec ebp
test ebp, ebp
jg 0x405f88
cmp edi, 0xffffffff
je 0x406004
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406002
mov byte [esp], 0
jmp 0x4060cd
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405f52
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402568
cmp ebx, eax
jne 0x406004
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00406140
mov edx, eax
mov ebx, dword [0x4bc8c8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40606b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x406069
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40606b
xor edi, edi
cmp byte [esp], 0
je 0x406094
mov ebx, dword [esi]
test bl, 1
jne 0x4060ad
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402568
cmp ebx, eax
jne 0x406071
mov byte [esp + 1], 1
jmp 0x4060ad
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402568
cmp ebx, eax
jne 0x406094
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40601e
cmp byte [esp], 0
je 0x4060cd
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 0x406e48
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4bc050], 0
je 0x406ea9
cmp word [0x4bc32c], 0xd7b2
jne 0x406e71
cmp dword [0x4bc334], 0
jbe 0x406e71
mov eax, 0x4bc328
call dword [0x4bc344]
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 0x406ed4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b9028], 0
jne 0x406ec5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x407054
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 [0x4b902c], 0
je 0x40707f
mov edx, edi
mov eax, esi
call dword [0x4b902c]
mov ebx, eax
jmp 0x407090
mov eax, 8
call fcn.00404390
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4bc051], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40701c
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 0x4070c5
mov edx, 8
mov eax, ebx
call fcn.004043ac
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x4091ec
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 0x409351
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407198
cmp si, word [0x4b97fc]
jb 0x409284
cmp si, word [0x4b99fc]
ja 0x409284
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x409284
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4b97fc]
jae 0x40925e
mov edi, ebx
dec edi
jmp 0x40927f
cmp si, word [ebx*8 + 0x4b97fc]
jbe 0x40926e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40927f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4b9800]
call fcn.004090fc
jmp 0x409284
cmp edi, dword [ebp - 8]
jae 0x409248
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x409333
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409333
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.00407b9c
push dword [ebp - 0x160]
push 0x40936c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407b9c
push dword [ebp - 0x164]
push 0x40937c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407b9c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407dd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409358
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004071f8
ret
Function at 0x409504
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 0x409607
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4beb51
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4beb6a]
jne 0x409550
mov eax, esi
mov edx, 0x4beb6c
mov ecx, 0x55
call fcn.00407b9c
push 0x4beb51
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4095f1
push 0x4beb51
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00407198
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4095bf
cmp byte [0x4beb50], 0
je 0x409584
mov edx, esi
mov eax, ebx
call fcn.004093e8
jmp 0x4095bf
mov edx, esi
mov eax, ebx
call fcn.004091ec
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4095bf
cmp dword [esi], 0
je 0x4095a8
mov eax, esi
mov edx, 0x409620
call fcn.00407cf4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004091ec
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407cf4
push 0x4beb51
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4beb6a], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407b10
push eax
push 0x4beb6c
call sub.kernel32.dll_lstrcpynW
push 0x4beb51
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40960e
lea eax, [ebp - 4]
call fcn.00407198
ret