joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406719
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x268]
push esi
mov esi, dword [esp + 0x268]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.00406638
mov dword [esp + 0x14], eax
test bl, 8
je 0x40675b
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x435ac8], eax
jmp 0x4068da
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x14], ebp
je 0x406778
test eax, eax
je 0x4068c9
test bl, 2
je 0x406892
push esi
push 0x42fdc0
call fcn.00406b1a
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x40679b
push str..
push 0x42fdc0
call ebp
jmp 0x4067a1
push esi
call fcn.00406d10
xor eax, eax
cmp word [esi], ax
jne 0x4067b2
cmp word [0x42fdc0], 0x5c
jne 0x4067ba
push 0x4092b0
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
push 0x42fdc0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40687b
push 0x2e
pop eax
cmp word [esp + 0x48], ax
jne 0x406804
cmp word [esp + 0x4a], 0
je 0x40685d
cmp word [esp + 0x4a], ax
jne 0x406804
cmp word [esp + 0x4c], 0
je 0x40685d
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x14]
call fcn.00406b1a
test byte [esp + 0x1c], 0x10
je 0x40682b
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x40685d
push ebx
push esi
call fcn.00406719
jmp 0x40685d
push edi
push esi
call fcn.00406585
test eax, eax
jne 0x406855
test edi, edi
je 0x40684d
push esi
push 0xfffffffffffffff1
call fcn.00405d3a
xor eax, eax
push eax
push esi
call fcn.0040623d
jmp 0x40685d
inc dword [0x435ac8]
jmp 0x40685d
push esi
push 0xfffffffffffffff2
call fcn.00405d3a
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4067e6
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x14], 0
je 0x4068d9
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax - 2], cx
cmp dword [esp + 0x18], ecx
je 0x4068c9
push esi
call fcn.004065cf
test eax, eax
je 0x4068d9
push esi
call fcn.00406556
mov eax, edi
or eax, 1
push eax
push esi
call fcn.00406585
test eax, eax
jne 0x4068d1
test edi, edi
je 0x4068c9
push esi
push 0xfffffffffffffff1
call fcn.00405d3a
xor eax, eax
push eax
push esi
call fcn.0040623d
jmp 0x4068d9
inc dword [0x435ac8]
jmp 0x4068d9
push esi
push 0xffffffffffffffe5
call fcn.00405d3a
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc
Function at 0x406977
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x800
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004062d8
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x4069e9
push esi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
mov word [edi + 0x7fe], ax
pop esi
jne 0x4069e9
cmp dword [ebp + 0x18], 1
je 0x4069ee
cmp dword [ebp + 0x18], 2
je 0x4069ee
xor eax, eax
mov word [edi], ax
pop edi
leave
ret 0x14

Function at 0x4069f3
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x406a56
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp - 8], 0x73006e
mov dword [ebp - 4], 0x61
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
add word [ebp - 4], dx
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406aa0
test edi, edi
jne 0x406a63
mov word [esi], ax
jmp 0x406aa2
mov eax, esi
pop edi
pop esi
leave
ret 8

Function at 0x406b9d
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406bbf
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x406e3c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x432414], 0
push esi
jne 0x406e76
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x406e4d
mov dword [ecx*4 + 0x432410], edx
inc ecx
cmp ecx, 0x100
jl 0x406e48
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x406ea0
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x432410]
inc esi
sub edx, 1
jne 0x406e88
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x100c7473
Capabilities:
Get number of processors

Disassembly:
jmp 0x100bb794
call fcn.100bb77f
salc
arpl word [ebp - 0x79], cx
loop 0x100bb78a
adc eax, 0x24748b56
add al, 0x8d
mov dh, 0xd4
adc byte [edx], al
add byte [ecx + 0x5e042474], cl
push edx
mov dword [esp], ebp
push esp
pop ebp
push ebp
mov ebp, esp
add ebp, 4
sub ebp, 0x80
xchg dword [esp], ebp
pop esp
sub esp, 4
mov dword [esp], ebx
push edi
mov dword [esp], esi
push 0x188b
mov dword [esp], edi
jmp 0x100e13b3
push ebx
mov ebx, 8
add ebx, ebp
mov eax, dword [ebx]
pop ebx
sub esp, 4
mov dword [esp], eax
jmp 0x100da1dd
jmp 0x100c6476
push 0
push 0x41797261
push 0x7262694c
push 0x64616f4c
lea ecx, [ebp - 0x2c]
sub esp, 4
mov dword [esp], ecx
jmp 0x100d5856
push ecx
mov ecx, dword [esp + 4]
lea ecx, [ecx + 0x1983f]
mov dword [esp + 4], ecx
pop ecx
jmp 0x100dde32
jmp 0x100d586d
call fcn.100d5858
adc byte [eax - 0x77], dl
loopne 0x100d587c
add al, 0
add byte [eax], al
add eax, 4
xchg dword [esp], eax
pop esp
rol byte [edi + eax*4], 4
and al, 0x5c
push eax
pop dword [ebp - 4]
push ecx
mov ecx, 0xc
add ecx, ebp
mov eax, dword [ecx]
pop ecx
push esi
mov dword [esp], eax
push dword [ebp - 4]
sub dword [esp], 0x3f8325ed
pop ecx
add ecx, 0x3f8325ed
push esi
mov dword [esp], ecx
push eax
mov eax, 8
add eax, ebp
mov edx, dword [eax]
pop eax
push eax
mov eax, 0x64
add edx, eax
pop eax
push ebx
mov dword [esp], edx
jmp 0x100bb77d
jmp 0x100da1f4
call fcn.100da1df
or eax, dword [ebp + 0x68]
mov byte [eax], 0
jmp 0x100bbbce
push esi
mov esi, 0x6114390f
xor esi, 0x61143917
mov eax, esi
pop esi
mov eax, dword fs:[eax]
push eax
pop dword [ebp - 4]
push dword [ebp - 4]
pop eax
push dword [eax + 0x30]
sub dword [esp], 0x63f80c4b
pop ecx
add ecx, 0x63f80c4b
push eax
mov eax, 0xfffffff8
add eax, ebp
mov dword [eax], ecx
pop eax
push dword [ebp - 8]
pop edx
push ecx
mov ecx, 8
add ecx, edx
mov eax, dword [ecx]
pop ecx
push edx
mov edx, 0xffffffec
add edx, ebp
mov dword [edx], eax
pop edx
push ebx
mov ebx, 0
mov dword [ebp - 0x10], ebx
pop ebx
cmp dword [ebp - 0x10], 0
je 0x100bc698
jmp 0x100bd265

Function at 0x100e66f2
Capabilities:
Access peb ldr_data

Disassembly:
push eax
mov eax, dword [esp + 4]
lea eax, [eax - 0x4e23]
mov dword [esp + 4], eax
pop eax
jmp 0x100d5a70
Function at 0x103f97fb
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], ecx
cmp eax, 0x1000
lea ecx, [esp + 8]
jb 0x103f9859
jmp 0x103f9818
push ebx
mov ebx, 0x1000
sub ecx, ebx
pop ebx
push esi
mov esi, 0x42603735
add esi, 0x62b848ad
not esi
xor esi, 0xa3b2af6
xor esi, 0x5731f4a
shr esi, 4
xor esi, 0x55aeb5a
sub eax, esi
pop esi
test dword [ecx], eax
cmp eax, 0x1000
jae 0x103f9818
jmp 0x103f9859
sub ecx, 0x42861a21
sub ecx, eax
add ecx, 0x42861a21
push esp
pop eax
test dword [ecx], eax
mov esp, ecx
push dword [eax]
pop ecx
push dword [eax + 4]
xor dword [esp], 0x1d9f7243
pop eax
xor eax, 0x1d9f7243
push ecx
mov dword [esp], eax
ret
Function at 0x4018d0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov edx, eax
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov edx, eax
cmp word [edx], 0x5a4d
je 0x4018f5
or eax, 0xffffffff
jmp 0x4019a2
mov eax, dword [edx + 0x3c]
mov ecx, edx
add eax, ecx
mov ecx, eax
cmp dword [ecx], 0x4550
je 0x40190e
or eax, 0xffffffff
jmp 0x4019a2
mov eax, dword [ecx + 0x78]
mov edx, dword [ebp - 0x10]
lea ecx, [edx + eax]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x20]
add eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov ebx, eax
test ebx, ebx
jne 0x401936
or eax, 0xffffffff
jmp 0x4019a2
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
mov edx, dword [ebp - 0x10]
add eax, edx
mov dword [ebp - 0xc], eax
xor esi, esi
or edi, 0xffffffff
test ebx, ebx
jle 0x401988
mov eax, dword [ebp - 4]
mov eax, dword [eax + esi*4]
mov edx, dword [ebp - 0x10]
add eax, edx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
mov ah, byte [ecx]
sub ah, al
jne 0x401973
test al, al
je 0x401978
inc edx
inc ecx
jmp 0x401963
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401980
mov edi, esi
jmp 0x401988
inc esi
or edi, 0xffffffff
cmp esi, ebx
jl 0x40194d
cmp edi, 0xffff
jne 0x401995
or eax, 0xffffffff
jmp 0x4019a2
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + edi*2]
mov edx, dword [ebp - 8]
add eax, dword [edx + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4019b0
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, eax
mov ebx, ecx
cmp word [ebx], 0x5a4d
je 0x4019ca
xor eax, eax
jmp 0x401a0e
mov eax, dword [ebx + 0x3c]
mov esi, ebx
add eax, esi
mov esi, eax
cmp dword [esi], 0x4550
je 0x4019df
xor eax, eax
jmp 0x401a0e
mov eax, dword [esi + 0x78]
mov ebx, ecx
lea esi, [ebx + eax]
mov eax, dword [esi + 0x1c]
add eax, ebx
mov ebx, eax
mov eax, dword [esi + 0x10]
cmp edx, eax
jb 0x4019fe
neg eax
add eax, edx
cmp eax, dword [esi + 0x14]
jbe 0x401a02
xor eax, eax
jmp 0x401a0e
mov eax, edx
sub eax, dword [esi + 0x10]
mov eax, dword [ebx + eax*4]
mov edi, ecx
add eax, edi
pop edi
pop esi
pop ebx
ret 8
Function at 0x402f90
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push eax
call fcn.00403440
test eax, eax
jle 0x4030ad
xor esi, esi
jmp 0x40300b
mov eax, dword [0x414edc]
cmp byte [esi + eax], 0x49
jne 0x40300a
cmp byte [esi + eax + 1], 0x43
jne 0x40300a
cmp byte [esi + eax + 2], 0x4f
jne 0x40300a
cmp byte [esi + eax + 3], 0x4e
jne 0x40300a
cmp byte [esi + eax + 4], 0x4d
jne 0x40300a
cmp byte [esi + eax + 5], 0x44
jne 0x40300a
cmp byte [esi + eax + 6], 0x35
jne 0x40300a
cmp byte [esi + eax + 7], 0x2e
jne 0x40300a
mov eax, esi
add eax, dword [0x414edc]
lea ecx, [eax + 8]
mov edx, 0x414ee0
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
inc esi
cmp esi, dword [0x414f14]
jb 0x402fb4
mov al, byte [0x414ee0]
mov byte [ebp - 0x805], al
xor esi, esi
jmp 0x40304b
mov eax, dword [0x414f14]
lea edx, [eax + esi]
mov ecx, dword [0x414edc]
mov eax, esi
and eax, 0x80000007
jns 0x40303e
dec eax
or eax, 0xfffffff8
inc eax
movsx eax, byte [eax + 0x414ee0]
add eax, esi
mov byte [edx + ecx], al
inc esi
movzx eax, byte [ebp - 0x805]
cmp esi, eax
jl 0x403022
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push ebx
call dword [0x40705c]
mov edi, eax
cmp edi, 0xffffffff
je 0x40309f
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [0x414f14]
movzx edx, byte [ebp - 0x805]
add eax, edx
push eax
mov eax, dword [0x414edc]
push eax
push edi
call dword [0x407060]
push edi
call dword [0x407058]
mov eax, dword [0x414edc]
push eax
call dword [0x407070]
jmp 0x4030ba
push 0
push ebx
mov eax, dword [ebp + 8]
push eax
call dword [0x407044]
lea ecx, [ebp - 0x804]
mov edx, ebx
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x4030c5
pop eax
lea edx, [ebp - 0x804]
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x4030d9
mov esi, eax
jmp 0x4030e5
dec esi
cmp byte [ebp + esi - 0x805], 0x5c
jne 0x4030e4
lea ecx, [ebp + esi - 0x804]
mov edx, 0x40613f
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x4030fe
pop eax
push 0x32
lea eax, [ebp - 0x404]
push eax
push 0x1002
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x804]
push eax
call dword [0x40705c]
mov edi, eax
cmp edi, 0xffffffff
je 0x403174
push 0
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0x404]
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x403157
push eax
lea eax, [ebp - 0x404]
push eax
push edi
call dword [0x407060]
push edi
call dword [0x407058]
push 0x4070fe
push ebx
call fcn.004025c0
test eax, eax
je 0x403197
push str.JUth9naac1uvdSdSapee
push ebx
call fcn.004020c0
test eax, eax
je 0x403197
call fcn.00402920
push ebx
call fcn.00402520
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x404450
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406704
push 0x404588
push dword fs:[0]
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x2000000
call fcn.00404fc0
pop ecx
mov dword [0x4072a4], eax
call fcn.00404820
test eax, eax
jne 0x404497
push 1
call fcn.00404570
pop ecx
mov dword [ebp - 4], 0
call fcn.00404910
call fcn.00404980
call fcn.004049d0
call fcn.00404db0
call fcn.00404e50
mov ebx, 0x40696c
jmp 0x4044c3
call dword [ebx]
add ebx, 4
cmp ebx, 0x40696c
jb 0x4044be
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
call fcn.00404f10
test byte [ebp - 0x34], 1
je 0x4044f7
movzx edx, word [ebp - 0x30]
jmp 0x4044fc
mov edx, 0xa
push edx
push eax
push 0
push ebx
call fcn.004036e0
mov ebx, eax
mov esi, 0x40696c
jmp 0x404514
call dword [esi]
add esi, 4
cmp esi, 0x40696c
jb 0x40450f
push ebx
call fcn.004043f0
pop ecx
jmp 0x40454d
or dword [ebp - 4], 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x404db0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
cmp byte [ebx], 0
jne 0x404de2
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ebx, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push ebx
call fcn.00404c20
add esp, 0x14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
call fcn.00405590
pop ecx
mov esi, eax
test esi, esi
jne 0x404e15
push 1
call fcn.00404570
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [esi + eax*4]
push eax
push esi
push ebx
call fcn.00404c20
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x40728c], eax
mov dword [0x407290], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404e50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test eax, eax
jne 0x404e6b
mov ebx, dword [0x407360]
mov esi, ebx
xor ecx, ecx
jmp 0x404e8e
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404e76
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x404e89
add ecx, dword [ebp - 4]
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404e71
lea eax, [ecx + 1]
push eax
call fcn.00405590
pop ecx
mov edi, eax
mov dword [0x407298], eax
cmp dword [0x407298], 0
jne 0x404eb5
push 1
call fcn.00404570
pop ecx
mov esi, ebx
jmp 0x404eea
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404ebe
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x404ee5
mov ecx, edi
mov edx, esi
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x404ed5
pop eax
mov eax, dword [ebp - 4]
add edi, eax
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404eb9
mov byte [edi], 0
cmp ebx, dword [0x407360]
je 0x404f01
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x20]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x78]
add ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x24]
add eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
add edx, dword [ebp + 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 0
jmp 0x1000105a
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax + 0x18]
jae 0x10001098
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + edx*2]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + edx*4]
add ecx, dword [ebp + 8]
cmp ecx, dword [ebp + 0xc]
jne 0x1000108d
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
add eax, dword [ebp + 8]
jmp 0x1000109a
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x10], eax
jmp 0x10001051
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401210
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [0x43d7e0], 0x24e1
mov eax, dword [0x43d7e0]
sub eax, 0x24e1
mov dword [0x43d7e0], eax
mov ecx, 1
test ecx, ecx
je 0x4012bb
mov edx, dword [0x43d7e0]
cmp edx, dword [ebp + 0xc]
jb 0x401247
jmp 0x4012bb
cmp dword [0x43d7e0], 0
jne 0x401265
push 0x263
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x401265
xor eax, eax
jmp 0x4012bb
mov eax, dword [ebp + 8]
add eax, dword [0x43d7e0]
mov ecx, dword [eax]
add ecx, dword [0x43d7e0]
mov edx, dword [ebp + 8]
add edx, dword [0x43d7e0]
mov dword [edx], ecx
mov dword [ebp - 4], 0x131ae
mov eax, dword [0x43d7e0]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 2]
push edx
mov eax, dword [ebp + 8]
add eax, dword [0x43d7e0]
push eax
call fcn.004012c0
add esp, 8
mov ecx, dword [0x43d7e0]
add ecx, 4
mov dword [0x43d7e0], ecx
jmp 0x40122d
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
mov dword [0x402452], eax
mov edx, eax
xor edi, edi
push 2
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
xor esi, esi
push dword [0x403583]
call dword [sym.imp.winmm.dll_waveOutClose]
add eax, 6
test eax, 0xb
jne 0x401036
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
ret
Function at 0x401cd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0x40
push 0x1000
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
pop ebp
ret

Function at 0x401cf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop ebp
ret
Function at 0x4030b2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45a710]
jne 0x4030bc
repz ret
jmp fcn.0040608f

Function at 0x40824d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45a710]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404c20
and dword [ebp - 0x14], 0
cmp dword [0x45c4d0], 0
mov dword [ebp - 0x18], eax
jne 0x408300
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4083a8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4083a8
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x45c4d0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x45c4d4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x45c4d8], eax
call edi
push eax
call esi
mov dword [0x45c4e0], eax
test eax, eax
je 0x408300
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x45c4dc], eax
mov eax, dword [0x45c4dc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x408359
cmp dword [0x45c4e0], ecx
je 0x408359
push eax
call esi
push dword [0x45c4e0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x408359
test ebx, ebx
je 0x408359
call edi
test eax, eax
je 0x408350
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x408350
test byte [ebp - 8], 1
jne 0x408359
or dword [ebp + 0x10], 0x200000
jmp 0x40838c
mov eax, dword [0x45c4d4]
cmp eax, dword [ebp - 0x18]
je 0x40838c
push eax
call esi
test eax, eax
je 0x40838c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40838c
mov eax, dword [0x45c4d8]
cmp eax, dword [ebp - 0x18]
je 0x40838c
push eax
call esi
test eax, eax
je 0x40838c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45c4d0]
call esi
test eax, eax
je 0x4083a8
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4083aa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004030b2
leave
ret

Function at 0x405ad1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0x405ad1
lcall 0x5de5, 0x8b10c483
jmp loc.0077d298