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

Disassembly:
mov eax, 0x42dedc
call fcn.00416388
push ecx
push ecx
push esi
push 0x430df4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor esi, esi
cmp eax, esi
jne 0x402d7f
or eax, 0xffffffff
jmp 0x402e45
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x4462b0]
cmp eax, esi
mov dword [ebp - 0x14], esi
je 0x402d99
push eax
call fcn.00422871
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 0x402e0b
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.004024f8
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.00416770
add esp, 0x28
jmp 0x402e3b
cmp eax, 0xe8
je 0x402e38
cmp eax, 0x32
je 0x402e38
cmp eax, 0x6f
jne 0x402e3b
push dword [ebp - 0x14]
call fcn.004153ca
pop ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
mov dword [0x4462b0], eax
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
je 0x402db8
or esi, 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401f67
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x404312
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.004042c4
mov byte [esi], 0x80
pop esi
ret

Function at 0x404df9
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 0x404e07
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
pop edi
pop esi
ret

Function at 0x404e1d
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 0x404e2b
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 0x407972
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 0x407abe
test al, 7
jne 0x407abe
cmp dword [ebp + 0x14], 1
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
jne 0x407a10
cmp eax, 8
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0xc], ecx
jb 0x407ac8
shr eax, 3
mov dword [ebp + 0x14], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.004078d9
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.004077e6
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.00407935
add dword [ebp + 8], 8
dec dword [ebp + 0x14]
pop ecx
pop ecx
jne 0x4079bf
jmp 0x407ac8
cmp dword [ebp + 0x14], 2
jne 0x407a80
cmp eax, 8
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0xc], ecx
jb 0x407ac8
shr eax, 3
mov ebx, eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.004078d9
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.004076f3
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.00407935
add dword [ebp + 8], 8
dec ebx
pop ecx
pop ecx
jne 0x407a30
jmp 0x407ac8
cmp eax, 8
jb 0x407ac8
shr eax, 3
mov edi, eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.004078d9
pop ecx
pop ecx
lea eax, [ebp - 8]
push eax
mov ecx, esi
call fcn.004077e6
add dword [ebp + 0xc], 8
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call fcn.00407935
add dword [ebp + 8], 8
dec edi
pop ecx
pop ecx
jne 0x407a8a
jmp 0x407ac8
mov dword [0x4462c0], 1
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x407ad6
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 0x407b17
mov dword [0x4462c0], eax
jmp 0x407c1e
push 0x38
pop eax
cmp dword [ebp + 0xc], eax
jbe 0x407b22
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.004163b0
push 0x48
lea edi, [esi + 0x14]
push 0x4353c0
push edi
call fcn.004163b0
push 0x1000
lea eax, [esi + 0x5c]
push 0x435408
push eax
call fcn.004163b0
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 0x407b94
and dword [ebp + 0x10], 0
lea eax, [ebp - 0x44]
dec dword [ebp - 4]
jne 0x407b73
mov edx, dword [ebp + 8]
xor dword [ecx], edx
push 4
pop ebx
add ecx, ebx
dec dword [ebp - 8]
jne 0x407b6c
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.004076f3
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 0x407bb3
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.004076f3
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 0x407be8
add dword [ebp + 0x10], 0x400
dec dword [ebp + 8]
jne 0x407be1
pop edi
pop ebx
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x408fe2
Capabilities:
Execute anti-debugging instructions

Disassembly:
push 0x18
push 0x436c90
call fcn.00416ee8
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.00416dc0
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 0x409047
call fcn.00416f23
ret
Function at 0x409360
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.004092ce
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 0x4093a2
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 0x4094bd
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 0x4094de
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.0040940d
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 0x4094f8
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x40961b
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 0x40962a
pop edi
pop esi
ret
Function at 0x409b92
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x42e13d
call fcn.00416388
push ecx
push esi
mov esi, ecx
mov dword [esi], fcn.00409d31
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.004020a5
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x409f36
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c08
call fcn.00415450
push ebx
push edi
push dword [0x446258]
lea eax, [ebp - 0x110]
push 0x437050
push eax
call fcn.00415d2d
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 0x40a03a
push esi
push 0xc
lea eax, [ebp - 0x10]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004166f0
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.004166f0
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 0x40a041
mov eax, dword [ebp - 0x2bf0]
lea eax, [ebp + eax - 0x2c08]
push eax
call fcn.00409e0b
push eax
lea eax, [ebp - 0x4f8]
push eax
call fcn.00416770
add esp, 0xc
cmp byte [0x446ff0], bl
jne 0x40a033
movsx eax, byte [ebp - 0x4f8]
push eax
call fcn.004174d2
test eax, eax
pop ecx
jne 0x40a020
movsx eax, byte [ebp - 0x4e5]
push eax
call fcn.004174d2
test eax, eax
pop ecx
je 0x40a033
lea eax, [ebp - 0x4f8]
push eax
push 0x446ff0
call fcn.00416770
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 0x40a03d
Function at 0x40b5e9
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 0x40b615
xor al, al
jmp 0x40b666
push str.NtUnmapViewOfSection
push ebx
call esi
push eax
call edi
test eax, eax
mov dword [0x449230], eax
je 0x40b611
push str.NtOpenSection
push ebx
call esi
push eax
call edi
test eax, eax
mov dword [0x449228], eax
je 0x40b611
push str.NtMapViewOfSection
push ebx
call esi
push eax
call edi
test eax, eax
mov dword [0x449244], eax
je 0x40b611
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 0x40c6e0
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 0x40c733
call fcn.0042b361
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x40c733
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40c729
xor eax, eax
jmp 0x40c848
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 0x40c762
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 0x40c762
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 0x40c845
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 0x40c791
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 0x40c845
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40c7cf
mov ecx, dword [ecx + 4]
mov edx, dword [ebx + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40c7cf
test edi, edi
mov dword [ebp - 8], edi
je 0x40c7c9
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 0x40c835
and dword [ebp + 0x10], 0
jmp 0x40c835
mov ecx, dword [ebx + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40c835
push 0xc
call fcn.00422846
mov esi, eax
test esi, esi
pop ecx
je 0x40c814
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 0x40c816
xor esi, esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40c830
push dword [ebp - 8]
call fcn.004217d1
jmp 0x40c835
call fcn.004217a8
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jb 0x40c79d
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x415dce
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x43a478
call fcn.00416ee8
mov edi, 0x94
mov eax, edi
call fcn.00415450
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 0x415e2e
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 0x415e69
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x415e69
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x415e81
cmp eax, 0x20b
je 0x415e6e
mov dword [ebp - 0x1c], esi
jmp 0x415e95
cmp dword [ecx + 0x84], 0xe
jbe 0x415e69
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x415e8f
cmp dword [ecx + 0x74], 0xe
jbe 0x415e69
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00418865
pop ecx
test eax, eax
jne 0x415ea9
push 0x1c
call fcn.00415daa
pop ecx
call fcn.00419d50
test eax, eax
jne 0x415eba
push 0x10
call fcn.00415daa
pop ecx
call fcn.0041b0ba
mov dword [ebp - 4], esi
call fcn.0041aebc
test eax, eax
jge 0x415ed3
push 0x1b
call fcn.00415d85
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x44c9f0], eax
call fcn.0041ad9a
mov dword [0x44b178], eax
call fcn.0041acf8
test eax, eax
jge 0x415ef9
push 8
call fcn.00415d85
pop ecx
call fcn.0041aac5
test eax, eax
jge 0x415f0a
push 9
call fcn.00415d85
pop ecx
call fcn.0041725c
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x415f1d
push eax
call fcn.00415d85
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041aa5c
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x415f3e
movzx eax, word [ebp - 0x34]
jmp 0x415f41
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.004213a0
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x415f5f
push edi
call fcn.00417394
call fcn.004173b6
jmp 0x415f91
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00416f23
ret
Function at 0x41b6c9
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 0x41b88f
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 0x41b88f
test cl, 0x48
je 0x41b72f
mov al, byte [eax + 5]
cmp al, 0xa
je 0x41b72f
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 0x41b781
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41b769
call fcn.00418205
mov dword [eax], 9
call fcn.0041820e
mov dword [eax], esi
jmp 0x41b779
cmp eax, 0x6d
je 0x41b88f
push eax
call fcn.00418217
pop ecx
or eax, 0xffffffff
jmp 0x41b891
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 0x41b88a
test edx, edx
je 0x41b7a4
cmp byte [ebx], 0xa
jne 0x41b7a4
or al, 4
jmp 0x41b7a6
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 0x41b884
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41b874
cmp al, 0xd
je 0x41b7da
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41b866
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41b7f4
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41b7ef
add dword [ebp + 0x10], 2
jmp 0x41b848
mov dword [ebp + 0x10], eax
jmp 0x41b862
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 0x41b81c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41b862
cmp dword [ebp - 0xc], 0
je 0x41b862
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41b83d
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41b848
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41b865
cmp ebx, dword [ebp + 0xc]
jne 0x41b84d
cmp byte [ebp - 1], 0xa
jne 0x41b84d
mov byte [ebx], 0xa
jmp 0x41b865
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041be5b
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x41b866
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41b7be
jmp 0x41b884
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x41b884
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41b891
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41baa2
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 0x41bacb
xor eax, eax
jmp 0x41bc39
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 0x41bafe
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.0041ee96
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41bbd0
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x41bc0b
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 0x41bb59
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41bb4a
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 0x41bb2d
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 0x41bb99
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x41bba2
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x41bb1e
jmp 0x41bba4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x41bc34
cmp dword [ebp - 8], edi
je 0x41bc0b
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x41bbfd
call fcn.00418205
mov dword [eax], 9
call fcn.0041820e
mov dword [eax], esi
jmp 0x41bc06
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 0x41bbf2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x41bba4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x41bba4
push dword [ebp - 8]
call fcn.00418217
pop ecx
or eax, 0xffffffff
jmp 0x41bc37
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41bc20
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x41bc20
xor eax, eax
jmp 0x41bc37
call fcn.00418205
mov dword [eax], 0x1c
call fcn.0041820e
mov dword [eax], edi
jmp 0x41bc06
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.004177e6
leave
ret