joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401e29
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401e3d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401e5e
cmp esi, eax
jae 0x401e37
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401e50
cmp esi, eax
jae 0x401e37
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4065f0
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x43571b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
mov eax, dword [0x4476d4]
xor eax, dword [esp + 0x13c]
push ebx
push esi
mov esi, dword [esp + 0x148]
lea ecx, [esp + 8]
mov dword [esp + 0x134], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x18]
mov edx, dword [esi]
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x140], ebx
call dword [edx + 0x4c]
push ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.0041a876
mov esi, dword [esp + 0x150]
mov ecx, dword [esi + 0x3c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x38]
add esp, 4
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], edx
lea edx, [esp + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 8]
push edx
push eax
mov byte [esp + 0x34], bl
mov dword [esp + 0x20], ecx
call fcn.0042d0d6
mov ecx, dword [esi + 0x34]
mov edx, dword [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x140], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
pop ebx
jg 0x4066d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x12c]
xor ecx, dword [esp + 0x13c]
call fcn.00419d0f
add esp, 0x13c
ret 8
Function at 0x40b470
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x40b47f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x445238]
test eax, eax
je 0x40b48d
call fcn.0040b410
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
cmp edx, 8
push ebx
not eax
jb 0x40b58f
push edi
mov edi, edx
shr edi, 3
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx*4 + 0x448664]
sub edx, 8
xor eax, ebx
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x448664]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x448664]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x448664]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x448664]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x448664]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x448664]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x448664]
xor eax, ecx
inc esi
dec edi
jne 0x40b4a7
pop edi
test edx, edx
je 0x40b5b1
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x448664]
xor eax, ecx
inc esi
dec edx
jne 0x40b593
pop ebx
pop esi
not eax
ret 0xc
Function at 0x4111cf
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 edi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x411222
call fcn.00432ac0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x411222
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x411218
xor eax, eax
jmp 0x411337
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x411251
mov eax, dword [edi]
push ebx
push dword [ebp - 4]
mov ecx, edi
push dword [ebp + 8]
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x411251
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
test eax, eax
je 0x411334
mov edi, dword [eax + 0x40]
and dword [ebp + 0x10], 0
xor eax, eax
cmp edi, eax
mov dword [ebp + 0xc], edi
mov dword [ebp - 8], edi
je 0x411280
mov ecx, dword [edi]
mov dword [ebp + 0xc], ecx
mov ecx, dword [edi + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], ecx
cmp dword [ebx + 8], eax
mov dword [ebp - 4], eax
jbe 0x411334
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4112be
mov ecx, dword [ecx + 4]
mov edx, dword [ebx + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x4112be
test edi, edi
mov dword [ebp - 8], edi
je 0x4112b8
mov eax, dword [edi]
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
jmp 0x411324
and dword [ebp + 0x10], 0
jmp 0x411324
mov ecx, dword [ebx + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x411324
push 0xc
call fcn.0042baa7
mov esi, eax
test esi, esi
pop ecx
je 0x411303
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebx + 0xc]
mov edx, dword [ebp - 0x10]
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 + 0xc]
mov dword [esi], eax
jmp 0x411305
xor esi, esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x41131f
push dword [ebp - 8]
call fcn.00427840
jmp 0x411324
call fcn.00427817
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jb 0x41128c
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41ad92
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x41adaf
call fcn.0041c110
mov dword [eax], 0x16
xor eax, eax
jmp 0x41ae19
push esi
push 0x88
push 1
call fcn.0041b80f
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41ae04
push esi
call fcn.0041e633
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x41ade2
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x41acee
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x41ae18
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0041b567
test ebx, ebx
pop ecx
je 0x41ae16
push ebx
call fcn.0041c122
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41b63d
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x43c5a0
call fcn.0041c0c4
mov edi, 0x94
mov eax, edi
call fcn.0041a9c0
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 [0x44a9d8], ecx
mov eax, dword [esi + 4]
mov dword [0x44a9e4], eax
mov edx, dword [esi + 8]
mov dword [0x44a9e8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x44a9dc], esi
cmp ecx, 2
je 0x41b69d
or esi, 0x8000
mov dword [0x44a9dc], esi
shl eax, 8
add eax, edx
mov dword [0x44a9e0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41b6d8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41b6d8
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41b6f0
cmp eax, 0x20b
je 0x41b6dd
mov dword [ebp - 0x1c], esi
jmp 0x41b704
cmp dword [ecx + 0x84], 0xe
jbe 0x41b6d8
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41b6fe
cmp dword [ecx + 0x74], 0xe
jbe 0x41b6d8
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00421a07
pop ecx
test eax, eax
jne 0x41b718
push 0x1c
call fcn.0041b619
pop ecx
call fcn.0041e822
test eax, eax
jne 0x41b729
push 0x10
call fcn.0041b619
pop ecx
call fcn.00422da4
mov dword [ebp - 4], esi
call fcn.00422ba6
test eax, eax
jge 0x41b742
push 0x1b
call fcn.0041b5f4
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x44c230], eax
call fcn.00422a84
mov dword [0x44a9c8], eax
call fcn.004229e2
test eax, eax
jge 0x41b768
push 8
call fcn.0041b5f4
pop ecx
call fcn.004227af
test eax, eax
jge 0x41b779
push 9
call fcn.0041b5f4
pop ecx
call fcn.0041c1d7
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x41b78c
push eax
call fcn.0041b5f4
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00422746
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x41b7ad
movzx eax, word [ebp - 0x34]
jmp 0x41b7b0
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00426f9e
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x41b7ce
push edi
call fcn.0041c30f
call fcn.0041c331
jmp 0x41b800
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041c0ff
ret
Function at 0x423454
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x42361a
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x44bec0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x42361a
test cl, 0x48
je 0x4234ba
mov al, byte [eax + 5]
cmp al, 0xa
je 0x4234ba
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42350c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4234f4
call fcn.0041c110
mov dword [eax], 9
call fcn.0041c119
mov dword [eax], esi
jmp 0x423504
cmp eax, 0x6d
je 0x42361a
push eax
call fcn.0041c122
pop ecx
or eax, 0xffffffff
jmp 0x42361c
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x423615
test edx, edx
je 0x42352f
cmp byte [ebx], 0xa
jne 0x42352f
or al, 4
jmp 0x423531
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x42360f
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4235ff
cmp al, 0xd
je 0x423565
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4235f1
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x42357f
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x42357a
add dword [ebp + 0x10], 2
jmp 0x4235d3
mov dword [ebp + 0x10], eax
jmp 0x4235ed
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
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 0x4235a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4235ed
cmp dword [ebp - 0xc], 0
je 0x4235ed
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4235c8
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4235d3
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4235f0
cmp ebx, dword [ebp + 0xc]
jne 0x4235d8
cmp byte [ebp - 1], 0xa
jne 0x4235d8
mov byte [ebx], 0xa
jmp 0x4235f0
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004239ce
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4235f1
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x423549
jmp 0x42360f
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x42360f
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x42361c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4236cc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4476d4]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x4236f5
xor eax, eax
jmp 0x423863
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x44bec0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x423728
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00425b88
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4237fa
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x423835
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x423783
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x423774
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x423757
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4237c3
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x4237cc
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x423748
jmp 0x4237ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x42385e
cmp dword [ebp - 8], edi
je 0x423835
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x423827
call fcn.0041c110
mov dword [eax], 9
call fcn.0041c119
mov dword [eax], esi
jmp 0x423830
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42381c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x4237ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x4237ce
push dword [ebp - 8]
call fcn.0041c122
pop ecx
or eax, 0xffffffff
jmp 0x423861
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x42384a
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x42384a
xor eax, eax
jmp 0x423861
call fcn.0041c110
mov dword [eax], 0x1c
call fcn.0041c119
mov dword [eax], edi
jmp 0x423830
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.00419d0f
leave
ret
Function at 0x423c27
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4476d4]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x423ca2
push ebx
call fcn.00423bf0
test eax, eax
pop ecx
jne 0x423c74
call fcn.0041c119
mov dword [eax], 0xf
call fcn.0041c110
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.00419d0f
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x423cb4
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x423c64
inc eax
cmp eax, 0x104
ja 0x423c64
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x423cec
cmp eax, dword [ebp + 0x10]
jg 0x423ccf
mov eax, dword [ebp + 0x10]
push eax
call fcn.0041b555
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x423d01
call fcn.0041c110
mov dword [eax], 0xc
jmp 0x423c64
cmp eax, dword [ebp + 0x10]
jle 0x423d01
call fcn.0041c110
mov dword [eax], 0x22
jmp 0x423c64
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.00420620
pop ecx
pop ecx
jmp 0x423c66

Function at 0x424571
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x44adc0], ebx
push esi
push edi
jne 0x4245f1
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42462c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43d4c4
push edi
call esi
test eax, eax
mov dword [0x44adc0], eax
je 0x42462c
push 0x43d4b4
push edi
call esi
push 0x43d4a0
push edi
mov dword [0x44adc4], eax
call esi
cmp dword [0x44a9d8], 2
mov dword [0x44adc8], eax
jne 0x4245f1
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x44add0], eax
je 0x4245f1
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x44adcc], eax
mov eax, dword [0x44adcc]
test eax, eax
je 0x424636
call eax
test eax, eax
je 0x42461d
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x44add0]
test eax, eax
je 0x42461d
test byte [ebp - 8], 1
jne 0x424636
cmp dword [0x44a9e4], 4
jb 0x424630
or byte [ebp + 0x12], 0x20
jmp 0x424655
xor eax, eax
jmp 0x424665
or byte [ebp + 0x12], 4
jmp 0x424655
mov eax, dword [0x44adc4]
test eax, eax
je 0x424655
call eax
mov ebx, eax
test ebx, ebx
je 0x424655
mov eax, dword [0x44adc8]
test eax, eax
je 0x424655
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x44adc0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424c3f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.0041a9c0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x424cd4
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x44a9d8]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x424cd4
cmp eax, 1
je 0x424cec
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x424cd4
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x424ca9
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x424cd0
xor eax, eax
inc eax
jmp 0x424d08
cmp esi, ebx
jae 0x424cd8
xor eax, eax
jmp 0x424d08
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x44a9d8]
jmp 0x424cee
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424d91
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
je 0x424dbc
cmp eax, 1
je 0x424dbc
jle 0x424dc4
cmp eax, 3
jle 0x424dbc
cmp eax, 4
jne 0x424dc4
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x424def
call fcn.0041c110
mov dword [eax], 0x16
call fcn.0041c119
mov dword [eax], ebx
or eax, 0xffffffff
jmp 0x424f68
inc eax
cmp byte [eax], bl
jne 0x424dde
lea ecx, [eax + 1]
cmp byte [ecx], bl
je 0x424def
mov byte [eax], 0x20
mov eax, ecx
cmp byte [eax], bl
jne 0x424dde
push esi
push edi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.0041b980
mov dword [ebp - 0x68], esi
mov esi, dword [0x44bea4]
add esp, 0xc
cmp esi, ebx
je 0x424e36
lea ecx, [esi - 1]
mov edx, ecx
mov eax, ecx
sar edx, 5
mov edx, dword [edx*4 + 0x44bec0]
and eax, 0x1f
lea eax, [eax + eax*8]
cmp byte [edx + eax*4 + 4], bl
jne 0x424e36
dec esi
dec ecx
cmp esi, ebx
jne 0x424e16
lea eax, [esi + esi*4 + 4]
mov word [ebp - 0x36], ax
movzx eax, ax
push 1
push eax
call fcn.0041b80f
cmp esi, ebx
mov dword [ebp - 0x34], eax
pop ecx
mov dword [eax], esi
mov eax, dword [ebp - 0x34]
pop ecx
mov dword [ebp - 8], ebx
lea ecx, [eax + 4]
lea edx, [eax + esi + 4]
jle 0x424e9c
mov eax, dword [ebp - 8]
mov edi, eax
sar edi, 5
mov edi, dword [edi*4 + 0x44bec0]
and eax, 0x1f
lea eax, [eax + eax*8]
lea edi, [edi + eax*4]
mov al, byte [edi + 4]
test al, 0x10
jne 0x424e88
mov byte [ecx], al
mov eax, dword [edi]
mov dword [edx], eax
jmp 0x424e8d
mov byte [ecx], bl
or dword [edx], 0xffffffff
inc dword [ebp - 8]
inc ecx
add edx, 4
cmp dword [ebp - 8], esi
jl 0x424e61
mov eax, dword [ebp - 0x34]
cmp byte [ebp - 1], bl
je 0x424ecd
lea ecx, [eax + 4]
xor edx, edx
lea eax, [eax + esi + 4]
cmp esi, 3
jge 0x424eb3
mov edi, esi
jmp 0x424eb6
push 3
pop edi
cmp edx, edi
jge 0x424ec6
mov byte [ecx], bl
or dword [eax], 0xffffffff
inc edx
inc ecx
add eax, 4
jmp 0x424eaa
mov dword [ebp - 0xc], 8
call fcn.0041c110
mov dword [eax], ebx
call fcn.0041c119
mov dword [eax], ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0xc]
push 1
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x34]
mov edi, eax
call fcn.0041b567
cmp esi, ebx
pop ecx
jne 0x424f1d
push edi
call fcn.0041c122
pop ecx
or eax, 0xffffffff
jmp 0x424f66
cmp dword [ebp + 8], 2
jne 0x424f29
push ebx
call fcn.0041c320
cmp dword [ebp + 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x424f56
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x24]
call esi
jmp 0x424f5f
cmp dword [ebp + 8], 4
je 0x424f4f
mov ebx, dword [ebp - 0x24]
push dword [ebp - 0x20]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret