joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406a70
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
push esi
lea eax, [esp + 4]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x406ad2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc

Function at 0x407d50
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x44cf98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x80]
test eax, eax
jne 0x407e56
push esi
call fcn.00430a89
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 8], esi
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x14], 0
jge 0x407dbb
push 0x104
lea ecx, [esp + 0xc]
call fcn.00404b10
mov esi, dword [esp + 8]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test esi, esi
jne 0x407dcf
xor eax, eax
jmp 0x407de3
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407dd4
sub eax, edx
js 0x407e66
cmp eax, dword [esi - 8]
jg 0x407e66
push edi
push 0xd
mov dword [esi - 0xc], eax
push str.winhlp32.exe
lea ecx, [esp + 0x14]
mov byte [eax + esi], 0
call fcn.00407750
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x407e2b
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x407e2b
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebx + 0x80], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [edi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
jg 0x407e55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
mov ecx, dword [esp + 8]
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
push 0x80070057
call fcn.00402540
int3
Function at 0x40af20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44d138
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
push edi
mov edi, dword [sym.imp.USER32.dll_GetParent]
push eax
call edi
push eax
call fcn.0042d197
push eax
lea ecx, [esp + 0x30]
call fcn.00435f09
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x50], 0
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x1c]
push edx
push eax
call edi
push eax
call fcn.0042d197
mov ecx, eax
call fcn.00435b29
mov eax, dword [esi + 0xdc]
test eax, eax
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
jne 0x40b042
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0xd8]
call fcn.00435e72
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x14]
sub ecx, edi
push eax
push ecx
push edx
lea edi, [esi + 0xe8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call fcn.0043616f
test edi, edi
je 0x40aff8
mov edi, dword [edi + 4]
mov eax, dword [esi + 0xdc]
push edi
push eax
call fcn.0043622a
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
push 0xcc0020
push edx
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x3c]
mov dword [esi + 0xf0], eax
mov eax, dword [esp + 0x24]
sub eax, ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [esi + 0xdc]
sub ecx, edi
push ecx
push 0
push 0
push eax
call ebx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0xd8]
sub ecx, edi
test edx, edx
je 0x40b063
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
push eax
push ecx
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx + 4]
push 0
push 0
push edx
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
call fcn.00435f64
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x413697
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.00413170
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x413732
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 [0x469090]
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 0x413732
cmp eax, 1
je 0x413753
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 0x413732
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4136ff
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41372e
xor eax, eax
inc eax
jmp 0x413772
cmp edi, eax
jae 0x413736
xor eax, eax
jmp 0x413772
cmp eax, esi
jae 0x41373d
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 [0x469090]
jmp 0x413756
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 0x41396a
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4575d8
call fcn.00414924
mov edi, 0x94
mov eax, edi
call fcn.00413170
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 [0x469090], ecx
mov eax, dword [esi + 4]
mov dword [0x46909c], eax
mov edx, dword [esi + 8]
mov dword [0x4690a0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x469094], esi
cmp ecx, 2
je 0x4139ca
or esi, 0x8000
mov dword [0x469094], esi
shl eax, 8
add eax, edx
mov dword [0x469098], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x413a05
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x413a05
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x413a1d
cmp eax, 0x20b
je 0x413a0a
mov dword [ebp - 0x1c], esi
jmp 0x413a31
cmp dword [ecx + 0x84], 0xe
jbe 0x413a05
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x413a2b
cmp dword [ecx + 0x74], 0xe
jbe 0x413a05
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00418af1
pop ecx
test eax, eax
jne 0x413a45
push 0x1c
call fcn.004138f0
pop ecx
call fcn.00416aa4
test eax, eax
jne 0x413a56
push 0x10
call fcn.004138f0
pop ecx
call fcn.0041a862
mov dword [ebp - 4], esi
call fcn.0041a618
test eax, eax
jge 0x413a6f
push 0x1b
call fcn.004138cb
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x46a950], eax
call fcn.0041a4f6
mov dword [0x46907c], eax
call fcn.0041a454
test eax, eax
jge 0x413a95
push 8
call fcn.004138cb
pop ecx
call fcn.0041a221
test eax, eax
jge 0x413aa6
push 9
call fcn.004138cb
pop ecx
push 1
call fcn.00414639
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x413abc
push eax
call fcn.004138cb
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041a1c4
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x413add
movzx eax, word [ebp - 0x40]
jmp 0x413ae0
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00425494
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x413afe
push edi
call fcn.00414766
call fcn.00414788
jmp 0x413b30
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041495f
ret
Function at 0x4146a3
Capabilities:
Terminate process

Disassembly:
push 8
push 0x457658
call fcn.00414924
push 8
call fcn.00418aa6
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4690d0], esi
jne 0x4146d7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4690cc], esi
mov al, byte [ebp + 0x10]
mov byte [0x4690c8], al
cmp dword [ebp + 0xc], edi
jne 0x414721
cmp dword [0x46a948], edi
je 0x414711
mov eax, dword [0x46a944]
sub eax, 4
mov dword [0x46a944], eax
cmp eax, dword [0x46a948]
jb 0x414711
mov eax, dword [eax]
cmp eax, edi
je 0x4146f2
call eax
jmp 0x4146f2
push 0x465094
mov eax, 0x46508c
call fcn.00414603
pop ecx
push 0x4650a0
mov eax, 0x465098
call fcn.00414603
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x414752
cmp dword [ebp + 0x10], edi
jne 0x414760
mov dword [0x4690d0], esi
push dword [ebp + 8]
call fcn.004145c1
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41475f
push 8
call fcn.004189d9
pop ecx
ret
call fcn.0041495f
ret

Function at 0x414897
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 0x4148b4
call fcn.004155a5
mov dword [eax], 0x16
xor eax, eax
jmp 0x41491e
push esi
push 0x8c
push 1
call fcn.00415bc9
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x414909
push esi
call fcn.0041689e
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 0x4148e7
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x414802
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x41491d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00413626
test ebx, ebx
pop ecx
je 0x41491b
push ebx
call fcn.004155b7
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x419c16
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x419c44
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 0x419c4b
cmp ebx, dword [eax + 4]
jae 0x419c4b
xor eax, eax
jmp 0x419e3b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x419c5c
xor eax, eax
inc eax
jmp 0x419e3a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x419c72
cmp ecx, edx
jae 0x419db7
cmp dword [eax + 4], 0
je 0x419c7b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x419c63
cmp dword [ebp + 8], 0
je 0x419c9d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x419db7
cmp eax, esi
jae 0x419db7
mov eax, dword [0x469250]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x419cc2
cmp dword [esi*4 + 0x469258], edi
je 0x419dbb
inc esi
cmp esi, eax
jl 0x419cb0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x419e37
cmp dword [ebp - 8], 0x1000000
jne 0x419e37
test byte [ebp - 0xc], 0xcc
je 0x419d40
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x419e37
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x419e37
cmp word [eax + 0x18], 0x10b
jne 0x419e37
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x419e37
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x419d40
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x419d40
test byte [ecx + 0x27], 0x80
jne 0x419db7
push 1
push 0x469298
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x419c54
mov ecx, dword [0x469250]
test ecx, ecx
mov edx, ecx
jle 0x419d74
lea eax, [ecx*4 + 0x469254]
cmp dword [eax], edi
je 0x419d74
dec edx
sub eax, 4
test edx, edx
jg 0x419d68
test edx, edx
jne 0x419da5
push 0xf
pop ebx
cmp ecx, ebx
jg 0x419d81
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x419d99
lea eax, [edx*4 + 0x469258]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x419d87
cmp ecx, 0x10
jge 0x419da5
inc ecx
mov dword [0x469250], ecx
push 0
push 0x469298
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x419c54
xor eax, eax
jmp 0x419e3a
test esi, esi
jle 0x419c54
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x469298
call ebx
test eax, eax
jne 0x419c54
cmp dword [esi*4 + 0x469258], edi
je 0x419e11
mov eax, dword [0x469250]
lea esi, [eax - 1]
test esi, esi
jl 0x419dff
cmp dword [esi*4 + 0x469258], edi
je 0x419dfb
dec esi
jns 0x419def
test esi, esi
jge 0x419e0f
cmp eax, 0x10
jge 0x419e0a
inc eax
mov dword [0x469250], eax
lea esi, [eax - 1]
jmp 0x419e11
je 0x419e29
xor ecx, ecx
test esi, esi
jl 0x419e29
lea eax, [ecx*4 + 0x469258]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x419e17
push 0
push 0x469298
call ebx
jmp 0x419c54
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419e3f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x466078]
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 + 0x466650]
je 0x419e74
inc eax
cmp eax, 0x13
jb 0x419e65
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x466650]
jne 0x419f9a
mov eax, dword [0x469084]
cmp eax, 1
je 0x419f72
cmp eax, edx
jne 0x419ea4
cmp dword [0x466074], 1
je 0x419f72
cmp ecx, 0xfc
je 0x419f9a
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 0x419eda
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0041c350
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004140f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x419f0e
mov eax, edi
push eax
call fcn.004140f0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x457e88
push edi
call fcn.00416c60
add esp, 0x10
push edi
call fcn.004140f0
push dword [esi + 0x466654]
mov ebx, eax
call fcn.004140f0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00413170
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0041c350
push edi
push ebx
call fcn.0041c360
push 0x457e68
push ebx
call fcn.0041c360
push dword [esi + 0x466654]
push ebx
call fcn.0041c360
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00420d34
add esp, 0x2c
jmp 0x419f9a
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x466654]
push dword [esi]
call fcn.004140f0
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.00413b70
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x41e270
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x466078]
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 0x41e2a1
xor eax, eax
jmp 0x41e42a
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 + 0x46a5e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41e2dd
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0042248d
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41e3b8
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x41e3f6
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 0x41e341
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41e332
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 0x41e312
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 0x41e381
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x41e38a
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x41e303
jmp 0x41e38c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x41e425
cmp dword [ebp - 0x6c], edi
je 0x41e3f6
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x41e3eb
call fcn.004155a5
mov dword [eax], 9
call fcn.004155ae
mov dword [eax], esi
jmp 0x41e420
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 0x41e3e0
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x41e38c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x41e38c
push dword [ebp - 0x6c]
call fcn.004155b7
pop ecx
jmp 0x41e420
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41e40e
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x41e40e
xor eax, eax
jmp 0x41e428
call fcn.004155a5
mov dword [eax], 0x1c
call fcn.004155ae
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x41e428
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00413b70
add ebp, 0x3a0
leave
ret
Function at 0x420d34
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x469514], ebx
push esi
push edi
jne 0x420db4
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x420def
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x459664
push edi
call esi
test eax, eax
mov dword [0x469514], eax
je 0x420def
push 0x459654
push edi
call esi
push 0x459640
push edi
mov dword [0x469518], eax
call esi
cmp dword [0x469090], 2
mov dword [0x46951c], eax
jne 0x420db4
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x469524], eax
je 0x420db4
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x469520], eax
mov eax, dword [0x469520]
test eax, eax
je 0x420df9
call eax
test eax, eax
je 0x420de0
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x469524]
test eax, eax
je 0x420de0
test byte [ebp - 8], 1
jne 0x420df9
cmp dword [0x46909c], 4
jb 0x420df3
or byte [ebp + 0x12], 0x20
jmp 0x420e18
xor eax, eax
jmp 0x420e28
or byte [ebp + 0x12], 4
jmp 0x420e18
mov eax, dword [0x469518]
test eax, eax
je 0x420e18
call eax
mov ebx, eax
test ebx, ebx
je 0x420e18
mov eax, dword [0x46951c]
test eax, eax
je 0x420e18
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x469514]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x422d17
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 0x422eeb
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x46a5e0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x422eeb
test cl, 0x48
je 0x422d82
cmp byte [eax + 5], 0xa
je 0x422d82
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 0x422dd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x422dbc
call fcn.004155a5
mov dword [eax], 9
call fcn.004155ae
mov dword [eax], esi
jmp 0x422dcc
cmp eax, 0x6d
je 0x422eeb
push eax
call fcn.004155b7
pop ecx
or eax, 0xffffffff
jmp 0x422eed
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x422ee6
test eax, eax
je 0x422dfb
cmp byte [ebx], 0xa
jne 0x422dfb
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x422e04
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 0x422ee0
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x422ed0
cmp al, 0xd
je 0x422e36
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x422ec2
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x422e50
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x422e4b
add dword [ebp + 0x10], 2
jmp 0x422ea4
mov dword [ebp + 0x10], eax
jmp 0x422ebe
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 0x422e78
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x422ebe
cmp dword [ebp - 0xc], 0
je 0x422ebe
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x422e99
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x422ea4
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x422ec1
cmp ebx, dword [ebp + 0xc]
jne 0x422ea9
cmp byte [ebp - 1], 0xa
jne 0x422ea9
mov byte [ebx], 0xa
jmp 0x422ec1
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041e151
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x422ec2
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x422e1a
jmp 0x422ee0
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x422ee0
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 0x422eed
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret