joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001b503
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100388a8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1001b549
cmp word [ebx], dx
jne 0x1001b549
or byte [eax + edi + 0x28], 4
jmp 0x1001b54e
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1001b6b1
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1001b691
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1001b58f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1001b5c5
cmp eax, edx
jae 0x1001b5d3
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1001b56a
jmp 0x1001b6b1
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001b68c
cmp dword [ebp - 0x18], 0
je 0x1001b68c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100388a8]
test byte [eax + edi + 0x28], 0x48
je 0x1001b662
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1001b626
mov word [esi], cx
jmp 0x1001b65d
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100388a8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100388a8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100388a8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1001b6b1
pop eax
cmp word [ebp - 4], ax
jne 0x1001b672
cmp esi, ebx
jne 0x1001b672
mov word [esi], ax
jmp 0x1001b6ae
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001bf3c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1001b6b1
push 0xd
pop eax
jmp 0x1001b66d
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100388a8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1001b6ab
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1001b6b1
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10020140
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 0x100201dd
push ebx
push esi
call fcn.10020109
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.1001ef46
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002018a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100201dc
push edi
push eax
call fcn.1001bf9a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100201aa
call fcn.10019c52
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100201db
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001ef46
add esp, 0x20
test eax, eax
jne 0x100201c9
push edi
call fcn.10019c52
jmp 0x100201d1
push ebx
call fcn.10019c52
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 0x100227b5
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1001748b
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10022824
cmp esi, dword [ebp - 4]
je 0x1002281f
cmp dword [ebp + 0xc], 0
je 0x1002281f
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100227fc
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10022307
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10022826
xor eax, eax
inc eax
jmp 0x10022826
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1002288b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10037080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1001748b
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1001748b
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10022902
cmp word [ecx], dx
je 0x10022902
mov eax, dword [0x1002d4dc]
push edi
dec eax
push eax
push 0x1002d3c8
call fcn.1002282a
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10022975
cmp word [eax], dx
je 0x10022975
mov eax, dword [edi]
test eax, eax
je 0x10022926
cmp word [eax], dx
je 0x10022926
lea eax, [ebp - 0x10]
push eax
call fcn.1002220d
jmp 0x1002292f
lea eax, [ebp - 0x10]
push eax
call fcn.100222a8
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1002299f
mov eax, dword [0x1002d3c4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1002d0b8
call fcn.1002282a
add esp, 0xc
test al, al
je 0x1002299f
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1002296a
cmp word [eax], di
je 0x1002296a
lea eax, [ebp - 0x10]
push eax
call fcn.1002220d
pop ecx
jmp 0x100229a1
lea eax, [ebp - 0x10]
push eax
call fcn.100222a8
jmp 0x10022967
mov eax, dword [edi]
test eax, eax
je 0x1002298c
cmp word [eax], dx
je 0x1002298c
lea eax, [ebp - 0x10]
push eax
call fcn.100221c2
pop ecx
jmp 0x1002299f
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10022a6a
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100226af
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10022a6a
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10022a6a
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10022a6a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100229f7
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1001a807
test ebx, ebx
je 0x10022a65
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1001a807
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10022a6a
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10022a6a
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1002610a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10022a6c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000b84b
leave
ret
Function at 0x100269a1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1002691d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10026b10
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10026b10
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10026ac5
jg 0x100269fd
test eax, eax
je 0x10026abb
push 1
push 0x1000
call fcn.1001a1d0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10026a20
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10026ab2
push 0x8000
push ebx
call fcn.1002684e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10026a49
jg 0x10026a44
cmp ecx, 0x1000
jb 0x10026a49
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10019a36
add esp, 0x10
cmp eax, 0xffffffff
je 0x10026a8e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10026a44
jl 0x10026a75
test ecx, ecx
jne 0x10026a36
push dword [ebp - 0xc]
push ebx
call fcn.1002684e
push esi
call fcn.10019c52
add esp, 0xc
xor ebx, ebx
jmp 0x10026b1e
cmp byte [edi + 0x24], 0
je 0x10026aa5
cmp dword [edi + 0x20], 5
jne 0x10026aa5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10026ab0
mov ebx, dword [edi + 0x18]
jmp 0x10026ab2
xor ebx, ebx
push esi
call fcn.10019c52
pop ecx
jmp 0x10026b1e
test ecx, ecx
jg 0x10026a87
jl 0x10026ac5
test eax, eax
jae 0x10026a87
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001bf3c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10026ae5
cmp byte [edi + 0x1c], 0
je 0x10026a87
jmp 0x10026b16
push ebx
call fcn.1002072d
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10026a87
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10026b1e
cmp byte [edi + 0x1c], 0
je 0x10026b1b
mov ebx, dword [edi + 0x18]
jmp 0x10026b1e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1001bf3c
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100280d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100280fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100280fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401f11
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x40951c], esi
push edi
jne 0x401f4b
mov ecx, 0x409518
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x401f27
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x409918
jl 0x401f22
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x401f80
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x409518]
xor eax, esi
inc ecx
dec edx
jne 0x401f63
pop edi
pop esi
not eax
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x430f6773
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x433060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x51b5264
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x40425d
Capabilities:
Create pipe

Disassembly:
push ebp
mov eax, 0x824c
mov ebp, esp
push edi
push esi
push ebx
call fcn.0040b3d0
sub esp, eax
mov esi, dword [ebp + 8]
cmp dword [0x410024], 0
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x8230], 0
mov dword [ebp - 0x822c], 0
je 0x4042bf
mov eax, dword [0x410a2c]
test eax, eax
je 0x4042bf
mov dword [esp + 0x10], 0x418ddc
mov dword [esp + 0xc], 0x418d5c
mov dword [esp + 8], esi
mov dword [esp + 4], str.Check_Java_Version:__s_min_s_max_s_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
lea eax, [ebp - 0x8228]
mov dword [esp + 8], eax
lea eax, [ebp - 0x822c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x8230]
mov dword [esp + 0xc], 0
mov dword [esp], eax
mov dword [ebp - 0x8228], 0xc
mov dword [ebp - 0x8220], 1
mov dword [ebp - 0x8224], 0
call sub.kernel32.dll_CreatePipe
sub esp, 0x10
test eax, eax
jne 0x40432e
mov eax, dword [0x410a2c]
test eax, eax
je 0x404327
mov dword [esp + 4], eax
mov dword [esp], str.Cannot_create_pipe_n
call sub.msvcrt.dll_fputs
xor eax, eax
jmp 0x404497
mov eax, dword [ebp - 0x8230]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.kernel32.dll_SetHandleInformation
sub esp, 0xc
test eax, eax
jne 0x404386
mov eax, dword [0x410a2c]
test eax, eax
je 0x40436c
mov dword [esp + 4], eax
mov dword [esp], str.Cannot_set_handle_information_n
call sub.msvcrt.dll_fputs
mov eax, dword [ebp - 0x8230]
mov dword [esp], eax
call sub.kernel32.dll_CloseHandle
push eax
mov eax, dword [ebp - 0x822c]
jmp 0x404410
xor eax, eax
mov ecx, 0x2000
lea edi, [ebp - 0x8018]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x811c]
mov cl, 0x41
rep stosd dword es:[edi], eax
mov dword [esp + 4], esi
lea esi, [ebp - 0x811c]
mov dword [esp], esi
call sub.msvcrt.dll_strcpy
mov dword [esp], esi
call fcn.00402629
mov dword [esp + 0xc], esi
lea esi, [ebp - 0x8018]
mov dword [esp + 8], str.__s___version
mov dword [esp + 4], 0x8000
mov dword [esp], esi
call fcn.00406350
mov eax, dword [ebp - 0x822c]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00403cc0
test eax, eax
jne 0x40441e
mov eax, dword [0x410a2c]
test eax, eax
je 0x40440a
mov dword [esp + 4], eax
mov dword [esp], str.Cannot_run_java_w___version_n
call sub.msvcrt.dll_fputs
mov eax, dword [ebp - 0x8230]
mov dword [esp], eax
call sub.kernel32.dll_CloseHandle
push eax
jmp 0x404327
xor eax, eax
mov ecx, 0x20
lea edi, [ebp - 0x821c]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x819c]
lea esi, [ebp - 0x821c]
mov cl, 0x20
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x8230]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00403b64
mov eax, dword [ebp - 0x8230]
mov dword [esp], eax
call sub.kernel32.dll_CloseHandle
cmp byte [ebp - 0x821c], 0
push edi
lea edi, [ebp - 0x819c]
je 0x404327
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.004023b8
mov eax, dword [ebx]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00403dc7
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x404b90
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x404be0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x4c
lea eax, [ebp - 0x34]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.kernel32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x404cab
mov eax, dword [ebp - 0x20]
cmp eax, 4
jne 0x404c31
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0x40
je 0x404c19
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x38]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov dword [ebp - 0x3c], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sub.kernel32.dll_VirtualProtect
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x40], ecx
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 0x40]
cmp ecx, 4
je 0x404c29
cmp ecx, 0x40
je 0x404c29
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sub.kernel32.dll_VirtualProtect
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00404b90
lea esi, [esi]
lea edi, [edi]
Function at 0x40ba30
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.00404b60
call sub.kernel32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.kernel32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x40ba66
jmp 0x40baa5
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x40ba63
cmp al, 0x20
je 0x40ba63
cmp al, 0x22
jne 0x40ba89
jmp 0x40baf4
cmp al, 0x20
lea esi, [esi]
je 0x40ba90
test al, al
je 0x40baa5
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x40ba77
movzx eax, byte [ebx]
cmp al, 0x20
jne 0x40bb0a
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x40ba97
cmp al, 0x20
je 0x40ba97
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x40bab4
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.kernel32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401803
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
cmp al, 0x22
je 0x40bafe
add ebx, 1
movzx eax, byte [ebx]
test al, al
jne 0x40baf0
cmp al, 0x22
sete al
movzx eax, al
add ebx, eax
jmp 0x40ba90
cmp al, 9
je 0x40ba97
jmp 0x40baa5
Function at 0x402d60
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, esi
lea eax, [ebp - 4]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or al, 9
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406113
xor ebx, ebx
cmp eax, ebx
jne 0x402e43
test byte [ebp + 0x10], 2
je 0x402dc1
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x402e28
lea eax, [ebp - 0x110]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x402dfd
test edi, edi
jne 0x402e28
push dword [ebp + 0x10]
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 4]
call fcn.00402d60
test eax, eax
jne 0x402e06
lea eax, [ebp - 0x110]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402dd6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004066b5
test eax, eax
jne 0x402e38
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x402e43
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x402e43
push 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x403168
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x403185
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x403197
mov dword [ebp - 0xc], 0x421440
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4031ac
mov ecx, dword [0x42f078]
add ecx, eax
push ecx
call fcn.00403390
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.0040337a
test eax, eax
je 0x403368
test byte [ebp + 0x17], 0x80
je 0x403313
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x40bda4], 0
and dword [0x40bda0], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, 0x40d428
mov dword [0x40b888], 8
mov dword [0x415430], eax
mov dword [0x41542c], eax
mov eax, dword [ebp + 0x14]
mov dword [0x415428], 0x415428
mov dword [ebp + 8], eax
jle 0x403370
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403225
mov esi, dword [ebp + 0x14]
mov edi, 0x41d440
push esi
push edi
call fcn.0040337a
test eax, eax
je 0x403368
sub dword [ebp + 0x14], esi
mov dword [0x40b878], edi
mov dword [0x40b87c], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40b878
mov dword [0x40b880], edi
mov dword [0x40b884], eax
call fcn.004067da
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x40330b
mov esi, dword [0x40b880]
sub esi, edi
call ebx
test byte [0x42f0d4], 1
mov edi, eax
je 0x4032c6
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x403293
cmp dword [ebp + 0x14], 0
jne 0x4032c6
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.004053d1
mov dword [ebp - 0x10], edi
test esi, esi
je 0x4032ff
cmp dword [ebp + 0x10], 0
jne 0x4032e5
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405ec7
test eax, eax
je 0x40330f
add dword [ebp - 4], esi
jmp 0x4032f3
mov eax, dword [0x40b880]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 1
jne 0x403248
jmp 0x403370
cmp dword [ebp + 0x14], 0
jg 0x403218
jmp 0x403370
push 0xfffffffffffffffc
jmp 0x40336a
push 0xfffffffffffffffe
jmp 0x40336a
test edi, edi
jne 0x403355
cmp dword [ebp + 0x14], edi
jle 0x403370
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x403329
mov esi, ebx
mov edi, 0x41d440
push esi
push edi
call fcn.0040337a
test eax, eax
je 0x403368
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405ec7
test eax, eax
je 0x40330f
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x40331f
jmp 0x403370
cmp dword [ebp + 0x14], esi
jge 0x40335d
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.0040337a
test eax, eax
jne 0x40336d
push 0xfffffffffffffffd
pop eax
jmp 0x403373
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10