joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ae80e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5bdd90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
sub edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
push eax
pop esi
mov dword [ebp - 0x18], esi
call fcn.004a7ba2
mov dword [ebp - 0x14], eax
cmp dword [0x5bfcb8], edi
jne 0x4ae8ff
push 0x800
push edi
push 0x402d08
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4ae88c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4ae9df
push 0x402d08
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
pop esi
or esi, esi
je 0x4ae9df
push 0x402d20
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
or eax, eax
je 0x4ae9df
push eax
call ebx
push 0x402d2c
push esi
mov dword [0x5bfcb8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x402d3c
push esi
mov dword [0x5bfcbc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x402d50
push esi
mov dword [0x5bfcc0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5bfcc8], eax
or eax, eax
je 0x4ae8fc
push 0x402d6c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5bfcc4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4ae924
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4ae917
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4ae939
push 4
pop eax
jmp 0x4ae9e1
cmp dword [ebp - 0x14], edi
je 0x4ae939
push dword [0x5bfcb8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4ae91e
mov eax, dword [0x5bfcc4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4ae997
cmp dword [0x5bfcc8], esi
je 0x4ae997
push eax
call ebx
push dword [0x5bfcc8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
or ecx, ecx
je 0x4ae997
test eax, eax
je 0x4ae997
call ecx
test eax, eax
je 0x4ae98c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
or eax, eax
je 0x4ae98c
test byte [ebp - 8], 1
jne 0x4ae997
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4ae9c7
mov eax, dword [0x5bfcbc]
cmp eax, esi
je 0x4ae9c4
push eax
call ebx
or eax, eax
je 0x4ae9c4
call eax
mov edi, eax
test edi, edi
je 0x4ae9c4
mov eax, dword [0x5bfcc0]
cmp eax, esi
je 0x4ae9c4
push eax
call ebx
test eax, eax
je 0x4ae9c4
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x5bfcb8]
call ebx
or eax, eax
je 0x4ae9df
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4ae9e1
sub eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a3b5a
leave
ret
Function at 0x4b0b70
Capabilities:
Clear file content

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 1
push esi
push esi
push edi
push esi
pop ebx
mov dword [ebp - 8], esi
call fcn.004adbeb
push edx
pop ecx
mov dword [ebp - 0x18], eax
and eax, ecx
add esp, 0x10
mov dword [ebp - 0x14], ecx
cmp eax, 0xffffffff
je 0x4b0bf8
push 2
push esi
push esi
push edi
call fcn.004adbeb
mov ecx, eax
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b0bf8
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
sub esi, ecx
sbb eax, edx
mov dword [ebp - 4], eax
js 0x4b0c8f
jg 0x4b0bd2
or esi, esi
je 0x4b0c8f
push 0x1000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
or eax, eax
jne 0x4b0c04
call fcn.004a86b4
mov dword [eax], 0xc
call fcn.004a86b4
mov eax, dword [eax]
pop edi
pop esi
pop ebx
leave
ret
push 0x8000
push edi
call fcn.004b0d4e
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
pop ecx
test eax, eax
jl 0x4b0c2c
jg 0x4b0c25
cmp esi, 0x1000
jb 0x4b0c2c
mov eax, 0x1000
jmp 0x4b0c2e
mov eax, esi
push eax
push dword [ebp - 0xc]
push edi
call fcn.004acff8
add esp, 0xc
cmp eax, 0xffffffff
je 0x4b0c55
cdq
sub esi, eax
mov eax, dword [ebp - 4]
sbb eax, edx
mov dword [ebp - 4], eax
js 0x4b0c70
jg 0x4b0c17
or esi, esi
je 0x4b0c70
jmp 0x4b0c17
call fcn.004a8680
cmp dword [eax], 5
jne 0x4b0c6a
call fcn.004a86b4
mov dword [eax], 0xd
or ebx, 0xffffffff
or dword [ebp - 8], ebx
push dword [ebp - 0x10]
push edi
call fcn.004b0d4e
pop ecx
pop ecx
push dword [ebp - 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4b0cf5
or eax, eax
jg 0x4b0d01
jl 0x4b0c99
or esi, esi
jae 0x4b0d01
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.004adbeb
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b0bf8
push edi
call fcn.004b077a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
push eax
pop ebx
push edx
pop eax
mov ecx, ebx
and ecx, eax
mov dword [ebp - 8], eax
cmp ecx, 0xffffffff
jne 0x4b0d01
call fcn.004a86b4
mov dword [eax], 0xd
call fcn.004a8680
push eax
pop esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
and ebx, dword [ebp - 8]
cmp ebx, 0xffffffff
je 0x4b0bf8
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call fcn.004adbeb
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b0bf8
xor eax, eax
jmp 0x4b0bff
Function at 0x10b2d50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8c1000]
push edi
or ebp, 0xffffffff
jmp 0x10b2d72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10b2d79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10b2d68
mov eax, 1
add ebx, ebx
jne 0x10b2d8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10b2d9c
jne 0x10b2dbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10b2dbb
dec eax
add ebx, ebx
jne 0x10b2da8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x10b2d80
add ebx, ebx
jne 0x10b2db7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x10b2e0d
xor ecx, ecx
sub eax, 3
jb 0x10b2dd3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10b2e42
sar eax, 1
mov ebp, eax
jmp 0x10b2dde
add ebx, ebx
jne 0x10b2dde
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10b2dac
inc ecx
add ebx, ebx
jne 0x10b2dec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10b2dac
add ebx, ebx
jne 0x10b2df9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10b2dee
jne 0x10b2e0a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10b2dee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10b2e2c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10b2e1e
jmp 0x10b2d6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10b2e2c
add edi, ecx
jmp 0x10b2d6e
pop esi
mov edi, esi
mov ecx, 0x489e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10b2e4a
cmp byte [edi], 0x14
jne 0x10b2e4a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x10b2e4f
lea edi, [esi + 0xcae000]
mov eax, dword [edi]
or eax, eax
je 0x10b2ebe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd0d798]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd0d89c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10b2e7c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd0d8a0]
or eax, eax
je 0x10b2eb8
mov dword [ebx], eax
add ebx, 4
jmp 0x10b2e99
call dword [esi + 0xd0d8b0]
mov ebp, dword [esi + 0xd0d8a4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x10b2ef2
sub esp, 0xffffff80
jmp 0x49ab80
Function at 0x401230
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
imul eax
add edi, 0x6e
rcr esi, 0x44
not eax
not esi
rol eax, 0x5f
imul eax
mov eax, 0xab
imul edx
dec edi
mov eax, 0x2a
not esi
sbb edx, 0x2b
or edi, 0xd1
bswap eax
rcr edi, 0x4e
add edx, 0x68
dec eax
bswap eax
or edi, 0x92
not edx
add ebx, 0xaf
or edi, 0x5b
bswap edi
inc ebx
rcr edx, 0xfa
bswap edi
neg esi
rcr eax, 0x8c
dec ebx
rcr esi, 0x6d
dec eax
neg eax
dec ebx
inc eax
bswap edi
and eax, 0x5f
not edi
neg edx
dec edi
imul edi
neg edi
sbb edi, 0xf7
neg edi
not esi
imul edx
rcr eax, 2
neg edx
neg eax
imul ebx
xor ecx, ecx
xor edi, edi
not edx
mov esi, 0x81
sbb esi, 0x1c
imul eax
sbb esi, 0xc3
bswap eax
neg edx
dec edx
rol edi, 0x1b
and esi, 0xcd
or ebx, 0xeb
neg edi
ror ebx, 0x53
not edi
not edx
rcr eax, 0x88
bswap eax
and edx, 0xfc
rcr ebx, 0xc3
dec ebx
imul edi
ror esi, 0x69
sbb esi, 0x7d
neg esi
bswap edx
dec eax
or edi, 0x1c
dec edi
bswap eax
rcl edx, 0x77
mov edx, 0xa
rcl edx, 0xbd
sbb edi, 0x6d
neg esi
and esi, 0x27
inc edi
not eax
rcr esi, 0x8c
rcl ebx, 0x74
and eax, 0x98
mov ebx, 0xb2
not esi
mov ebx, 0x7b
add edi, 0xd
or eax, 0x97
rcr edi, 0xa
inc eax
dec edx
sub edx, 0xd1
sub esi, 0xbf
mov ecx, dword [ebp + 0xc]
or eax, 0x3b
inc ebx
imul esi
bswap ebx
neg edi
bswap edi
bswap edi
or edi, 0xa1
bswap edx
mov ebx, 0x3b
dec edi
sbb eax, 0xf2
inc edx
or ebx, 0x11
rol esi, 0xb6
bswap edi
inc edi
rcr eax, 0x8a
neg edx
not edi
or edx, 0x3b
dec edx
neg ebx
rol eax, 0xe0
sub eax, 0xce
imul ebx
inc edi
inc esi
not esi
rol edi, 0xe6
ror edx, 0xeb
or eax, 0xc9
and esi, 0xb0
mov esi, 0x34
or esi, 0x12
dec edi
dec edx
ror ebx, 0xc5
bswap edx
bswap edi
ror edi, 0x65
mov eax, 0x9c
neg edx
inc esi
rcr esi, 8
ror ebx, 0x28
neg eax
not eax
sub esi, 0xac
not esi
mov edi, dword [ebp + 8]
xor esi, ebx
mov ebx, ebx
xor esi, ebx
not byte [edi]
mov esi, eax
xor eax, eax
mov esi, esi
mov ebx, eax
xor eax, esi
xor esi, ebx
mov esi, esi
xor eax, esi
xor esi, esi
add byte [edi], 0x79
xor eax, esi
xor eax, eax
mov esi, ebx
mov eax, ebx
xor esi, ebx
mov eax, esi
xor esi, eax
mov ebx, ebx
mov ebx, esi
sub byte [edi], 0x30
xor eax, eax
mov ebx, ebx
xor ebx, ebx
xor eax, esi
mov ebx, ebx
xor ebx, eax
mov eax, esi
mov ebx, esi
xor esi, eax
imul byte [edi]
inc edi
loop 0x4013e0
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4042e5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x462fd0]
jne 0x4042ef
repz ret
jmp fcn.00406065
Function at 0x404976
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00403711
and dword [ebp - 4], 0
cmp dword [0x463e68], 0
mov ebx, eax
jne 0x404a27
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x404ad8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x404ad8
push eax
call fcn.0040369f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x463e68], eax
call esi
push eax
call fcn.0040369f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x463e6c], eax
call esi
push eax
call fcn.0040369f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x463e70], eax
call esi
push eax
call fcn.0040369f
pop ecx
mov dword [0x463e78], eax
test eax, eax
je 0x404a27
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040369f
pop ecx
mov dword [0x463e74], eax
mov eax, dword [0x463e74]
cmp eax, ebx
je 0x404a7f
cmp dword [0x463e78], ebx
je 0x404a7f
push eax
call fcn.0040371a
push dword [0x463e78]
mov esi, eax
call fcn.0040371a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x404a7f
test edi, edi
je 0x404a7f
call esi
test eax, eax
je 0x404a76
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x404a76
test byte [ebp - 0xc], 1
jne 0x404a7f
or dword [ebp + 0x10], 0x200000
jmp 0x404ab8
mov eax, dword [0x463e6c]
cmp eax, ebx
je 0x404ab8
push eax
call fcn.0040371a
pop ecx
test eax, eax
je 0x404ab8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x404ab8
mov eax, dword [0x463e70]
cmp eax, ebx
je 0x404ab8
push eax
call fcn.0040371a
pop ecx
test eax, eax
je 0x404ab8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x463e68]
call fcn.0040371a
pop ecx
test eax, eax
je 0x404ad8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x404ada
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401a30
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [0x4390e0], 0x24e1
mov eax, dword [0x4390e0]
sub eax, 0x24e1
mov dword [0x4390e0], eax
mov ecx, 1
test ecx, ecx
je 0x401adb
mov edx, dword [0x4390e0]
cmp edx, dword [ebp + 0xc]
jb 0x401a67
jmp 0x401adb
cmp dword [0x4390e0], 0
jne 0x401a85
push 0x263
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x401a85
xor eax, eax
jmp 0x401adb
mov eax, dword [ebp + 8]
add eax, dword [0x4390e0]
mov ecx, dword [eax]
add ecx, dword [0x4390e0]
mov edx, dword [ebp + 8]
add edx, dword [0x4390e0]
mov dword [edx], ecx
mov dword [ebp - 4], 0x263fa
mov eax, dword [0x4390e0]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 2]
push edx
mov eax, dword [ebp + 8]
add eax, dword [0x4390e0]
push eax
call fcn.004011d0
add esp, 8
mov ecx, dword [0x4390e0]
add ecx, 4
mov dword [0x4390e0], ecx
jmp 0x401a4d
mov esp, ebp
pop ebp
ret

Function at 0x401ae0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov dword [ebp - 0x114], str._ffffffffffffffff
mov eax, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x11c], eax
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0x110]
push eax
call dword [ebp - 0x11c]
push 0
push 0x80
push 3
push 0
push 3
push 1
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
je 0x401b5a
cmp dword [ebp - 0x118], 0
je 0x401b5a
jmp 0x401bbc
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
je 0x401bbc
mov dword [ebp - 0x120], 0x7dc35
mov eax, dword [ebp + 8]
add eax, 8
mov dword [0x4390d4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [0x4390f0], edx
mov dword [ebp - 0x120], 0x7dc35
mov dword [ebp - 0x120], 0x7dc35
call fcn.004011c0
mov eax, dword [ebp + 8]
mov dword [0x4390ec], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
call fcn.004019f0
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x401b5a
mov esp, ebp
pop ebp
ret
Function at 0x407010
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 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
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 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401814
Capabilities:
Parse pe header

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

Function at 0x484cda
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x484a08
or esi, esi
add ecx, 0x35029d23
call fcn.00484d1b
add ecx, 0xd2c57b06
sub ecx, ecx
xor dword [eax], edx
mov esi, 0x9ed1fdfa
dec ecx
sub esi, 1
add eax, 2
dec ecx
cmp eax, edi
jl fcn.00484cda
and esi, esi
sub ecx, 0xb0c7dad
inc ecx
ret

Function at 0x5d8ac7
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x5d87dc
add ebx, ebx
inc edi
mov ebx, 0xd0a97c85
call fcn.005d8b0b
sub ebx, ebx
sub edi, 1
xor dword [esi], edx
mov ebx, edi
sub edi, ebx
or edi, ebx
add esi, 2
mov ebx, edi
add edi, ebx
mov ebx, edi
cmp esi, eax
jl fcn.005d8ac7
or edi, edi
or ebx, ebx
ret
Function at 0x402940
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
test edi, edi
je 0x402a5e
test esi, esi
je 0x402a5e
mov eax, esi
lea edx, [eax + 2]
jmp 0x402970
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402970
sub eax, edx
sar eax, 1
je 0x402a5e
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00408f20
add esp, 0xc
cmp dword [ebp + 8], ebx
jne 0x4029de
cmp dword [0x415f10], 3
jne 0x4029de
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [fcn.00411020]
push 0x41328c
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.004055d7
add esp, 0xc
jmp 0x4029f0
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [fcn.00411090]
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004055d7
push 0x413290
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x210]
push edx
mov dword [ebp - 0x210], ebx
call fcn.004058f9
mov eax, dword [ebp - 0x210]
add esp, 0x18
test eax, eax
je 0x402a5e
push eax
push 1
push 0x200
push edi
call fcn.00405b8a
mov eax, dword [ebp - 0x210]
push eax
call fcn.00405c14
add esp, 0x14
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004055c8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004055c8
mov esp, ebp
pop ebp
ret

Function at 0x403e00
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push 0x413934
mov edi, ecx
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], 0
call fcn.004058f9
add esp, 0xc
test eax, eax
je 0x403e2d
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push ebx
push esi
push 2
push 0
push edx
call fcn.00406265
mov eax, dword [ebp - 4]
push eax
call fcn.00406475
mov ecx, dword [ebp - 4]
push 0
push 0
push ecx
mov esi, eax
call fcn.00406265
lea eax, [esi + edi]
push eax
mov dword [ebp - 0xc], eax
call fcn.0040610d
mov edx, dword [ebp - 4]
push edx
push 1
mov ebx, eax
push esi
push ebx
call fcn.00405b8a
mov eax, dword [ebp - 4]
push eax
call fcn.00405c14
push edi
add esi, ebx
push 0
push esi
mov dword [ebp - 8], esi
call fcn.00408f20
mov eax, edi
cdq
and edx, 3
lea esi, [edx + eax]
add esp, 0x40
sar esi, 2
call dword [fcn.00411028]
push eax
call fcn.004064da
add esp, 4
xor edi, edi
test esi, esi
jle 0x403ec0
lea ebx, [ebx]
call fcn.004064ec
mov ecx, dword [ebp - 8]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, esi
jl 0x403eb0
mov edx, dword [ebp + 8]
push 0x41393c
push edx
lea eax, [ebp - 4]
push eax
call fcn.004058f9
add esp, 0xc
test eax, eax
je 0x403ee2
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
push ecx
push 1
push edx
push ebx
call fcn.00405ddf
mov eax, dword [ebp - 4]
push eax
call fcn.00405c14
add esp, 0x14
test ebx, ebx
je 0x403f0b
push ebx
call fcn.004061a1
add esp, 4
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x403f20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call fcn.00408f20
push 0x103
lea ecx, [ebp - 0x107]
push 0
push ecx
mov byte [ebp - 0x108], 0
call fcn.00408f20
push 0x103
lea edx, [ebp - 0x30f]
push 0
push edx
mov byte [ebp - 0x310], 0
call fcn.00408f20
mov eax, dword [0x413944]
mov ecx, dword [0x413948]
mov dx, word [0x41394c]
mov dword [ebp - 0x324], eax
mov al, byte [0x41394e]
add esp, 0x24
mov dword [ebp - 0x320], ecx
lea ecx, [ebp - 0x20c]
mov byte [ebp - 0x31a], al
xor eax, eax
push ecx
push 0x104
mov word [ebp - 0x31c], dx
mov dword [ebp - 0x319], eax
mov dword [ebp - 0x315], eax
mov byte [ebp - 0x311], al
call dword [0x411040]
lea eax, [ebp - 0x324]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403fe2
push esi
push edi
lea edi, [ebp - 0x20c]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403ff6
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x104
lea edx, [ebp - 0x108]
mov ecx, eax
push edx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call dword [0x411044]
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x310]
push 0x104
push ecx
call fcn.0040650d
lea edx, [ebp - 0x310]
push 0x5c
push edx
call fcn.004060e0
add esp, 0x14
test eax, eax
je 0x404050
mov byte [eax], 0
lea eax, [ebp - 0x20c]
push 0x413950
push eax
call fcn.00406628
mov esi, eax
add esp, 8
test esi, esi
je 0x4041b1
push esi
push 1
push 9
push 0x413954
call fcn.00405ddf
push esi
push 1
push 5
push 0x413960
call fcn.00405ddf
lea eax, [ebp - 0x108]
add esp, 0x20
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404098
push esi
sub eax, edx
push 1
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.00405ddf
push esi
push 1
push 2
push 0x413968
call fcn.00405ddf
push esi
push 1
push 0xa
push 0x41396c
call fcn.00405ddf
lea eax, [ebp - 0x108]
add esp, 0x30
lea edx, [eax + 1]
jmp 0x4040e0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4040e0
push esi
sub eax, edx
push 1
push eax
lea edx, [ebp - 0x108]
push edx
call fcn.00405ddf
push esi
push 1
push 0xf
push 0x413978
call fcn.00405ddf
push esi
push 1
push 7
push 0x413988
call fcn.00405ddf
lea eax, [ebp - 0x310]
add esp, 0x30
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404123
push esi
sub eax, ecx
push 1
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.00405ddf
push esi
push 1
push 3
push 0x413968
call fcn.00405ddf
push esi
push 1
push 5
push 0x413960
call fcn.00405ddf
lea eax, [ebp - 0x20c]
add esp, 0x30
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404166
push esi
sub eax, ecx
push 1
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00405ddf
push esi
push 1
push 1
push 0x413990
call fcn.00405ddf
push esi
call fcn.00405c14
add esp, 0x24
push 0
push 0
push 0
lea edx, [ebp - 0x20c]
push edx
push 0x413994
push 0
call dword [0x41115c]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004055c8
mov esp, ebp
pop ebp
ret
Function at 0x4054a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040eb40
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [edi]
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push ebx
push 4
lea ecx, [ebp - 0x1008]
push ecx
push edx
mov dword [ebp - 0x100c], eax
call dword [fcn.004111cc]
cmp eax, 4
je 0x4054ec
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004055c8
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1008], ebx
jbe 0x405538
push esi
mov ecx, dword [edi]
push 0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push ecx
call dword [fcn.004111cc]
mov esi, eax
test esi, esi
je 0x405537
mov edx, dword [ebp - 0x100c]
mov eax, dword [edx]
push eax
push esi
lea ecx, [ebp - 0x1004]
push 1
push ecx
call fcn.00405ddf
add ebx, esi
add esp, 0x10
cmp ebx, dword [ebp - 0x1008]
jb 0x4054f5
pop esi
mov edx, dword [ebp - 0x100c]
mov eax, dword [edx]
push eax
call fcn.00405c14
mov ecx, dword [ebp - 4]
add esp, 4
cmp ebx, dword [ebp - 0x1008]
pop ebx
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.004055c8
mov esp, ebp
pop ebp
ret