joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x63192423
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
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
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x62655566
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x16785680
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x148c33f3
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x1f12058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.01f121a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1f1207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1f1206a
add dl, dl
jne 0x1f12089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1f120dc
xor eax, eax
add dl, dl
jne 0x1f12096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1f1217d
add dl, dl
jne 0x1f120a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1f120b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1f120bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1f120c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1f120d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1f12075
mov eax, 1
add dl, dl
jne 0x1f120ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1f120f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1f120e1
sub eax, ebx
mov ebx, 1
jne 0x1f12128
mov ecx, 1
add dl, dl
jne 0x1f1210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1f12119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1f12105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1f12075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1f1213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1f1214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1f12136
cmp eax, 0x7d00
jae 0x1f1216d
cmp eax, 0x500
jb 0x1f12168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1f12075
cmp eax, 0x7f
ja 0x1f12170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1f12075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1f1219e
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 0x1f12075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x402f50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push ecx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
xor edi, edi
mov ecx, dword [ebx + 0x3c]
mov eax, dword [ecx + ebx + 0x78]
mov ecx, dword [eax + ebx + 0x1c]
add eax, ebx
add ecx, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
add ecx, ebx
add edx, ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
cmp dword [eax + 0x18], edi
jbe 0x403058
mov esi, dword [ecx + edi*4]
xor eax, eax
mov cl, byte [esi + ebx]
add esi, ebx
test cl, cl
je 0x402ff9
cmp cl, 0x30
jl 0x402fba
mov cl, byte [esi]
cmp cl, 0x5a
jg 0x402fba
movsx ecx, cl
mov dl, byte [ecx + 0x428360]
jmp 0x402fcd
mov dl, byte [esi]
lea ecx, [edx - 0x61]
cmp cl, 0x19
ja 0x402fcd
movsx ecx, dl
mov dl, byte [ecx + 0x428340]
mov byte [eax + 0x42e668], dl
test al, 1
je 0x402fe9
mov cl, byte [eax + 0x42e667]
mov byte [eax + 0x42e667], dl
mov byte [eax + 0x42e668], cl
mov cl, byte [esi + 1]
inc esi
inc eax
mov edx, eax
test cl, cl
jne 0x402fa3
cmp edx, 0x64
jae 0x403061
mov byte [eax + 0x42e668], 0
mov ecx, 0x42e668
mov eax, dword [ebp - 4]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403028
test dl, dl
je 0x403024
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403028
add eax, 2
add ecx, 2
test dl, dl
jne 0x403008
xor eax, eax
jmp 0x40302d
sbb eax, eax
or eax, 1
test eax, eax
je 0x403042
mov eax, dword [ebp - 8]
inc edi
cmp edi, dword [eax + 0x18]
jae 0x403058
mov ecx, dword [ebp - 0xc]
jmp 0x402f95
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
movzx eax, word [eax + edi*2]
pop edi
pop esi
mov eax, dword [ecx + eax*4]
add eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00407749
int3

Function at 0x408275
Capabilities:
Parse pe header

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

Function at 0x418335
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4250d8
push 0x4250d0
push str.FlsAlloc
push 0x1f
call fcn.004181f4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418369
push dword [ebp + 8]
mov ecx, esi
call dword [0x42215c]
call esi
jmp 0x41836f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4183b3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4250e8
push 0x4250e0
push str.FlsGetValue
push 0x21
call fcn.004181f4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4183ea
push dword [ebp + 8]
mov ecx, esi
call dword [0x42215c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4183f2
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4250f0
push 0x4250e8
push str.FlsSetValue
push 0x22
call fcn.004181f4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41842c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42215c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x419a36
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x419ad3
push ebx
push esi
call fcn.004199ff
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00415b2a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x419a80
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x419ad2
push edi
push eax
call fcn.00415757
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x419aa0
call fcn.0041571d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x419ad1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00415b2a
add esp, 0x20
test eax, eax
jne 0x419abf
push edi
call fcn.0041571d
jmp 0x419ac7
push ebx
call fcn.0041571d
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x419ad6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x419ae7
pop esi
ret
push ebx
push edi
push esi
call fcn.004199ff
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00415757
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x419b0f
push ebx
push esi
push edi
call fcn.00408650
add esp, 0xc
push 0
call fcn.0041571d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x419edf
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00419b24
Function at 0x420b10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420b3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420b3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1000c521
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000c5be
push ebx
push esi
call fcn.1000c4ea
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000c433
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000c56b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000c5bd
push edi
push eax
call fcn.10009d13
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000c58b
call fcn.10009cd9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000c5bc
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000c433
add esp, 0x20
test eax, eax
jne 0x1000c5aa
push edi
call fcn.10009cd9
jmp 0x1000c5b2
push ebx
call fcn.10009cd9
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000c829
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100433d0
push 0x100433c8
push str.FlsAlloc
push 0x1e
call fcn.1000c747
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000c85d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10041188]
call esi
jmp 0x1000c863
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000c8a7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100433e0
push 0x100433d8
push str.FlsGetValue
push 0x20
call fcn.1000c747
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000c8de
push dword [ebp + 8]
mov ecx, esi
call dword [0x10041188]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10013e40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10013e6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10013e6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10014340
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 4]
push eax
push dword [edi]
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
xor eax, eax
test esi, esi
jle 0x10014376
nop
mov edx, dword [ebp - 4]
mov ecx, eax
and ecx, 7
mov cl, byte [ecx + 0x10047064]
xor byte [edx + eax], cl
inc eax
cmp eax, esi
jl 0x10014360
push dword [edi]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100149c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100149d3
test al, 0x10
jne 0x100149d3
mov al, 1
ret
xor al, al
ret
Function at 0x10017bb0
Capabilities:
Load windows common language runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10040811
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10071020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
push 4
cmovae eax, dword [ebp + 8]
push 0x10046c44
push eax
call fcn.10008288
add esp, 0xc
push str.mscoree.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x10017c36
push eax
lea edx, [eax + 0x72]
push 0x8c
lea ecx, [edx + 0x19]
call fcn.10016650
add esp, 8
mov esi, 0x80004005
jmp 0x10017d87
push str.CLRCreateInstance
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x10017c50
push eax
mov edx, 0x8d
jmp 0x10017c7e
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10017c5d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x10046b10
push 0x10046b20
call esi
test eax, eax
jns 0x10017c9a
push eax
mov edx, 0x8e
push 0x8c
mov ecx, 0x8b
call fcn.10016650
add esp, 8
mov esi, 0x80004005
jmp 0x10017d80
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x30]
call fcn.100016d0
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 3
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
push 4
cmovae eax, dword [ebp - 0x30]
push 0x10046c7c
push eax
call fcn.10008288
mov eax, dword [ebp - 0x10]
add esp, 0xc
test eax, eax
je 0x10017ce4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x1c], 8
lea edx, [ebp - 0x10]
mov eax, dword [esi]
lea ecx, [ebp - 0x30]
cmovae ecx, dword [ebp - 0x30]
push edx
push 0x10046b30
push ecx
push esi
mov dword [ebp - 0x10], 0
call dword [eax + 0xc]
test eax, eax
jns 0x10017d27
mov edx, 0x90
push eax
push 0x93
lea ecx, [edx - 1]
call fcn.10016650
add esp, 8
mov esi, 0x80004005
jmp 0x10017d63
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10017dbb
mov ecx, dword [eax]
push ebx
push 0x10046ae0
push 0x10046b00
push eax
call dword [ecx + 0x24]
test eax, eax
jns 0x10017d61
mov edx, 0x91
push eax
push 0x76
lea ecx, [edx - 6]
call fcn.10016650
add esp, 8
mov esi, 0x80004005
jmp 0x10017d63
xor esi, esi
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10017d74
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.10001800
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10017d98
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10001800
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004003
call fcn.100027e0
int3
Function at 0x1003f8a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10040911
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10071020]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
cmp byte [0x100723d2], 0
je 0x1003f9dd
call fcn.1003fbc0
test ax, ax
je 0x1003f8f8
mov eax, dword [0x100723d4]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x1003f8f8
call eax
mov byte [0x100723d1], 1
call fcn.1003fbc0
test ax, ax
je 0x1003f9dd
mov eax, dword [0x100723d4]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1003f9dd
call eax
cmp byte [0x100723d1], 0
je 0x1003f9dd
push 0x48
push dword [0x100723d4]
call fcn.10002a03
xor eax, eax
mov dword [0x100723d4], esi
mov ecx, 0x2710
mov edi, 0x100723e0
rep stosd dword es:[edi], eax
mov ecx, dword [0x1007c048]
add esp, 8
test ecx, ecx
je 0x1003f987
mov edx, dword [0x1007c044]
test edx, edx
je 0x1003f97b
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x50]
mov eax, dword [0x1007c044]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [0x1007c048]
mov dword [0x1007c044], esi
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x1007c048], esi
cmp dword [0x10071880], esi
je 0x1003f9ba
cmp dword [0x10071884], 8
mov eax, 0x10071870
cmovae eax, dword [0x10071870]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x1004705c
mov ecx, 0x10071870
call fcn.10001a20
cmp byte [0x100723d0], 0
mov byte [0x100723d2], 0
je 0x1003f9dd
push dword [0x100723d8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [0x100723d0], 0
call fcn.1003fbc0
test ax, ax
je 0x1003fa53
mov eax, dword [0x100723d4]
mov eax, dword [eax + 8]
test eax, eax
je 0x1003fa53
call eax
cmp byte [0x100723d0], 0
movzx esi, ax
jne 0x1003fa45
lea ecx, [ebp - 0x28]
call fcn.10016580
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10014740
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x100723d8], eax
mov byte [0x100723d0], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10001800
mov byte [0x100723d1], 0
mov byte [0x100723d2], 1
mov ax, si
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100029f5
mov esp, ebp
pop ebp
ret
Function at 0x4020f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402107
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402138
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x402134
cmp esi, eax
jae 0x402138
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x402124
cmp esi, eax
jb 0x40213e
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x403750
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x47a418
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x486534]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
call fcn.004027b0
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4037a4
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x14]
call fcn.00402af0
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push edi
mov ecx, esi
mov word [esi + 4], di
call fcn.004027b0
cmp dword [esp + 0x24], 8
jb 0x4037ea
mov eax, dword [esp + 0x10]
push eax
call fcn.0040473a
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x40447d
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x486534]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004043bc
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004087b0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4044cc
cmp dword [ebp - 0x1c], 5
jb 0x4044e4
jmp 0x4044e0
cmp dword [ebp - 0x10], 1
jne 0x4044e4
cmp dword [ebp - 0x1c], 4
ja 0x4044e0
jne 0x4044e4
cmp dword [ebp - 0x18], 0
jbe 0x4044e4
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x47b2ec
call fcn.00404252
test eax, eax
jge 0x404505
mov byte [0x48a7b0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040473f
add ebp, 0x78
leave
ret

Function at 0x40473f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x486534]
jne 0x404749
repz ret
jmp fcn.00408c41
Function at 0x40aa0f
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x486560]
je 0x40aa2a
inc edi
cmp edi, 0x17
jb 0x40aa1b
cmp edi, 0x17
jae 0x40abaa
push ebp
push 3
call fcn.00410a84
cmp eax, 1
pop ecx
je 0x40ab76
push 3
call fcn.00410a84
test eax, eax
pop ecx
jne 0x40aa5e
cmp dword [0x486388], 1
je 0x40ab76
cmp ebx, 0xfc
je 0x40aba9
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x487de8
push ebp
call fcn.0040ac1e
add esp, 0xc
test eax, eax
je 0x40aa94
push esi
push esi
push esi
push esi
push esi
call fcn.004047c6
add esp, 0x14
push 0x104
mov esi, 0x487e01
push esi
push 0
mov byte [0x487f05], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40aad8
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040ac1e
add esp, 0xc
test eax, eax
je 0x40aad8
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004047c6
add esp, 0x14
push esi
call fcn.00406830
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40ab1d
push esi
call fcn.00406830
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4880fc
push 0x47c2ac
sub ecx, eax
push ecx
push eax
call fcn.0040fbd7
add esp, 0x14
test eax, eax
je 0x40ab1d
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004047c6
add esp, 0x14
jmp 0x40ab1f
xor esi, esi
push 0x47c2a8
push ebx
push ebp
call fcn.0040fb66
add esp, 0xc
test eax, eax
je 0x40ab3f
push esi
push esi
push esi
push esi
push esi
call fcn.004047c6
add esp, 0x14
push dword [edi*8 + 0x486564]
push ebx
push ebp
call fcn.0040fb66
add esp, 0xc
test eax, eax
je 0x40ab61
push esi
push esi
push esi
push esi
push esi
call fcn.004047c6
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004108c7
add esp, 0xc
jmp 0x40aba9
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40aba9
cmp ebp, 0xffffffff
je 0x40aba9
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x486564]
push dword [esi]
call fcn.00406830
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret