joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f1cd
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x42d7e0
call fcn.004247ec
mov edi, 0x94
mov eax, edi
call fcn.00422990
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 [0x430fb4], ecx
mov eax, dword [esi + 4]
mov dword [0x430fc0], eax
mov edx, dword [esi + 8]
mov dword [0x430fc4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x430fb8], esi
cmp ecx, 2
je 0x41f22d
or esi, 0x8000
mov dword [0x430fb8], esi
shl eax, 8
add eax, edx
mov dword [0x430fbc], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x41f266
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f266
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41f27e
cmp eax, 0x20b
je 0x41f26b
mov dword [ebp - 0x1c], edi
jmp 0x41f292
cmp dword [ecx + 0x84], 0xe
jbe 0x41f266
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x41f28c
cmp dword [ecx + 0x74], 0xe
jbe 0x41f266
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.004231ec
pop ecx
test eax, eax
jne 0x41f2be
cmp dword [0x431044], 2
je 0x41f2ab
call fcn.00424458
push 0x1c
call fcn.004242e1
push 0xff
call fcn.0041cf7c
pop ecx
pop ecx
call fcn.00421a82
mov dword [ebp - 4], edi
call fcn.0042241c
test eax, eax
jge 0x41f2d7
push 0x1b
call fcn.0041f1a8
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4315a0], eax
call fcn.004246c9
mov dword [0x43103c], eax
call fcn.00401000
test eax, eax
jge 0x41f2fd
push 8
call fcn.0041f1a8
pop ecx
call fcn.00424602
test eax, eax
jge 0x41f30e
push 9
call fcn.0041f1a8
pop ecx
call fcn.0041cfac
mov dword [ebp - 0x20], eax
cmp eax, edi
je 0x41f321
push eax
call fcn.0041f1a8
pop ecx
mov eax, dword [0x430fd4]
mov dword [0x430fd8], eax
push eax
push dword [0x430fcc]
push dword [0x430fc8]
call fcn.0040dec0
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x1c], edi
jne 0x41f350
push esi
call fcn.0041d0d3
call fcn.0041d0f5
jmp 0x41f382
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.00424827
ret

Function at 0x41f7c0
Capabilities:
Enumerate files on windows

Disassembly:
cmp dword [esp + 4], 0
je 0x41f81e
cmp dword [0x431050], 0
jne 0x41f7e4
push 0x244
call fcn.0041e494
test eax, eax
pop ecx
mov dword [0x431050], eax
je 0x41f847
mov eax, dword [0x431054]
test eax, eax
je 0x41f7fb
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
and dword [0x431054], 0
push dword [0x431050]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [0x431054], eax
je 0x41f847
mov eax, dword [0x431050]
add eax, 0x2c
ret
push dword [0x431050]
push dword [0x431054]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41f815
push dword [0x431054]
call dword [sym.imp.KERNEL32.dll_FindClose]
and dword [0x431054], 0
xor eax, eax
ret
Function at 0x421ce4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x430370]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x43124c]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
jae 0x421e74
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x431260]
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 - 0x18], ebx
je 0x421e74
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
jne 0x421d43
xor eax, eax
jmp 0x421e88
test al, 0x20
je 0x421d54
push 2
push edi
push edi
push ecx
call fcn.00424d95
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x421e10
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x421e48
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
cmp ecx, dword [ebp + 0x10]
jae 0x421daa
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x421d9b
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x18]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x421d80
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x421dea
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x421df3
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x421d74
jmp 0x421df5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x421e6f
cmp dword [ebp + 8], edi
je 0x421e48
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x421e3d
mov dword [0x430fac], eax
jmp 0x421e7b
push edi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x421e32
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x421df5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x421df5
push dword [ebp + 8]
call fcn.004223bd
pop ecx
jmp 0x421e85
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x421e5d
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x421d3c
mov dword [0x430fa8], 0x1c
mov dword [0x430fac], edi
jmp 0x421e85
sub eax, dword [ebp - 0x14]
jmp 0x421e88
and dword [0x430fac], 0
mov dword [0x430fa8], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.0042297d
leave
ret
Function at 0x4221dd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x43124c]
push edi
jae 0x4223a4
mov eax, esi
sar eax, 5
lea ebx, [eax*4 + 0x431260]
mov eax, dword [ebx]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x4223a4
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
mov ecx, edi
je 0x422283
test dl, 2
jne 0x422283
test dl, 0x48
je 0x42224d
mov al, byte [eax + 5]
cmp al, 0xa
je 0x42224d
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebx]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x422296
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x42227e
mov dword [0x430fac], ecx
jmp 0x4223ab
cmp eax, 0x6d
jne 0x42228a
xor eax, eax
jmp 0x4223b8
push eax
call fcn.004223bd
pop ecx
jmp 0x4223b5
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
add dword [ebp - 0xc], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x42239f
test edx, edx
je 0x4222b9
cmp byte [edi], 0xa
jne 0x4222b9
or al, 4
jmp 0x4222bb
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x422399
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x422389
cmp al, 0xd
je 0x4222ef
mov byte [edi], al
inc edi
inc dword [ebp - 8]
jmp 0x42237b
dec ecx
cmp dword [ebp - 8], ecx
jae 0x422309
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x422304
add dword [ebp - 8], 2
jmp 0x42235d
mov dword [ebp - 8], eax
jmp 0x422377
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x422331
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x422377
cmp dword [ebp - 0x10], 0
je 0x422377
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x422352
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x42235d
mov byte [edi], 0xd
mov ecx, dword [ebx]
mov byte [ecx + esi + 5], al
jmp 0x42237a
cmp edi, dword [ebp + 0xc]
jne 0x422362
cmp byte [ebp - 1], 0xa
jne 0x422362
mov byte [edi], 0xa
jmp 0x42237a
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004228c0
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x42237b
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x4222d3
jmp 0x422399
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x422399
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
jmp 0x4223b8
and dword [0x430fac], 0
mov dword [0x430fa8], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42413b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42415b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004223bd
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x42417c
test byte [esp + 8], 2
je 0x42417c
mov dword [0x430fa8], 0xd
mov dword [0x430fac], 5
jmp 0x424157
xor eax, eax
ret

Function at 0x4242e1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x430370]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x430460]
je 0x42430e
inc eax
cmp eax, 0x12
jb 0x4242ff
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x430460]
jne 0x424442
mov eax, dword [0x431044]
cmp eax, 1
je 0x42441d
cmp eax, edx
jne 0x42433e
cmp dword [0x4300d4], 1
je 0x42441d
cmp ecx, 0xfc
je 0x424442
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x424377
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00422fc0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00421910
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4243b9
lea eax, [ebp - 0x10c]
push eax
call fcn.00421910
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x42dfc0
push edi
call fcn.0041c6c0
add esp, 0x10
push edi
call fcn.00421910
push dword [esi + 0x430464]
mov ebx, eax
call fcn.00421910
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00422990
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00422fc0
push edi
push ebx
call fcn.00422fd0
push 0x42dfa0
push ebx
call fcn.00422fd0
push dword [esi + 0x430464]
push ebx
call fcn.00422fd0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00426706
add esp, 0x2c
jmp 0x424442
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x430464]
push dword [esi]
call fcn.00421910
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 - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0042297d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424bbc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00422990
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x424c51
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x430fb4]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x424c51
cmp eax, 1
je 0x424c69
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x424c51
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x424c26
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x424c4d
xor eax, eax
inc eax
jmp 0x424c85
cmp esi, ebx
jae 0x424c55
xor eax, eax
jmp 0x424c85
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x430fb4]
jmp 0x424c6b
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42650e
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x426579
push 0x3d
push dword [ebp + 8]
call fcn.00427247
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x426579
cmp dword [ebp + 8], esi
je 0x426579
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x430fd4]
cmp eax, dword [0x430fd8]
jne 0x42655f
mov edi, eax
call fcn.004264ad
mov dword [0x430fd4], eax
cmp eax, ebx
jne 0x4265b8
cmp dword [ebp + 0xc], ebx
je 0x426581
cmp dword [0x430fdc], ebx
je 0x426581
call fcn.00423167
test eax, eax
je 0x4265b8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x4266bc
push 4
call fcn.0041e494
cmp eax, ebx
pop ecx
mov dword [0x430fd4], eax
je 0x426579
mov dword [eax], ebx
cmp dword [0x430fdc], ebx
jne 0x4265b8
push 4
call fcn.0041e494
cmp eax, ebx
pop ecx
mov dword [0x430fdc], eax
je 0x426579
mov dword [eax], ebx
mov ebx, dword [0x430fd4]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.00426460
mov edi, eax
test edi, edi
pop ecx
jl 0x426611
cmp dword [ebx], 0
je 0x426611
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0041e683
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4265f9
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x426647
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x4265f0
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.0041e521
test eax, eax
pop ecx
pop ecx
je 0x426647
jmp 0x426642
cmp dword [ebp - 4], 0
jne 0x4266b5
test edi, edi
jge 0x426621
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.0041e521
test eax, eax
pop ecx
pop ecx
je 0x426579
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x430fd4], eax
cmp dword [ebp + 0xc], 0
je 0x42669e
push dword [ebp + 8]
call fcn.00421910
inc eax
inc eax
push eax
call fcn.0041e494
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x42669e
push dword [ebp + 8]
push esi
call fcn.00422fc0
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x426697
or dword [ebp - 8], 0xffffffff
push esi
call fcn.0041e683
pop ecx
cmp dword [ebp - 4], 0
je 0x4266ad
push dword [ebp + 8]
call fcn.0041e683
pop ecx
mov eax, dword [ebp - 8]
jmp 0x42657c
push esi
call fcn.0041e683
pop ecx
xor eax, eax
jmp 0x42657c
Function at 0x426706
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4311bc], ebx
push esi
push edi
jne 0x426786
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4267c1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4311bc], eax
je 0x4267c1
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4311c0], eax
call esi
cmp dword [0x430fb4], 2
mov dword [0x4311c4], eax
jne 0x426786
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4311cc], eax
je 0x426786
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4311c8], eax
mov eax, dword [0x4311c8]
test eax, eax
je 0x4267cb
call eax
test eax, eax
je 0x4267b2
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4311cc]
test eax, eax
je 0x4267b2
test byte [ebp - 8], 1
jne 0x4267cb
cmp dword [0x430fc0], 4
jb 0x4267c5
or byte [ebp + 0x12], 0x20
jmp 0x4267ea
xor eax, eax
jmp 0x4267fa
or byte [ebp + 0x12], 4
jmp 0x4267ea
mov eax, dword [0x4311c0]
test eax, eax
je 0x4267ea
call eax
mov ebx, eax
test ebx, ebx
je 0x4267ea
mov eax, dword [0x4311c4]
test eax, eax
je 0x4267ea
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4311bc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1005f71
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
clc
div ecx
test edx, edx
je 0x1005f7f
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.01005c91
dec esi
imul edx, dword [ebx], 0xc0458d2a
push eax
call fcn.01005ca1
push eax
push esi
push dword [ebp + 8]
call fcn.01005c56
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.01005c91
invalid
Function at 0x4052c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x405319
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405319
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40530a
cmp esi, edx
jae 0x405319
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4052f8
cmp esi, edx
jae 0x405319
cmp word [esi], 0
je 0x405319
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x406000
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a958
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4961ec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0042ec54
mov edi, eax
add esp, 4
test edi, edi
je 0x4060a3
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00419547
add esp, 4
mov dword [edi + 4], eax
jmp 0x4060a5
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.00402a90
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
movzx edi, ax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x406105
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x406105
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov word [esi + 0x40], di
jne 0x406129
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x40614b
cmp byte [ebp + 0xc], 0
je 0x406138
push esi
call fcn.00419ae1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x406157
mov esi, str.ios_base::badbit_set
jmp 0x406167
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.00406190
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.004034a0
push 0x48e9e0
lea eax, [ebp - 0x30]
push eax
call fcn.004357f3
int3
Function at 0x4071c0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46aa70
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4961ec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x54
call fcn.0042ec54
mov ecx, dword [ebp + 8]
mov esi, eax
lea edx, [esi + 4]
mov dword [ebp - 0x14], esi
add esp, 4
mov dword [ebp - 4], 0
lea edi, [edx + 4]
mov dword [ebp - 0x18], edx
mov dword [esi], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__P8InterfaceBridge__AEXV__basic_string__WU__char_traits__W_std__V__allocator__W_2__2_00_ZPAV3_AAV42_AAV42_AAV42__std__X__V_std__.0
lea ebx, [ecx + 4]
mov eax, dword [ecx]
mov ecx, edi
push ebx
mov dword [edx], eax
mov dword [ebp + 8], edi
call fcn.00407bd0
lea eax, [ebx + 0x18]
mov byte [ebp - 4], 1
lea ecx, [edi + 0x18]
push eax
mov dword [ebp - 0x18], ecx
call fcn.00407bd0
lea eax, [ebx + 0x30]
mov byte [ebp - 4], 2
lea ecx, [edi + 0x30]
push eax
mov dword [ebp - 0x18], ecx
call fcn.00407bd0
mov eax, dword [ebx + 0x48]
mov dword [edi + 0x48], eax
mov eax, esi
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 0x40af40
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b0f0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4961ec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ecx + 4]
lea eax, [ecx + 8]
sub esp, 0x18
mov dword [ebp - 0x10], eax
mov ecx, esp
mov dword [ebp - 0x14], esp
lea esi, [eax + 0x18]
lea edi, [eax + 0x30]
push eax
call fcn.00407bd0
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ebp - 0x18], esp
push esi
call fcn.00407bd0
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
push edi
call fcn.00407bd0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ecx + 0x48]
call 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