joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428f00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x118
mov eax, dword [0x4c822c]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [0x53151c]
mov edx, 0x48eaf3
push edi
mov edi, dword [esp + 0x120]
mov ecx, str._Inactive
mov eax, dword [eax + 0x1960]
sub eax, 2
cmp dword [edi + 0x20], eax
lea eax, [esp + 0x18]
cmovge ecx, edx
push ecx
push dword [edi]
push str.TabBar___d_tabs__s
push 0x100
push eax
call fcn.00421ac0
lea eax, [esp + 0x2c]
push eax
push 0x4a6a68
push edi
call fcn.0045a560
add esp, 0x20
test al, al
je 0x4290f2
cmp dword [edi], 0
mov dword [esp + 8], 0
jle 0x4290ed
push ebx
xor eax, eax
push ebp
mov dword [esp + 0x14], eax
push esi
mov ecx, dword [edi + 8]
lea edx, [esp + 0x1c]
add ecx, eax
mov esi, 4
mov eax, dword [0x53151c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], ecx
mov ebp, dword [eax + 0x19b0]
mov eax, dword [ebp + 0xc4]
add ebp, 0xbc
mov ecx, dword [ebp]
mov dword [esp + 0x20], ecx
mov ebx, dword [eax + ecx*4 - 4]
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x4a5f40]
sub esi, 1
jne 0x428fc0
mov ecx, dword [ebp + 4]
not ebx
mov edx, dword [esp + 0x20]
cmp edx, ecx
jne 0x42900e
lea esi, [edx + 1]
test ecx, ecx
je 0x428ff9
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x428ffe
mov eax, 8
cmp eax, esi
mov ecx, ebp
cmovg esi, eax
push esi
call fcn.00431360
mov edx, dword [ebp]
mov eax, dword [ebp + 8]
push 0x4a6e50
mov dword [eax + edx*4], ebx
inc dword [ebp]
call fcn.004582f0
mov esi, dword [esp + 0x14]
add esp, 4
test al, al
je 0x429038
push 0xffffffffffffffff
push esi
push edi
call fcn.00458cf0
add esp, 0xc
sub esp, 8
mov dword [esp + 4], 0x40000000
mov dword [esp], 0
call fcn.0042cfb0
push 0x4a6e54
call fcn.004582f0
add esp, 0xc
test al, al
je 0x42906c
push 1
push esi
push edi
call fcn.00458cf0
add esp, 0xc
sub esp, 8
mov dword [esp + 4], 0xbf800000
mov dword [esp], 0
call fcn.0042cfb0
mov ecx, dword [esi + 0x10]
add esp, 8
cmp ecx, 0xffffffff
je 0x429095
mov eax, dword [edi + 0x74]
add eax, ecx
jmp 0x42909a
mov eax, 0x48eaf3
mov ecx, dword [esi]
cmp ecx, dword [edi + 0x10]
mov ebx, dword [esp + 0x14]
push eax
push ecx
mov ecx, 0x2a
mov eax, 0x20
cmove eax, ecx
push eax
push ebx
push str._02d_c_Tab_0x_08X__s
call fcn.00459f60
mov eax, dword [0x53151c]
inc ebx
add esp, 0x14
mov dword [esp + 0x14], ebx
mov eax, dword [eax + 0x19b0]
dec dword [eax + 0xbc]
mov eax, dword [esp + 0x18]
add eax, 0x20
mov dword [esp + 0x18], eax
cmp ebx, dword [edi]
jl 0x428f86
pop esi
pop ebp
pop ebx
call fcn.0045b050
mov ecx, dword [esp + 0x118]
pop edi
xor ecx, esp
call fcn.0041598b
add esp, 0x118
ret
Function at 0x42a000
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [0x53151c]
lea edx, [esp + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [eax + 0x19b0]
mov esi, 4
mov eax, dword [esp + 0x14]
add edi, 0xbc
mov dword [esp + 0x14], eax
mov ebp, dword [edi]
mov ebx, dword [edi + 8]
mov ebx, dword [ebx + ebp*4 - 4]
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x4a5f40]
sub esi, 1
jne 0x42a031
mov ecx, dword [edi + 4]
not ebx
cmp ebp, ecx
jne 0x42a078
inc ebp
test ecx, ecx
je 0x42a064
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x42a069
mov eax, 8
cmp eax, ebp
mov ecx, edi
cmovg ebp, eax
push ebp
call fcn.00431360
mov ebp, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ebp*4], ebx
inc dword [edi]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x42d070
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
mov eax, dword [0x53151c]
mov dword [eax + 0x2d30], 0
je 0x42d15c
push esi
push edi
mov edi, dword [0x53151c]
lea esi, [edi + 0x2d34]
mov dword [edi + 0x2d30], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x42d0c4
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.00431260
mov ecx, dword [esi + 4]
xor edx, edx
mov dword [esi], 0
test ecx, ecx
jne 0x42d0db
push 8
mov ecx, esi
call fcn.00431260
mov edx, dword [esi]
mov eax, dword [esi + 8]
push ebx
push ebp
xor ebp, ebp
mov byte [edx + eax], 0
inc dword [esi]
mov ebx, dword [esi]
cmp dword [edi + 0x2d40], ebp
jle 0x42d115
xor ebx, ebx
mov eax, dword [edi + 0x2d48]
add eax, ebx
push esi
push eax
push edi
mov eax, dword [eax + 0x10]
call eax
inc ebp
add esp, 0xc
add ebx, 0x18
cmp ebp, dword [edi + 0x2d40]
jl 0x42d0f4
mov ebx, dword [esi]
lea eax, [ebx - 1]
neg ebx
push 0x4a6918
push dword [esp + 0x18]
sbb ebx, ebx
and ebx, eax
mov eax, dword [edi + 0x2d3c]
test eax, eax
mov edi, 0x531520
cmovne edi, eax
call fcn.004219d0
mov esi, eax
add esp, 8
test esi, esi
je 0x42d158
push esi
push ebx
push 1
push edi
call fcn.0047b1e6
push esi
call fcn.0047a294
add esp, 0x14
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x4340b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d5a0
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4c822c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x4c], ebx
jle 0x43410d
xor edi, edi
mov eax, dword [esi + 0x54]
mov ecx, dword [edi + eax]
test ecx, ecx
je 0x434104
cmp byte [edi + eax + 8], 0
je 0x434104
push ecx
call fcn.00424550
mov eax, dword [esi + 0x54]
add esp, 4
mov dword [edi + eax], 0
inc ebx
add edi, 0x78
cmp ebx, dword [esi + 0x4c]
jl 0x4340e0
xor edx, edx
cmp dword [esi + 0x34], edx
jle 0x43414d
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + edx*4]
mov eax, dword [esi + 0x54]
mov ebx, dword [edi + 0x3c]
cmp ebx, eax
jb 0x434147
mov ecx, dword [esi + 0x4c]
shl ecx, 4
sub ecx, dword [esi + 0x4c]
lea eax, [eax + ecx*8]
cmp ebx, eax
jae 0x434147
mov dword [edi + 0x3c], 0
xor ecx, ecx
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + edx*4]
mov word [eax + 0x40], cx
inc edx
cmp edx, dword [esi + 0x34]
jl 0x434114
mov eax, dword [esi + 0x54]
test eax, eax
je 0x434172
push eax
mov dword [esi + 0x50], 0
mov dword [esi + 0x4c], 0
call fcn.00424550
add esp, 4
mov dword [esi + 0x54], 0
mov eax, dword [esi + 0x48]
test eax, eax
je 0x4341a0
push eax
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
call fcn.00424550
add esp, 4
mov dword [esi + 0x48], 0
nop word [eax + eax]
mov dword [esi + 0x58], 0xffffffff
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4341b7
push eax
call fcn.00424550
add esp, 4
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4341c7
push eax
call fcn.00424550
add esp, 4
xor ebx, ebx
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
cmp dword [esi + 0x34], ebx
jle 0x43424a
nop dword [eax]
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + ebx*4]
test edi, edi
je 0x434244
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00434450
mov eax, dword [edi + 0x28]
mov byte [ebp - 4], 1
test eax, eax
je 0x43420c
push eax
call fcn.00424550
add esp, 4
mov eax, dword [edi + 0x1c]
mov byte [ebp - 4], 2
test eax, eax
je 0x434220
push eax
call fcn.00424550
add esp, 4
mov eax, dword [edi + 8]
mov byte [ebp - 4], 3
test eax, eax
je 0x434234
push eax
call fcn.00424550
add esp, 4
push edi
mov dword [ebp - 4], 0xffffffff
call fcn.00424550
add esp, 4
inc ebx
cmp ebx, dword [esi + 0x34]
jl 0x4341e0
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x43426f
push eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
call fcn.00424550
add esp, 4
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44a480
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 0xc]
or eax, 2
mov dword [esp + 0xc], eax
jmp fcn.0044a490
Function at 0x47e663
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047e568

Function at 0x4827d8
Capabilities:
Set environment variable

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

Function at 0x4855f7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00485476
Function at 0x45fc6d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x45fc7c
pop dword [ebp - 0x3c]
mov eax, 0x655dc9cf
add eax, 0x9ae832ad
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x4a64e
push 0
mov eax, 0xea77fd1a
add eax, 0x15cfb682
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x5317
mov edi, eax
mov ebx, 0xfc28a730
sub ebx, 0xfbd54330
add ebx, dword [ebp - 0x3c]
mov esi, 0x422f44c4
add esi, 0x27b3ec01
mov edx, dword [ebx]
xor dword [ebp - 0x30], 0x91c8d05c
xor edx, esi
xor dword [ebp - 0x18], eax
mov dword [edi], edx
mov dword [ebp - 0x1c], 0xde70c0b8
add edi, 4
add ebx, 0x2cacb4f5
add ebx, 0xd3534b0f
loop 0x45fcd5
add eax, 0x25374fe2
add eax, 0xdac9ef4d
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x4a112ea3
sub ecx, 0x49d12ea3
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x46a690
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.00460643
and dword [ebp - 4], 0
cmp dword [0x4c43f0], 0
mov ebx, eax
jne 0x46a741
push str.USER32.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x46a7f2
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x46a7f2
push eax
call main
mov dword [esp], 0x47ed98
push edi
mov dword [0x4c43f0], eax
call esi
push eax
call main
mov dword [esp], 0x47ed84
push edi
mov dword [0x4c43f4], eax
call esi
push eax
call main
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4c43f8], eax
call esi
push eax
call main
pop ecx
mov dword [0x4c4400], eax
test eax, eax
je 0x46a741
push str.GetProcessWindowStation
push edi
call esi
push eax
call main
pop ecx
mov dword [0x4c43fc], eax
mov eax, dword [0x4c43fc]
cmp eax, ebx
je 0x46a799
cmp dword [0x4c4400], ebx
je 0x46a799
push eax
call main
push dword [0x4c4400]
mov esi, eax
call main
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x46a799
test edi, edi
je 0x46a799
call esi
test eax, eax
je 0x46a790
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x46a790
test byte [ebp - 0xc], 1
jne 0x46a799
or dword [ebp + 0x10], 0x200000
jmp 0x46a7d2
mov eax, dword [0x4c43f4]
cmp eax, ebx
je 0x46a7d2
push eax
call main
pop ecx
test eax, eax
je 0x46a7d2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x46a7d2
mov eax, dword [0x4c43f8]
cmp eax, ebx
je 0x46a7d2
push eax
call main
pop ecx
test eax, eax
je 0x46a7d2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4c43f0]
call main
pop ecx
test eax, eax
je 0x46a7f2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x46a7f4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.100080c7
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100080c7
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.100080c7
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.100080c7
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.100080c7
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.100080c7
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.100080c7
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.100080c7
push 0xd008
push edi
call fcn.100080c7
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.100080c7
int3

Function at 0x100080c7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x100080d6
pop dword [ebp - 0x48]
mov eax, 0x37095974
add eax, 0xd8f72762
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x3a6fe
push 0
mov eax, 0xbca68b30
add eax, 0x535ab534
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x32c07aa0
add ecx, 0xcd3fd31d
mov edx, eax
mov ebx, 0x9cc84f54
add ebx, 0x733936ac
add ebx, dword [ebp - 0x48]
mov esi, 0x655aa839
add esi, 0x1b06b138
add dword [ebp - 0x18], esi
mov edi, dword [ebx]
mov dword [ebp - 0x14], 0xc0852d6
xor edi, esi
add dword [ebp - 0x10], 0x788c970b
mov dword [edx], edi
add dword [ebp - 0x34], 0x93a83403
add edx, 4
add ebx, 0x7944e377
sub ebx, 0x7944e373
loop 0x10008135
add eax, 0x5cce6698
sub eax, 0x5ccd3cd1
mov ebx, eax
add eax, 0xc4cc5d99
sub eax, 0xc4cc5d94
mov ecx, 0x37d8ed2b
add ecx, 0xd82712d5
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x402ea3
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 0x402ede
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x402ec5
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x402ed6
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x402ee0
inc edi
add eax, 0x28
cmp edi, esi
jb 0x402ebb
xor eax, eax
pop edi
pop esi
ret

Function at 0x403118
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
push dword [ebp + 8]
call fcn.00402e28
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx

Function at 0x40316c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00402e63
lds ecx, [esp + edx*4 - 0x3fba7272]
push eax
call fcn.00402e73
push eax
push esi

Function at 0x4031b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push dword [ebp + 8]
call fcn.00402e28
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.00402e63
invalid
Function at 0x4034fc
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x403517
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x403512
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne fcn.004034fc
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x403504
cmp edx, ebx
jne 0x403652
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x4034d3
add eax, dword [eax + 4]
jmp 0x4034c0
mov dword [ebp + 0xc], ebx
jmp 0x403522
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
push es
jne 0x40353a
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x403558
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4035b6
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40359d
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4035a6
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4035b0
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x403592
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x40351c
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x403603
dec eax
je 0x4035fa
sub eax, 3
je 0x4035f1
mov dword [ebp - 4], 0x40
jmp 0x403620
mov dword [ebp - 4], 4
jmp 0x403606
mov dword [ebp - 4], 0x20
jmp 0x403606
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x403652
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4035d2
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00402e63
hlt
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407f9c
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
push esi
push edi
push ebx
push edx
mov ebx, dword [edx]
mov ecx, dword [edx + 4]
mov edi, 0x9e3779b9
mov esi, edi
shl esi, 5
mov edx, 0x20
mov ebp, ebx
shl ebp, 4
sub ecx, ebp
mov ebp, dword [eax + 8]
xor ebp, ebx
sub ecx, ebp
mov ebp, ebx
shr ebp, 5
xor ebp, esi
sub ecx, ebp
sub ecx, dword [eax + 0xc]
mov ebp, ecx
shl ebp, 4
sub ebx, ebp
mov ebp, dword [eax]
xor ebp, ecx
sub ebx, ebp
mov ebp, ecx
shr ebp, 5
xor ebp, esi
sub ebx, ebp
sub ebx, dword [eax + 4]
sub esi, edi
dec edx
jne 0x407fb5
pop edx
mov dword [edx], ebx
mov dword [edx + 4], ecx
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x408dd4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffefc
mov ebx, edx
mov edi, eax
mov eax, esp
mov edx, edi
call fcn.004055d4
mov eax, edi
call fcn.0040556c
mov edx, eax
dec edx
test edx, edx
jl 0x408e20
inc edx
xor esi, esi
mov eax, esp
movzx ecx, bx
shr ecx, 8
xor cl, byte [eax]
mov byte [edi + esi], cl
xor ecx, ecx
mov cl, byte [eax]
add bx, cx
imul cx, bx, 0xce6d
add cx, 0x7417
mov ebx, ecx
inc esi
inc eax
dec edx
jne 0x408dfd
mov eax, edi
add esp, 0x104
pop edi
pop esi
pop ebx
ret
Function at 0x403e57
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp byte [edi], 0x25
jne 0x403ed4
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push eax
call fcn.00403093
lea eax, [ebp + eax - 0x105]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x25
jne 0x403ebc
and byte [eax], 0
push dword [ebp + 0x1c]
lea eax, [ebp - 0x104]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push eax
push 0x4016ec
call esi
pop edi
pop esi
leave
ret 0x18

Function at 0x4041d7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0xc]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40422c
push esi
push esi
push esi
lea eax, [ebp - 4]
push esi
push eax
push esi
lea eax, [ebp + 8]
push esi
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x404223
cmp dword [ebp + 8], esi
jne 0x404223
cmp dword [ebp - 4], esi
jne 0x404223
push 1
pop esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x401440
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0xbbeaf81f
xor ebx, 0xbfeaf81f
jmp 0x4014f0
mov edx, 0xa919783e
xor edx, 0xa919783a
mov ecx, 0x25135daf
xor ecx, 0x25136daf
mov eax, 0x500
ror eax, 0x1c
push edx
push ecx
push eax
mov edx, dword [ebp - 0xb4]
rol edx, 4
rol edx, 0xa
mov dword [ebp - 8], edx
push ebx
call fcn.00401644
push esi
pop ecx
mov ebx, eax
test ebx, ebx
je 0x4014f0
sub ebx, 0x86b78ac7
mov dword [ebp - 0x10], ebx
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x402c00
pop dword [ebp - 0x4c]
mov eax, 0x402c00
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xff2e7b54
sub dword [ebp - 0x5c], 0xb0dc3609
mov dword [ebp - 0x58], 0x3cf4751c
sub dword [ebp - 0x58], 0xac128d7
mov dword [ebp - 0x54], 0x1bd03c78
add dword [ebp - 0x54], 0x307c07b6
mov dword [ebp - 0x50], 0x8945bb69
add dword [ebp - 0x50], 0x76ba4497
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x17aaee34
sub eax, 0x176a7dd0
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x7d6b876b
sub dword [ebp - 0x5c], 0x8f91e15
mov dword [ebp - 0x58], 0x400b48d1
sub dword [ebp - 0x58], 0xfe9ee75c
mov dword [ebp - 0x54], 0xb7481082
sub dword [ebp - 0x54], 0x53d8a416
mov dword [ebp - 0x50], 0x38ad2bb8
sub dword [ebp - 0x50], 0x38ad2bb8
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x8b721ed4
sub eax, 0x8b31ae2c
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x37526
push 0
call eax
mov ecx, 0x87d2643f
add ecx, 0x782de649
xor edx, edx
add edx, eax
mov ebx, 0x65647653
add ebx, 0x9adc89ad
add ebx, dword [ebp - 0x4c]
mov esi, 0x65232ddb
add esi, 0xafb09d43
xor dword [ebp - 0x30], 0x3f7786b6
mov edi, dword [ebx]
xor dword [ebp - 0x20], 0x55fc9207
sub edi, esi
xor dword [ebp - 0x34], 0x99c61de8
mov dword [edx], edi
sub dword [ebp - 0x10], 0x544d9558
add edx, 0xb34de2c8
add edx, 0x4cb21d3c
add ebx, 4
loop 0x402d1f
add eax, 0x76f23001
sub eax, 0x76f1130e
xor ebx, ebx
add ebx, eax
add eax, 0x2c7a65b9
sub eax, 0x2c7a65b4
mov ecx, 0xc34dcb58
sub ecx, 0xc30dcb58
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret