joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402d69
Capabilities:
Get mac address on windows

Disassembly:
mov eax, 0x42deec
call fcn.00416398
push ecx
push ecx
push esi
push 0x430df4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor esi, esi
cmp eax, esi
jne 0x402d8f
or eax, 0xffffffff
jmp 0x402e55
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x4462b0]
cmp eax, esi
mov dword [ebp - 0x14], esi
je 0x402da9
push eax
call fcn.00422881
pop ecx
lea eax, [ebp - 0x14]
push eax
push dword [0x4462b0]
call sub.iphlpapi.dll_GetAdaptersInfo
mov ecx, dword [0x443114]
mov dword [ebp - 0x10], ecx
cmp eax, esi
mov dword [ebp - 4], esi
jne 0x402e1b
mov eax, dword [0x4462b0]
movzx ecx, byte [eax + 0x199]
push ecx
movzx ecx, byte [eax + 0x198]
push ecx
movzx ecx, byte [eax + 0x197]
push ecx
movzx ecx, byte [eax + 0x196]
push ecx
movzx ecx, byte [eax + 0x195]
movzx eax, byte [eax + 0x194]
push ecx
push eax
lea eax, [ebp - 0x10]
push str._02X__02X__02X__02X__02X__02X
push eax
call fcn.00402508
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.00416780
add esp, 0x28
jmp 0x402e4b
cmp eax, 0xe8
je 0x402e48
cmp eax, 0x32
je 0x402e48
cmp eax, 0x6f
jne 0x402e4b
push dword [ebp - 0x14]
call fcn.004153da
pop ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
mov dword [0x4462b0], eax
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
je 0x402dc8
or esi, 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401f77
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x404322
Capabilities:
Hash data with md5

Disassembly:
push esi
xor eax, eax
push 0x40
lea esi, [ecx + 0x5c]
push eax
push esi
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
call fcn.004042d4
mov byte [esi], 0x80
pop esi
ret

Function at 0x404e09
Capabilities:
Hash data using sha256

Disassembly:
push esi
push edi
mov eax, ecx
mov edx, 0x434a60
push 8
sub edx, eax
pop esi
mov edi, dword [edx + ecx]
mov dword [ecx], edi
add ecx, 4
dec esi
jne 0x404e17
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
pop edi
pop esi
ret

Function at 0x404e2d
Capabilities:
Hash data using sha256

Disassembly:
push esi
push edi
mov edx, 0x434a60
push 8
mov eax, ecx
sub edx, ecx
pop esi
mov edi, dword [edx + eax]
mov dword [eax], edi
add eax, 4
dec esi
jne 0x404e3b
xor eax, eax
pop edi
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
mov byte [ecx + 0x68], al
pop esi
ret
Function at 0x407982
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, ecx
xor ecx, ecx
cmp eax, ecx
push edi
mov dword [0x4462c0], ecx
je 0x407ace
test al, 7
jne 0x407ace
cmp dword [ebp + 0x14], 1
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
jne 0x407a20
cmp eax, 8
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0xc], ecx
jb 0x407ad8
shr eax, 3
mov dword [ebp + 0x14], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.004078e9
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
pop ecx
pop ecx
lea eax, [ebp - 8]
push eax
mov ecx, esi
call fcn.004077f6
mov eax, dword [ebp - 0x10]
xor dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
add dword [ebp + 0xc], 8
xor dword [ebp - 4], eax
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], ebx
call fcn.00407945
add dword [ebp + 8], 8
dec dword [ebp + 0x14]
pop ecx
pop ecx
jne 0x4079cf
jmp 0x407ad8
cmp dword [ebp + 0x14], 2
jne 0x407a90
cmp eax, 8
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0xc], ecx
jb 0x407ad8
shr eax, 3
mov ebx, eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.004078e9
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00407703
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add dword [ebp + 0xc], 8
push dword [ebp + 0xc]
mov edx, eax
xor eax, dword [ebp - 0x10]
mov edi, ecx
xor ecx, dword [ebp - 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edi
call fcn.00407945
add dword [ebp + 8], 8
dec ebx
pop ecx
pop ecx
jne 0x407a40
jmp 0x407ad8
cmp eax, 8
jb 0x407ad8
shr eax, 3
mov edi, eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.004078e9
pop ecx
pop ecx
lea eax, [ebp - 8]
push eax
mov ecx, esi
call fcn.004077f6
add dword [ebp + 0xc], 8
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call fcn.00407945
add dword [ebp + 8], 8
dec edi
pop ecx
pop ecx
jne 0x407a9a
jmp 0x407ad8
mov dword [0x4462c0], 1
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x407ae6
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
mov dword [esi], 0x436408
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 8], ecx
mov ecx, dword [eax]
mov dword [esi + 0xc], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x10], eax
and dword [0x4462c0], 0
xor eax, eax
inc eax
cmp dword [ebp + 0xc], eax
jae 0x407b27
mov dword [0x4462c0], eax
jmp 0x407c2e
push 0x38
pop eax
cmp dword [ebp + 0xc], eax
jbe 0x407b32
mov dword [ebp + 0xc], eax
push ebx
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push dword [ebp + 8]
push eax
call fcn.004163c0
push 0x48
lea edi, [esi + 0x14]
push 0x4353c0
push edi
call fcn.004163c0
push 0x1000
lea eax, [esi + 0x5c]
push 0x435408
push eax
call fcn.004163c0
add esp, 0x24
and dword [ebp + 0x10], 0
push 4
lea eax, [ebp - 0x44]
mov ecx, edi
mov dword [ebp - 8], 0x12
pop ebx
and dword [ebp + 8], 0
mov dword [ebp - 4], ebx
mov edx, dword [ebp + 8]
movzx ebx, byte [eax]
shl edx, 8
or edx, ebx
inc eax
inc dword [ebp + 0x10]
mov dword [ebp + 8], edx
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp + 0xc]
jne 0x407ba4
and dword [ebp + 0x10], 0
lea eax, [ebp - 0x44]
dec dword [ebp - 4]
jne 0x407b83
mov edx, dword [ebp + 8]
xor dword [ecx], edx
push 4
pop ebx
add ecx, ebx
dec dword [ebp - 8]
jne 0x407b7c
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
call fcn.00407703
mov eax, dword [ebp - 0xc]
inc dword [ebp + 0xc]
mov dword [edi], eax
mov eax, dword [ebp - 8]
add edi, ebx
inc dword [ebp + 0xc]
mov dword [edi], eax
add edi, ebx
cmp dword [ebp + 0xc], 0x12
jb 0x407bc3
lea eax, [esi + 0x5c]
mov dword [ebp + 0x10], eax
mov dword [ebp + 8], ebx
and dword [ebp + 0xc], 0
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
call fcn.00407703
mov eax, dword [ebp - 0xc]
inc dword [ebp + 0xc]
mov dword [edi], eax
mov eax, dword [ebp - 8]
add edi, ebx
inc dword [ebp + 0xc]
mov dword [edi], eax
add edi, ebx
cmp dword [ebp + 0xc], 0x100
jl 0x407bf8
add dword [ebp + 0x10], 0x400
dec dword [ebp + 8]
jne 0x407bf1
pop edi
pop ebx
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x408ff2
Capabilities:
Execute anti-debugging instructions

Disassembly:
push 0x18
push 0x436c90
call fcn.00416ef8
and dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], esi
or dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x1c]
push 1
push esi
push esi
push dword [ebp - 0x20]
call fcn.00416dd0
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x24]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x28]
add eax, ecx
adc edx, esi
jmp 0x409057
call fcn.00416f33
ret
Function at 0x409370
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x108
push ebx
push esi
mov esi, ecx
movzx eax, word [esi + 0x40]
movzx ecx, word [esi + 0x42]
movzx edx, word [esi + 0x46]
shl eax, 0x10
or eax, ecx
mov ecx, dword [ebp + 0x7c]
xor eax, ecx
movzx ecx, word [esi + 0x44]
shl ecx, 0x10
or ecx, edx
xor ecx, dword [ebp + 0x78]
push edi
xor ecx, eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp + 0x7c], esi
xor edi, edi
mov eax, dword [ebp + 0x7c]
movzx eax, word [eax]
mov ebx, dword [ebp + edi - 0x14]
push eax
push ebx
mov ecx, esi
call fcn.004092de
xor eax, dword [ebp + edi - 0x98]
add dword [ebp + 0x7c], 2
mov dword [ebp + edi - 0x10], eax
mov dword [ebp + edi - 0x94], ebx
add edi, 4
cmp edi, 0x7c
jle 0x4093b2
movzx eax, word [esi + 0x48]
movzx edi, word [esi + 0x4a]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x6c]
shl eax, 0x10
or eax, edi
xor ecx, edx
xor eax, ecx
xor edx, eax
movzx eax, word [esi + 0x4c]
movzx esi, word [esi + 0x4e]
shl eax, 0x10
or eax, esi
xor ecx, eax
xor eax, eax
xor esi, esi
pop edi
or eax, ecx
or edx, esi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8

Function at 0x4094cd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
cmp byte [ebp + 0x10], 1
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0xc]
jne 0x4094ee
mov edx, 0xfefefefe
and eax, edx
and ecx, edx
push ebx
mov ebx, dword [ebp + 0x14]
push esi
xor esi, esi
push edi
mov dword [ebp - 0x190], ecx
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0x58], esi
add ebx, 2
mov ecx, dword [ebp + esi - 0xf4]
mov edx, dword [ebp + esi - 0x58]
mov eax, dword [ebp + esi - 0x190]
xor edx, ecx
push edx
mov dword [ebp + esi - 0x18c], ecx
mov ecx, dword [ebp - 4]
push eax
mov dword [ebp + esi - 0x54], eax
lea edi, [ebp + esi - 0xf0]
call fcn.0040941d
mov ecx, dword [ebp + 0x14]
mov dword [edi], eax
mov ax, word [ebp + esi - 0xee]
mov word [esi + ecx], ax
mov ax, word [edi]
mov word [ebx], ax
add esi, 4
add ebx, 4
cmp esi, 0x4c
jle 0x409508
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x40962b
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
and edx, dword [esp + 8]
push esi
xor esi, esi
xor eax, eax
push edi
inc esi
lea ecx, [esi - 1]
mov edi, edx
shr edi, cl
and edi, 1
xor eax, edi
inc esi
cmp esi, 0x20
jle 0x40963a
pop edi
pop esi
ret
Function at 0x409ba2
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x42e14d
call fcn.00416398
push ecx
push esi
mov esi, ecx
mov dword [esi], fcn.00409d41
mov eax, dword [0x443114]
lea ecx, [esi + 4]
mov dword [ebp - 0x10], esi
mov dword [ecx], eax
and dword [ebp - 4], 0
push 0x42f876
mov dword [esi + 8], 0x13579bdf
mov dword [esi + 0xc], 0x2468ace0
mov dword [esi + 0x10], 0xfdb97531
mov dword [esi + 0x14], 0x80000062
mov dword [esi + 0x18], 0x40000020
mov dword [esi + 0x1c], 0x10000002
mov dword [esi + 0x20], SysReAllocStringLen
mov dword [esi + 0x24], 0x3fffffff
mov dword [esi + 0x28], 0xfffffff
mov dword [esi + 0x2c], SysReAllocStringLen
mov dword [esi + 0x30], 0xc0000000
mov dword [esi + 0x34], 0xf0000000
call fcn.004020b5
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x409f46
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c08
call fcn.00415460
push ebx
push edi
push dword [0x446258]
lea eax, [ebp - 0x110]
push 0x437050
push eax
call fcn.00415d3d
add esp, 0xc
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40a04a
push esi
push 0xc
lea eax, [ebp - 0x10]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00416700
mov esi, 0x2710
push esi
lea eax, [ebp - 0x2c08]
push ebx
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.00416700
add esp, 0x18
push ebx
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x2c08]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
pop esi
je 0x40a051
mov eax, dword [ebp - 0x2bf0]
lea eax, [ebp + eax - 0x2c08]
push eax
call fcn.00409e1b
push eax
lea eax, [ebp - 0x4f8]
push eax
call fcn.00416780
add esp, 0xc
cmp byte [0x446ff0], bl
jne 0x40a043
movsx eax, byte [ebp - 0x4f8]
push eax
call fcn.004174e2
test eax, eax
pop ecx
jne 0x40a030
movsx eax, byte [ebp - 0x4e5]
push eax
call fcn.004174e2
test eax, eax
pop ecx
je 0x40a043
lea eax, [ebp - 0x4f8]
push eax
push 0x446ff0
call fcn.00416780
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret
xor eax, eax
jmp 0x40a04d
Function at 0x40b5f9
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
push str.RtlInitUnicodeString
mov ebx, str.ntdll.dll
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
test eax, eax
mov dword [0x449240], eax
jne 0x40b625
xor al, al
jmp 0x40b676
push str.NtUnmapViewOfSection
push ebx
call esi
push eax
call edi
test eax, eax
mov dword [0x449230], eax
je 0x40b621
push str.NtOpenSection
push ebx
call esi
push eax
call edi
test eax, eax
mov dword [0x449228], eax
je 0x40b621
push str.NtMapViewOfSection
push ebx
call esi
push eax
call edi
test eax, eax
mov dword [0x449244], eax
je 0x40b621
push str.RtlNtStatusToDosError
push ebx
call esi
push eax
call edi
test eax, eax
mov dword [0x449224], eax
setne al
pop edi
pop esi
pop ebx
ret
Function at 0x40c6f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40c743
call fcn.0042b371
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x40c743
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40c739
xor eax, eax
jmp 0x40c858
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x40c772
mov eax, dword [edi]
push ebx
push dword [ebp - 4]
mov ecx, edi
push dword [ebp + 8]
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x40c772
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
test eax, eax
je 0x40c855
mov edi, dword [eax + 0x40]
and dword [ebp + 0x10], 0
xor eax, eax
cmp edi, eax
mov dword [ebp + 0xc], edi
mov dword [ebp - 8], edi
je 0x40c7a1
mov ecx, dword [edi]
mov dword [ebp + 0xc], ecx
mov ecx, dword [edi + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], ecx
cmp dword [ebx + 8], eax
mov dword [ebp - 4], eax
jbe 0x40c855
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40c7df
mov ecx, dword [ecx + 4]
mov edx, dword [ebx + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40c7df
test edi, edi
mov dword [ebp - 8], edi
je 0x40c7d9
mov eax, dword [edi]
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
jmp 0x40c845
and dword [ebp + 0x10], 0
jmp 0x40c845
mov ecx, dword [ebx + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40c845
push 0xc
call fcn.00422856
mov esi, eax
test esi, esi
pop ecx
je 0x40c824
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebx + 0xc]
mov edx, dword [ebp - 0x10]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0xc]
mov dword [esi], eax
jmp 0x40c826
xor esi, esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40c840
push dword [ebp - 8]
call fcn.004217e1
jmp 0x40c845
call fcn.004217b8
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jb 0x40c7ad
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x415dde
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x43a478
call fcn.00416ef8
mov edi, 0x94
mov eax, edi
call fcn.00415460
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 [0x44b190], ecx
mov eax, dword [esi + 4]
mov dword [0x44b19c], eax
mov edx, dword [esi + 8]
mov dword [0x44b1a0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x44b194], esi
cmp ecx, 2
je 0x415e3e
or esi, 0x8000
mov dword [0x44b194], esi
shl eax, 8
add eax, edx
mov dword [0x44b198], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x415e79
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x415e79
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x415e91
cmp eax, 0x20b
je 0x415e7e
mov dword [ebp - 0x1c], esi
jmp 0x415ea5
cmp dword [ecx + 0x84], 0xe
jbe 0x415e79
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x415e9f
cmp dword [ecx + 0x74], 0xe
jbe 0x415e79
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00418875
pop ecx
test eax, eax
jne 0x415eb9
push 0x1c
call fcn.00415dba
pop ecx
call fcn.00419d60
test eax, eax
jne 0x415eca
push 0x10
call fcn.00415dba
pop ecx
call fcn.0041b0ca
mov dword [ebp - 4], esi
call fcn.0041aecc
test eax, eax
jge 0x415ee3
push 0x1b
call fcn.00415d95
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x44c9f0], eax
call fcn.0041adaa
mov dword [0x44b178], eax
call fcn.0041ad08
test eax, eax
jge 0x415f09
push 8
call fcn.00415d95
pop ecx
call fcn.0041aad5
test eax, eax
jge 0x415f1a
push 9
call fcn.00415d95
pop ecx
call fcn.0041726c
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x415f2d
push eax
call fcn.00415d95
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041aa6c
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x415f4e
movzx eax, word [ebp - 0x34]
jmp 0x415f51
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.0042da58
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x415f6f
push edi
call fcn.004173a4
call fcn.004173c6
jmp 0x415fa1
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00416f33
ret
Function at 0x41b6d9
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 0x41b89f
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x44c680]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41b89f
test cl, 0x48
je 0x41b73f
mov al, byte [eax + 5]
cmp al, 0xa
je 0x41b73f
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 0x41b791
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41b779
call fcn.00418215
mov dword [eax], 9
call fcn.0041821e
mov dword [eax], esi
jmp 0x41b789
cmp eax, 0x6d
je 0x41b89f
push eax
call fcn.00418227
pop ecx
or eax, 0xffffffff
jmp 0x41b8a1
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x41b89a
test edx, edx
je 0x41b7b4
cmp byte [ebx], 0xa
jne 0x41b7b4
or al, 4
jmp 0x41b7b6
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x41b894
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41b884
cmp al, 0xd
je 0x41b7ea
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41b876
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41b804
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41b7ff
add dword [ebp + 0x10], 2
jmp 0x41b858
mov dword [ebp + 0x10], eax
jmp 0x41b872
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 0x41b82c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41b872
cmp dword [ebp - 0xc], 0
je 0x41b872
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41b84d
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41b858
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41b875
cmp ebx, dword [ebp + 0xc]
jne 0x41b85d
cmp byte [ebp - 1], 0xa
jne 0x41b85d
mov byte [ebx], 0xa
jmp 0x41b875
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041be6b
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x41b876
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41b7ce
jmp 0x41b894
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x41b894
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41b8a1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41bab2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4442d0]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x41badb
xor eax, eax
jmp 0x41bc49
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x44c680]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41bb0e
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.0041eea6
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41bbe0
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x41bc1b
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x41bb69
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41bb5a
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x41bb3d
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41bba9
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x41bbb2
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x41bb2e
jmp 0x41bbb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x41bc44
cmp dword [ebp - 8], edi
je 0x41bc1b
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x41bc0d
call fcn.00418215
mov dword [eax], 9
call fcn.0041821e
mov dword [eax], esi
jmp 0x41bc16
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41bc02
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x41bbb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x41bbb4
push dword [ebp - 8]
call fcn.00418227
pop ecx
or eax, 0xffffffff
jmp 0x41bc47
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41bc30
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x41bc30
xor eax, eax
jmp 0x41bc47
call fcn.00418215
mov dword [eax], 0x1c
call fcn.0041821e
mov dword [eax], edi
jmp 0x41bc16
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.004177f6
leave
ret