joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10038ffc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10039046
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10038fed
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10038ffc
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1043ec9f
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1003904d
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1001fec3
cmp eax, dword [ebp + 0xc]
pop eax
je 0x100390ec
add edi, 4
add eax, 2
dec ecx
jne 0x10039032
call 0x10039099
loope 0x1003908f
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x100390e9
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x100390fa
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x100390ad
cmp eax, ecx
ja 0x100390ad
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x10039137
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1003912d
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.100203a2
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0xab89f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x529000]
push edi
or ebp, 0xffffffff
jmp 0xab8a12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xab8a19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xab8a08
mov eax, 1
add ebx, ebx
jne 0xab8a2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xab8a3c
jne 0xab8a5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xab8a5b
dec eax
add ebx, ebx
jne 0xab8a48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xab8a20
add ebx, ebx
jne 0xab8a57
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xab8aad
xor ecx, ecx
sub eax, 3
jb 0xab8a73
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xab8ae2
sar eax, 1
mov ebp, eax
jmp 0xab8a7e
add ebx, ebx
jne 0xab8a7e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xab8a4c
inc ecx
add ebx, ebx
jne 0xab8a8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xab8a4c
add ebx, ebx
jne 0xab8a99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xab8a8e
jne 0xab8aaa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xab8a8e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xab8acc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xab8abe
jmp 0xab8a0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xab8acc
add edi, ecx
jmp 0xab8a0e
pop esi
mov edi, esi
mov ecx, 0x148b9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xab8aea
cmp byte [edi], 0x5c
jne 0xab8aea
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 0xab8aef
lea edi, [esi + 0x69f000]
mov eax, dword [edi]
or eax, eax
je 0xab8b67
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6d48e0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6d4b2c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xab8b1c
mov ecx, edi
jns 0xab8b4b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6d4b34]
or eax, eax
je 0xab8b61
mov dword [ebx], eax
add ebx, 4
jmp 0xab8b39
call dword [esi + 0x6d4b30]
mov ebp, dword [esi + 0x6d4b38]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x247]
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 0xab8b9b
sub esp, 0xffffff80
jmp 0x83e0d4
Function at 0x77205c43
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x772080bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x108]
push edx
push 0xf003f
push 0
push ecx
push eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x77205cdb
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push edi
mov edi, 0x100
jmp 0x77205ca5
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x108]
call fcn.77205c43
push edi
lea eax, [ebp - 0x104]
push eax
push 0
push dword [ebp - 0x108]
call esi
test eax, eax
je 0x77205c93
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10c]
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.772069d6
leave
ret 8

Function at 0x77205dfa
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x772080bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x410], ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
push esi
mov dword [ebp - 0x40c], ecx
cmp edi, ebx
je 0x77205e62
push eax
mov esi, 0x400
push esi
lea eax, [ebp - 0x404]
push eax
call fcn.77205cee
push 0x772014d4
push esi
lea eax, [ebp - 0x404]
push eax
call fcn.77205d28
push edi
push esi
lea eax, [ebp - 0x404]
push eax
call fcn.77205d28
lea eax, [ebp - 0x404]
push ebx
lea ecx, [ebp - 0x408]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x77205ebc
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp - 0x40c]
push 1
push ebx
push dword [ebp - 0x410]
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x408]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.772069d6
leave
ret 8

Function at 0x10227c82
Capabilities:
Authenticate hmac

Disassembly:
mov dword [esp], eax
mov byte [esp + 4], ch
lea esp, [esp + 0xc]
ja 0x10222a5b
bt dx, cx
imul edx, edx, 0xa
push 0xa2556b25
stc
pushal
add edx, eax
pushal
pushfd
pushfd
lea esp, [esp + 0x4c]
jmp 0x1022b4a3

Function at 0x1022b47f
Capabilities:
Authenticate hmac

Disassembly:
cmc
cmp byte [edi], 0x23
push esi
push ecx
push 0xcc1babe
lea esp, [esp + 0x10]
jne 0x1022771e
daa
ror ah, 4
xor edx, edx
push esi
test dh, bh
push esi
mov eax, edx
add esp, 8
Function at 0x40370c
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x403747
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x40372e
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x40373f
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x403749
inc edi
add eax, 0x28
cmp edi, esi
jb 0x403724
xor eax, eax
pop edi
pop esi
ret

Function at 0x40381e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add al, 3
inc esp
and al, 0xc
ret
mov esi, dword [edi + 0x3c]
add esi, edi
mov ebx, dword [esi + 0x78]
call fcn.004036cc
imul edi, dword [edi - 0x5a], 0xffffffe3
push esi
push ebx
call fcn.0040370c
pop ecx
test eax, eax
pop ecx
je 0x40385f
push edi
push esi
push ebx
call fcn.0040374c
add esp, 0xc
call fcn.004036cc
inc esp
or dh, byte [esi + 0x78768b51]
test esi, esi
je 0x40385f
mov ebx, dword [esi + edi + 0x24]
add esi, edi
add ebx, edi
call fcn.004036cc
or al, 0xc5
std
jne 0x40376b
inc esi
and byte [ebx], al
invalid
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
call fcn.004036cc
jns 0x40378d
pop ebx
bound eax, qword [ebx + 0x7400f07d]
inc ebx
mov eax, dword [ebp - 0x14]
and dword [ebp - 0x10], 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
inc ebp
clc
movzx eax, word [eax]
cmp eax, dword [ebp - 4]
jne 0x40383f
mov eax, dword [ebp - 0xc]
push dword [ebp + 0xc]
mov eax, dword [eax]
add eax, dword [ebp + 8]
push eax
call fcn.00403662
pop ecx
test eax, eax
pop ecx
je 0x403866
mov eax, dword [esi + 0x18]
inc dword [ebp - 0x10]
add dword [ebp - 8], 2
add dword [ebp - 0xc], 4
dec eax
cmp dword [ebp - 0x10], eax
jbe 0x40381d
mov eax, dword [esi + 0x14]
inc dword [ebp - 4]
dec eax
cmp dword [ebp - 4], eax
jbe 0x4037fc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 4]
mov eax, dword [edi + eax*4]
jmp 0x4038a3
add eax, dword [ebp + 8]
jmp 0x403861

Function at 0x4056c4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [edx + 2], ch
push 0x40000000
push dword [ebp - 0x3a0]
call dword [ebp - 0x3c8]
mov dword [ebp - 0x380], eax
invalid
invalid
cmp ah, 0xff

Function at 0x4058f3
Capabilities:
Query or enumerate registry value

Disassembly:
inc dword [esi - 0x8b5ae8]
jne 0x405903
push dword [ebp + 4]
push dword [ebp]
call fcn.00403ecc
jne 0x40591c
in eax, 0xff
push dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405964
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405953
cmp dword [ebp + 0x14], 1
je 0x405955
cmp dword [ebp + 0x14], 2
je 0x405955
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x401000
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
lea ecx, [ebp - 0x210]
push ebx
push esi
push edi
call fcn.00401160
mov esi, eax
test esi, esi
je 0x401140
lea edx, [ebp - 0x418]
lea ecx, [ebp - 0x210]
call fcn.00401190
mov edi, eax
test edi, edi
je 0x401140
lea edx, [ebp - 0x620]
lea ecx, [ebp - 0x210]
call fcn.00401210
mov dword [ebp - 4], eax
test eax, eax
je 0x401140
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, eax
call fcn.004012d0
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov eax, dword [ebp - 4]
add eax, 0x17
add eax, edi
add eax, esi
test ebx, ebx
je 0x401082
inc eax
add eax, ebx
lea eax, [eax*2 + 2]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x401135
mov eax, 0x22
lea ecx, [esi + 2]
mov word [esi], ax
lea eax, [ebp - 0x418]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.___launcher__
push esi
call edi
lea eax, [ebp - 0x210]
push eax
push esi
call edi
push str.___ini__
push esi
call edi
lea eax, [ebp - 0x620]
push eax
push esi
call edi
test ebx, ebx
je 0x4010f7
push 0x402080
push esi
call edi
push dword [ebp - 8]
jmp 0x4010fc
push 0x402088
push esi
call edi
push ecx
mov edx, esi
lea ecx, [ebp - 0x418]
call fcn.00401330
add esp, 4
test eax, eax
jne 0x401123
push 0x10
push eax
push 0x40208c
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x401151
push 0x10
push 0
push str.Allocation_failed
jmp 0x401149
push 0x10
push 0
push str.Some_path_manipulation_error_occurred
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401210
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
mov esi, edx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call ebx
mov edi, eax
cmp edi, 4
jbe 0x401267
lea ebx, [esi - 8]
push str..exe
lea ebx, [ebx + edi*2]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x401261
push str..ini
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp edi, 0xff
ja 0x401285
push str..ini
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [edi + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4012c5
cmp eax, 0x103
ja 0x4012c5
push esi
push 0
push 0x4021bc
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4012c5
push esi
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401330
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
xor eax, eax
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401393
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1014
push ebp
mov ebp, esp
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
or eax, 0xffffffff
mov dword [0x415c84], 9
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
mov dword [ebp - 8], eax
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
mov ecx, 0x1000
xor eax, eax
lea edx, [ebp - 0x1010]
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
mov edi, eax
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
test eax, eax
mov esi, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4040d3
Capabilities:
Encode data using xor

Disassembly:
add al, dh
call fcn.004080b4
add byte [eax], al
invalid
Function at 0x941450
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, eax
lea ebx, [ebx + ebx*4 + 0x3711]
mov dl, byte [esi]
nop
shr eax, 8
xor dl, bl
and edi, 0xff
mov byte [esi], dl
xor edi, edx
inc esi
xor eax, dword [edi*4 + 0x941050]
dec ecx
jne fcn.00941450
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x52d642c0
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, str.JAM
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x410a1fd5
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x402688
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4026b7
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403000
jmp 0x4026d5
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004025b0
mov edi, eax
test ebx, ebx
je 0x4026d5
cmp dword [esi], 0
je 0x4026d5
dec ebx
jmp 0x4026be
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402718
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4027b0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402790
xor eax, eax
push ebp
push 0x402789
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4027cc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402790
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret