joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006f8c5
Capabilities:
Generate random numbers via winapi

Disassembly:
push 0x230
mov eax, 0x100a94b9
call fcn.1009cc24
mov dword [ebp - 0x234], edx
mov ebx, ecx
push ebx
lea ecx, [ebp - 0x238]
call dword [sym.imp.fpsrvutl.dll_Ordinal_5241]
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [0x100f55b0]
add eax, 0xe8
mov dword [ebp - 0x23c], eax
mov edi, dword [eax]
test edi, edi
jne 0x1006f924
push 0xf0000040
push 1
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov edi, dword [ebp - 0x23c]
mov edi, dword [edi]
test edi, edi
je 0x1006fa2c
lea eax, [ebp - 0x230]
push eax
push 0x18
push edi
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1006fa2c
mov eax, dword [ebp - 0x21c]
xor edx, edx
push 0x24
pop ecx
div ecx
movzx eax, word [edx*2 + str.abcdefghijklmnopqrstuvwxyz0123456789]
xor edx, edx
push eax
mov eax, dword [ebp - 0x220]
div ecx
movzx eax, word [edx*2 + str.abcdefghijklmnopqrstuvwxyz0123456789]
xor edx, edx
push eax
mov eax, dword [ebp - 0x224]
div ecx
movzx eax, word [edx*2 + str.abcdefghijklmnopqrstuvwxyz0123456789]
xor edx, edx
push eax
mov eax, dword [ebp - 0x228]
div ecx
movzx eax, word [edx*2 + str.abcdefghijklmnopqrstuvwxyz0123456789]
xor edx, edx
push eax
mov eax, dword [ebp - 0x22c]
div ecx
movzx eax, word [edx*2 + str.abcdefghijklmnopqrstuvwxyz0123456789]
xor edx, edx
push eax
mov eax, dword [ebp - 0x230]
div ecx
movzx eax, word [edx*2 + str.abcdefghijklmnopqrstuvwxyz0123456789]
push eax
push dword [ebp - 0x238]
lea eax, [ebp - 0x218]
push str._wswe_c_c_c_c_c_c.tmp
push 0xffffffffffffffff
push eax
call fcn.1006d32a
add esp, 0x28
lea eax, [ebp - 0x218]
cmp byte [ebp + 8], 0
je 0x1006fa1d
push esi
push 0x80
push 1
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x1006fa10
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
je 0x1006f924
cmp eax, 0x50
je 0x1006f924
jmp 0x1006fa32
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [ebp - 0x218]
mov ecx, dword [ebp - 0x234]
push eax
call dword [sym.imp.fpsrvutl.dll_Ordinal_5525]
jmp 0x1006fa41
call dword [sym.imp.kernel32.dll_GetLastError]
push ebx
mov edx, eax
mov ecx, 0x20002
call fcn.10020b05
mov esi, eax
lea ecx, [ebp - 0x238]
call dword [sym.imp.fpsrvutl.dll_Ordinal_2017]
mov eax, esi
call fcn.1009cbd6
ret 4
Function at 0x1006fadc
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x100a94f7
call fcn.1009cbf0
mov esi, ecx
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.fpsrvutl.dll_Ordinal_4936]
push ebx
mov dword [ebp - 4], ebx
push ebx
mov dword [ebp - 0x10], 1
call dword [sym.imp.kernel32.dll_GetTempPathA]
mov ebx, eax
test ebx, ebx
jle 0x1006fb90
lea edi, [ebx + 1]
call dword [sym.imp.fpsrvutl.dll_Ordinal_4348]
test eax, eax
je 0x1006fb2a
mov ecx, edi
call dword [sym.imp.fpsrvutl.dll_Ordinal_5011]
jmp 0x1006fb32
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov edi, eax
test edi, edi
je 0x1006fb90
push edi
push ebx
call dword [sym.imp.kernel32.dll_GetTempPathA]
push edi
mov ecx, esi
mov byte [eax + edi], 0
call dword [sym.imp.fpsrvutl.dll_Ordinal_4818]
push 0
mov ecx, esi
call dword [sym.imp.fpsrvutl.dll_Ordinal_3947]
push 0x5c
push 2
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call dword [sym.imp.fpsrvutl.dll_Ordinal_5801]
push eax
mov ecx, esi
call dword [sym.imp.fpsrvutl.dll_Ordinal_687]
push 0x2f
push 2
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call dword [sym.imp.fpsrvutl.dll_Ordinal_5801]
push eax
mov ecx, esi
call dword [sym.imp.fpsrvutl.dll_Ordinal_687]
push edi
call fcn.1006d32a
pop ecx
mov eax, esi
call fcn.1009cbc1
ret
Function at 0x402010
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x28]
test eax, eax
je 0x402039
push 0
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
cmp dword [edi + 0x44], 2
je 0x402068
mov eax, dword [edi + 0x60]
mov ecx, dword [edi + 0x5c]
mov edx, dword [edi + 0x10]
push 0xcc0020
push eax
mov eax, dword [edi + 0x54]
push ecx
mov ecx, dword [edi + 0x50]
push edx
push eax
push ecx
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x4020f8
mov edx, dword [edi + 0x34]
push ebx
push ebp
push edx
call fcn.00401e90
mov eax, dword [edi + 0x34]
push eax
call fcn.00401e90
mov ebp, dword [edi + 8]
lea eax, [eax + ebp - 1]
cdq
idiv ebp
mov ebx, dword [edi + 4]
add esp, 8
mov dword [esp + 0x24], 0
test eax, eax
jle 0x4020f6
mov dword [esp + 0x14], eax
lea esp, [esp]
xor esi, esi
mov dword [esp + 0x10], 2
lea ebx, [ebx]
mov ecx, dword [edi + 0x10]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push 0xcc0020
push 0
push 0
push ecx
push ebp
push ebx
push edx
push esi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x10]
add esi, ebx
dec eax
mov dword [esp + 0x10], eax
jne 0x4020b0
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
add ecx, ebp
dec eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], eax
jne 0x4020a0
mov esi, dword [esp + 0x20]
pop ebp
pop ebx
mov eax, dword [edi + 0x28]
test eax, eax
je 0x40210d
mov ecx, dword [esp + 0x10]
push 0
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
pop edi
pop esi
add esp, 0xc
ret

Function at 0x403780
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x41e248]
test eax, eax
push esi
push edi
je 0x4037db
mov eax, dword [esp + 0x10]
mov edx, dword [0x41d344]
mov ecx, dword [0x41d348]
lea esi, [edx + eax]
cmp esi, ecx
jl 0x4037a6
sub ecx, edx
mov eax, ecx
test eax, eax
jle 0x40384f
mov esi, dword [0x41d340]
mov edi, dword [esp + 0xc]
add esi, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x41d344]
add ecx, eax
pop edi
mov dword [0x41d344], ecx
pop esi
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
push eax
push ecx
push 1
push esi
call fcn.0041280e
mov edi, eax
mov eax, dword [0x41e238]
add esp, 0x10
test eax, eax
je 0x40384d
test edi, edi
jle 0x40384d
mov edx, dword [0x41e0a4]
mov eax, dword [0x41e088]
lea ecx, [eax + edx]
mov edx, dword [0x41e094]
mov eax, dword [0x41e090]
add eax, edx
and ecx, 0xff
and eax, 0xff
test edi, edi
jle 0x40384d
mov dl, byte [0x41e09c]
push ebx
push ebp
mov ebp, edi
mov bl, byte [esi]
sub bl, al
xor bl, cl
add dl, bl
mov byte [esi], dl
inc esi
dec ebp
jne 0x403837
pop ebp
mov byte [0x41e09c], dl
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x404050
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x41fafc]
mov ecx, dword [0x420654]
push 0x100
push 0x41f538
mov word [0x41e258], 0x206
mov word [0x41e25a], 0x13
mov dword [0x41e25c], 0x41fa9c
mov dword [0x41e260], eax
mov dword [0x41e264], ecx
mov dword [0x41e268], 0x420004
mov dword [0x41e26c], 0x41f500
mov dword [0x41e270], 0x41fadc
mov dword [0x41e274], 0x42064c
mov dword [0x41e278], 0x41fad0
mov dword [0x41e27c], 0x41e3e0
mov dword [0x41e280], 0x408320
mov dword [0x41e284], 0x408c40
mov dword [0x41e288], 0x408c00
mov dword [0x41e28c], 0x408ca0
mov dword [0x41e290], 0x408d00
mov dword [0x41e294], 0x408070
mov dword [0x41e298], 0x403c60
mov dword [0x41e29c], 0x403d90
mov dword [0x41e2a0], 0x403ed0
mov dword [0x41e2a4], 0x403f10
mov dword [0x41e2a8], 0x403f70
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
push 0x41f3f0
call fcn.00412b8b
add esp, 8
mov dword [0x41f4f4], 0
jmp fcn.00403ff0

Function at 0x404160
Capabilities:
Get hostname
Get memory capacity
Get session user name
Get system information on windows

Disassembly:
sub esp, 0xc8
push ebx
push ebp
mov ebp, dword [esp + 0xd4]
mov ebx, eax
test bl, 0x10
push esi
mov esi, 4
mov dword [esp + 0xc], 0x40
je 0x40418f
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
test bl, 0x20
je 0x4041b8
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
and ebx, 0xf
mov edx, dword [esp + ebx*4 + 0x10]
pop esi
mov dword [ebp], edx
pop ebp
mov eax, 4
pop ebx
add esp, 0xc8
ret
cmp ebx, 0x10
ja case.0x4041c8.3
movzx eax, byte [ebx + 0x4042f8]
jmp dword [eax*4 + 0x4042e4]
mov ecx, dword [str.Windows]
mov dword [ebp], ecx
mov edx, dword [0x41a364]
push edi
mov dword [ebp + 4], edx
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov edi, ebp
dec edi
test eax, eax
js 0x404210
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4041f0
mov cx, word [0x41a35c]
mov word [edi], cx
mov dl, byte [0x41a35e]
jmp 0x404228
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404210
mov cx, word [0x41a358]
mov word [edi], cx
mov dl, byte [0x41a35a]
movzx ecx, ah
push ecx
and eax, 0xff
push eax
mov byte [edi + 2], dl
lea edx, [esp + 0x60]
push str._ver_d._d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x68]
add esp, 0x10
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404250
sub eax, edx
dec ebp
mov edi, ebp
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404260
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 2
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc8
ret
lea eax, [esp + 0xc]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov esi, 2
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc8
ret
lea ecx, [esp + 0xc]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov esi, 2
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc8
ret
mov edx, dword [esp + 0x48]
mov eax, esi
pop esi
mov dword [ebp], edx
pop ebp
pop ebx
add esp, 0xc8
ret
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0xc8
ret
Function at 0x404580
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x40
push ebx
push esi
mov esi, eax
mov ecx, eax
sar eax, 8
push edi
mov edi, dword [esp + 0x50]
and esi, 0xff
mov ebx, dword [edi + esi*4 + 0x1a4]
and eax, 0xf
sar ecx, 0x10
cmp eax, 5
ja case.default.0x4045b1
jmp dword [eax*4 + 0x40470c]
pop edi
mov dword [0x41fae8], esi
pop esi
mov dword [0x41fae4], ebx
mov dword [0x41fcc8], 0
pop ebx
add esp, 0x40
ret
cmp ecx, 0x400
jne case.default.0x4045b1
mov eax, dword [edi + esi*4 + 0xa4]
push eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edx, dword [edi + 0x34]
push 0x40
lea ecx, [esp + 0x10]
push ecx
push eax
push edx
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
test eax, eax
jne 0x404614
mov dword [ebx], eax
pop edi
mov dword [0x41fae8], esi
pop esi
pop ebx
add esp, 0x40
ret
lea eax, [esp + 0xc]
push eax
call fcn.004123e8
add esp, 4
mov dword [ebx], eax
pop edi
mov dword [0x41fae8], esi
pop esi
pop ebx
add esp, 0x40
ret
cmp ecx, 0x400
jne case.default.0x4045b1
mov ecx, dword [edi + esi*4 + 0xa4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push 4
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [edi + 0x34]
push eax
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
test eax, eax
je 0x404695
mov ecx, dword [edi + esi*4 + 0xa4]
push 0
push 0
push 0xd5
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [edi + esi*4 + 0xa4]
inc eax
push eax
push ebx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
pop edi
mov dword [0x41fae8], esi
pop esi
pop ebx
add esp, 0x40
ret
mov byte [ebx], 0
pop edi
mov dword [0x41fae8], esi
pop esi
pop ebx
add esp, 0x40
ret
mov eax, dword [edi + esi*4 + 0xa4]
push eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov ecx, dword [edi + 0x34]
push eax
push ecx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
mov dword [ebx], eax
pop edi
mov dword [0x41fae8], esi
pop esi
pop ebx
add esp, 0x40
ret
cmp ecx, 9
jne case.default.0x4045b1
mov edx, dword [edi + esi*4 + 0xa4]
push 0
push 0
push 0x147
push edx
jmp 0x4046f6
mov eax, dword [edi + esi*4 + 0xa4]
push 0
push 0
push 0x188
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebx], eax
mov dword [0x41fae8], esi
pop edi
pop esi
pop ebx
add esp, 0x40
ret
Function at 0x40f860
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jl 0x40f90d
push ebx
mov ebx, dword [eax*4 + 0x422220]
mov eax, dword [ebx + 0x30c]
test eax, eax
push ebp
push esi
push edi
je 0x40f909
push 0xffffffffffffffff
push ebx
call fcn.00401130
mov esi, eax
add esp, 8
test esi, esi
jl 0x40f8a1
mov al, byte [esi + ebx + 0x41c]
test al, al
jne 0x40f909
push 0x10
mov dword [esp + 0x18], 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, ah
jns 0x40f8bd
mov dword [esp + 0x14], 0xffffffff
xor ebp, ebp
nop
add esi, dword [esp + 0x14]
cmp esi, 0x40
jl 0x40f8cd
xor esi, esi
jmp 0x40f8d6
test esi, esi
jge 0x40f8d6
mov esi, 0x3f
mov edi, dword [ebx + esi*4 + 0xa4]
test edi, edi
je 0x40f8f7
mov al, byte [esi + ebx + 0x41c]
test al, al
jne 0x40f8f7
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x40f902
inc ebp
cmp ebp, 0x40
jl 0x40f8c0
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x412aa1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x41d450]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x412b1a
push ebx
call fcn.00412a6a
test eax, eax
pop ecx
jne 0x412aec
mov dword [0x4223bc], 0xf
mov dword [0x4223b8], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.00415439
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 0x412b2c
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x412adc
inc eax
cmp eax, 0x104
ja 0x412adc
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x412b63
cmp eax, dword [ebp + 0x10]
jg 0x412b47
mov eax, dword [ebp + 0x10]
push eax
call fcn.004124ff
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x412b77
mov dword [0x4223b8], 0xc
jmp 0x412adc
cmp eax, dword [ebp + 0x10]
jle 0x412b77
mov dword [0x4223b8], 0x22
jmp 0x412adc
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.00415310
pop ecx
pop ecx
jmp 0x412ade
Function at 0x412f79
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41a720
call fcn.0041668c
mov edi, 0x94
mov eax, edi
call fcn.004166e0
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 [0x4223c4], ecx
mov eax, dword [esi + 4]
mov dword [0x4223d0], eax
mov edx, dword [esi + 8]
mov dword [0x4223d4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4223c8], esi
cmp ecx, 2
je 0x412fd9
or esi, 0x8000
mov dword [0x4223c8], esi
shl eax, 8
add eax, edx
mov dword [0x4223cc], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x413014
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x413014
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41302c
cmp eax, 0x20b
je 0x413019
mov dword [ebp - 0x1c], esi
jmp 0x413040
cmp dword [ecx + 0x84], 0xe
jbe 0x413014
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41303a
cmp dword [ecx + 0x74], 0xe
jbe 0x413014
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004132df
pop ecx
test eax, eax
jne 0x41306c
cmp dword [0x4223ac], 1
jne 0x413059
call fcn.00415ff7
push 0x1c
call fcn.00415e80
push 0xff
call fcn.004147d5
pop ecx
pop ecx
call fcn.00416601
mov dword [ebp - 4], esi
call fcn.00415162
test eax, eax
jge 0x413085
push 0x1b
call fcn.00412f54
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x423b94], eax
call fcn.004164df
mov dword [0x4223a4], eax
call fcn.0041643d
test eax, eax
jge 0x4130ab
push 8
call fcn.00412f54
pop ecx
call fcn.0041620a
test eax, eax
jge 0x4130bc
push 9
call fcn.00412f54
pop ecx
call fcn.00414805
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x4130cf
push eax
call fcn.00412f54
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004161a1
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x4130f0
movzx eax, word [ebp - 0x34]
jmp 0x4130f3
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00410980
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x413111
push edi
call fcn.0041492c
call fcn.0041494e
jmp 0x413143
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004166c7
ret
Function at 0x414170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x41d450]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x423a40]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
jae 0x414300
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x423a60]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x18], ebx
je 0x414300
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
jne 0x4141cf
xor eax, eax
jmp 0x414314
test al, 0x20
je 0x4141e0
push 2
push edi
push edi
push ecx
call fcn.00416f63
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41429c
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x4142d4
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
cmp ecx, dword [ebp + 0x10]
jae 0x414236
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x414227
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x18]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x41420c
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x414276
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x41427f
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x414200
jmp 0x414281
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x4142fb
cmp dword [ebp + 8], edi
je 0x4142d4
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x4142c9
mov dword [0x4223bc], eax
jmp 0x414307
push edi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4142be
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x414281
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x414281
push dword [ebp + 8]
call fcn.0041594b
pop ecx
jmp 0x414311
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4142e9
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x4141c8
mov dword [0x4223b8], 0x1c
mov dword [0x4223bc], edi
jmp 0x414311
sub eax, dword [ebp - 0x14]
jmp 0x414314
and dword [0x4223bc], 0
mov dword [0x4223b8], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.00415439
leave
ret
Function at 0x41486a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x422404], esi
push edi
jne 0x41488a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x422400], esi
mov byte [0x4223fc], al
jne 0x4148f0
mov ecx, dword [0x423b68]
test ecx, ecx
je 0x4148d1
mov eax, dword [0x423b64]
sub eax, 4
cmp eax, ecx
jmp 0x4148ca
mov eax, dword [eax]
test eax, eax
je 0x4148bc
call eax
mov eax, dword [0x423b64]
sub eax, 4
cmp eax, dword [0x423b68]
mov dword [0x423b64], eax
jae 0x4148b4
mov eax, 0x41d020
mov esi, 0x41d028
cmp eax, esi
mov edi, eax
jae 0x4148f0
mov eax, dword [edi]
test eax, eax
je 0x4148e9
call eax
add edi, 4
cmp edi, esi
jb 0x4148e1
mov eax, 0x41d02c
mov esi, 0x41d030
cmp eax, esi
mov edi, eax
jae 0x41490f
mov eax, dword [edi]
test eax, eax
je 0x414908
call eax
add edi, 4
cmp edi, esi
jb 0x414900
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x41492a
push dword [ebp + 8]
mov dword [0x422404], 1
call fcn.004147d5
pop ecx
pop ebp
ret
Function at 0x414f82
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x423a40]
push edi
jae 0x415149
mov eax, esi
sar eax, 5
lea ebx, [eax*4 + 0x423a60]
mov eax, dword [ebx]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x415149
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
mov ecx, edi
je 0x415028
test dl, 2
jne 0x415028
test dl, 0x48
je 0x414ff2
mov al, byte [eax + 5]
cmp al, 0xa
je 0x414ff2
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebx]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41503b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x415023
mov dword [0x4223bc], ecx
jmp 0x415150
cmp eax, 0x6d
jne 0x41502f
xor eax, eax
jmp 0x41515d
push eax
call fcn.0041594b
pop ecx
jmp 0x41515a
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
add dword [ebp - 0xc], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x415144
test edx, edx
je 0x41505e
cmp byte [edi], 0xa
jne 0x41505e
or al, 4
jmp 0x415060
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x41513e
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x41512e
cmp al, 0xd
je 0x415094
mov byte [edi], al
inc edi
inc dword [ebp - 8]
jmp 0x415120
dec ecx
cmp dword [ebp - 8], ecx
jae 0x4150ae
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x4150a9
add dword [ebp - 8], 2
jmp 0x415102
mov dword [ebp - 8], eax
jmp 0x41511c
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4150d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41511c
cmp dword [ebp - 0x10], 0
je 0x41511c
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x4150f7
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x415102
mov byte [edi], 0xd
mov ecx, dword [ebx]
mov byte [ecx + esi + 5], al
jmp 0x41511f
cmp edi, dword [ebp + 0xc]
jne 0x415107
cmp byte [ebp - 1], 0xa
jne 0x415107
mov byte [edi], 0xa
jmp 0x41511f
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004149de
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x415120
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x415078
jmp 0x41513e
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x41513e
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
jmp 0x41515d
and dword [0x4223bc], 0
mov dword [0x4223b8], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret