joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ae16e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, ecx
mov dword [ebp - 0xc], edx
push ebx
push esi
push edi
mov esi, dword [eax + 4]
lea ecx, [eax + 8]
sub esi, dword [eax]
mov dword [ebp - 4], eax
sar esi, 1
jmp 0x4ae18f
mov eax, ebx
mov eax, dword [eax]
cmp eax, ecx
jne 0x4ae19a
push 3
pop ebx
jmp 0x4ae1a0
mov ebx, dword [ecx]
sub ebx, eax
sar ebx, 1
sub ebx, esi
lea eax, [eax + esi*2]
push ebx
push eax
push dword [edx]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x4ae1ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004ac402
mov edi, eax
mov eax, dword [ebp - 8]
jmp 0x4ae1d1
xor edi, edi
cmp eax, ebx
jb 0x4ae205
inc edi
test edi, edi
je 0x4ae205
js 0x4ae207
cmp eax, ebx
jbe 0x4ae1fe
mov ebx, dword [ebp - 4]
lea ecx, [eax + esi]
cmp ecx, eax
jb 0x4ae1f7
push ecx
mov ecx, ebx
call fcn.004add95
mov edx, dword [ebp - 0xc]
lea ecx, [ebx + 8]
test al, al
jne 0x4ae18d
mov edi, 0x8007000e
jmp 0x4ae20a
mov edi, 0x8000ffff
jmp 0x4ae207
add esi, eax
mov ebx, dword [ebp - 4]
push esi
mov ecx, ebx
call fcn.004ae219
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4ae53b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push edi
push ecx
push ecx
push dword [ebp + 8]
mov edi, ecx
call fcn.004ae63e
mov dword [edi + 0x14], eax
test eax, eax
jne 0x4ae55c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4ae5bd
push esi
push 0
push 0x4132f4
push 0x4132fc
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov esi, eax
test esi, esi
je 0x4ae5a7
push esi
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [edi + 0x10], eax
test eax, eax
je 0x4ae5a7
push esi
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [edi + 0xc], eax
test eax, eax
je 0x4ae5a7
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [edi], eax
test eax, eax
jne 0x4ae5ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, edi
mov esi, eax
call fcn.004ae5c2
mov eax, esi
jmp 0x4ae5bc
xor eax, eax
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x4af234
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
mov edi, edi
push ebx
mov ebx, edx
shr edx, 2
push esi
push edi
xor edi, edi
lea ecx, [ecx + edx*4]
mov esi, edi
neg edx
je 0x4af26c
imul eax, dword [ecx + edx*4], 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, esi
rol eax, 0xd
imul esi, eax, 5
sub esi, 0x19ab949c
add edx, 1
jne 0x4af249
mov eax, ebx
and eax, 3
sub eax, 1
je 0x4af290
sub eax, 1
je 0x4af287
sub eax, 1
jne 0x4af2a6
movzx edi, byte [ecx + 2]
shl edi, 0x10
movzx eax, byte [ecx + 1]
shl eax, 8
or edi, eax
movzx eax, byte [ecx]
or eax, edi
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor esi, eax
xor esi, ebx
mov eax, esi
shr eax, 0x10
xor eax, esi
imul ecx, eax, 0x85ebca6b
pop edi
pop esi
pop ebx
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
ret
Function at 0x4b65f6
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov edi, edi
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [0x4f5670], ebx
jne 0x4b66fe
push edi
push esi
push esi
push 0x4164ac
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
jle 0x4b666a
mov eax, edi
sub eax, ebx
test eax, eax
jle 0x4b6655
test esi, esi
je 0x4b6632
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
lea ebx, [edi*2 + 2]
push ebx
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x4b666a
push ebx
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov ebx, edi
push ebx
push esi
push 0x4164ac
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
sub eax, ebx
test eax, eax
jg 0x4b661e
mov ecx, esi
mov ebx, 0x4f5670
xor eax, eax
lock cmpxchg dword [ebx], ecx
test eax, eax
je 0x4b6683
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp dword [0x4f5670], 0
jne 0x4b66fd
push 0x208
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x4b66e9
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4b66b5
cmp eax, 0x103
jle 0x4b66e9
mov edi, dword [0x4f5664]
test edi, edi
je 0x4b66df
cmp dword [0x4f5660], 0
push 0x416474
jne 0x4b66d9
mov ecx, edi
call dword [0x4f6d6c]
call edi
jmp 0x4b66de
call fcn.004ba6fd
pop ecx
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor esi, esi
mov ecx, esi
xor eax, eax
lock cmpxchg dword [ebx], ecx
test eax, eax
je 0x4b66fd
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
mov eax, dword [0x4f5670]
pop esi
pop ebx
ret
Function at 0x4bedc1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, ecx
mov dword [ebp - 0xc], edx
push ebx
push esi
push edi
mov edi, dword [eax + 4]
lea ecx, [eax + 8]
sub edi, dword [eax]
sar edi, 1
xor esi, esi
mov dword [ebp - 4], eax
jmp 0x4bede4
mov eax, ebx
mov eax, dword [eax]
cmp eax, ecx
jne 0x4bedef
push 3
pop ebx
jmp 0x4bedf5
mov ebx, dword [ecx]
sub ebx, eax
sar ebx, 1
sub ebx, edi
lea ecx, [eax + edi*2]
mov dword [ebp - 0x10], ecx
cmp ebx, 0x7fffffff
jbe 0x4bee0a
or eax, 0xffffffff
jmp 0x4bee0d
lea eax, [ebx + ebx]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push ecx
push esi
push esi
push dword [edx + 4]
push dword [edx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 8]
shr eax, 1
mov dword [ebp - 8], eax
test esi, esi
je 0x4bee82
cmp esi, 0xea
je 0x4bee4d
test esi, esi
jle 0x4bee47
movzx esi, si
or esi, 0x80070000
test esi, esi
je 0x4bee99
test esi, esi
js 0x4bee9b
cmp eax, ebx
jbe 0x4bee7b
mov ebx, dword [ebp - 4]
lea ecx, [eax + edi]
cmp ecx, eax
jb 0x4bee74
push ecx
mov ecx, ebx
call fcn.004add95
mov edx, dword [ebp - 0xc]
lea ecx, [ebx + 8]
push 0
pop esi
test al, al
jne 0x4bede2
mov esi, 0x8007000e
jmp 0x4bee9e
mov esi, 0x8000ffff
jmp 0x4bee9b
xor esi, esi
mov ecx, eax
test eax, eax
je 0x4bee97
mov edx, dword [ebp - 0x10]
cmp word [edx + eax*2 - 2], si
jne 0x4bee97
lea ecx, [eax - 1]
mov eax, ecx
add edi, eax
mov ebx, dword [ebp - 4]
push edi
mov ecx, ebx
call fcn.004ae219
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4bf944
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 6
pop ecx
xor ebx, ebx
mov eax, 0x1000000
mov esi, 0x104
mov dword [0x4ecf68], eax
push esi
mov dword [0x4ecc50], eax
mov edi, 0x4ec628
xor eax, eax
mov dword [0x4ec618], ebx
push ebx
rep stosd dword es:[edi], eax
push 0x4ece60
mov dword [0x4ec61c], ebx
mov dword [0x4ecf6c], ebx
mov dword [0x4ecc54], ebx
call sub.msvcrt.dll_memset
pop ecx
pop ecx
push esi
mov ecx, 0x4f5650
call fcn.004addc3
test al, al
je 0x4bfb3b
push ecx
mov edi, 0x4f5640
push esi
mov ecx, edi
call fcn.004addc3
test al, al
je 0x4bfb3b
mov ecx, dword [0x4f5654]
mov eax, dword [0x4f5650]
sub ecx, eax
sar ecx, 1
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, eax
test esi, esi
je 0x4bfb2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4bfb2a
push ecx
push esi
mov ecx, 0x4f5650
call fcn.004addc3
mov ecx, dword [0x4f5644]
mov eax, dword [0x4f5640]
sub ecx, eax
push ebx
push ebx
sar ecx, 1
push ecx
push eax
push ebx
push ebx
push ebx
push ebx
push dword [0x4f5650]
call dword [sym.imp.msvcrt.dll__wsplitpath_s]
add esp, 0x24
test eax, eax
je 0x4bfa32
push eax
push 0x473bc0
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
jmp 0x4bfb46
mov edx, dword [0x4f5644]
mov eax, dword [0x4f5640]
sub edx, eax
sar edx, 1
push edx
push eax
call dword [sym.imp.msvcrt.dll_wcsnlen]
pop ecx
push eax
mov ecx, edi
call fcn.004addc3
push 0x473c1c
call fcn.004bf8d1
mov dword [esp], 0x400
mov esi, 0x4ec850
push esi
push 0x473c0c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp eax, 1
push esi
setl al
dec al
and byte [0x4ec850], al
push 0x473c58
call fcn.004bf8d1
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
inc eax
push esi
push eax
mov dword [0x4ec84c], eax
call dword [sym.imp.imagehlp.dll_SymInitialize]
test eax, eax
jne 0x4bfac6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x473c34
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
mov dword [0x4ec84c], ebx
jmp 0x4bfb46
push 0x10813
call dword [sym.imp.imagehlp.dll_SymSetOptions]
push eax
push 0x473c98
mov dword [0x4ec844], eax
call fcn.004bf8d1
pop ecx
pop ecx
push ebx
push ebx
push 0x4bf920
push dword [0x4ec84c]
call dword [sym.imp.imagehlp.dll_SymRegisterCallback64]
mov esi, eax
test esi, esi
jne 0x4bfb0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x473c6c
jmp 0x4bfa26
call fcn.004beead
cmp dword [0x4eb334], ebx
jne 0x4bfb26
push 0x473cc8
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
mov eax, esi
jmp 0x4bfb49
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x473be4
jmp 0x4bfa26
push 0x473b98
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x4bfbdf
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x4ea4ec]
xor eax, ebp
mov dword [ebp - 4], eax
xor edx, edx
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x424], edx
push edi
mov dword [ebp - 0x420], edx
mov dword [ebp - 0x41c], edx
cmp dword [ebp + 0xc], edx
jne 0x4bfc25
push 0x473d1c
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
xor eax, eax
jmp 0x4bfd9d
mov ecx, 0x104
lea eax, [ebp - 0x418]
push ecx
push eax
push ecx
lea eax, [ebp - 0x210]
push eax
push edx
push edx
push edx
push edx
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wsplitpath_s]
add esp, 0x24
cmp word [ebp - 0x418], si
jne 0x4bfc6b
mov edi, dword [0x4ecf68]
mov ebx, dword [0x4ecf6c]
mov dword [ebp - 0x420], 1
jmp 0x4bfca7
lea eax, [ebp - 0x418]
push 0x473d10
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x4bfc9b
mov edi, dword [0x4ecf68]
mov ebx, dword [0x4ecf6c]
mov dword [ebp - 0x41c], 1
jmp 0x4bfca7
mov edi, dword [0x4ecc50]
mov ebx, dword [0x4ecc54]
mov eax, dword [0x4ec618]
or eax, dword [0x4ec61c]
je 0x4bfcb9
call fcn.004bfb4d
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x424]
jne 0x4bfcc2
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, 0x4f5630
call fcn.004adf88
test al, al
jne 0x4bfcff
push dword [ebp + 8]
push 0x473d6c
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
jmp 0x4bfc1d
cmp dword [ebp - 0x41c], esi
jne 0x4bfd2b
xor eax, eax
push eax
push eax
push 3
push eax
push eax
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
jmp 0x4bfd30
mov eax, 0x1000000
push dword [ebp - 0x420]
xor ecx, ecx
push ecx
push eax
push ebx
push edi
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
push esi
push dword [0x4ec84c]
call dword [sym.imp.dbghelp.dll_SymLoadModuleExW]
mov ecx, eax
or ecx, edx
jne 0x4bfd83
mov eax, dword [0x4f5630]
mov dword [0x4f5634], eax
mov word [eax], cx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x473d50
call dword [sym.imp.msvcrt.dll_printf]
add esp, 0xc
jmp 0x4bfc1e
mov dword [0x4ec618], eax
mov dword [0x4ec61c], edx
cmp esi, 0xffffffff
je 0x4bfd9a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c4ec0
leave
ret 8
Function at 0x4c2be4
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x4ea4ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0x21c], edx
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x220], eax
mov eax, 0x104
cmp dword [edi], eax
jae 0x4c2c31
push 0x7a
mov dword [edi], eax
pop eax
jmp 0x4c2d09
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push dword [ebp - 0x21c]
mov ebx, eax
push ebx
call dword [sym.imp.imagehlp.dll_SymInitialize]
push 0x680
call dword [sym.imp.imagehlp.dll_SymSetOptions]
push 0x104
lea eax, [ebp - 0x110]
push eax
push dword [edi]
push dword [ebp - 0x220]
push 2
push dword [ebp - 0x224]
push 0
push ebx
call dword [sym.imp.imagehlp.dll_SymGetSymbolFile]
test eax, eax
jne 0x4c2d00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
jne 0x4c2d00
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x23c]
call fcn.004c3087
mov eax, dword [eax + 0xc]
cmp byte [eax], 0x2e
jne 0x4c2ca8
inc eax
push eax
push dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push 0x4749fc
push 0x104
push eax
call fcn.004bb39f
add esp, 0x14
lea eax, [ebp - 0x110]
xor esi, esi
push 0x104
push eax
push dword [edi]
lea eax, [ebp - 0x218]
push dword [ebp - 0x220]
push 2
push dword [ebp - 0x224]
push eax
push esi
call dword [sym.imp.imagehlp.dll_SymGetSymbolFile]
test eax, eax
jne 0x4c2d00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push ebx
call dword [sym.imp.imagehlp.dll_SymCleanup]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c4ec0
leave
ret 0x10
Function at 0x4c4eb0
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x4cf748
call fcn.004c58b8
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4f5ed4
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x4c4c85
cmp eax, esi
jne 0x4c4c78
xor esi, esi
inc esi
mov edi, esi
jmp 0x4c4c88
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4c4c5c
xor esi, esi
inc esi
cmp dword [0x4f5ed8], esi
jne 0x4c4c9a
push 0x1f
call fcn.005a3000
pop ecx
jmp 0x4c4cd4
cmp dword [0x4f5ed8], ebx
jne 0x4c4cce
mov dword [0x4f5ed8], esi
push 0x409250
push 0x409244
call fcn.004c4e0e
pop ecx
pop ecx
test eax, eax
je 0x4c4cd4
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4c4dfe
mov dword [0x4eaf9c], esi
cmp dword [0x4f5ed8], esi
jne 0x4c4cf7
push 0x409240
push 0x4091c0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4f5ed8], 2
test edi, edi
jne 0x4c4d04
xor eax, eax
mov ecx, 0x4f5ed4
xchg dword [ecx], eax
cmp dword [0x4f5ee4], 0
je 0x4c4d30
push 0x4f5ee4
call fcn.004c5710
pop ecx
test eax, eax
je 0x4c4d30
push ebx
push 2
push ebx
mov esi, dword [0x4f5ee4]
mov ecx, esi
call dword [0x4f6d6c]
call esi
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov ecx, dword [eax]
test ecx, ecx
je 0x4c4cbd
mov dword [ebp - 0x20], ecx
push 0x20
pop esi
mov edx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp ax, si
ja 0x4c4d9b
test ax, ax
je 0x4c4d6a
test edx, edx
jne 0x4c4d9b
test ax, ax
je 0x4c4d6a
cmp ax, si
ja 0x4c4d6a
add ecx, 2
mov dword [ebp - 0x20], ecx
movzx eax, word [ecx]
jmp 0x4c4d55
test byte [ebp - 0x3c], 1
je 0x4c4d76
movzx eax, word [ebp - 0x38]
jmp 0x4c4d79
push 0xa
pop eax
push eax
push ecx
push ebx
push 0x400000
call main
mov dword [0x4eaf98], eax
cmp dword [0x4eafb0], 0
jne 0x4c4de3
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp eax, 0x22
jne 0x4c4dac
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [ebp - 0x1c], edx
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x4c4d44
cmp dword [0x4eaf9c], 0
jne 0x4c4df7
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x4eaf98]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.004c5805
jmp 0x4c4c33

Function at 0x4c56c0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4c56fe
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4c56f6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4c5700
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4c56e6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4c57d0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x4c5801
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4c5801
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x4c5801
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4108d1
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
push edi
push 0x20
pop edi
movzx eax, word [esi + 0x454]
mov cl, al
shl dword [esi + 0x450], cl
cmp ax, di
jae 0x41093a
mov ecx, dword [esi + 0x448]
mov edx, dword [esi + 0x444]
mov al, byte [esi + 0x453]
mov byte [edx + ecx], al
inc dword [esi + 0x448]
mov edx, dword [esi + 0x448]
mov ecx, dword [esi + 0x444]
mov al, byte [esi + 0x452]
mov byte [edx + ecx], al
inc dword [esi + 0x448]
shl dword [esi + 0x450], 0x10
add word [esi + 0x454], 0x10
cmp word [esi + 0x454], di
jb 0x4108ec
mov word [esi + 0x454], di
mov ecx, esi
pop edi
pop esi
jmp fcn.004107f5

Function at 0x410d5a
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 8
push 0
lea eax, [esi + 0x44]
push eax
call fcn.004158c0
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
pop esi
ret

Function at 0x4118f4
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi + 0x10]
test eax, eax
je 0x411913
push esi
mov esi, dword [eax + 0x208]
push eax
call main
mov eax, esi
pop ecx
test esi, esi
jne 0x4118ff
pop esi
push dword [edi + 4]
push 4
push 1
push str.AU3_
call fcn.0041375f
push dword [edi + 4]
push 4
push 1
push 0x43c314
call fcn.0041375f
push dword [edi + 4]
call fcn.00412faf
add esp, 0x24
pop edi
ret

Function at 0x4176ac
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x438e48
call fcn.004186e0
call main
movzx esi, ax
push 2
call main
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x417563
xor ebx, ebx
jmp 0x417596
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x41755f
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x41755f
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x417596
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.00419f20
test eax, eax
jne 0x4175aa
push 0x1c
call main
pop ecx
call fcn.0041bf44
test eax, eax
jne 0x4175bb
push 0x10
call main
pop ecx
call fcn.00421536
and dword [ebp - 4], 0
call fcn.0041ad0b
test eax, eax
jns 0x4175d5
push 0x1b
call main
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov dword [0x440768], eax
call main
mov dword [0x43d24c], eax
call main
test eax, eax
jns 0x4175fb
push 8
call main
pop ecx
call fcn.0042136b
test eax, eax
jns 0x41760c
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x41761f
push eax
call main
pop ecx
call fcn.004215d3
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x417641
push esi
call main
call fcn.00419a7a
jmp 0x417676
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00418725
ret
call main
jmp 0x417535
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x404532
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x404541
pop dword [ebp - 0x18]
mov eax, 0xdbb877a
add eax, 0xf284bdc7
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x390a6
push 0
mov eax, 0xf2a5c4d8
sub eax, 0xf264e400
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x1d9697ad
sub ecx, 0x1d965056
mov edx, eax
mov esi, 0x413bc4
add esi, dword [ebp - 0x18]
mov ebx, 0xba88e28
sub ebx, 0x15d01259
xor dword [ebp - 0x14], eax
mov edi, dword [esi]
add dword [ebp - 0x10], eax
xor edi, ebx
xor dword [ebp - 0x10], 0x1f810adb
mov dword [edx], edi
xor dword [ebp - 4], 0x84c7658a
add edx, 0xff50c405
add edx, 0xaf3bff
add esi, 4
loop 0x40459a
add eax, 0x1102f
mov ebx, eax
add eax, 5
mov ecx, 0xb00edf3f
sub ecx, 0xafcedf3f
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x1004605f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100870c0]
jne 0x10046069
repz ret
jmp fcn.1004ef8a

Function at 0x1004eda7
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10087268]
je 0x1004edc2
inc edi
cmp edi, 0x17
jb 0x1004edb3
cmp edi, 0x17
jae 0x1004ef42
push ebp
push 3
call fcn.10055799
cmp eax, 1
pop ecx
je 0x1004ef0e
push 3
call fcn.10055799
test eax, eax
pop ecx
jne 0x1004edf6
cmp dword [0x1008894c], 1
je 0x1004ef0e
cmp ebx, 0xfc
je 0x1004ef41
push 0x1000ae6c
mov ebx, 0x314
push ebx
mov ebp, 0x10088b00
push ebp
call fcn.1004bc25
add esp, 0xc
test eax, eax
je 0x1004ee2c
push esi
push esi
push esi
push esi
push esi
call fcn.1004fb11
add esp, 0x14
push 0x104
mov esi, 0x10088b19
push esi
push 0
mov byte [0x10088c1d], 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1004ee70
push 0x1000ae54
push 0x2fb
push esi
call fcn.1004bc25
add esp, 0xc
test eax, eax
je 0x1004ee70
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1004fb11
add esp, 0x14
push esi
call fcn.10055430
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1004eeb5
push esi
call fcn.10055430
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10088e14
push 0x1000a540
sub ecx, eax
push ecx
push eax
call fcn.10045cd0
add esp, 0x14
test eax, eax
je 0x1004eeb5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1004fb11
add esp, 0x14
jmp 0x1004eeb7
xor esi, esi
push 0x1000ae50
push ebx
push ebp
call fcn.1004bbb4
add esp, 0xc
test eax, eax
je 0x1004eed7
push esi
push esi
push esi
push esi
push esi
call fcn.1004fb11
add esp, 0x14
push dword [edi*8 + 0x1008726c]
push ebx
push ebp
call fcn.1004bbb4
add esp, 0xc
test eax, eax
je 0x1004eef9
push esi
push esi
push esi
push esi
push esi
call fcn.1004fb11
add esp, 0x14
push 0x12010
push 0x1000ae28
push ebp
call fcn.10045cd0
add esp, 0xc
jmp 0x1004ef41
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1004ef41
cmp ebp, 0xffffffff
je 0x1004ef41
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1008726c]
push dword [esi]
call fcn.10055430
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.kernel32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret