joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424330
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x105
mov dword [esp + 0x14], 0
call fcn.00445d54
mov ebx, dword [sym.imp.KERNEL32.dll_SearchPathA]
mov esi, eax
xor eax, eax
mov ecx, 0x41
mov edi, esi
rep stosd dword es:[edi], eax
add esp, 4
stosb byte es:[edi], al
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push esi
push 0x104
push 0
push edi
push 0
call ebx
test eax, eax
ja 0x42440d
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.Drivers_
push 0x104
push esi
call fcn.004042c0
lea ecx, [esp + 0x10]
push ecx
push esi
push 0x104
push 0
push edi
push esi
call ebx
test eax, eax
ja 0x42440d
mov ebp, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
push esi
call ebp
push str.System32Drivers_
push 0x104
push esi
call fcn.004042c0
lea edx, [esp + 0x10]
push edx
push esi
push 0x104
push 0
push edi
push esi
call ebx
test eax, eax
ja 0x42440d
push 0x104
push esi
call ebp
push str.SystemDrivers_
push 0x104
push esi
call fcn.004042c0
lea eax, [esp + 0x10]
push eax
push esi
push 0x104
push 0
push edi
push esi
call ebx
test eax, eax
jbe 0x424423
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x424423
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4

Function at 0x424510
Capabilities:
Create directory

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
mov esi, ecx
call fcn.004240b0
test al, al
jne 0x424540
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x424540
push edi
mov ecx, esi
call fcn.00424150
test al, al
jne 0x424540
pop edi
pop esi
ret 4
pop edi
mov al, 1
pop esi
ret 4
Function at 0x424e60
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 4]
push eax
mov eax, dword [esp + 8]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb al, al
inc al
ret 0xc

Function at 0x424e90
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x424ec7
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x424ecc
cmp eax, 7
je 0x424ecc
cmp eax, 2
je 0x424ecc
xor al, al
ret 0xc
mov al, 1
ret 0xc

Function at 0x4261e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esi], 0
xor ebx, ebx
lea edi, [esi + 4]
lea ebp, [esi + 8]
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
push 0
push edi
push ebp
mov dword [edi], 0x104
mov eax, dword [eax + 4]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
mov dword [esi], eax
jne 0x426232
mov ecx, dword [esp + 0x18]
push ebp
push ecx
call fcn.00431f9e
add esp, 8
test eax, eax
je 0x42623b
mov eax, dword [esi]
inc ebx
test eax, eax
je 0x4261f4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 8
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 8
Function at 0x426250
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x453b1e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push eax
mov esi, ecx
push ebx
mov dword [esp + 0x20], esi
call fcn.004261e0
test al, al
je 0x426294
mov ecx, dword [ebp + 0x10]
push ebx
call fcn.00426150
xor eax, eax
mov byte [esp + 0x20], 0
mov ecx, 0x41
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
lea edi, [esi + 0x110]
push edi
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push eax
mov byte [esp + 0x2f], 1
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x426376
push 0xc
call fcn.00445d24
add esp, 4
mov dword [esp + 0x1c], eax
xor esi, esi
cmp eax, esi
mov dword [esp + 0x134], esi
je 0x42630a
mov ecx, eax
call fcn.00424e10
mov esi, eax
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x20]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x13c], 0xffffffff
call fcn.00424f50
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
push edx
push eax
push esi
call fcn.00426250
mov cl, byte [esp + 0xf]
push edi
push 0
push 0
and cl, al
mov eax, dword [ebx + 4]
push 0
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x23], cl
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x34]
inc ecx
push edx
push ecx
push eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4262e6
mov cl, byte [esp + 0xf]
cmp eax, 0x103
sete al
pop edi
and al, cl
mov ecx, dword [esp + 0x128]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42761c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x42766f
call fcn.0044f586
mov edi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x42766f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x427665
xor eax, eax
jmp 0x427788
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x42769f
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x42769f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x427785
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x4276cc
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004266b9
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x427785
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x427715
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x427715
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x42770f
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004266b9
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x427775
and dword [ebp + 0xc], 0
jmp 0x427775
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x427775
push 0xc
call fcn.00445d24
mov esi, eax
test esi, esi
pop ecx
je 0x427757
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x427759
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x427770
push dword [ebp - 8]
call fcn.00444da5
jmp 0x427775
call fcn.00444d7c
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x4276da
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x43032d
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.004302f0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4303c8
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 [0x47597c]
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 0x4303c8
cmp eax, 1
je 0x4303e9
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 0x4303c8
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x430395
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4303c4
xor eax, eax
inc eax
jmp 0x430408
cmp edi, eax
jae 0x4303cc
xor eax, eax
jmp 0x430408
cmp eax, esi
jae 0x4303d3
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 [0x47597c]
jmp 0x4303ec
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 0x4315f5
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4606c0
call fcn.00432b0c
push 8
call fcn.00433c25
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4759bc], esi
jne 0x431629
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4759b8], esi
mov al, byte [ebp + 0x10]
mov byte [0x4759b4], al
cmp dword [ebp + 0xc], edi
jne 0x431673
cmp dword [0x47744c], edi
je 0x431663
mov eax, dword [0x477448]
sub eax, 4
mov dword [0x477448], eax
cmp eax, dword [0x47744c]
jb 0x431663
mov eax, dword [eax]
cmp eax, edi
je 0x431644
call eax
jmp 0x431644
push 0x4710d4
mov eax, 0x4710cc
call fcn.00431573
pop ecx
push 0x4710e0
mov eax, 0x4710d8
call fcn.00431573
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4316a4
cmp dword [ebp + 0x10], edi
jne 0x4316b2
mov dword [0x4759bc], esi
push dword [ebp + 8]
call fcn.00431531
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4316b1
push 8
call fcn.00433b70
pop ecx
ret
call fcn.00432b47
ret
Function at 0x4353d7
Capabilities:
Enumerate pe sections

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 0x435405
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 0x43540c
cmp ebx, dword [eax + 4]
jae 0x43540c
xor eax, eax
jmp 0x4355fc
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x43541d
xor eax, eax
inc eax
jmp 0x4355fb
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x435433
cmp ecx, edx
jae 0x435578
cmp dword [eax + 4], 0
je 0x43543c
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x435424
cmp dword [ebp + 8], 0
je 0x43545e
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x435578
cmp eax, esi
jae 0x435578
mov eax, dword [0x475b40]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x435483
cmp dword [esi*4 + 0x475b48], edi
je 0x43557c
inc esi
cmp esi, eax
jl 0x435471
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4355f8
cmp dword [ebp - 8], 0x1000000
invalid
test dword [ebx + 1], edx

Function at 0x435572
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x4355ad
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x435594
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x4355a5
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x4355af
inc edi
add eax, 0x28
cmp edi, esi
jb 0x43558a
xor eax, eax
pop edi
pop esi
ret
Function at 0x435c21
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x435c09
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x435c27
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
add byte [eax], al
invalid
mov edi, dword [eax + 0x24]
add byte [eax], al
add byte [ebx + 0x448d2478], cl
or bh, bh
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x435c85
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x435c6c
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x435c75
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x435c7f
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x435c61
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x435beb
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x435cd2
dec eax
je 0x435cc9
sub eax, 3
je 0x435cc0
mov dword [ebp - 4], 0x40
jmp 0x435cef
mov dword [ebp - 4], 4
jmp 0x435cd5
mov dword [ebp - 4], 0x20
jmp 0x435cd5
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x435d21
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x435ca1
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00435532
xchg dh, al
inc ebx
push es
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x435d2d
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x437994
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4722c4]
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 + 0x4727a0]
je 0x4379c9
inc eax
cmp eax, 0x13
jb 0x4379ba
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4727a0]
jne 0x437aef
mov eax, dword [0x4759c8]
cmp eax, 1
je 0x437ac7
cmp eax, edx
jne 0x4379f9
cmp dword [0x472344], 1
je 0x437ac7
cmp ecx, 0xfc
je 0x437aef
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 0x437a2f
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004318b0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00430780
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x437a63
mov eax, edi
push eax
call fcn.00430780
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x460774
push edi
call fcn.0043b7b0
add esp, 0x10
push edi
call fcn.00430780
push dword [esi + 0x4727a4]
mov ebx, eax
call fcn.00430780
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004302f0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004318b0
push edi
push ebx
call fcn.004318c0
push 0x460770
push ebx
call fcn.004318c0
push dword [esi + 0x4727a4]
push ebx
call fcn.004318c0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0043b6b0
add esp, 0x2c
jmp 0x437aef
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4727a4]
push dword [esi]
call fcn.00430780
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.0042fcee
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x43b6b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x475db8], ebx
push esi
push edi
jne 0x43b730
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43b76b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4650ec
push edi
call esi
test eax, eax
mov dword [0x475db8], eax
je 0x43b76b
push 0x4650dc
push edi
call esi
push 0x4650c8
push edi
mov dword [0x475dbc], eax
call esi
cmp dword [0x47597c], 2
mov dword [0x475dc0], eax
jne 0x43b730
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x475dc8], eax
je 0x43b730
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x475dc4], eax
mov eax, dword [0x475dc4]
test eax, eax
je 0x43b775
call eax
test eax, eax
je 0x43b75c
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x475dc8]
test eax, eax
je 0x43b75c
test byte [ebp - 8], 1
jne 0x43b775
cmp dword [0x475988], 4
jb 0x43b76f
or byte [ebp + 0x12], 0x20
jmp 0x43b794
xor eax, eax
jmp 0x43b7a4
or byte [ebp + 0x12], 4
jmp 0x43b794
mov eax, dword [0x475dbc]
test eax, eax
je 0x43b794
call eax
mov ebx, eax
test ebx, ebx
je 0x43b794
mov eax, dword [0x475dc0]
test eax, eax
je 0x43b794
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x475db8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43c1a2
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4722c4]
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 0x43c1d3
xor eax, eax
jmp 0x43c35c
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 + 0x4770e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x43c20f
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0043fe3f
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x43c2ea
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x43c328
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 0x43c273
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x43c264
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 0x43c244
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 0x43c2b3
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x43c2bc
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x43c235
jmp 0x43c2be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x43c357
cmp dword [ebp - 0x6c], edi
je 0x43c328
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x43c31d
call fcn.0043330e
mov dword [eax], 9
call fcn.00433317
mov dword [eax], esi
jmp 0x43c352
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 0x43c312
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x43c2be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x43c2be
push dword [ebp - 0x6c]
call fcn.00433320
pop ecx
jmp 0x43c352
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x43c340
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x43c340
xor eax, eax
jmp 0x43c35a
call fcn.0043330e
mov dword [eax], 0x1c
call fcn.00433317
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x43c35a
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0042fcee
add ebp, 0x3a0
leave
ret
Function at 0x440632
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 0x440806
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4770e0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x440806
test cl, 0x48
je 0x44069d
cmp byte [eax + 5], 0xa
je 0x44069d
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
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 0x4406ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4406d7
call fcn.0043330e
mov dword [eax], 9
call fcn.00433317
mov dword [eax], esi
jmp 0x4406e7
cmp eax, 0x6d
je 0x440806
push eax
call fcn.00433320
pop ecx
or eax, 0xffffffff
jmp 0x440808
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x440801
test eax, eax
je 0x440716
cmp byte [ebx], 0xa
jne 0x440716
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x44071f
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
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 0x4407fb
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4407eb
cmp al, 0xd
je 0x440751
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4407dd
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x44076b
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x440766
add dword [ebp + 0x10], 2
jmp 0x4407bf
mov dword [ebp + 0x10], eax
jmp 0x4407d9
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 0x440793
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4407d9
cmp dword [ebp - 0xc], 0
je 0x4407d9
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4407b4
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4407bf
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4407dc
cmp ebx, dword [ebp + 0xc]
jne 0x4407c4
cmp byte [ebp - 1], 0xa
jne 0x4407c4
mov byte [ebx], 0xa
jmp 0x4407dc
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043c083
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4407dd
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x440735
jmp 0x4407fb
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4407fb
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x440808
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret