joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e870
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x436a51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov eax, dword [0x4481e0]
push ebx
push esi
push edi
mov dword [esp + 0x124], eax
mov ebx, ecx
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
push 0x1a
lea eax, [esp + 0x20]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x40ea06
lea edi, [esp + 0x18]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e8d5
mov ecx, 0xa
mov esi, str.MicrosoftInternet_ExplorerQuick_Launch
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00428fe3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 0x134], 0
call fcn.00428fe3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push 0x43abb8
push ecx
mov byte [esp + 0x140], 1
call fcn.00402830
mov edx, dword [0x44914c]
mov eax, dword [edx + 0x14]
mov ecx, dword [eax + 4]
push ecx
lea edx, [esp + 0x20]
push str._swniewnie.exe
push edx
call fcn.00402830
mov eax, dword [0x44914c]
mov ecx, dword [eax + 0x14]
add esp, 0x18
push str.wnie
add ecx, 4
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004047c0
mov eax, dword [eax]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
push 0
push eax
push 0
push 1
push 0x43abd8
push esi
push edi
mov ecx, ebx
mov byte [esp + 0x150], 2
call fcn.0040d410
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e9bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov byte [esp + 0x134], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e9e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov dword [esp + 0x134], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ea06
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x124]
mov eax, 1
call fcn.0041b28e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f980
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x436bb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00428fe3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
xor edi, edi
mov dword [esp + 0x1c], edi
lea ebx, [esi + 4]
call fcn.00428fe3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x1c], 1
lea ebp, [esi + 8]
call fcn.00428fe3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x1c], 2
call fcn.00428fe3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0xc], eax
mov byte [esp + 0x1c], 3
call fcn.00428fe3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov byte [esp + 0x1c], 4
call fcn.00428fe3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x20], eax
mov byte [esp + 0x1c], 5
call fcn.00428fe3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x24], eax
mov byte [esp + 0x1c], 6
call fcn.00428fe3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
push edi
push 0x438a07
mov ecx, esi
mov byte [esp + 0x24], 8
call fcn.00402230
push edi
push 0x438a07
mov ecx, ebx
call fcn.00402230
push edi
push 0x438a07
mov ecx, ebp
call fcn.00402230
push edi
push 0x438a07
lea ecx, [esi + 0xc]
call fcn.00402230
push edi
push 0x438a07
lea ecx, [esi + 0x1c]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
call fcn.00402230
push edi
push 0x438a07
lea ecx, [esi + 0x20]
call fcn.00402230
push edi
push 0x438a07
lea ecx, [esi + 0x24]
call fcn.00402230
push edi
push 0x438a07
lea ecx, [esi + 0x28]
call fcn.00402230
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4106d0
Capabilities:
Check if file exists
Create directory

Disassembly:
sub esp, 0x234
mov eax, dword [0x4481e0]
push edi
mov edi, dword [esp + 0x23c]
test edi, edi
mov dword [esp + 0x234], eax
mov dword [esp + 4], ecx
je 0x41089a
mov eax, dword [esp + 0x240]
test eax, eax
je 0x41089a
push ebp
lea eax, [esp + 0xc]
push eax
push 1
push 0x40fce0
push 0x40fcd0
push 0x40fcc0
push 0x40fcb0
push 0x40fca0
push 0x40fc90
push 0x40fc80
call sub.Cabinet.dll_FDICreate
mov ebp, eax
add esp, 0x24
test ebp, ebp
jne 0x410755
pop ebp
pop edi
mov ecx, dword [esp + 0x230]
call fcn.0041b28e
add esp, 0x234
ret 0xc
push esi
push 0
push 0x8020
push edi
call fcn.0041c553
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x410790
push ebp
call sub.Cabinet.dll_FDIDestroy
add esp, 4
pop esi
pop ebp
xor eax, eax
pop edi
mov ecx, dword [esp + 0x230]
call fcn.0041b28e
add esp, 0x234
ret 0xc
lea ecx, [esp + 0x1c]
push ecx
push esi
push ebp
call sub.Cabinet.dll_FDIIsCabinet
add esp, 0xc
test eax, eax
jne 0x4107b4
push esi
call fcn.0041cb2a
push ebp
call sub.Cabinet.dll_FDIDestroy
add esp, 8
jmp 0x410776
push ebx
push esi
call fcn.0041cb2a
push 0x5c
push edi
call fcn.0041ce60
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, eax
add esp, 0xc
test esi, esi
lea edx, [esp + 0x13c]
jne 0x4107eb
push edi
push edx
call ebx
push 0x438a07
lea eax, [esp + 0x3c]
push eax
call ebx
jmp 0x41080b
lea ecx, [esi + 1]
push ecx
push edx
call ebx
sub esi, edi
lea eax, [esi + 1]
push eax
lea ecx, [esp + 0x3c]
push edi
push ecx
call fcn.0041cd30
add esp, 0xc
mov byte [esp + esi + 0x39], 0
mov edx, dword [esp + 0x24c]
push edx
push 0x4492d0
call ebx
mov eax, dword [esp + 0x250]
test eax, eax
je 0x41082d
push eax
push 0x4491c8
call ebx
push 0x4492d0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
pop ebx
jne 0x410849
push eax
push 0x4492d0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
push ecx
push 0
push 0x40fcf0
push 0
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x14c]
push eax
push ebp
call sub.Cabinet.dll_FDICopy
add esp, 0x1c
cmp eax, 1
push ebp
jne 0x41076e
call sub.Cabinet.dll_FDIDestroy
add esp, 4
pop esi
pop ebp
pop edi
mov ecx, dword [esp + 0x230]
call fcn.0041b28e
add esp, 0x234
ret 0xc
mov ecx, dword [esp + 0x234]
xor eax, eax
pop edi
call fcn.0041b28e
add esp, 0x234
ret 0xc
Function at 0x410ba0
Capabilities:
Delete directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
mov eax, dword [0x4481e0]
push esi
push edi
mov dword [esp + 0x11c], eax
xor eax, eax
mov esi, ecx
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
test eax, eax
push 0
je 0x410be3
push 0x17
lea eax, [esp + 0x18]
push eax
jmp 0x410bea
push 2
lea ecx, [esp + 0x18]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x410c0a
mov ecx, dword [esp + 0x11c]
call fcn.0041b28e
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
lea edi, [esp + 0x10]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410c10
mov edx, dword [0x43aaa8]
mov eax, dword [0x43aaac]
mov cx, word [0x43aab0]
mov dword [edi], edx
mov dword [edi + 4], eax
mov word [edi + 8], cx
lea edi, [esp + 0x10]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410c38
mov edx, dword [0x43acf8]
mov eax, dword [0x43acfc]
push ecx
mov dword [edi], edx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
mov dword [edi + 4], eax
call fcn.00402d80
mov ecx, esi
call fcn.004108d0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x11c]
mov eax, 1
call fcn.0041b28e
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x410c90
Capabilities:
Delete directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
mov eax, dword [0x4481e0]
push esi
push edi
mov dword [esp + 0x11c], eax
xor eax, eax
mov esi, ecx
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
test eax, eax
push 0
je 0x410cd3
push 0x17
lea eax, [esp + 0x18]
push eax
jmp 0x410cda
push 2
lea ecx, [esp + 0x18]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x410cfa
mov ecx, dword [esp + 0x11c]
call fcn.0041b28e
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
lea edi, [esp + 0x10]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410d00
mov edx, dword [0x43aaa8]
mov eax, dword [0x43aaac]
mov cx, word [0x43aab0]
mov dword [edi], edx
mov dword [edi + 4], eax
mov word [edi + 8], cx
lea edi, [esp + 0x10]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410d28
mov edx, dword [0x43ad00]
mov eax, dword [0x43ad04]
push ecx
mov dword [edi], edx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
mov dword [edi + 4], eax
call fcn.00402d80
mov ecx, esi
call fcn.004108d0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x11c]
mov eax, 1
call fcn.0041b28e
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x411083
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x411098
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4110aa
xor eax, eax
jmp 0x4110dc
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4110ce
cmp esi, eax
jae 0x4110a6
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4110c0
cmp esi, eax
jae 0x4110a6
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x4123c3
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 0x412416
call fcn.00432b8a
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x412416
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x41240c
xor eax, eax
jmp 0x41252f
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 0x412446
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 0x412446
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x41252c
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x412473
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0041129f
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x41252c
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4124bc
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x4124bc
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x4124b6
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0041129f
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x41251c
and dword [ebp + 0xc], 0
jmp 0x41251c
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x41251c
push 0xc
call fcn.0042dda2
mov esi, eax
test esi, esi
pop ecx
je 0x4124fe
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 0x412500
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x412517
push dword [ebp - 8]
call fcn.00428acd
jmp 0x41251c
call fcn.00428aa4
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x412481
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41af40
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.0041b220
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41afdb
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 [0x44b3a0]
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 0x41afdb
cmp eax, 1
je 0x41affc
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 0x41afdb
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41afa8
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41afd7
xor eax, eax
inc eax
jmp 0x41b01b
cmp edi, eax
jae 0x41afdf
xor eax, eax
jmp 0x41b01b
cmp eax, esi
jae 0x41afe6
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 [0x44b3a0]
jmp 0x41afff
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 0x41c0f1
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 0x41c10e
call fcn.0041e252
mov dword [eax], 0x16
xor eax, eax
jmp 0x41c178
push esi
push 0x8c
push 1
call fcn.0041ede7
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41c163
push esi
call fcn.00420876
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 0x41c141
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x41c05c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x41c177
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0041aecf
test ebx, ebx
pop ecx
je 0x41c175
push ebx
call fcn.0041e264
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41c5a8
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 0x41c77c
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x44b8e0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41c77c
test cl, 0x48
je 0x41c613
cmp byte [eax + 5], 0xa
je 0x41c613
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 0x41c665
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41c64d
call fcn.0041e252
mov dword [eax], 9
call fcn.0041e25b
mov dword [eax], esi
jmp 0x41c65d
cmp eax, 0x6d
je 0x41c77c
push eax
call fcn.0041e264
pop ecx
or eax, 0xffffffff
jmp 0x41c77e
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x41c777
test eax, eax
je 0x41c68c
cmp byte [ebx], 0xa
jne 0x41c68c
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x41c695
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 0x41c771
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41c761
cmp al, 0xd
je 0x41c6c7
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41c753
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41c6e1
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41c6dc
add dword [ebp + 0x10], 2
jmp 0x41c735
mov dword [ebp + 0x10], eax
jmp 0x41c74f
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 0x41c709
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41c74f
cmp dword [ebp - 0xc], 0
je 0x41c74f
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41c72a
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41c735
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41c752
cmp ebx, dword [ebp + 0xc]
jne 0x41c73a
cmp byte [ebp - 1], 0xa
jne 0x41c73a
mov byte [ebx], 0xa
jmp 0x41c752
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041cbc5
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x41c753
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41c6ab
jmp 0x41c771
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x41c771
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 0x41c77e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c82e
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4481e0]
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 0x41c85f
xor eax, eax
jmp 0x41c9e8
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 + 0x44b8e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41c89b
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0042270a
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41c976
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x41c9b4
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 0x41c8ff
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41c8f0
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 0x41c8d0
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 0x41c93f
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x41c948
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x41c8c1
jmp 0x41c94a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x41c9e3
cmp dword [ebp - 0x6c], edi
je 0x41c9b4
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x41c9a9
call fcn.0041e252
mov dword [eax], 9
call fcn.0041e25b
mov dword [eax], esi
jmp 0x41c9de
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 0x41c99e
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x41c94a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x41c94a
push dword [ebp - 0x6c]
call fcn.0041e264
pop ecx
jmp 0x41c9de
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41c9cc
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x41c9cc
xor eax, eax
jmp 0x41c9e6
call fcn.0041e252
mov dword [eax], 0x1c
call fcn.0041e25b
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x41c9e6
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0041b28e
add ebp, 0x3a0
leave
ret
Function at 0x41ced6
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x43dc88
call fcn.0041def4
mov edi, 0x94
mov eax, edi
call fcn.0041b220
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 [0x44b3a0], ecx
mov eax, dword [esi + 4]
mov dword [0x44b3ac], eax
mov edx, dword [esi + 8]
mov dword [0x44b3b0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x44b3a4], esi
cmp ecx, 2
je 0x41cf36
or esi, 0x8000
mov dword [0x44b3a4], esi
shl eax, 8
add eax, edx
mov dword [0x44b3a8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41cf71
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41cf71
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41cf89
cmp eax, 0x20b
je 0x41cf76
mov dword [ebp - 0x1c], esi
jmp 0x41cf9d
cmp dword [ecx + 0x84], 0xe
jbe 0x41cf71
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41cf97
cmp dword [ecx + 0x74], 0xe
jbe 0x41cf71
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041f040
pop ecx
test eax, eax
jne 0x41cfb1
push 0x1c
call fcn.0041ceb2
pop ecx
call fcn.00420a70
test eax, eax
jne 0x41cfc2
push 0x10
call fcn.0041ceb2
pop ecx
call fcn.00422d91
mov dword [ebp - 4], esi
call fcn.00422192
test eax, eax
jge 0x41cfdb
push 0x1b
call fcn.0041ce8d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x44cc70], eax
call fcn.00422c6f
mov dword [0x44b38c], eax
call fcn.00422bcd
test eax, eax
jge 0x41d001
push 8
call fcn.0041ce8d
pop ecx
call fcn.0042299a
test eax, eax
jge 0x41d012
push 9
call fcn.0041ce8d
pop ecx
push 1
call fcn.0041d868
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x41d028
push eax
call fcn.0041ce8d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0042293d
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x41d049
movzx eax, word [ebp - 0x40]
jmp 0x41d04c
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004280f4
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x41d06a
push edi
call fcn.0041d995
call fcn.0041d9b7
jmp 0x41d09c
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041df2f
ret