joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4014b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
lea eax, [ebx*4]
mov esi, ecx
push eax
mov dword [esi + 4], ebx
call fcn.004375c0
mov ecx, dword [esi + 4]
mov dword [esi], eax
add esp, 4
xor eax, eax
test ecx, ecx
jle 0x4014f1
jmp 0x4014e0
mov ecx, dword [esi]
mov dword [ecx + eax*4], 0
mov ecx, dword [esi + 4]
inc eax
cmp eax, ecx
jl 0x4014e0
test ebx, ebx
jle 0x401542
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebp, ebx
lea ecx, [ecx]
mov edx, dword [edi]
xor ecx, ecx
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x401528
lea esp, [esp]
mov ebx, eax
shl ebx, 4
and ecx, 0xff
add ebx, eax
add ecx, ebx
inc edx
mov eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x401510
xor edx, edx
div dword [esi + 4]
mov eax, dword [esi]
mov ecx, dword [eax + edx*4]
mov dword [edi + 8], ecx
mov eax, dword [esi]
mov dword [eax + edx*4], edi
add edi, 0xc
dec ebp
jne 0x401500
pop edi
pop ebp
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x403f00
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push edi
xor eax, eax
jmp 0x403f10
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x403f10
xor dl, dl
xor edi, edi
lea ecx, [esi + 1]
mov dword [esp + 0x10], 0x40
lea ebx, [ebx]
movzx eax, dl
mov dl, byte [ecx - 1]
mov dword [esp + 0xc], eax
movzx eax, byte [eax + ebp]
mov byte [esp + 0xb], dl
movzx edx, dl
add eax, edi
add eax, edx
and eax, 0x800000ff
jns 0x403f57
dec eax
or eax, 0xffffff00
inc eax
mov dl, byte [esp + 0xb]
movzx edi, al
mov al, byte [edi + esi]
mov byte [ecx - 1], al
mov eax, dword [esp + 0xc]
inc eax
mov byte [edi + esi], dl
cdq
idiv ebx
movzx eax, dl
mov dl, byte [ecx]
mov dword [esp + 0xc], eax
movzx eax, byte [eax + ebp]
mov byte [esp + 0xb], dl
movzx edx, dl
add eax, edi
add eax, edx
and eax, 0x800000ff
jns 0x403f95
dec eax
or eax, 0xffffff00
inc eax
mov dl, byte [esp + 0xb]
movzx edi, al
mov al, byte [edi + esi]
mov byte [ecx], al
mov eax, dword [esp + 0xc]
inc eax
mov byte [edi + esi], dl
cdq
idiv ebx
movzx eax, dl
mov dl, byte [ecx + 1]
mov dword [esp + 0xc], eax
movzx eax, byte [eax + ebp]
mov byte [esp + 0xb], dl
movzx edx, dl
add eax, edi
add eax, edx
and eax, 0x800000ff
jns 0x403fd3
dec eax
or eax, 0xffffff00
inc eax
mov dl, byte [esp + 0xb]
movzx edi, al
mov al, byte [edi + esi]
mov byte [ecx + 1], al
mov eax, dword [esp + 0xc]
inc eax
mov byte [edi + esi], dl
cdq
idiv ebx
movzx eax, dl
mov dl, byte [ecx + 2]
mov dword [esp + 0xc], eax
movzx eax, byte [eax + ebp]
mov byte [esp + 0xb], dl
movzx edx, dl
add eax, edi
add eax, edx
and eax, 0x800000ff
jns 0x404012
dec eax
or eax, 0xffffff00
inc eax
mov dl, byte [esp + 0xb]
movzx edi, al
mov al, byte [edi + esi]
mov byte [ecx + 2], al
mov eax, dword [esp + 0xc]
inc eax
mov byte [edi + esi], dl
cdq
idiv ebx
mov eax, dword [esp + 0x10]
add ecx, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x403f30
pop edi
pop ebp
add esp, 0xc
ret
Function at 0x42a6d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push esi
mov esi, dword [esp + 8]
xor edx, edx
mov dl, byte [esi]
xor eax, eax
test dl, dl
je 0x42a6f9
push edi
mov edi, eax
shl edi, 4
and edx, 0xff
add edi, eax
add edx, edi
inc esi
mov eax, edx
mov dl, byte [esi]
test dl, dl
jne 0x42a6e0
pop edi
xor edx, edx
div dword [ecx + 4]
pop esi
mov eax, edx
ret 4

Function at 0x42a710
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 4]
mov ecx, dword [edi + 8]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
cmp ecx, eax
jl 0x42a7dd
mov ebp, dword [edi]
lea eax, [esi + esi + 1]
mov dword [edi + 4], eax
shl eax, 3
push eax
mov dword [esp + 0x14], ebp
call fcn.004375c0
mov ecx, dword [edi + 4]
mov dword [edi], eax
add esp, 4
xor eax, eax
test ecx, ecx
jle 0x42a761
mov ecx, dword [edi]
mov dword [ecx + eax*8], 0
mov ecx, dword [edi + 4]
inc eax
cmp eax, ecx
jl 0x42a750
test esi, esi
jle 0x42a7d4
mov edx, dword [ebp]
test edx, edx
je 0x42a7ca
xor ecx, ecx
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x42a798
jmp 0x42a780
mov ebx, eax
shl ebx, 4
and ecx, 0xff
add ebx, eax
add ecx, ebx
inc edx
mov eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x42a780
mov ecx, dword [edi + 4]
xor edx, edx
div ecx
mov eax, dword [edi]
cmp dword [eax + edx*8], 0
je 0x42a7bd
mov ebx, eax
lea esp, [esp]
inc edx
cmp edx, ecx
jne 0x42a7b7
xor edx, edx
cmp dword [ebx + edx*8], 0
jne 0x42a7b0
mov ecx, dword [ebp]
mov dword [eax + edx*8], ecx
mov ecx, dword [ebp + 4]
mov dword [eax + edx*8 + 4], ecx
add ebp, 8
dec esi
jne 0x42a765
mov ebp, dword [esp + 0x10]
push ebp
call fcn.00437650
add esp, 4
mov esi, dword [esp + 0x18]
xor ecx, ecx
mov cl, byte [esi]
xor eax, eax
test cl, cl
mov edx, esi
je 0x42a808
lea ecx, [ecx]
mov ebx, eax
shl ebx, 4
and ecx, 0xff
add ebx, eax
add ecx, ebx
inc edx
mov eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x42a7f0
mov ecx, dword [edi + 4]
xor edx, edx
div ecx
mov ebp, edx
mov edx, dword [edi]
cmp dword [edx + ebp*8], 0
je 0x42a86c
jmp 0x42a820
mov esi, dword [esp + 0x18]
nop
mov eax, dword [edx + ebp*8]
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x42a847
test cl, cl
je 0x42a843
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x42a847
add eax, 2
add esi, 2
test cl, cl
jne 0x42a823
xor eax, eax
jmp 0x42a84c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42a862
mov eax, dword [edi + 4]
inc ebp
cmp ebp, eax
jne 0x42a85a
xor ebp, ebp
mov eax, dword [edi]
cmp dword [eax + ebp*8], 0
jne 0x42a81b
cmp dword [edx + ebp*8], 0
mov esi, dword [esp + 0x18]
jne 0x42a87a
push esi
call fcn.00437670
mov ecx, dword [edi]
add esp, 4
mov dword [ecx + ebp*8], eax
mov edx, dword [edi]
mov eax, dword [esp + 0x1c]
mov dword [edx + ebp*8 + 4], eax
inc dword [edi + 8]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x4375c0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x4375c9
ret
push eax
call fcn.0043a21b
add esp, 4
test eax, eax
jne 0x4375c8
push str.Out_of_memory_n
push 0x46f100
call fcn.00438c64
add esp, 8
push 1
call fcn.0043a169
int3

Function at 0x4375f0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
jne 0x43760c
mov eax, dword [esp + 4]
test eax, eax
je 0x437609
push eax
call fcn.0043a38f
add esp, 4
xor eax, eax
ret
mov ecx, dword [esp + 4]
test ecx, ecx
push eax
je 0x437620
push ecx
call fcn.0043a22d
add esp, 8
jmp 0x437628
call fcn.0043a21b
add esp, 4
test eax, eax
jne 0x43760b
push str.Out_of_memory_n
push 0x46f100
call fcn.00438c64
add esp, 8
push 1
call fcn.0043a169
int3

Function at 0x437670
Capabilities:
Terminate process

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x437680
sub eax, edx
inc eax
jne 0x4376a2
xor eax, eax
push esi
mov esi, eax
mov ecx, edi
sub esi, edi
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x437695
pop esi
pop edi
ret
push eax
call fcn.0043a21b
add esp, 4
test eax, eax
jne 0x43768e
push str.Out_of_memory_n
push 0x46f100
call fcn.00438c64
add esp, 8
push 1
call fcn.0043a169
int3

Function at 0x437f30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push esi
mov esi, dword [esp + 8]
mov edx, dword [esi + 4]
mov esi, dword [esi]
xor eax, eax
test esi, esi
push edi
mov edi, ecx
jle 0x437f5e
push ebx
xor ecx, ecx
mov cl, byte [edx]
mov ebx, eax
shl ebx, 4
add ebx, eax
and ecx, 0xff
add ecx, ebx
inc edx
dec esi
mov eax, ecx
jne 0x437f44
pop ebx
xor edx, edx
div dword [edi + 4]
pop edi
pop esi
mov eax, edx
ret 4

Function at 0x437ff0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 4]
mov ebp, dword [edi + 0xc]
lea eax, [esi + esi + 1]
mov dword [edi + 4], eax
shl eax, 2
push eax
mov dword [esp + 0x18], ebp
call fcn.004375c0
mov ecx, dword [edi + 4]
mov dword [edi + 0xc], eax
add esp, 4
xor eax, eax
test ecx, ecx
jle 0x438033
mov ecx, dword [edi + 0xc]
mov dword [ecx + eax*4], 0
mov ecx, dword [edi + 4]
inc eax
cmp eax, ecx
jl 0x438021
test esi, esi
jle 0x4380ae
mov dword [esp + 0x10], esi
push ebx
lea esp, [esp]
cmp dword [ebp], 0
je 0x43809b
mov ecx, dword [ebp]
mov edx, dword [ecx + 8]
mov dword [ebp], edx
mov edx, dword [ecx]
mov esi, dword [edx + 4]
mov edx, dword [edx]
xor eax, eax
test edx, edx
jle 0x438081
mov dword [esp + 0x10], edx
xor edx, edx
mov dl, byte [esi]
mov ebx, eax
shl ebx, 4
add ebx, eax
and edx, 0xff
add edx, ebx
mov eax, edx
mov edx, dword [esp + 0x10]
inc esi
dec edx
mov dword [esp + 0x10], edx
jne 0x438060
xor edx, edx
div dword [edi + 4]
mov eax, dword [edi + 0xc]
mov eax, dword [eax + edx*4]
mov dword [ecx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [eax + edx*4], ecx
cmp dword [ebp], 0
jne 0x438046
mov eax, dword [esp + 0x14]
add ebp, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x438040
mov ebp, dword [esp + 0x18]
pop ebx
push ebp
call fcn.00437650
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x439d76
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x451540
call fcn.0043f85c
mov edi, 0x94
mov eax, edi
call fcn.00438fc0
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 [0x470214], ecx
mov eax, dword [esi + 4]
mov dword [0x470220], eax
mov edx, dword [esi + 8]
mov dword [0x470224], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x470218], esi
cmp ecx, 2
je 0x439dd6
or esi, 0x8000
mov dword [0x470218], esi
shl eax, 8
add eax, edx
mov dword [0x47021c], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x439e0f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x439e0f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x439e27
cmp eax, 0x20b
je 0x439e14
mov dword [ebp - 0x1c], edi
jmp 0x439e3b
cmp dword [ecx + 0x84], 0xe
jbe 0x439e0f
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x439e35
cmp dword [ecx + 0x74], 0xe
jbe 0x439e0f
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.0043f809
pop ecx
test eax, eax
jne 0x439e67
cmp dword [0x470204], 2
je 0x439e54
call fcn.0043f1c6
push 0x1c
call fcn.0043f04f
push 0xff
call fcn.0043a00e
pop ecx
pop ecx
call fcn.0043f767
mov dword [ebp - 4], edi
call fcn.0043ce37
test eax, eax
jge 0x439e80
push 0x1b
call fcn.00439d51
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4707f0], eax
call fcn.0043f645
mov dword [0x4701fc], eax
call fcn.0043f5a3
test eax, eax
jge 0x439ea6
push 8
call fcn.00439d51
pop ecx
call fcn.0043f370
test eax, eax
jge 0x439eb7
push 9
call fcn.00439d51
pop ecx
push 1
call fcn.0043a03e
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x439ecd
push eax
call fcn.00439d51
pop ecx
mov eax, dword [0x470234]
mov dword [0x470238], eax
push eax
push dword [0x47022c]
push dword [0x470228]
call fcn.00435190
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x439efc
push esi
call fcn.0043a169
call fcn.0043a18b
jmp 0x439f2e
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.0043f897
ret
Function at 0x43a0a8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x470254], esi
push edi
jne 0x43a0c8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x470250], esi
mov byte [0x47024c], al
jne 0x43a12e
mov ecx, dword [0x4707e8]
test ecx, ecx
je 0x43a10f
mov eax, dword [0x4707e4]
sub eax, 4
cmp eax, ecx
jmp 0x43a108
mov eax, dword [eax]
test eax, eax
je 0x43a0fa
call eax
mov eax, dword [0x4707e4]
sub eax, 4
cmp eax, dword [0x4707e8]
mov dword [0x4707e4], eax
jae 0x43a0f2
mov eax, 0x457028
mov esi, 0x457034
cmp eax, esi
mov edi, eax
jae 0x43a12e
mov eax, dword [edi]
test eax, eax
je 0x43a127
call eax
add edi, 4
cmp edi, esi
jb 0x43a11f
mov eax, 0x457038
mov esi, 0x45703c
cmp eax, esi
mov edi, eax
jae 0x43a14d
mov eax, dword [edi]
test eax, eax
je 0x43a146
call eax
add edi, 4
cmp edi, esi
jb 0x43a13e
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x43a167
push dword [ebp + 8]
mov dword [0x470254], 1
call fcn.0043a00e
pop ebp
ret
Function at 0x43c2a4
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x4706cc]
mov eax, dword [0x46f3a0]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x43c46a
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x4706e0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x43c46a
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x43c30e
xor eax, eax
jmp 0x43c47e
test al, 0x20
je 0x43c31f
push 2
push edi
push edi
push ecx
call fcn.004420cb
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x43c3f4
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x43c43b
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x43c381
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x43c372
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x43c354
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43c3c1
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x43c3cd
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x43c348
jmp 0x43c3cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x43c465
cmp dword [ebp + 0x3a4], edi
je 0x43c43b
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x43c42d
mov dword [0x47020c], eax
jmp 0x43c471
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43c41f
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x43c3cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x43c3cf
push dword [ebp + 0x3a4]
call fcn.0044163c
pop ecx
jmp 0x43c47b
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x43c453
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x43c307
mov dword [0x470208], 0x1c
mov dword [0x47020c], edi
jmp 0x43c47b
sub eax, dword [ebp - 0x7c]
jmp 0x43c47e
and dword [0x47020c], 0
mov dword [0x470208], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0043c1c4
add ebp, 0x39c
leave
ret
Function at 0x43e973
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 [0x4706cc]
push edi
jae 0x43eb48
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x4706e0]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x43eb48
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x43ea1e
test dl, 2
jne 0x43ea1e
test dl, 0x48
je 0x43e9e8
cmp byte [eax + 5], 0xa
je 0x43e9e8
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 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 [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43ea31
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x43ea19
mov dword [0x47020c], ecx
jmp 0x43eb4f
cmp eax, 0x6d
jne 0x43ea25
xor eax, eax
jmp 0x43eb5c
push eax
call fcn.0044163c
pop ecx
jmp 0x43eb59
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x43eb43
test eax, eax
je 0x43ea58
cmp byte [ebx], 0xa
jne 0x43ea58
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x43ea61
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
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 0x43eb3d
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x43eb2d
cmp al, 0xd
je 0x43ea93
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x43eb1f
dec ecx
cmp dword [ebp - 8], ecx
jae 0x43eaad
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x43eaa8
add dword [ebp - 8], 2
jmp 0x43eb01
mov dword [ebp - 8], eax
jmp 0x43eb1b
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43ead5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x43eb1b
cmp dword [ebp - 0x10], 0
je 0x43eb1b
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x43eaf6
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x43eb01
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x43eb1e
cmp ebx, dword [ebp + 0xc]
jne 0x43eb06
cmp byte [ebp - 1], 0xa
jne 0x43eb06
mov byte [ebx], 0xa
jmp 0x43eb1e
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043eead
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x43eb1f
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x43ea77
jmp 0x43eb3d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x43eb3d
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x43eb5c
and dword [0x47020c], 0
mov dword [0x470208], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43f04f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x46f3a0]
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 + 0x46f480]
je 0x43f084
inc eax
cmp eax, 0x13
jb 0x43f075
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x46f480]
jne 0x43f1aa
mov eax, dword [0x470204]
cmp eax, 1
je 0x43f182
cmp eax, edx
jne 0x43f0b4
cmp dword [0x46f364], 1
je 0x43f182
cmp ecx, 0xfc
je 0x43f1aa
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 0x43f0ea
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00440a80
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0043be50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43f11e
mov eax, edi
push eax
call fcn.0043be50
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x455980
push edi
call fcn.00438830
add esp, 0x10
push edi
call fcn.0043be50
push dword [esi + 0x46f484]
mov ebx, eax
call fcn.0043be50
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00438fc0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00440a80
push edi
push ebx
call fcn.00440a90
push 0x455960
push ebx
call fcn.00440a90
push dword [esi + 0x46f484]
push ebx
call fcn.00440a90
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00443ef6
add esp, 0x2c
jmp 0x43f1aa
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x46f484]
push dword [esi]
call fcn.0043be50
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.0043c1c4
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x441559
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.00438fc0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4415f4
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 [0x470214]
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 0x4415f4
cmp eax, 1
je 0x441615
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 0x4415f4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4415c1
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4415f0
xor eax, eax
inc eax
jmp 0x441634
cmp edi, eax
jae 0x4415f8
xor eax, eax
jmp 0x441634
cmp eax, esi
jae 0x4415ff
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 [0x470214]
jmp 0x441618
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 0x443ef6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x470408], ebx
push esi
push edi
jne 0x443f76
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x443fb1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x470408], eax
je 0x443fb1
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x47040c], eax
call esi
cmp dword [0x470214], 2
mov dword [0x470410], eax
jne 0x443f76
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x470418], eax
je 0x443f76
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x470414], eax
mov eax, dword [0x470414]
test eax, eax
je 0x443fbb
call eax
test eax, eax
je 0x443fa2
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x470418]
test eax, eax
je 0x443fa2
test byte [ebp - 8], 1
jne 0x443fbb
cmp dword [0x470220], 4
jb 0x443fb5
or byte [ebp + 0x12], 0x20
jmp 0x443fda
xor eax, eax
jmp 0x443fea
or byte [ebp + 0x12], 4
jmp 0x443fda
mov eax, dword [0x47040c]
test eax, eax
je 0x443fda
call eax
mov ebx, eax
test ebx, ebx
je 0x443fda
mov eax, dword [0x470410]
test eax, eax
je 0x443fda
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x470408]
pop edi
pop esi
pop ebx
leave
ret