joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102acf10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
imul esi, ecx, 0x2c
push edi
add esi, dword [0x10371ff0]
mov al, byte [esi + 0x14]
mov edi, dword [esi]
and al, 1
je 0x102acf2c
sub edi, 5
movzx eax, al
lea ebx, [eax*2 + 5]
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x102acf54
pop edi
pop esi
mov eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x102acf6f
mov eax, dword [esi]
mov word [eax], 0xf9eb
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [esi + 0x14], 6
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x7e52131c
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..rsrc
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x2126052a
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x404a39
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4084b8
cmp edx, dword [eax]
je 0x404a5b
add eax, 8
inc ecx
cmp eax, 0x408548
jl 0x404a4c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4084b8]
jne 0x404b89
mov eax, dword [0x40885c]
cmp eax, 1
je 0x404b63
test eax, eax
jne 0x404a8c
cmp dword [0x408174], 1
je 0x404b63
cmp edx, 0xfc
je 0x404b89
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404ac3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405eb0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402840
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404b06
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402840
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x407504
push edi
call fcn.00406410
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405eb0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405ec0
lea eax, [ebp - 0xa0]
push 0x4074e4
push eax
call fcn.00405ec0
push dword [esi + 0x4084bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405ec0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00406380
add esp, 0x2c
pop edi
jmp 0x404b89
lea eax, [ebp + 8]
lea esi, [esi + 0x4084bc]
push 0
push eax
push dword [esi]
call fcn.00402840
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4016e0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x4060e8], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x4016fe
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4060e4], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x4060e0], bl
jne 0x401758
cmp dword [0x407cec], 0
je 0x401746
mov edi, dword [0x407ce8]
sub edi, 4
cmp dword [0x407cec], edi
ja 0x401746
mov eax, dword [edi]
test eax, eax
je 0x40173b
call eax
sub edi, 4
cmp dword [0x407cec], edi
jbe 0x401733
push 0x40601c
push 0x406014
call fcn.00401790
add esp, 8
push 0x406024
push 0x406020
call fcn.00401790
add esp, 8
test ebx, ebx
jne 0x40177f
mov dword [0x4060e8], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret

Function at 0x4017b0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x402b00
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x4060ac], eax
xor eax, eax
mov al, byte [0x4060ad]
mov dword [0x4060b8], eax
mov eax, dword [0x4060ac]
shr dword [0x4060ac], 0x10
and eax, 0xff
mov dword [0x4060b4], eax
shl eax, 8
add eax, dword [0x4060b8]
mov dword [0x4060b0], eax
call fcn.00402ae0
mov dword [ebp - 4], 0
call fcn.00402900
call fcn.00401c30
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x407ce4], eax
call fcn.00402760
mov dword [0x4060ec], eax
test eax, eax
je 0x401849
cmp dword [0x407ce4], 0
jne 0x401853
push 0xffffffffffffffff
call fcn.004016a0
add esp, 4
call fcn.004024e0
call fcn.00402400
call fcn.00401670
mov esi, dword [0x407ce4]
mov al, byte [esi]
cmp al, 0x22
je 0x40187a
cmp al, 0x20
jbe 0x4018a7
inc esi
cmp byte [esi], 0x20
ja 0x401872
jmp 0x4018a7
inc esi
cmp byte [esi], 0x22
je 0x4018a6
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x4018a1
xor eax, eax
mov al, bl
push eax
call fcn.004013b0
add esp, 4
test eax, eax
je 0x40189b
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x401883
cmp byte [esi], 0x22
jne 0x4018a7
inc esi
cmp byte [esi], 0
je 0x4018b7
cmp byte [esi], 0x20
ja 0x4018b7
inc esi
cmp byte [esi], 0
jne 0x4018ac
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x4018db
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.004016a0
jmp 0x40191c
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402760
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x406858], 0
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push ebp
jne 0x4027ac
call esi
mov edi, eax
test edi, edi
je 0x40278a
mov dword [0x406858], 1
jmp 0x4027b0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x4027a2
mov dword [0x406858], 2
jmp 0x4027b4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
cmp dword [0x406858], 1
jne 0x402863
test edi, edi
jne 0x4027d7
call esi
mov edi, eax
test edi, edi
jne 0x4027d7
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x4027f1
add esi, 2
cmp word [esi], 0
jne 0x4027df
add esi, 2
cmp word [esi], 0
jne 0x4027df
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x402852
push ebp
call fcn.00402e10
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x402852
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x402841
push ebx
call fcn.00403540
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x406858], 2
jne 0x4028e7
test ebx, ebx
jne 0x402886
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x402886
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x40289b
inc ebp
cmp byte [ebp], 0
jne 0x40288d
inc ebp
cmp byte [ebp], 0
jne 0x40288d
sub ebp, ebx
inc ebp
push ebp
call fcn.00402e10
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x4028c0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x402c20
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x406870
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x402c47
add eax, 8
inc ecx
cmp eax, 0x4068f8
jb 0x402c38
cmp dword [ecx*8 + 0x406870], edx
lea ebx, [ecx*8]
jne 0x402e02
cmp dword [0x4060f8], 1
je 0x402dc7
cmp dword [0x4060f8], 0
jne 0x402c7e
cmp dword [0x4060fc], 1
je 0x402dc7
cmp edx, 0xfc
je 0x402e02
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x402cbb
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x402cff
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x4052b8
push ebp
call fcn.00403440
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x405298
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x406874]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00403560
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x406bd0]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x402dde
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x406874]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x403100
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp edx, dword [0x406cd0]
push ebx
push esi
push edi
push ebp
jae 0x403307
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x406bd0
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x403307
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x403169
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x40317a
push 2
push 0
push edx
call fcn.00403330
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x403216
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x40324f
lea edi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x4031dd
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x4031cb
mov byte [edi], 0xd
inc esi
inc edi
mov byte [edi], al
inc edi
mov eax, edi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x4031b2
lea eax, [esp + 0x24]
push 0
sub edi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push edi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403245
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp edi, eax
jle 0x40319d
jmp 0x40324f
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403245
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x40324f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x4032f6
cmp dword [esp + 0x10], 0
je 0x4032a8
cmp dword [esp + 0x10], 5
jne 0x40328b
mov dword [0x4060a0], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x4060a4], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.00403700
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x4032d2
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x4032d2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x4060a0], 0x1c
mov dword [0x4060a4], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x4060a0], 9
mov dword [0x4060a4], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x404040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x23c
mov eax, 0x40b352
call fcn.0040a8e9
movzx eax, word [ebp + 8]
mov esi, dword [0x41225c]
push 0xf0
push eax
push esi
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4041c3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4041c3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4041c3
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x4041c3
mov ecx, dword [esi + 4]
mov edi, eax
movzx eax, word [esi + 2]
mov dword [ebp - 0x224], ecx
mov ecx, 0x403
add esi, 8
cmp cx, ax
jne 0x404137
push 3
lea eax, [ebp - 0x110]
push esi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], eax
call fcn.00402abf
push dword [ebp - 0x114]
mov eax, dword [ebp - 0x220]
and dword [ebp - 4], 0
push 0
push 0x143
push edi
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x404112
and dword [ebp - 0x21c], 0
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x110]
cmp dword [ebp - 0x114], eax
je 0x4041b0
push dword [ebp - 0x114]
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
jmp 0x4041b0
mov ecx, 0x1234
cmp cx, ax
jne 0x4041b0
or dword [ebp - 0x244], 0xffffffff
push 3
lea eax, [ebp - 0x214]
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x248], 1
mov dword [ebp - 0x218], eax
call fcn.00402abf
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x240], eax
cmp eax, ecx
je 0x40418a
push eax
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
lea eax, [ebp - 0x248]
push eax
mov eax, dword [ebp - 0x220]
push 0
push 0x40b
push edi
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x4041b0
and dword [ebp - 0x21c], 0
add esi, dword [ebp - 0x224]
cmp dword [ebp - 0x21c], 0
jne 0x4040a5
mov eax, dword [ebp - 0x21c]
call fcn.0040a933
ret 4
Function at 0x401a7e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x401a8d
pop dword [ebp - 0x34]
mov eax, 0x401a8d
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xbe3501e1
sub dword [ebp - 0x44], 0x6fe2bc96
mov dword [ebp - 0x40], 0x89d54d97
add dword [ebp - 0x40], 0xa85dfeae
mov dword [ebp - 0x3c], 0xcb032620
sub dword [ebp - 0x3c], 0x7eb6e1f2
mov dword [ebp - 0x38], 0x37be026
sub dword [ebp - 0x38], 0x37be026
lea eax, [ebp - 0x44]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x77e3d874
sub dword [ebp - 0x44], 0x3716f1e
mov dword [ebp - 0x40], 0xe9a09fd5
add dword [ebp - 0x40], 0x57cbc1a0
mov dword [ebp - 0x3c], 0xa0f54c6f
add dword [ebp - 0x3c], 0xc27a1ffd
mov dword [ebp - 0x38], 0xe09241af
add dword [ebp - 0x38], 0x1f6dbe51
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0x24c81d12
sub eax, 0x24847cda
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x3e89f
push 0
call eax
mov ecx, 0x8b1afcc2
sub ecx, 0x8b1ab348
xor edx, edx
add edx, eax
mov esi, 0x648a9520
sub esi, 0x64451b20
add esi, dword [ebp - 0x34]
mov ebx, 0xa46eabe3
sub ebx, 0x35e8f892
sub dword [ebp - 4], ebx
mov edi, dword [esi]
sub dword [ebp - 0x14], 0x2eaebc6c
sub edi, ebx
xor dword [ebp - 0x28], ecx
mov dword [edx], edi
sub dword [ebp - 0x18], ebx
add edx, 0x8c5de1b0
add edx, 0x73a21e54
add esi, 4
loop 0x401ba7
add eax, 0x118bb
xor ebx, ebx
add ebx, eax
add eax, 0xbb0a3e5f
add eax, 0x44f5c1a6
mov ecx, 0x64cae313
sub ecx, 0x648ae313
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x63a1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0063a140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0063a140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0063a140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0063a140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x63abfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x63ac50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x64c87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x63ac43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x63ac52
xor eax, eax
pop esi
leave
ret 4

Function at 0x432c46
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00432cc5
jae 0x432c52
xor ecx, ecx
call fcn.00432cc5
jae 0x432c7c
xor eax, eax
call fcn.00432cc5
jae 0x432c8d
mov al, 0x10
call fcn.00432cc5
adc al, al
jae 0x432c6e
jne 0x432cba
stosb byte es:[edi], al
jmp 0x432c53
call fcn.00432cd1
dec ecx
loop 0x432c99
mov eax, ebp
call fcn.00432ccf
jmp 0x432cbb
lodsb al, byte [esi]
shr eax, 1
je 0x432ce1
adc ecx, 2
mov ebp, eax
jmp 0x432cbb
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00432ccf
cmp eax, 0x7d00
jae 0x432cb9
cmp eax, 0x500
jae 0x432cba
cmp eax, 0x7f
ja 0x432cbb
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x432c53
pop ebp
ret 8
Function at 0x40556b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40558c
jl 0x405583
test edi, edi
jne 0x40558c
xor eax, eax
xor edx, edx
jmp 0x40564d
cmp dword [ebx + 0x38], 0
je 0x4055a1
push eax
push edi
push dword [ebp + 8]
call fcn.00405653
jmp 0x40564d
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4055e8
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4055e8
cmp eax, edi
jb 0x4055c2
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.004077b0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4055ee
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x405642
mov ecx, ebx
call fcn.00404dd0
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40562d
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040ba4b
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x405642
jmp 0x405600
test edx, edx
je 0x405642
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040ba4b
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x406d66
Capabilities:
Parse pe header

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

Function at 0x411249
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4212a8
push 0x4212a0
push str.FlsAlloc
push 0x1e
call fcn.004110b6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41127d
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e140]
call esi
jmp 0x411283
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4112c7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4212b8
push 0x4212b0
push str.FlsGetValue
push 0x20
call fcn.004110b6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4112fe
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]