joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421940
Capabilities:
Create directory

Disassembly:
sub esp, 0x10
mov al, byte [ecx]
mov dword [esp + 4], 0xc
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
mov dword [esp], ecx
push ebx
mov ebx, edx
push ebp
push esi
push edi
test al, al
je 0x421976
cmp byte [ecx + 1], 0x3a
jne 0x421976
mov al, byte [ecx + 2]
add ecx, 2
mov dl, al
cmp al, 0x5c
jne 0x42197f
mov dl, byte [ecx + 1]
lea esi, [ecx + 1]
cmovne esi, ecx
test dl, dl
je 0x4219d8
mov al, byte [esi]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, al
je 0x4219ac
nop dword [eax + eax]
cmp al, 0x5c
je 0x4219e5
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4219a0
xor esi, esi
test ebx, ebx
je 0x4219d8
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call ebp
test eax, eax
jne 0x4219ca
call edi
cmp eax, 0xb7
jne 0x4219ea
test esi, esi
je 0x4219d8
mov byte [esi], 0x5c
inc esi
mov al, byte [esi]
test al, al
jne 0x4219a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
mov byte [esi], 0
jmp 0x4219b2
test esi, esi
je 0x4219f1
mov byte [esi], 0x5c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret

Function at 0x421a00
Capabilities:
Create directory

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
movzx esi, word [ecx]
mov ebx, edx
mov dword [esp + 0x10], 0xc
mov eax, esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 1
mov dword [esp + 0xc], ecx
push edi
test si, si
je 0x421a3d
cmp word [ecx + 2], 0x3a
jne 0x421a3d
movzx eax, word [ecx + 4]
add ecx, 4
movzx edi, ax
movzx edx, ax
cmp ax, 0x5c
jne 0x421a4d
movzx edx, word [ecx + 2]
cmp edi, 0x5c
lea esi, [ecx + 2]
cmovne esi, ecx
test dx, dx
je 0x421ac1
movzx ecx, word [esi]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
nop word [eax + eax]
movzx eax, cx
test ax, ax
je 0x421a8a
cmp ax, 0x5c
je 0x421ace
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x421a78
xor esi, esi
test ebx, ebx
je 0x421ac1
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call ebp
test eax, eax
jne 0x421aa8
call edi
cmp eax, 0xb7
jne 0x421ad5
test esi, esi
je 0x421ac1
mov eax, 0x5c
mov word [esi], ax
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x421a70
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
xor eax, eax
mov word [esi], ax
jmp 0x421a90
test esi, esi
je 0x421ae1
mov eax, 0x5c
mov word [esi], ax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x421af0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x421d01
mov eax, dword [esi + 0x30]
and eax, dword [esi + 0x34]
cmp eax, 0xffffffff
je 0x421d01
mov ebx, dword [ebp + 0xc]
mov dword [esi + 8], 0
test bl, 1
je 0x421ba2
cmp word [esi + 0x70], 0
mov ebx, dword [ebp + 8]
jne 0x421b53
mov edx, ebx
mov ecx, esi
call fcn.00420c60
cmp dword [esi + 8], 0
jne 0x421cf0
mov eax, 1
mov word [esi + 0x70], ax
push dword [ebx + 0x2c]
mov edx, edi
mov ecx, esi
push dword [ebx + 0x28]
call fcn.00420f70
add esp, 8
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], edx
cmp dword [esi + 8], 0
jne 0x421b8b
mov eax, dword [esi + 0xe8]
or eax, dword [esi + 0xec]
je 0x421b8b
mov eax, 5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, esi
mov word [esi + 0x70], ax
call fcn.00420b40
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
test byte [eax + 8], 0x10
je 0x421bd8
test bl, 2
je 0x421bcf
mov edx, 1
mov ecx, edi
test ebx, ebx
jns 0x421bc2
call fcn.00421a00
jmp 0x421bc7
call fcn.00421940
test eax, eax
je 0x421ce9
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 4
je 0x421c25
xor edx, edx
mov ecx, edi
test ebx, ebx
jns 0x421bec
call fcn.00421a00
jmp 0x421bf1
call fcn.00421940
test eax, eax
je 0x421ce9
mov eax, dword [ebp + 8]
push 0
mov eax, dword [eax + 8]
push eax
push 2
push 0
push 0
push 0x40000000
push edi
test ebx, ebx
jns 0x421c1a
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x421c20
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov eax, dword [ebp + 8]
cmp edi, 0xffffffff
je 0x421ce9
mov edx, eax
mov ecx, esi
call fcn.00420c60
cmp dword [esi + 8], 0
jne 0x421ccc
cmp dword [esi + 0x4c], 0
jne 0x421c62
push 0x4000
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 0x4c], eax
test eax, eax
jne 0x421c62
mov dword [esi + 8], 2
cmp dword [esi + 8], 0
jne 0x421ccc
mov edx, dword [esi + 0x4c]
mov ecx, esi
push 0
push 0x4000
call fcn.00420f70
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x421cad
push 0
lea eax, [esp + 0x10]
push eax
push ebx
push dword [esi + 0x4c]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x421ca6
cmp dword [esp + 0xc], ebx
jne 0x421ca6
cmp dword [esi + 8], 0
je 0x421c68
jmp 0x421cad
mov dword [esi + 8], 3
cmp dword [esi + 8], 0
mov ebx, dword [ebp + 0xc]
jne 0x421ccc
mov ecx, dword [ebp + 8]
lea eax, [ecx + 0x1c]
push eax
lea eax, [ecx + 0xc]
push eax
lea eax, [ecx + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp ebx, 4
je 0x421cf0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00420b40
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 8], 1
mov ecx, esi
call fcn.00420b40
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422740
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x44
lea eax, [esp + 0x10]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, edx
push eax
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x42276a
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov ebx, dword [esp + 0x20]
mov esi, ebx
and esi, 1
mov eax, ebx
mov ecx, esi
or ecx, 2
and al, 2
mov eax, ebx
cmove ecx, esi
mov edx, ecx
or edx, 4
and al, 4
cmove edx, ecx
mov ecx, ebx
and ecx, 0x10
mov eax, edx
or eax, 0x10
mov dword [esp + 0x14], ecx
test ecx, ecx
cmove eax, edx
mov edx, 0x81000000
mov ecx, eax
or ecx, 0x20
and bl, 0x20
mov ebx, 0x41000000
cmove ecx, eax
mov eax, dword [esp + 0x14]
test eax, eax
cmove ebx, edx
or ebx, ecx
test esi, esi
jne 0x4227d3
test eax, eax
mov ebx, 0x41800000
mov edx, 0x81800000
cmove ebx, edx
or ebx, ecx
push 0
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], ecx
cmp eax, 0x28
jbe 0x4228b4
mov eax, dword [edi + 0x18]
or eax, dword [edi + 0x1c]
jne 0x4228b4
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
push eax
push eax
push dword [edi + 0x64]
call esi
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push 0x24
push dword [edi + 0x64]
call esi
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea eax, [esp + 0x24]
push eax
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x54ad
cmp word [esp + 0x10], ax
jne 0x4228a9
cmp dword [edi + 0x54], 0
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0x34]
jb 0x4228a9
ja 0x422862
cmp dword [edi + 0x50], ecx
jbe 0x4228a9
push 0
push 0
push eax
push dword [edi + 0x64]
call esi
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x1c]
cmp eax, 0x5a4d
je 0x4228a3
cmp eax, 0x454e
je 0x4228a3
cmp eax, 0x454c
je 0x4228a3
cmp eax, 0x4550
jne 0x4228a9
or ebx, 0x400000
push 0
push 0
push 0
push dword [edi + 0x64]
call esi
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
sub ecx, 0xd53e8000
push 0
push 0x989680
sbb eax, 0x19db1de
mov dword [ebp + 0x10], ebx
push eax
push ecx
call fcn.004db760
mov ecx, dword [esp + 0x34]
mov dword [ebp], eax
sub ecx, 0xd53e8000
mov eax, dword [esp + 0x38]
push 0
push 0x989680
sbb eax, 0x19db1de
push eax
push ecx
call fcn.004db760
mov ecx, dword [esp + 0x24]
mov dword [ebp + 4], eax
sub ecx, 0xd53e8000
mov eax, dword [esp + 0x28]
push 0
push 0x989680
sbb eax, 0x19db1de
push eax
push ecx
call fcn.004db760
mov dword [ebp + 8], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
movzx ecx, word [esp + 0x10]
movzx eax, word [esp + 0x14]
shl ecx, 0x10
pop edi
or ecx, eax
xor eax, eax
pop esi
mov dword [ebp + 0xc], ecx
pop ebp
pop ebx
add esp, 0x44
ret
Function at 0x424460
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
mov ecx, esi
cmp dword [esi], 0
jge 0x4244bb
mov edx, 0x8b1f
call fcn.00424ea0
mov edx, 0x808
mov ecx, esi
call fcn.00424ea0
mov edx, dword [edi + 4]
mov ecx, esi
call fcn.00424ea0
movzx edx, word [edi + 6]
mov ecx, esi
call fcn.00424ea0
mov edx, 0xb02
mov ecx, esi
call fcn.00424ea0
mov eax, dword [edi + 0x20]
lea edx, [edi + 0x48]
inc eax
mov ecx, esi
push eax
call fcn.00425010
add esp, 4
pop edi
pop esi
pop ebx
ret
mov edx, 0x4034b50
call fcn.00424ea0
mov edx, 0x403
mov ecx, esi
call fcn.00424ea0
mov edx, 0x2d
mov ecx, esi
call fcn.00424ea0
movzx edx, word [edi + 0x30]
mov ecx, esi
call fcn.00424ea0
movzx edx, word [edi + 2]
mov ecx, esi
call fcn.00424ea0
mov edx, dword [edi + 4]
mov ecx, esi
call fcn.00424ea0
movzx edx, word [edi + 6]
mov ecx, esi
call fcn.00424ea0
mov edx, dword [edi + 8]
mov ecx, esi
call fcn.00424ea0
movzx edx, word [edi + 0xa]
mov ecx, esi
call fcn.00424ea0
or edx, 0xffffffff
mov ecx, esi
call fcn.00424ea0
or edx, 0xffffffff
mov ecx, esi
call fcn.00424ea0
or edx, 0xffffffff
mov ecx, esi
call fcn.00424ea0
or edx, 0xffffffff
mov ecx, esi
call fcn.00424ea0
mov edx, dword [edi + 0x20]
mov ecx, esi
call fcn.00424ea0
mov edx, dword [edi + 0x24]
mov ecx, esi
add edx, 0x14
call fcn.00424ea0
push dword [edi + 0x20]
lea edx, [edi + 0x48]
mov ecx, esi
call fcn.00425010
add esp, 4
mov edx, 1
mov ecx, esi
call fcn.00424ea0
mov edx, 0x10
mov ecx, esi
call fcn.00424ea0
mov edx, dword [edi + 0x18]
mov ecx, esi
call fcn.00424ea0
mov edx, dword [edi + 0x18]
mov ecx, esi
mov eax, dword [edi + 0x1c]
shrd edx, eax, 0x10
call fcn.00424ea0
mov eax, dword [edi + 0x18]
mov cl, 0x20
mov edx, dword [edi + 0x1c]
call fcn.004db740
mov edx, eax
mov ecx, esi
call fcn.00424ea0
movzx edx, word [edi + 0x1e]
mov ecx, esi
call fcn.00424ea0
mov edx, dword [edi + 0x10]
mov ecx, esi
call fcn.00424ea0
mov edx, dword [edi + 0x10]
mov ecx, esi
mov eax, dword [edi + 0x14]
shrd edx, eax, 0x10
call fcn.00424ea0
mov eax, dword [edi + 0x10]
mov cl, 0x20
mov edx, dword [edi + 0x14]
call fcn.004db740
mov edx, eax
mov ecx, esi
call fcn.00424ea0
movzx edx, word [edi + 0x16]
mov ecx, esi
call fcn.00424ea0
mov eax, dword [edi + 0x24]
test eax, eax
je 0x424611
mov edx, dword [edi + 0x40]
mov ecx, esi
push eax
call fcn.00425010
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x424db0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test edx, edx
jne 0x424db7
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
not ecx
cmp esi, 8
jb 0x424e77
push edi
mov edi, esi
shr edi, 3
nop dword [eax]
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4e6230]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4e6230]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4e6230]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4e6230]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4e6230]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4e6230]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4e6230]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4e6230]
sub edi, 1
jne 0x424dd0
pop edi
test esi, esi
je 0x424e9a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4e6230]
sub esi, 1
jne 0x424e80
not ecx
mov eax, ecx
pop esi
ret
Function at 0x424ea0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
sub esp, 0xc
push edi
mov edi, ecx
mov dword [esp + 0xc], edx
cmp dword [edi + 0x20], 0
jne 0x424fff
mov eax, edx
mov byte [esp + 4], dl
shr eax, 8
mov dword [esp + 8], eax
mov byte [esp + 5], al
mov eax, dword [edi]
test al, 0x10
je 0x424f87
push ebx
mov ebx, dword [edi + 0x38]
movsx eax, dl
xor eax, ebx
shr ebx, 8
movzx eax, al
push esi
mov esi, dword [edi + 0x40]
mov ecx, esi
and ecx, 0xfffd
xor ebx, dword [eax*4 + 0x4e6230]
or ecx, 2
movzx eax, bl
add eax, dword [edi + 0x3c]
imul edx, eax, 0x8088405
inc edx
mov eax, edx
shr eax, 0x18
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x4e6230]
mov eax, ecx
xor eax, 1
imul eax, ecx
mov ecx, esi
and ecx, 0xfffd
or ecx, 2
shr eax, 8
xor al, byte [esp + 0x14]
mov byte [esp + 0xc], al
mov eax, dword [esp + 0x10]
movsx eax, al
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x4e6230]
movzx eax, bl
add eax, edx
mov dword [edi + 0x38], ebx
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 0x3c], eax
shr eax, 0x18
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x4e6230]
mov eax, ecx
xor eax, 1
mov dword [edi + 0x40], esi
imul eax, ecx
pop esi
pop ebx
shr eax, 8
xor al, byte [esp + 8]
mov byte [esp + 5], al
mov eax, dword [edi]
test al, 1
je 0x424fc7
mov edx, dword [edi + 0x28]
mov ecx, edx
mov eax, dword [edi + 0x2c]
add ecx, 2
adc eax, 0
cmp eax, dword [edi + 0x34]
jb 0x424fb1
ja 0x424fa5
cmp ecx, dword [edi + 0x30]
jb 0x424fb1
mov dword [edi + 0x20], 0xb
pop edi
add esp, 0xc
ret
mov ecx, dword [edi + 4]
mov ax, word [esp + 4]
mov word [edx + ecx], ax
add dword [edi + 0x28], 2
adc dword [edi + 0x2c], 0
jmp 0x424ff0
push 0
lea eax, [esp + 0x10]
push eax
push 2
lea eax, [esp + 0x10]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x424fe9
cmp dword [esp + 0xc], 2
je 0x424ff0
mov dword [edi + 0x20], 3
test dword [edi], 0x40000000
je 0x424fff
mov dword [edi + 0x20], 0x14
pop edi
add esp, 0xc
ret
Function at 0x425010
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, ecx
push edi
mov edi, edx
test ebp, ebp
je 0x42517b
cmp dword [esi + 0x20], 0
jne 0x42517b
test byte [esi], 0x10
je 0x425109
mov ecx, dword [esi + 0x44]
mov eax, ecx
test ecx, ecx
je 0x425054
cmp dword [esi + 0x48], ebp
jae 0x425054
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 0x44], 0
jmp 0x425058
test eax, eax
jne 0x42507e
lea eax, [ebp*2]
push eax
push 0
mov dword [esi + 0x48], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 0x44], eax
test eax, eax
jne 0x42507e
mov dword [esi + 0x20], 2
jmp 0x42516c
push ebp
push edi
push eax
call fcn.004c2440
xor edx, edx
add esp, 0xc
mov dword [esp + 0x10], edx
test ebp, ebp
je 0x425106
push ebx
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x38]
mov bl, byte [edx + eax]
mov edx, dword [esi + 0x40]
mov edi, edx
movsx eax, bl
and edi, 0xfffd
xor eax, ecx
or edi, 2
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x4e6230]
movzx eax, cl
add eax, dword [esi + 0x3c]
imul eax, eax, 0x8088405
mov dword [esi + 0x38], ecx
mov ecx, edi
xor ecx, 1
imul ecx, edi
inc eax
mov dword [esi + 0x3c], eax
shr eax, 0x18
xor eax, edx
shr ecx, 8
movzx eax, al
xor cl, bl
shr edx, 8
xor edx, dword [eax*4 + 0x4e6230]
mov dword [esi + 0x40], edx
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x44]
mov byte [edx + eax], cl
inc edx
mov dword [esp + 0x14], edx
cmp edx, ebp
jb 0x425094
pop ebx
mov edi, dword [esi + 0x44]
test byte [esi], 1
je 0x425149
mov edx, dword [esi + 0x28]
mov ecx, edx
mov eax, dword [esi + 0x2c]
add ecx, ebp
adc eax, 0
cmp eax, dword [esi + 0x34]
jb 0x425130
ja 0x425127
cmp ecx, dword [esi + 0x30]
jb 0x425130
mov dword [esi + 0x20], 0xb
jmp 0x42516c
mov eax, dword [esi + 4]
push ebp
add eax, edx
push edi
push eax
call fcn.004c2440
add esp, 0xc
add dword [esi + 0x28], ebp
adc dword [esi + 0x2c], 0
jmp 0x42516c
push 0
lea eax, [esp + 0x14]
push eax
push ebp
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x425165
cmp dword [esp + 0x10], ebp
je 0x42516c
mov dword [esi + 0x20], 3
test dword [esi], 0x40000000
je 0x42517b
mov dword [esi + 0x20], 0x14
pop edi
pop esi
pop ebp
ret
Function at 0x4252b0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebp
push esi
mov esi, ecx
mov ebp, edx
push edi
mov eax, dword [esi]
test eax, 0x40000000
je 0x4252cf
pop edi
mov dword [esi + 0x20], 0x14
xor eax, eax
pop esi
pop ebp
pop ecx
ret
test al, al
jns 0x42531a
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x70]
mov edi, dword [esi + 0x68]
cmp eax, dword [esi + 0x6c]
ja 0x42533a
jb 0x4252e7
cmp ecx, edi
jae 0x42533a
mov eax, dword [esp + 0x14]
sub edi, ecx
mov dword [esp + 0xc], edi
push ebx
mov ebx, edi
cmp edi, eax
jbe 0x425300
mov edi, eax
mov ebx, eax
mov dword [esp + 0x10], edi
mov eax, dword [esi + 0x64]
push ebx
add eax, ecx
push eax
push ebp
call fcn.004c2440
add esp, 0xc
add dword [esi + 0x70], ebx
adc dword [esi + 0x74], 0
pop ebx
jmp 0x425345
push 0
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x1c]
push ebp
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x425341
mov dword [esi + 0x20], 7
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
mov edi, dword [esp + 0xc]
add dword [esi + 0x58], edi
mov edx, ebp
mov ecx, dword [esi + 0x60]
adc dword [esi + 0x5c], 0
push edi
call fcn.00424db0
add esp, 4
mov dword [esi + 0x60], eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x427630
Capabilities:
Accept command line arguments
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, ecx
mov dword [ebp - 4], eax
push esi
mov esi, edx
push edi
test eax, eax
je 0x427786
cmp dword [eax + 0x18], 0
jne 0x427786
cmp dword [eax + 0x3c], 0
je 0x427786
cmp dword [eax + 0x1c], 0
je 0x427786
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x427670
sub eax, edx
inc eax
lea ecx, [eax + 8]
cmp eax, ecx
sbb eax, eax
test ecx, eax
je 0x427703
mov ecx, ebx
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x427690
sub ecx, edx
lea eax, [ecx + 1]
lea ecx, [eax + 8]
cmp eax, ecx
sbb edx, edx
and edx, ecx
mov ecx, ebx
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4276b0
sub ecx, edi
lea eax, [ecx + 1]
lea ecx, [eax + 8]
cmp edx, 0x400
ja 0x4276e3
cmp eax, ecx
sbb eax, eax
and eax, ecx
call fcn.004db840
mov edi, esp
test edi, edi
je 0x427705
mov dword [edi], 0xcccc
add edi, 8
jmp 0x427705
cmp eax, ecx
sbb eax, eax
and eax, ecx
push eax
call fcn.004c4e35
mov edi, eax
add esp, 4
test edi, edi
je 0x427705
mov dword [edi], 0xdddd
add edi, 8
jmp 0x427705
xor edi, edi
mov edx, edi
mov ecx, ebx
sub edx, ebx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x427710
mov ecx, ebx
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x427721
mov eax, dword [ebp - 4]
push 0
push 0
push 0
push dword [eax + 0x3c]
push 0
push 0
call fcn.004cbab0
add esp, 0x18
mov esi, eax
push 0x64
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, edi
sub ebx, edi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ebx + ecx - 1], al
test al, al
jne 0x427755
test edi, edi
je 0x42777a
add edi, 0xfffffff8
cmp dword [edi], 0xdddd
jne 0x42777a
push edi
call fcn.004c4247
add esp, 4
mov eax, esi
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428300
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x4fc470]
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
test eax, eax
je 0x428320
cmp dword [eax + 4], 0
jne 0x428424
mov eax, dword [eax]
test eax, eax
jne 0x428310
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x4284ef
lea edx, [eax + 0x20]
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov esi, 0x20
mov ecx, dword [eax + 4]
add esi, 0x20
mov dword [edx], ecx
mov dword [eax + 4], edx
add edx, 0x20
cmp esi, 0xfe0
jbe 0x428352
mov ecx, dword [0x4fc470]
mov dword [eax], ecx
mov dword [0x4fc470], eax
mov ebp, dword [eax + 4]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebp
mov ecx, dword [ebp]
inc dword [eax + 8]
mov dword [eax + 4], ecx
lea ecx, [esp + 0x18]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
call fcn.00428590
test eax, eax
je 0x4284e8
push 0x28
call fcn.004c4e35
mov esi, eax
add esp, 4
test esi, esi
je 0x4284e8
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
and edi, 0xf
mov ecx, dword [esp + 0x30]
mov dword [esi], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 8], eax
mov eax, edx
and eax, 1
shl edi, 3
or edi, eax
mov dword [esi + 0x1c], ecx
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x38]
and eax, 0xffffff80
or edi, eax
mov dword [esi + 0x24], ecx
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x14], edi
mov dword [esi + 0x20], eax
test edx, edx
je 0x428434
mov eax, dword [ebx - 5]
mov dword [esi + 0xc], eax
mov ax, word [ebx - 1]
mov word [esi + 0x10], ax
mov al, byte [ebx + 1]
mov byte [esi + 0x12], al
jmp 0x42843f
test eax, eax
jne 0x428375
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov eax, dword [ebx]
mov dword [esi + 0xc], eax
mov al, byte [ebx + 4]
mov byte [esi + 0x10], al
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
shl edi, 0x1f
sar edi, 0x1f
test edi, edi
lea ebx, [eax - 5]
cmove ebx, eax
xor eax, eax
test edi, edi
push ecx
setne al
push 0x40
lea eax, [eax*2 + 5]
push eax
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x428490
mov ecx, ebp
call fcn.00428290
push esi
call fcn.004c4247
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov eax, dword [esp + 0x1c]
sub eax, ebx
mov byte [ebx], 0xe9
sub eax, 5
mov dword [ebx + 1], eax
test edi, edi
je 0x4284ac
mov eax, dword [esp + 0x18]
mov word [eax], 0xf9eb
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4284de
mov ecx, dword [esp + 0x20]
mov dword [eax], ecx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov ecx, ebp
call fcn.00428290
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret
Function at 0x428500
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi]
mov ecx, dword [esi + 0x14]
shl ecx, 0x1f
sar ecx, 0x1f
test ecx, ecx
lea edi, [eax - 5]
cmove edi, eax
xor ebx, ebx
test ecx, ecx
lea eax, [esp + 0x10]
push eax
setne bl
push 0x40
lea ebx, [ebx*2 + 5]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x42854a
push esi
call fcn.004c4247
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x428565
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x42856b
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
call fcn.004c4247
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
ret