joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100027fe
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
push 0x1c
call fcn.10002a93
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 7
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], esp
push 0
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x10002862
push 6
call fcn.10002a81
add esp, 4
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 0x1c
mov dword [ebp - 0x14], esp
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_Thread32First]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x10002899
push 6
call fcn.10002a81
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x100029c0
mov ebx, dword [ebp - 8]
add ebx, 0xc
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0x14]
cmp dword [ebx], eax
jne 0x10002993
inc dword [ebp - 0x10]
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x10]
cmp eax, 0
jge 0x100028dc
push 0xa
call fcn.10002a81
add esp, 4
mov dword [ebp - 0x14], eax
lea ebx, [ebp - 0x18]
call fcn.10001e81
push ecx
shl ecx, 2
add ecx, 8
push ecx
call fcn.10002a93
add esp, 4
mov edi, eax
mov dword [edi], 1
add edi, 4
pop ecx
push eax
push ecx
lea esi, [ebp - 0x14]
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
call fcn.10001e81
pop edx
mov eax, ecx
cmp ecx, edx
jle 0x1000291d
mov ecx, edx
sub eax, ecx
sub edx, ecx
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
test edx, edx
je 0x10002933
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call fcn.10002a8d
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
call fcn.10001e81
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x10002965
push 4
call fcn.10002a81
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10002978
push 1
call fcn.10002a81
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 8]
add ebx, 8
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov dword [ebp - 0x14], esp
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_Thread32Next]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x100029b8
push 6
call fcn.10002a81
add esp, 4
mov dword [ebp - 0xc], eax
jmp 0x1000289c
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
call dword [0x1029c06c]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x100029e2
push 6
call fcn.10002a81
add esp, 4
mov eax, dword [ebp - 0x10]
jmp 0x100029ea
push eax
mov ebx, dword [ebp - 8]
push ebx
call fcn.10002a8d
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10003220
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x100032b2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x100032a4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x1000329c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x10003265
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x100037e0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x100037fe
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x100037f3
pop esi
ret
Function at 0x4033c0
Capabilities:
Inspect section memory permissions

Disassembly:
je 0x40341b
add eax, esi
mov edi, dword [ebp - 0x88]

Function at 0x4033fc
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x40341b
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x403416
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x403400
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x403408
cmp edx, ebx
jne 0x403556
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x4033d7
add eax, dword [eax + 4]
jmp 0x4033c4
mov dword [ebp + 0xc], ebx
jmp 0x403426
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
push es
jne 0x40343e
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x40345c
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
invalid
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x449008], 0x8088405
inc edx
mov dword [ebx + 0x449008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d2ec
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d31d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d305
add dl, dl
jne 0x41d328
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d379
xor eax, eax
add dl, dl
jne 0x41d335
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d416
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d35a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d365
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d36f
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d314
mov eax, 1
add dl, dl
jne 0x41d387
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d392
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d37e
sub eax, ebx
mov ebx, 1
jne 0x41d3c5
mov ecx, 1
add dl, dl
jne 0x41d3ab
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3b6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3a2
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d3dc
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3e7
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3d3
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d437
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d314
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41ea7c
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
add edx, edx
inc edx
test edx, edx
js 0x41ea98
mov ecx, dword [eax + edx*4]
dec edx
push ecx
jns 0x41ea91
mov dword [ebp + 0x10], esp
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
lea ebx, [ecx + 1]
mov eax, ebx
cdq
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
test ebx, ebx
jle 0x41ead2
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], eax
sub dword [ebp - 0x30], 1
sbb dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp ebx, 1
jle 0x41eaf9
mov eax, dword [esi + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x14], eax
sub dword [ebp - 0x30], 1
sbb dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
cmp ebx, 2
jle 0x41eb20
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x1c], eax
sub dword [ebp - 0x30], 1
sbb dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
cmp ebx, 3
jle 0x41eb47
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x24], eax
sub dword [ebp - 0x30], 1
sbb dword [ebp - 0x2c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
lea eax, [esi + 0x20]
xor edx, edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
xor eax, eax
mov dword [ebp - 8], eax
mov word [ebp - 2], 0
mov word [ebp - 2], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 8], esp
and esp, 0xfffffff0
push 0x33
call fcn.0041eb87

Function at 0x41ec1c
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
cmp dword [ebp + 8], 0
je 0x41ec8d
cmp dword [ebp + 0x10], 0
jne 0x41ec32
cmp dword [ebp + 0xc], 0
je 0x41ec8d
cmp dword [ebp + 0x14], 0
je 0x41ec8d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
push 0x33
call 0x41ec4d
add dword [esp], 5
retf
pop ecx
pop ecx
pop ebp
ret

Function at 0x41ec94
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor ecx, ecx
cmp dword [ebp + 8], 0
je 0x41ed18
cmp dword [ebp + 0x10], 0
jne 0x41ecac
cmp dword [ebp + 0xc], 0
je 0x41ed18
cmp dword [ebp + 0x14], 0
je 0x41ed18
mov byte [ebp - 9], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
push 0x33
call fcn.0041eccb
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x41ed20
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0x33
call fcn.0041ed3b
Function at 0x41f504
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x42c9f2
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f553
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
jmp 0x41f572
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f5e4
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f5cd
test esi, esi
jbe 0x41f5e4
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f5bf
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f5e4
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f59c
jmp 0x41f5e4
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f5e4
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c9f9
ret
Function at 0x420750
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x42dd6b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x42078b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4207a4
lea eax, [ebp - 0x10]
mov edx, dword [0x44b73c]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x4207b7
lea eax, [ebp - 0x10]
mov edx, dword [0x44b73c]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4207c3
adc edx, 0
mov edx, dword [edx*4 + 0x44a538]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x42093d
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420930
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420930
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x4208ce
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x4208ce
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4208ce
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4208ce
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420930
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420930
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420955
inc ebx
cmp ebx, 0x19
jne 0x42077d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42dd72
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x4026c8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403574
test esi, esi
jne 0x4026fe
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403638
jmp 0x40271c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004025dc
mov edi, eax
test esi, esi
je 0x40271c
cmp dword [ebx], 0
je 0x40271c
dec esi
jmp 0x402705
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402d18
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40600c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402db0
push 0x80000002
call fcn.004010b0
test eax, eax
jne 0x402d90
xor eax, eax
push ebp
push 0x402d89
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 0x402dcc
mov eax, dword [ebp - 4]
push eax
call fcn.004010b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402d90
mov eax, dword [ebp - 4]
push eax
call fcn.004010a8
ret
mov ax, word [0x40600c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40600c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4033f8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x407034], 0
je 0x403459
cmp word [0x407208], 0xd7b2
jne 0x403421
cmp dword [0x407210], 0
jbe 0x403421
mov eax, 0x407204
call dword [0x407220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x406070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403480
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x406018], 0
jne 0x403475
push 0
push 0x406090
push 0x406070
push 0
call fcn.00401070
pop edx
ret

Function at 0x4043a0
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov eax, esp
mov edx, 0x94
call fcn.00403dc0
mov dword [esp], 0x94
push esp
call fcn.00403d38
xor eax, eax
cmp dword [esp + 0x10], 2
jne 0x4043e3
mov edx, dword [esp + 4]
sub edx, 5
jne 0x4043d3
mov al, 7
cmp dword [esp + 4], 5
jne 0x4043e3
cmp dword [esp + 8], 1
jne 0x4043e3
mov al, 9
add esp, 0x94
ret

Function at 0x404590
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call fcn.00403d40
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.004036b0
mov eax, dword [ebx]
call fcn.004036c8
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x4045d2
mov eax, ebx
mov edx, 0x4045e4
call fcn.004036d0
add esp, 0x108
pop ebx
ret
Function at 0x4045e8
Capabilities:
Extract resource via kernel32 functions
Set file attributes
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, edx
push 0x404668
push eax
mov eax, dword [0x407700]
push eax
call fcn.00403cf0
mov ebx, eax
test ebx, ebx
je 0x404662
push ebx
mov eax, dword [0x407700]
push eax
call fcn.00403d48
push eax
call fcn.00403d50
mov edi, eax
push ebx
mov eax, dword [0x407700]
push eax
call fcn.00403d88
mov ebp, eax
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push esi
call fcn.00403ce0
mov ebx, eax
push 0
lea eax, [esp + 4]
push eax
push ebp
push edi
push ebx
call fcn.00403d98
push 0x86
push esi
call fcn.00403d70
push ebx
call fcn.00403cc8
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40481c
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Self delete

Disassembly:
add esp, 0xfffffcb4
push 0x104
lea eax, [esp + 0x40]
push eax
push 0
call fcn.00403d18
test eax, eax
je 0x404924
push 0x104
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.00403d30
test eax, eax
je 0x404924
push 0x104
lea eax, [esp + 0x145]
push eax
push 0x404930
call fcn.00403d08
test eax, eax
je 0x404924
push 0x404938
lea eax, [esp + 0x24a]
push eax
call fcn.00403db0
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x24a]
push eax
call fcn.00403da8
push 0x404940
lea eax, [esp + 0x24a]
push eax
call fcn.00403da8
mov dword [esp], 0x3c
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0x404948
mov dword [esp + 0xc], eax
lea eax, [esp + 0x141]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x246]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 4], 0x40
push esp
call fcn.0040411c
test eax, eax
je 0x404924
push 0x40
mov eax, dword [esp + 0x3c]
push eax
call fcn.00403d78
push pe_nt_image_headers32
call fcn.00403cf8
push eax
call fcn.00403d78
push 0xf
call fcn.00403d00
push eax
call fcn.00403d80
or eax, 0xffffffff
jmp 0x404926
xor eax, eax
add esp, 0x34c
ret

Function at 0x40497c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov esi, dword [ebp + 0xc]
xor ecx, ecx
push ebp
push 0x4049e2
push dword fs:[ecx]
mov dword fs:[ecx], esp
call fcn.00404950
mov ebx, eax
lea eax, [ebp - 8]
mov edx, esi
call fcn.00403680
mov eax, dword [ebp - 8]
call fcn.004036c8
push eax
push esi
push 1
push 0
mov eax, dword [ebp - 4]
push eax
push ebx
call fcn.00403cc0
push ebx
call fcn.00403cb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4049e9
lea eax, [ebp - 8]
call fcn.00403574
ret
Function at 0x404b34
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
add esp, 0xffffffe4
mov byte [esp], al
xor ebx, ebx
lea eax, [esp + 4]
push eax
push 0x20
call fcn.00403cf8
push eax
call fcn.00403ca8
test eax, eax
je 0x404bb6
mov dword [esp + 0xc], 1
lea eax, [esp + 0x10]
push eax
push 0x404bc0
push 0
call fcn.00403ca0
cmp byte [esp], 0
je 0x404b7c
mov dword [esp + 0x18], 2
jmp 0x404b82
xor eax, eax
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 0x10
lea eax, [esp + 0x18]
push eax
push 0
mov eax, dword [esp + 0x18]
push eax
call fcn.00403c98
call fcn.00403d10
test eax, eax
sete bl
mov eax, dword [esp + 4]
push eax
call fcn.00403cc8
mov eax, ebx
add esp, 0x1c
pop ebx
ret

Function at 0x404bd4
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, ecx
mov esi, edx
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
mov al, 1
call fcn.00404b34
mov eax, esi
call fcn.004036c8
add eax, eax
inc eax
call fcn.0040246c
mov ebx, eax
mov eax, esi
call fcn.004036c8
mov ecx, eax
add ecx, ecx
inc ecx
mov edx, ebx
mov eax, esi
call fcn.00403904
test edi, edi
jbe 0x404c1f
mov dword [esp + 8], edi
jmp 0x404c2d
lea ecx, [esp + 8]
xor edx, edx
mov eax, dword [esp]
call fcn.004049f4
mov eax, dword [esp + 8]
push eax
push 0
push 0x3a
call fcn.00403d68
mov esi, eax
push ebx
call fcn.00403db8
inc eax
mov edi, eax
add edi, edi
push 4
push 0x1000
push edi
push 0
push esi
call fcn.00403d90
mov ebp, eax
xor eax, eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push edi
push ebx
push ebp
push esi
call fcn.00403da0
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x404caa
push 0x404cc0
push 0x404cd0
call fcn.00403d20
push eax
call fcn.00403d28
xor edx, edx
mov dword [esp + 0xc], edx
lea edx, [esp + 0xc]
push edx
push 0
push ebp
push eax
push 0
push 0
push esi
call fcn.00403ce8
mov dword [esp + 4], eax
mov eax, ebx
call fcn.0040248c
mov eax, dword [esp + 4]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret