joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009960
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x10009b38
mov edi, dword [0x1001b0a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x10009a47
test byte [0x1000a09c], 8
jne 0x10009ae0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x1000a0ac], 8
jne 0x10009aa0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x100099e9
cmp esi, 3
jbe 0x10009a58
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x100099fa
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x10016b00]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x100099e9
mov dword [esp], 0x1000a0ac
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x100099c0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x100099c0
mov dword [esp], 0x1000a09c
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x100099ab
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x100099b3
mov eax, 0xffffffff
jmp 0x10009a47
Function at 0x10009c30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x214
mov eax, dword [0x1001b0c0]
test eax, eax
je 0x10009ce8
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
sub esp, 4
test eax, eax
jns 0x10009c70
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x214]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x10009c5c
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x10009d1d
mov dword [esp + 4], str.AtlCreateRegistrar
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x1001b0c0], eax
sub esp, 8
test eax, eax
jne 0x10009c4d
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x10009c5e
Function at 0x10009d30
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edx, dword [ebp - 0x10]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
sub esp, 8
test ebx, ebx
je 0x10009ec0
mov eax, dword [esi]
test eax, eax
je 0x10009ea8
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 0x14], 0
mov dword [ebp - 0x1c], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
lea ecx, [eax + 1]
sub esp, 0x18
lea eax, [ecx + ecx]
mov dword [ebp - 0x18], ecx
mov ecx, eax
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov dword [ebp - 0x14], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x10009ecc
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 4]
xor edx, edx
sub esp, 0x18
mov word [edi + eax - 2], dx
mov eax, dword [esi]
test ecx, ecx
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
jne 0x10009e98
call dword [edx + 0x28]
mov dword [esi + 8], eax
sub esp, 8
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 8]
sub esp, 0xc
lea esp, [ebp - 0xc]
not eax
pop ebx
pop esi
shr eax, 0x1f
pop edi
pop ebp
ret 0x10
call dword [edx + 0x24]
mov dword [esi + 8], eax
sub esp, 8
jmp 0x10009e5c
mov edx, esi
mov eax, edi
call sym._create_registrar
test eax, eax
jne 0x10009d96
lea esi, [esi]
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esi + 8], 0x8007000e
xor eax, eax
jmp 0x10009ec2
Function at 0x100150f2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x10015101
pop dword [ebp - 0x30]
mov eax, 0x10015101
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x28382986
sub dword [ebp - 0x40], 0xd9e5e43b
mov dword [ebp - 0x3c], 0x722e9dbe
add dword [ebp - 0x3c], 0xc004ae87
mov dword [ebp - 0x38], 0x96f29267
sub dword [ebp - 0x38], 0x4aa64e39
mov dword [ebp - 0x34], 0xe17ca85b
sub dword [ebp - 0x34], 0xe17ca85b
lea eax, [ebp - 0x40]
push eax
mov eax, 0x7115fcf0
sub eax, 0x6113ac6c
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xaf4de8ad
add dword [ebp - 0x40], 0xc52480a9
mov dword [ebp - 0x3c], 0x2d869209
sub dword [ebp - 0x3c], 0xec1a3094
mov dword [ebp - 0x38], 0x2a39985c
sub dword [ebp - 0x38], 0xc6ca2bf0
mov dword [ebp - 0x34], 0x18655bf4
sub dword [ebp - 0x34], 0x18655bf4
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0xc86eec43
sub eax, 0xb86c9bc7
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x39b41
push 0
call eax
mov ecx, 0x53301a66
add ecx, 0xacd026b9
xor ebx, ebx
add ebx, eax
mov edx, 0x10030c00
add edx, dword [ebp - 0x30]
mov edi, 0xcb9bc0e8
add edi, 0x351b7b4a
sub dword [ebp - 0x2c], edx
mov esi, dword [edx]
mov dword [ebp - 8], 0xfe00ae13
add esi, edi
add dword [ebp - 0x18], 0xdbbf9ed6
mov dword [ebx], esi
xor dword [ebp - 8], 0xb02dd69a
add ebx, 0xf9636731
add ebx, 0x69c98d3
add edx, 0xb40fe011
add edx, 0x4bf01ff3
loop 0x1001521a
add eax, 0x3c42bf6e
add eax, 0xc3be37e1
mov ebx, eax
add eax, 5
mov ecx, 0x7ede5357
sub ecx, 0x6ede5357
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x1001c940
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x1001c9db
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x1001c992
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x1001c992
cmp esi, ebx
jge 0x1001c992
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x1001c9d5
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x1001c9d5
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100252e4]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100252e4]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1001c9ed
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc
Function at 0x1001cc10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
mov eax, dword [ebp + 8]
je 0x1001cc38
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x1001cc52
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.100150f2
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10022930
leave
ret 4

Function at 0x1001ce20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x1001ce56
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x1001ceb5
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.100150f2
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.100150f2
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.100150f2
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10022930
leave
ret 0x10

Function at 0x1001ced0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1001cefc
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x1001cf2d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x1001cf2b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.100150f2
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x1001cf2d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10022930
leave
ret 8
Function at 0x4016e9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 4], ebx
push esi
push edi
test eax, eax
je 0x401791
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x401791
mov edi, dword [ebp + 0x10]
cmp edi, 1
jb 0x401791
test edi, edi
je 0x40178c
sub eax, esi
mov dword [ebp + 8], eax
mov al, byte [eax + esi]
mov ecx, ebx
xor byte [ebx + 0x221], al
call fcn.0040155c
mov ecx, dword [ebp - 4]
mov bl, al
xor bl, byte [ecx + 0x221]
call fcn.0040155c
mov dword [ebp - 8], 1
lea ecx, [ebx + eax]
mov ebx, dword [ebp - 4]
mov byte [ebp + 0xf], cl
cmp dword [ebx + 0x210], 1
jle 0x40177e
mov edi, dword [ebp - 8]
mov ecx, ebx
call fcn.0040155c
xor byte [ebp + 0xf], al
mov ecx, ebx
call fcn.0040155c
mov cl, byte [ebp + 0xf]
add cl, al
inc edi
mov byte [ebp + 0xf], cl
cmp edi, dword [ebx + 0x210]
jl 0x401759
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov byte [esi], cl
inc esi
sub edi, 1
mov dword [ebp + 0x10], edi
jne 0x40171d
xor eax, eax
inc eax
jmp 0x401793
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x401972
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret
Function at 0x4025f3
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28
push 0x49e490
call fcn.00438100
mov dword [ebp - 0x28], ecx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x30], ebx
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x402616
mov eax, dword [edi]
mov dword [ebp - 0x30], eax
mov eax, dword [ecx + 4]
test eax, eax
jne 0x4027d1
test dword [ebp + 0x18], 1
jne 0x402654
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
cmp dword [ebp + 0x1c], ebx
je 0x402643
push dword [ebp + 8]
call fcn.00403703
jmp 0x4027d1
push ebx
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x4027d1
test edi, edi
jne 0x402665
cmp dword [ebp + 0xc], ebx
jne 0x402665
push 0x57
pop eax
jmp 0x4027d1
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp + 8]
call fcn.00403544
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x402682
mov ecx, dword [ebp - 0x24]
mov dword [edx], ecx
test eax, eax
jne 0x4027d1
test edi, edi
je 0x4027d1
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], ebx
mov edx, dword [ebp - 0x20]
lea ecx, [edx + 8]
cmp edx, ecx
sbb eax, eax
test ecx, eax
je 0x4026fc
cmp edx, ecx
sbb eax, eax
and eax, ecx
cmp eax, 0x400
ja 0x4026d8
cmp edx, ecx
sbb eax, eax
and eax, ecx
call fcn.00438160
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x34], esi
test esi, esi
je 0x4026fe
mov dword [esi], 0xcccc
add esi, 8
mov dword [ebp - 0x34], esi
jmp 0x4026fe
cmp edx, ecx
sbb eax, eax
and eax, ecx
push eax
call fcn.0044a832
pop ecx
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
je 0x4026fe
mov dword [esi], 0xdddd
add esi, 8
mov dword [ebp - 0x38], esi
jmp 0x4026fe
mov esi, ebx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x402734
test esi, esi
jne 0x40273f
push 0xe
jmp 0x40265f
push dword [ebp - 0x20]
push ebx
push esi
call fcn.0043d1d0
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp + 8]
mov ebx, dword [ebp - 0x28]
mov ecx, ebx
call fcn.00403544
mov ecx, eax
mov dword [ebp - 0x28], ecx
test ecx, ecx
je 0x402776
push esi
call fcn.00401321
mov eax, dword [ebp - 0x28]
jmp 0x4027d0
cmp dword [ebp + 0x1c], 0
je 0x4027a0
cmp dword [ebp - 0x24], 1
je 0x402788
cmp dword [ebp - 0x24], 7
jne 0x4027a0
mov eax, dword [ebp - 0x30]
mov dword [edi], eax
push edi
push dword [ebp + 0x10]
push esi
push dword [ebp - 0x24]
mov ecx, ebx
call fcn.0040350f
mov ebx, eax
jmp 0x4027c8
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4027c0
mov edx, dword [edi]
cmp dword [ebp - 0x20], edx
jbe 0x4027b5
mov ebx, 0xea
jmp 0x4027c3
push dword [ebp - 0x20]
push esi
call fcn.004012a5
pop ecx
pop ecx
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
mov dword [edi], eax
push esi
call fcn.00401321
mov eax, ebx
pop ecx
lea esp, [ebp - 0x48]
call fcn.00438149
ret 0x18
Function at 0x4027dc
Capabilities:
Set registry value

Disassembly:
push 0x30
push 0x49e4b0
call fcn.00438100
mov dword [ebp - 0x30], ecx
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov esi, ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x34], ebx
mov eax, dword [ecx + 4]
test eax, eax
jne 0x4029a9
test dword [ebp + 0x18], 1
jne 0x402825
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040347d
jmp 0x4029a9
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4029a6
mov eax, dword [ebp + 0x14]
cmp eax, 1
jb 0x4029a6
cmp dword [ebp + 0xc], 1
je 0x402850
cmp dword [ebp + 0xc], 7
je 0x402850
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
jmp 0x4028a0
test eax, eax
je 0x40288e
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
cmp dword [ebp + 0xc], 1
jne 0x402873
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push ecx
push ecx
call fcn.00403403
mov edi, eax
jmp 0x402891
cmp dword [ebp + 0xc], 7
jne 0x40288a
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x20]
push edx
push eax
push ecx
call fcn.00403169
jmp 0x40286f
mov edi, ebx
jmp 0x402891
push 0x57
pop edi
test edi, edi
jne 0x402982
mov dword [ebp - 0x34], 1
mov ecx, dword [ebp - 0x24]
add ecx, 0x20
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ebx
lea edx, [ecx + 8]
cmp ecx, edx
sbb eax, eax
test edx, eax
je 0x402911
cmp ecx, edx
sbb eax, eax
and eax, edx
cmp eax, 0x400
ja 0x4028eb
cmp ecx, edx
sbb eax, eax
and eax, edx
call fcn.00438160
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x38], esi
push 8
pop edi
test esi, esi
je 0x402916
mov dword [esi], 0xcccc
add esi, edi
mov dword [ebp - 0x38], esi
jmp 0x402916
cmp ecx, edx
sbb eax, eax
and eax, edx
push eax
call fcn.0044a832
pop ecx
mov esi, eax
mov dword [ebp - 0x3c], esi
push 8
pop edi
test esi, esi
je 0x402916
mov dword [esi], 0xdddd
add esi, edi
mov dword [ebp - 0x3c], esi
jmp 0x402916
mov esi, ebx
push 8
pop edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x40294c
test esi, esi
je 0x40298d
push dword [ebp - 0x2c]
push esi
push dword [ebp + 0xc]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
call fcn.00402bd3
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x402982
push dword [ebp - 0x2c]
push esi
push 3
push ebx
push dword [ebp + 8]
mov eax, dword [ebp - 0x30]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test esi, esi
je 0x40298d
push esi
call fcn.00401321
pop ecx
cmp dword [ebp - 0x34], 0
je 0x4029a2
cmp dword [ebp - 0x20], 0
je 0x4029a2
push dword [ebp - 0x20]
call fcn.00448c6c
pop ecx
mov eax, edi
jmp 0x4029a9
push 0x57
pop eax
lea esp, [ebp - 0x50]
call fcn.00438149
ret 0x18
Function at 0x402f3a
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4a9074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x118], eax
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x11c], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x114], ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jne 0x402f75
inc eax
jmp 0x402f7c
push ecx
push dword [ebp + 0x10]
push edi
call eax
cmp dword [ebp + 0x18], 0
je 0x403032
test eax, eax
jne 0x403032
mov ebx, eax
push eax
push eax
push eax
push eax
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x110], 0x104
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
test esi, esi
jne 0x403018
and dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
push 0xf003f
push esi
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403020
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0x11c]
push dword [ebp - 0x114]
push dword [ebp + 0x10]
push dword [ebp - 0x10c]
push dword [ebp - 0x118]
call fcn.00402f3a
push dword [ebp - 0x10c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403020
cmp esi, 0x103
je 0x403030
inc ebx
push 0
pop eax
test esi, esi
je 0x402f90
mov eax, esi
jmp 0x403032
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00437519
mov esp, ebp
pop ebp
ret 0x14

Function at 0x403045
Capabilities:
Set registry value

Disassembly:
push 0x20
push 0x49e4f8
call fcn.00438100
mov dword [ebp - 0x30], ecx
xor edi, edi
mov dword [ebp - 0x20], edi
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp + 0x10]
push 3
call fcn.00403cd7
add esp, 0x10
test eax, eax
jne 0x40315e
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
mov ebx, dword [ebp - 0x20]
lea ecx, [ebx + 8]
cmp ebx, ecx
sbb eax, eax
test ecx, eax
je 0x4030dd
cmp ebx, ecx
sbb eax, eax
and eax, ecx
cmp eax, 0x400
ja 0x4030b9
cmp ebx, ecx
sbb eax, eax
and eax, ecx
call fcn.00438160
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
test esi, esi
je 0x4030df
mov dword [esi], 0xcccc
add esi, 8
mov dword [ebp - 0x28], esi
jmp 0x4030df
cmp ebx, ecx
sbb eax, eax
and eax, ecx
push eax
call fcn.0044a832
pop ecx
mov esi, eax
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x4030df
mov dword [esi], 0xdddd
add esi, 8
mov dword [ebp - 0x2c], esi
jmp 0x4030df
mov esi, edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x403115
test esi, esi
jne 0x40311e
push 0xe
pop eax
jmp 0x40315e
push ebx
push edi
push esi
call fcn.0043d1d0
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp + 0x10]
push 3
call fcn.00403cd7
add esp, 0x1c
mov ebx, eax
test ebx, ebx
jne 0x403155
push dword [ebp - 0x20]
push esi
push 1
push edi
push dword [ebp + 8]
mov eax, dword [ebp - 0x30]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
push esi
call fcn.00401321
pop ecx
mov eax, ebx
lea esp, [ebp - 0x40]
call fcn.00438149
ret 0x10
Function at 0x403544
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28
push 0x49e518
call fcn.00438100
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x40355d
and dword [ecx], 0
and dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0x1f4
and dword [ebp - 0x20], 0
and dword [ebp - 4], 0
mov eax, 0x200
call fcn.00438160
mov dword [ebp - 0x18], esp
mov eax, esp
mov dword [ebp - 0x30], eax
test eax, eax
je 0x403592
mov dword [eax], 0xcccc
add eax, 8
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], eax
jmp 0x4035b2
push 0xfffffffffffffffe
pop edi
mov dword [ebp - 4], edi
cmp dword [ebp - 0x20], 0
jne 0x4035c6
push 0xe
pop eax
jmp 0x4036f8
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, 0xea
jne 0x4036b8
push dword [ebp - 0x20]
call fcn.00401321
pop ecx
and dword [ebp - 0x20], 0
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x28]
lea ecx, [edx + 8]
cmp edx, ecx
sbb eax, eax
test ecx, eax
je 0x403665
cmp edx, ecx
sbb eax, eax
and eax, ecx
cmp eax, 0x400
ja 0x403643
cmp edx, ecx
sbb eax, eax
and eax, ecx
call fcn.00438160
mov dword [ebp - 0x18], esp
mov eax, esp
mov dword [ebp - 0x34], eax
test eax, eax
je 0x403667
mov dword [eax], 0xcccc
add eax, 8
mov dword [ebp - 0x34], eax
jmp 0x403667
cmp edx, ecx
sbb eax, eax
and eax, ecx
push eax
call fcn.0044a832
pop ecx
mov dword [ebp - 0x38], eax
test eax, eax
je 0x403667
mov dword [eax], 0xdddd
add eax, 8
mov dword [ebp - 0x38], eax
jmp 0x403667
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], edi
jmp 0x403691
cmp dword [ebp - 0x20], 0
je 0x4035be
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x4036ed
cmp dword [ebp - 0x24], 3
je 0x4036c7
push 0xd
pop esi
jmp 0x4036ed
push dword [ebp + 0x10]
push dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x20]
call fcn.00402ca9
add esp, 0x14
mov esi, eax
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4036ed
mov eax, dword [ebp - 0x24]
mov dword [ecx], eax
push dword [ebp - 0x20]
call fcn.00401321
pop ecx
mov eax, esi
lea esp, [ebp - 0x48]
call fcn.00438149
ret 0x10