joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405170
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x41d168
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
xor ebp, ebp
push esi
mov dword [esp + 8], ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x2c]
push ebp
push 0x80
push 3
push ebp
push 3
push 0x80000000
push eax
mov dword [esp + 0x3c], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, ebp
je 0x405263
cmp edi, 0xffffffff
je 0x405263
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebp
jne 0x405206
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00404700
lea ecx, [esp + 0x10]
call fcn.00404390
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push esi
lea ecx, [esp + 0x14]
call fcn.004043c0
push ebp
lea edx, [esp + 0x10]
push edx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xc], esi
je 0x405236
push ebp
lea ecx, [esp + 0x14]
call fcn.004043c0
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00404700
lea ecx, [esp + 0x10]
call fcn.00404390
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push ebx
mov ebx, dword [esp + 0x2c]
xor ecx, ecx
push ebp
mov ecx, ebx
mov dword [ebx], ebp
mov dword [ebx + 4], ebp
xor esi, esi
call fcn.004043c0
mov ecx, dword [esp + 0x1c]
mov edi, eax
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x405d40
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
movzx eax, word [edi + 0x14]
xor ebp, ebp
xor ebx, ebx
cmp word [edi + 6], bp
lea esi, [eax + edi + 0x18]
jbe 0x405d94
lea ebx, [ebx]
cmp ebp, dword [edi + 0x50]
jae 0x405d94
mov eax, dword [esi + 0x14]
test eax, eax
je 0x405d7e
mov ecx, dword [esp + 0x1c]
push ecx
push esi
call fcn.0041ca4f
add esp, 8
test eax, eax
je 0x405d9b
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x34]
add esi, 0x28
sub edx, eax
movzx eax, word [edi + 6]
inc ebx
add ebp, edx
cmp ebx, eax
jb 0x405d60
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
add ecx, eax
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov al, 1
pop ebx
ret

Function at 0x405e80
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [ecx + 0x54]
movzx eax, word [ecx + 0x14]
push ebx
push esi
push edi
movzx edi, word [ecx + 6]
xor esi, esi
test edi, edi
lea eax, [eax + ecx + 0x18]
jbe 0x405ebf
mov ebx, dword [esp + 0x10]
lea esp, [esp]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x405eaa
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x405eb7
add edx, ecx
cmp ebx, edx
jb 0x405ec1
inc esi
add eax, 0x28
cmp esi, edi
jb 0x405ea0
xor eax, eax
pop edi
pop esi
pop ebx
ret 4
Function at 0x409d20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
xor edi, edi
cmp ebp, edi
je 0x409e6f
mov esi, dword [esp + 0x24]
cmp esi, edi
je 0x409e6f
xor eax, eax
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x409d42
mov eax, 1
sub eax, esi
mov dword [esp + 0xc], eax
mov eax, 2
sub eax, esi
mov dword [esp + 0x10], eax
mov eax, 3
sub eax, esi
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], edi
mov ecx, esi
mov dword [esp + 0x18], eax
lea esp, [esp]
mov eax, dword [esp + 0x20]
xor edx, edx
div ebx
movzx eax, byte [edx + ebp]
movzx edx, byte [ecx]
add eax, edi
add edx, eax
mov edi, edx
and edi, 0x800000ff
jns 0x409da5
dec edi
or edi, 0xffffff00
inc edi
mov dl, byte [edi + esi]
mov al, byte [ecx]
mov byte [ecx], dl
mov byte [edi + esi], al
mov eax, dword [esp + 0x10]
add eax, ecx
xor edx, edx
div ebx
movzx eax, byte [ecx + 1]
movzx edx, byte [edx + ebp]
add edx, edi
add eax, edx
mov edi, eax
and edi, 0x800000ff
jns 0x409dd7
dec edi
or edi, 0xffffff00
inc edi
mov dl, byte [edi + esi]
mov al, byte [ecx + 1]
mov byte [ecx + 1], dl
mov byte [edi + esi], al
mov eax, dword [esp + 0x14]
add eax, ecx
xor edx, edx
div ebx
movzx eax, byte [ecx + 2]
movzx edx, byte [edx + ebp]
add edx, edi
add eax, edx
mov edi, eax
and edi, 0x800000ff
jns 0x409e0b
dec edi
or edi, 0xffffff00
inc edi
mov dl, byte [edi + esi]
mov al, byte [ecx + 2]
mov byte [ecx + 2], dl
mov byte [edi + esi], al
mov eax, dword [esp + 0x18]
add eax, ecx
xor edx, edx
div ebx
movzx eax, byte [ecx + 3]
movzx edx, byte [edx + ebp]
add edx, edi
add eax, edx
mov edi, eax
and edi, 0x800000ff
jns 0x409e3f
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [ecx + 3]
mov dl, byte [edi + esi]
mov byte [ecx + 3], dl
mov byte [edi + esi], al
mov eax, dword [esp + 0x20]
add eax, 4
add ecx, 4
cmp eax, 0x100
mov dword [esp + 0x20], eax
jl 0x409d80
pop ebx
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0xc
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
Function at 0x409e80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
push edi
je 0x409f5a
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x409f5a
mov edi, dword [esp + 0x20]
test edi, edi
je 0x409f5a
push esi
push 0x100
call fcn.00411327
mov esi, eax
mov eax, dword [esp + 0x24]
push esi
push eax
push ebx
call fcn.00409d20
add esp, 0x10
test eax, eax
jne 0x409ecc
pop esi
pop edi
pop ebp
pop ebx
ret
mov edx, dword [esp + 0x18]
xor eax, eax
xor ecx, ecx
test edx, edx
jbe 0x409f43
sub ebp, edi
mov dword [esp + 0x14], edx
mov edi, edi
inc eax
and eax, 0x800000ff
jns 0x409eef
dec eax
or eax, 0xffffff00
inc eax
movzx edx, byte [eax + esi]
add ecx, edx
and ecx, 0x800000ff
jns 0x409f05
dec ecx
or ecx, 0xffffff00
inc ecx
mov bl, byte [ecx + esi]
mov dl, byte [eax + esi]
mov byte [eax + esi], bl
mov byte [ecx + esi], dl
movzx edx, byte [eax + esi]
movzx ebx, byte [ecx + esi]
add edx, ebx
and edx, 0x800000ff
jns 0x409f2b
dec edx
or edx, 0xffffff00
inc edx
mov dl, byte [edx + esi]
xor dl, byte [edi + ebp]
mov byte [edi], dl
mov edx, dword [esp + 0x14]
inc edi
dec edx
mov dword [esp + 0x14], edx
jne 0x409ee0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
push esi
mov dword [eax], edx
call fcn.004105ec
add esp, 4
pop esi
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
ret
pop edi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x40a480
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
cmp word [ecx], 0x5a4d
je 0x40a48e
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
mov edx, dword [eax + ecx]
add eax, ecx
xor ecx, ecx
cmp edx, 0x4550
setne cl
dec ecx
and eax, ecx
ret
Function at 0x40fb50
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ecx
mov ecx, dword [esp + 8]
mov edx, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [ecx]
mov ecx, eax
shr ecx, 4
xor ecx, edx
and ecx, 0xf0f0f0f
xor edx, ecx
shl ecx, 4
xor eax, ecx
mov ecx, eax
shr ecx, 0x10
xor ecx, edx
and ecx, 0xffff
xor edx, ecx
shl ecx, 0x10
xor eax, ecx
mov ecx, edx
shr ecx, 2
xor ecx, eax
and ecx, 0x33333333
xor eax, ecx
shl ecx, 2
xor edx, ecx
mov ecx, edx
shr ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor eax, ecx
shl ecx, 8
xor edx, ecx
mov ecx, edx
add edx, edx
shr ecx, 0x1f
or ecx, edx
mov edx, ecx
xor edx, eax
and edx, 0xaaaaaaaa
xor eax, edx
xor ecx, edx
mov edx, eax
shr edx, 0x1f
add eax, eax
or edx, eax
mov dword [esp + 0x10], 8
mov ebx, dword [edi]
mov eax, ecx
shl eax, 0x1c
mov esi, ecx
shr esi, 4
or eax, esi
xor eax, ebx
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
mov ebp, dword [ebx*4 + 0x42a448]
mov esi, eax
shr esi, 0x18
and esi, 0x3f
mov esi, dword [esi*4 + 0x42a248]
or esi, ebp
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or esi, dword [ebx*4 + 0x42a648]
and eax, 0x3f
mov ebx, dword [eax*4 + 0x42a848]
mov eax, dword [edi + 4]
or esi, ebx
xor eax, ecx
add edi, 4
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x42a348]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x42a548]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x42a748]
and eax, 0x3f
or ebx, dword [eax*4 + 0x42a948]
or ebx, esi
xor edx, ebx
mov ebx, dword [edi + 4]
add edi, 4
mov eax, edx
shl eax, 0x1c
mov esi, edx
shr esi, 4
or eax, esi
xor eax, ebx
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
mov ebp, dword [ebx*4 + 0x42a448]
mov esi, eax
shr esi, 0x18
and esi, 0x3f
mov esi, dword [esi*4 + 0x42a248]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or esi, ebp
mov ebp, dword [ebx*4 + 0x42a648]
and eax, 0x3f
mov ebx, dword [eax*4 + 0x42a848]
mov eax, dword [edi + 4]
add edi, 4
or esi, ebp
or esi, ebx
xor eax, edx
mov ebx, eax
shr ebx, 0x18
mov ebp, eax
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x42a348]
shr ebp, 0x10
and ebp, 0x3f
add edi, 4
or ebx, dword [ebp*4 + 0x42a548]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x42a748]
and eax, 0x3f
mov ebp, dword [eax*4 + 0x42a948]
mov eax, dword [esp + 0x10]
or ebx, ebp
or ebx, esi
xor ecx, ebx
dec eax
mov dword [esp + 0x10], eax
jne 0x40fbd8
mov eax, ecx
shr ecx, 1
shl eax, 0x1f
or eax, ecx
mov ecx, eax
xor ecx, edx
and ecx, 0xaaaaaaaa
xor edx, ecx
xor eax, ecx
mov ecx, edx
shr edx, 1
shl ecx, 0x1f
or ecx, edx
mov edx, ecx
shr edx, 8
xor edx, eax
and edx, 0xff00ff
xor eax, edx
shl edx, 8
xor ecx, edx
mov edx, ecx
shr edx, 2
xor edx, eax
and edx, 0x33333333
xor eax, edx
shl edx, 2
xor ecx, edx
mov edx, eax
shr edx, 0x10
xor edx, ecx
and edx, 0xffff
xor ecx, edx
shl edx, 0x10
xor eax, edx
mov edx, eax
shr edx, 4
xor edx, ecx
and edx, 0xf0f0f0f
mov esi, edx
shl esi, 4
xor esi, eax
mov eax, dword [esp + 0x18]
pop edi
mov dword [eax], esi
pop esi
xor edx, ecx
pop ebp
mov dword [eax + 4], edx
pop ebx
pop ecx
ret
Function at 0x411dd8
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x422f50
call fcn.00413a8c
mov edi, 0x94
mov eax, edi
call fcn.00411880
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 [0x42d010], ecx
mov eax, dword [esi + 4]
mov dword [0x42d01c], eax
mov edx, dword [esi + 8]
mov dword [0x42d020], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x42d014], esi
cmp ecx, 2
je 0x411e38
or esi, 0x8000
mov dword [0x42d014], esi
shl eax, 8
add eax, edx
mov dword [0x42d018], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x411e73
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x411e73
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x411e8b
cmp eax, 0x20b
je 0x411e78
mov dword [ebp - 0x1c], esi
jmp 0x411e9f
cmp dword [ecx + 0x84], 0xe
jbe 0x411e73
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x411e99
cmp dword [ecx + 0x74], 0xe
jbe 0x411e73
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00413af2
pop ecx
test eax, eax
jne 0x411eb3
push 0x1c
call fcn.00411db4
pop ecx
call fcn.00413732
test eax, eax
jne 0x411ec4
push 0x10
call fcn.00411db4
pop ecx
call fcn.00416f96
mov dword [ebp - 4], esi
call fcn.00416d98
test eax, eax
jge 0x411edd
push 0x1b
call fcn.00411d8f
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42e8a4], eax
call fcn.00416c76
mov dword [0x42cf74], eax
call fcn.00416bd4
test eax, eax
jge 0x411f03
push 8
call fcn.00411d8f
pop ecx
call fcn.004169a1
test eax, eax
jge 0x411f14
push 9
call fcn.00411d8f
pop ecx
push 1
call fcn.004126fd
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x411f2a
push eax
call fcn.00411d8f
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00416944
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x411f4b
movzx eax, word [ebp - 0x40]
jmp 0x411f4e
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00402180
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x411f6c
push edi
call fcn.0041282a
call fcn.0041284c
jmp 0x411f9e
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00413ac7
ret
Function at 0x412767
Capabilities:
Terminate process

Disassembly:
push 8
push 0x422f98
call fcn.00413a8c
push 8
call fcn.00413c96
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x42d050], esi
jne 0x41279b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x42d04c], esi
mov al, byte [ebp + 0x10]
mov byte [0x42d048], al
cmp dword [ebp + 0xc], edi
jne 0x4127e5
cmp dword [0x42d88c], edi
je 0x4127d5
mov eax, dword [0x42d888]
sub eax, 4
mov dword [0x42d888], eax
cmp eax, dword [0x42d88c]
jb 0x4127d5
mov eax, dword [eax]
cmp eax, edi
je 0x4127b6
call eax
jmp 0x4127b6
push 0x42a040
mov eax, 0x42a038
call fcn.004126e5
pop ecx
push 0x42a04c
mov eax, 0x42a044
call fcn.004126e5
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x412816
cmp dword [ebp + 0x10], edi
jne 0x412824
mov dword [0x42d050], esi
push dword [ebp + 8]
call fcn.004126a3
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x412823
push 8
call fcn.00413be1
pop ecx
ret
call fcn.00413ac7
ret
Function at 0x4158a8
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 0x4158d6
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 0x4158dd
cmp ebx, dword [eax + 4]
jae 0x4158dd
xor eax, eax
jmp 0x415acd
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4158ee
xor eax, eax
inc eax
jmp 0x415acc
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x415904
cmp ecx, edx
jae 0x415a49
cmp dword [eax + 4], 0
je 0x41590d
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4158f5
cmp dword [ebp + 8], 0
je 0x41592f
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x415a49
cmp eax, esi
jae 0x415a49
mov eax, dword [0x42d1d0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x415954
cmp dword [esi*4 + 0x42d1d8], edi
je 0x415a4d
inc esi
cmp esi, eax
jl 0x415942
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x415ac9
cmp dword [ebp - 8], 0x1000000
jne 0x415ac9
test byte [ebp - 0xc], 0xcc
je 0x4159d2
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x415ac9
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x415ac9
cmp word [eax + 0x18], 0x10b
jne 0x415ac9
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x415ac9
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4159d2
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4159d2
test byte [ecx + 0x27], 0x80
jne 0x415a49
push 1
push 0x42d218
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4158e6
mov ecx, dword [0x42d1d0]
test ecx, ecx
mov edx, ecx
jle 0x415a06
lea eax, [ecx*4 + 0x42d1d4]
cmp dword [eax], edi
je 0x415a06
dec edx
sub eax, 4
test edx, edx
jg 0x4159fa
test edx, edx
jne 0x415a37
push 0xf
pop ebx
cmp ecx, ebx
jg 0x415a13
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x415a2b
lea eax, [edx*4 + 0x42d1d8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x415a19
cmp ecx, 0x10
jge 0x415a37
inc ecx
mov dword [0x42d1d0], ecx
push 0
push 0x42d218
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4158e6
xor eax, eax
jmp 0x415acc
test esi, esi
jle 0x4158e6
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x42d218
call ebx
test eax, eax
jne 0x4158e6
cmp dword [esi*4 + 0x42d1d8], edi
je 0x415aa3
mov eax, dword [0x42d1d0]
lea esi, [eax - 1]
test esi, esi
jl 0x415a91
cmp dword [esi*4 + 0x42d1d8], edi
je 0x415a8d
dec esi
jns 0x415a81
test esi, esi
jge 0x415aa1
cmp eax, 0x10
jge 0x415a9c
inc eax
mov dword [0x42d1d0], eax
lea esi, [eax - 1]
jmp 0x415aa3
je 0x415abb
xor ecx, ecx
test esi, esi
jl 0x415abb
lea eax, [ecx*4 + 0x42d1d8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x415aa9
push 0
push 0x42d218
call ebx
jmp 0x4158e6
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4164de
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.00411880
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x416579
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 [0x42d010]
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 0x416579
cmp eax, 1
je 0x41659a
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 0x416579
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x416546
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x416575
xor eax, eax
inc eax
jmp 0x4165b9
cmp edi, eax
jae 0x41657d
xor eax, eax
jmp 0x4165b9
cmp eax, esi
jae 0x416584
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 [0x42d010]
jmp 0x41659d
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 0x416630
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x42aa60]
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 + 0x42b3c0]
je 0x416665
inc eax
cmp eax, 0x13
jb 0x416656
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x42b3c0]
jne 0x41678b
mov eax, dword [0x42cf7c]
cmp eax, 1
je 0x416763
cmp eax, edx
jne 0x416695
cmp dword [0x42ab74], 1
je 0x416763
cmp ecx, 0xfc
je 0x41678b
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 0x4166cb
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00415620
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00415720
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4166ff
mov eax, edi
push eax
call fcn.00415720
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4228c0
push edi
call fcn.00411bb0
add esp, 0x10
push edi
call fcn.00415720
push dword [esi + 0x42b3c4]
mov ebx, eax
call fcn.00415720
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00411880
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00415620
push edi
push ebx
call fcn.00415630
push 0x4230e8
push ebx
call fcn.00415630
push dword [esi + 0x42b3c4]
push ebx
call fcn.00415630
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004191b4
add esp, 0x2c
jmp 0x41678b
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x42b3c4]
push dword [esi]
call fcn.00415720
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.00410c16
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4191b4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x42d44c], ebx
push esi
push edi
jne 0x419234
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41926f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x427c98
push edi
call esi
test eax, eax
mov dword [0x42d44c], eax
je 0x41926f
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x42d450], eax
call esi
cmp dword [0x42d010], 2
mov dword [0x42d454], eax
jne 0x419234
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x42d45c], eax
je 0x419234
push 0x427c40
push edi
call esi
mov dword [0x42d458], eax
mov eax, dword [0x42d458]
test eax, eax
je 0x419279
call eax
test eax, eax
je 0x419260
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x42d45c]
test eax, eax
je 0x419260
test byte [ebp - 8], 1
jne 0x419279
cmp dword [0x42d01c], 4
jb 0x419273
or byte [ebp + 0x12], 0x20
jmp 0x419298
xor eax, eax
jmp 0x4192a8
or byte [ebp + 0x12], 4
jmp 0x419298
mov eax, dword [0x42d450]
test eax, eax
je 0x419298
call eax
mov ebx, eax
test ebx, ebx
je 0x419298
mov eax, dword [0x42d454]
test eax, eax
je 0x419298
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x42d44c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419348
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x42aa60]
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 0x419379
xor eax, eax
jmp 0x419502
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 + 0x42d760]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4193b5
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0041c586
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x419490
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4194ce
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 0x419419
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41940a
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 0x4193ea
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 0x419459
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x419462
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4193db
jmp 0x419464
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x4194fd
cmp dword [ebp - 0x6c], edi
je 0x4194ce
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4194c3
call fcn.004122ba
mov dword [eax], 9
call fcn.004122c3
mov dword [eax], esi
jmp 0x4194f8
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 0x4194b8
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x419464
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x419464
push dword [ebp - 0x6c]
call fcn.004122cc
pop ecx
jmp 0x4194f8
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4194e6
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x4194e6
xor eax, eax
jmp 0x419500
call fcn.004122ba
mov dword [eax], 0x1c
call fcn.004122c3
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x419500
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00410c16
add ebp, 0x3a0
leave
ret