joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a3d0
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [0x455690]
mov eax, 0x709ad4e5
imul edi
sar edx, 8
mov ecx, dword [0x4556a8]
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0xc2c05bdf
imul dword [0x45569c]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebp, eax
mov eax, dword [0x45568c]
imul eax, eax, 0x217
mov ebx, ecx
imul ebx, ebx, 0x12b
add eax, ebx
mov dword [esp + 0x10], eax
mov eax, 0xe070381d
imul dword [0x455694]
add edx, dword [0x455694]
mov eax, dword [esp + 0x10]
sub ebp, esi
sar edx, 7
mov esi, edx
shr esi, 0x1f
add eax, ebp
add esi, edx
add esi, eax
cmp dword [esp + 0x18], 0x132b600
mov dword [str._r_____r____], esi
je 0x41a476
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x64
push 0x3e8
call edi
dec esi
jne 0x41a464
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [0x4556a0]
mov edx, dword [0x4556a4]
imul eax, eax, 0x217
mov dword [esp + 0x18], eax
mov eax, 0x42776e9b
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebp, eax
mov eax, 0x3949660b
imul dword [0x45569c]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, edi
imul edx, edx, 0xb8
sub eax, ebp
mov ebp, dword [esp + 0x18]
sub eax, edx
sub eax, ebp
add eax, esi
mov esi, dword [0x455688]
add esi, eax
mov eax, dword [0x56977c]
mov edx, eax
inc eax
test edx, edx
mov dword [0x455688], esi
mov dword [0x56977c], eax
jle 0x41a536
mov ecx, dword [0x45568c]
mov eax, 0xc3a13de7
imul ecx
add edx, ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0xe070381d
imul edi
add edx, edi
sar edx, 7
add ecx, edx
mov eax, edx
shr eax, 0x1f
add eax, ecx
mov ecx, dword [0x455694]
sub eax, ebx
pop edi
sub eax, ecx
lea ecx, [eax + ebp + 0x1d3]
pop esi
pop ebp
mov dword [0x45568c], ecx
mov eax, 1
pop ebx
pop ecx
ret
mov eax, 0x709ad4e5
imul ecx, ecx, 0x246
imul esi, esi, 0x1ed
imul dword [0x45569c]
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, 0x8c55841d
imul edi
add edx, edi
mov edi, dword [0x4556a0]
sar edx, 8
mov eax, edx
add ecx, esi
shr eax, 0x1f
add eax, edx
sub ecx, eax
sub ecx, edi
sub ecx, 0xb8
mov dword [0x455690], ecx
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0x419eb0
push 0
push 0
mov dword [0x5694a8], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [0x455698]
mov edx, dword [0x45568c]
imul esi, esi, 0x1ed
mov ecx, dword [0x45569c]
imul edx, edx, 0x217
add esi, edx
mov eax, 0xc3a13de7
imul ecx
add edx, ecx
mov ecx, dword [str._r_____r____]
sar edx, 8
imul ecx, ecx, 0x92
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
add esi, dword [0x4556a4]
pop edi
lea edx, [ecx + esi - 0xb8]
pop esi
pop ebp
mov dword [0x455694], edx
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x41ef40
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, dword [0x4556a0]
push esi
imul ebx, ebx, 0x14f
mov esi, dword [0x455694]
mov eax, 0xe070381d
imul esi
add edx, esi
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push edi
mov edi, dword [0x4556a8]
mov eax, 0x3d3fa421
imul edi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x455698]
sub ebx, eax
mov eax, 0x6d978b8f
imul edx
sar edx, 7
add ebx, edx
mov eax, edx
mov edx, edi
imul edx, edx, 0xb8
shr eax, 0x1f
add eax, ebx
sub eax, edx
sub eax, ecx
mov dword [0x455698], eax
cmp dword [esp + 0x10], 0x132b600
mov eax, 0x709ad4e5
je 0x41f020
mov edx, dword [0x455690]
imul edi, edi, 0x12b
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45569c]
mov esi, eax
mov eax, 0xc2c05bdf
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45568c]
imul edx, edx, 0x217
sub eax, esi
add edx, ecx
add edx, eax
add edi, edx
mov dword [str._r_____r____], edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x64
push 0x3e8
call edi
dec esi
jne 0x41f010
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov edi, dword [0x45568c]
imul esi
imul esi, esi, 0xb8
mov eax, dword [0x455690]
imul eax, eax, 0x217
mov ebx, edi
imul ebx, ebx, 0x23c
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ebx, edx
add ecx, ebx
add ecx, eax
mov eax, 0x42776e9b
imul edi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, dword [0x56949c]
add ecx, esi
test eax, eax
mov dword [0x45569c], ecx
jne 0x41f151
mov edx, dword [0x4556a4]
mov eax, 0x709ad4e5
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0xc2c05bdf
imul ecx
imul ecx, ecx, 0x92
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x455688]
imul edx, edx, 0x14f
mov ebx, eax
sub ebx, esi
add ebx, edx
mov eax, 0xe070381d
imul edi
add ebx, ecx
lea ecx, [esp + 0x10]
push ecx
add edx, edi
push 0
sar edx, 7
push 0
mov eax, edx
shr eax, 0x1f
push 0x41d990
add eax, edx
push 0
sub ebx, eax
push 0
mov dword [0x4556a4], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [0x45568c]
mov edx, dword [0x455698]
imul esi, esi, 0x217
mov ecx, dword [0x45569c]
imul edx, edx, 0x1ed
mov dword [0x56948c], eax
add esi, edx
mov eax, 0xc3a13de7
imul ecx
add edx, ecx
mov ecx, dword [str._r_____r____]
sar edx, 8
imul ecx, ecx, 0x92
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
add esi, dword [0x4556a4]
lea edx, [ecx + esi - 0xb8]
mov dword [0x56949c], 1
mov dword [0x455694], edx
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x4203c8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x42041b
call fcn.00440f75
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x42041b
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x420411
xor eax, eax
jmp 0x420534
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x42044b
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x42044b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x420531
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x420478
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00420b6c
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x420531
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4204c1
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x4204c1
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x4204bb
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00420b6c
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x420521
and dword [ebp + 0xc], 0
jmp 0x420521
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x420521
push 0xc
call fcn.0043ae77
mov esi, eax
test esi, esi
pop ecx
je 0x420503
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x420505
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x42051c
push dword [ebp - 8]
call fcn.004368ca
jmp 0x420521
call fcn.004368a1
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x420486
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42971d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42973d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042b9ec
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x429760
test byte [esp + 8], 2
je 0x429760
call fcn.0042b9da
mov dword [eax], 0xd
call fcn.0042b9e3
mov dword [eax], 5
jmp 0x429739
xor eax, eax
ret
Function at 0x429827
Capabilities:
Terminate process

Disassembly:
push 8
push 0x449528
call fcn.0042b858
push 8
call fcn.0042d0f0
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x56b7ac], esi
jne 0x42985b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x56b7a8], esi
mov al, byte [ebp + 0x10]
mov byte [0x56b7a4], al
cmp dword [ebp + 0xc], edi
jne 0x4298a5
cmp dword [0x56d08c], edi
je 0x429895
mov eax, dword [0x56d088]
sub eax, 4
mov dword [0x56d088], eax
cmp eax, dword [0x56d08c]
jb 0x429895
mov eax, dword [eax]
cmp eax, edi
je 0x429876
call eax
jmp 0x429876
push 0x4520cc
mov eax, 0x4520c4
call fcn.004297a5
pop ecx
push 0x4520d8
mov eax, 0x4520d0
call fcn.004297a5
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4298d6
cmp dword [ebp + 0x10], edi
jne 0x4298e4
mov dword [0x56b7ac], esi
push dword [ebp + 8]
call fcn.00429763
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4298e3
push 8
call fcn.0042d03b
pop ecx
ret
call fcn.0042b893
ret

Function at 0x429bb7
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.00429a50
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x429c52
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 [0x56b76c]
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 0x429c52
cmp eax, 1
je 0x429c73
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 0x429c52
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x429c1f
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x429c4e
xor eax, eax
inc eax
jmp 0x429c92
cmp edi, eax
jae 0x429c56
xor eax, eax
jmp 0x429c92
cmp eax, esi
jae 0x429c5d
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 [0x56b76c]
jmp 0x429c76
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 0x42a612
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4495e0
call fcn.0042b858
mov edi, 0x94
mov eax, edi
call fcn.00429a50
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 [0x56b76c], ecx
mov eax, dword [esi + 4]
mov dword [0x56b778], eax
mov edx, dword [esi + 8]
mov dword [0x56b77c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x56b770], esi
cmp ecx, 2
je 0x42a672
or esi, 0x8000
mov dword [0x56b770], esi
shl eax, 8
add eax, edx
mov dword [0x56b774], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x42a6ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42a6ad
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x42a6c5
cmp eax, 0x20b
je 0x42a6b2
mov dword [ebp - 0x1c], esi
jmp 0x42a6d9
cmp dword [ecx + 0x84], 0xe
jbe 0x42a6ad
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x42a6d3
cmp dword [ecx + 0x74], 0xe
jbe 0x42a6ad
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0042dbd2
pop ecx
test eax, eax
jne 0x42a6ed
push 0x1c
call fcn.0042a5ee
pop ecx
call fcn.0042ca0d
test eax, eax
jne 0x42a6fe
push 0x10
call fcn.0042a5ee
pop ecx
call fcn.0042d121
mov dword [ebp - 4], esi
call fcn.0043079f
test eax, eax
jge 0x42a717
push 0x1b
call fcn.0042a5c9
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x56d080], eax
call fcn.0043067d
mov dword [0x56b7b8], eax
call fcn.004305db
test eax, eax
jge 0x42a73d
push 8
call fcn.0042a5c9
pop ecx
call fcn.004303a8
test eax, eax
jge 0x42a74e
push 9
call fcn.0042a5c9
pop ecx
push 1
call fcn.004297bd
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x42a764
push eax
call fcn.0042a5c9
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0043034b
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x42a785
movzx eax, word [ebp - 0x40]
jmp 0x42a788
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00435f6e
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x42a7a6
push edi
call fcn.004298ea
call fcn.0042990c
jmp 0x42a7d8
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0042b893
ret
Function at 0x42e761
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 0x42e78f
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 0x42e796
cmp ebx, dword [eax + 4]
jae 0x42e796
xor eax, eax
jmp 0x42e986
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x42e7a7
xor eax, eax
inc eax
jmp 0x42e985
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x42e7bd
cmp ecx, edx
jae 0x42e902
cmp dword [eax + 4], 0
je 0x42e7c6
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x42e7ae
cmp dword [ebp + 8], 0
je 0x42e7e8
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x42e902
cmp eax, esi
jae 0x42e902
mov eax, dword [0x56b948]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x42e80d
cmp dword [esi*4 + 0x56b950], edi
je 0x42e906
inc esi
cmp esi, eax
jl 0x42e7fb
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42e982
cmp dword [ebp - 8], 0x1000000
jne 0x42e982
test byte [ebp - 0xc], 0xcc
je 0x42e88b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x42e982
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x42e982
cmp word [eax + 0x18], 0x10b
jne 0x42e982
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x42e982
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x42e88b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x42e88b
test byte [ecx + 0x27], 0x80
jne 0x42e902
push 1
push 0x56b990
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x42e79f
mov ecx, dword [0x56b948]
test ecx, ecx
mov edx, ecx
jle 0x42e8bf
lea eax, [ecx*4 + 0x56b94c]
cmp dword [eax], edi
je 0x42e8bf
dec edx
sub eax, 4
test edx, edx
jg 0x42e8b3
test edx, edx
jne 0x42e8f0
push 0xf
pop ebx
cmp ecx, ebx
jg 0x42e8cc
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x42e8e4
lea eax, [edx*4 + 0x56b950]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x42e8d2
cmp ecx, 0x10
jge 0x42e8f0
inc ecx
mov dword [0x56b948], ecx
push 0
push 0x56b990
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x42e79f
xor eax, eax
jmp 0x42e985
test esi, esi
jle 0x42e79f
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x56b990
call ebx
test eax, eax
jne 0x42e79f
cmp dword [esi*4 + 0x56b950], edi
je 0x42e95c
mov eax, dword [0x56b948]
lea esi, [eax - 1]
test esi, esi
jl 0x42e94a
cmp dword [esi*4 + 0x56b950], edi
je 0x42e946
dec esi
jns 0x42e93a
test esi, esi
jge 0x42e95a
cmp eax, 0x10
jge 0x42e955
inc eax
mov dword [0x56b948], eax
lea esi, [eax - 1]
jmp 0x42e95c
je 0x42e974
xor ecx, ecx
test esi, esi
jl 0x42e974
lea eax, [ecx*4 + 0x56b950]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x42e962
push 0
push 0x56b990
call ebx
jmp 0x42e79f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430037
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x456fc0]
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 + 0x4578a0]
je 0x43006c
inc eax
cmp eax, 0x13
jb 0x43005d
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4578a0]
jne 0x430192
mov eax, dword [0x56b7c0]
cmp eax, 1
je 0x43016a
cmp eax, edx
jne 0x43009c
cmp dword [0x457004], 1
je 0x43016a
cmp ecx, 0xfc
je 0x430192
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 0x4300d2
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00431730
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0042ab80
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x430106
mov eax, edi
push eax
call fcn.0042ab80
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x449728
push edi
call fcn.0042a460
add esp, 0x10
push edi
call fcn.0042ab80
push dword [esi + 0x4578a4]
mov ebx, eax
call fcn.0042ab80
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00429a50
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00431730
push edi
push ebx
call fcn.00431740
push 0x446168
push ebx
call fcn.00431740
push dword [esi + 0x4578a4]
push ebx
call fcn.00431740
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0043222a
add esp, 0x2c
jmp 0x430192
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4578a4]
push dword [esi]
call fcn.0042ab80
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.004291fd
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x43222a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x56bbe0], ebx
push esi
push edi
jne 0x4322aa
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4322e5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44a544
push edi
call esi
test eax, eax
mov dword [0x56bbe0], eax
je 0x4322e5
push 0x44a534
push edi
call esi
push 0x44a520
push edi
mov dword [0x56bbe4], eax
call esi
cmp dword [0x56b76c], 2
mov dword [0x56bbe8], eax
jne 0x4322aa
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x56bbf0], eax
je 0x4322aa
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x56bbec], eax
mov eax, dword [0x56bbec]
test eax, eax
je 0x4322ef
call eax
test eax, eax
je 0x4322d6
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x56bbf0]
test eax, eax
je 0x4322d6
test byte [ebp - 8], 1
jne 0x4322ef
cmp dword [0x56b778], 4
jb 0x4322e9
or byte [ebp + 0x12], 0x20
jmp 0x43230e
xor eax, eax
jmp 0x43231e
or byte [ebp + 0x12], 4
jmp 0x43230e
mov eax, dword [0x56bbe4]
test eax, eax
je 0x43230e
call eax
mov ebx, eax
test ebx, ebx
je 0x43230e
mov eax, dword [0x56bbe8]
test eax, eax
je 0x43230e
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x56bbe0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4327a5
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x456fc0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x4327d6
xor eax, eax
jmp 0x43295f
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x56bd00]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x432812
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00434071
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4328ed
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x43292b
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x432876
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x432867
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x432847
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4328b6
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x4328bf
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x432838
jmp 0x4328c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x43295a
cmp dword [ebp - 0x6c], edi
je 0x43292b
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x432920
call fcn.0042b9da
mov dword [eax], 9
call fcn.0042b9e3
mov dword [eax], esi
jmp 0x432955
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x432915
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x4328c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x4328c1
push dword [ebp - 0x6c]
call fcn.0042b9ec
pop ecx
jmp 0x432955
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x432943
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x432943
xor eax, eax
jmp 0x43295d
call fcn.0042b9da
mov dword [eax], 0x1c
call fcn.0042b9e3
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x43295d
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.004291fd
add ebp, 0x3a0
leave
ret