joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405cfc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405d62
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004044ac
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f40
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405d4c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d69
lea eax, [ebp - 0x10]
call fcn.0040423c
ret

Function at 0x4078b8
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.004046fc
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4078da
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40a0fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a135
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040432c
jmp 0x40a13e
mov eax, ebx
mov edx, esi
call fcn.00404290
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a148
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a169
mov al, byte [esp]
jmp 0x40a16b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b5c4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40b628
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004044ac
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004075b0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b62f
lea eax, [ebp - 0xc]
call fcn.0040423c
ret
Function at 0x417670
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push esi
push edi
push eax
push edx
mov eax, dword [eax]
mov edx, dword [edx]
mov ebx, 0
mov esi, 0
mov edi, dword [0x41d908]
shl edi, 2
xor edx, dword [esi + 0x41c880]
ror edx, 0x10
mov bl, dh
mov ecx, dword [ebx*4 + 0x41c908]
mov bl, dl
add ecx, dword [ebx*4 + 0x41cd08]
rol edx, 0x10
mov bl, dh
xor ecx, dword [ebx*4 + 0x41d108]
mov bl, dl
add ecx, dword [ebx*4 + 0x41d508]
xor eax, ecx
xchg edx, eax
add esi, 4
cmp esi, edi
jne 0x41768d
xchg edx, eax
xor eax, dword [esi + 0x41c880]
xor edx, dword [esi + 0x41c884]
mov ebx, edx
pop edx
mov dword [edx], ebx
mov ebx, eax
pop eax
mov dword [eax], ebx
pop edi
pop esi
pop ecx
pop ebx
ret

Function at 0x4176e8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push esi
push eax
push edx
mov eax, dword [eax]
mov edx, dword [edx]
mov ebx, 0
mov esi, dword [0x41d908]
inc esi
shl esi, 2
xor edx, dword [esi + 0x41c880]
ror edx, 0x10
mov bl, dh
mov ecx, dword [ebx*4 + 0x41c908]
mov bl, dl
add ecx, dword [ebx*4 + 0x41cd08]
rol edx, 0x10
mov bl, dh
xor ecx, dword [ebx*4 + 0x41d108]
mov bl, dl
add ecx, dword [ebx*4 + 0x41d508]
xor eax, ecx
xchg edx, eax
sub esi, 4
cmp esi, 4
jne 0x417700
xchg edx, eax
xor eax, dword [0x41c884]
xor edx, dword [0x41c880]
mov ebx, edx
pop edx
mov dword [edx], ebx
mov ebx, eax
pop eax
mov dword [eax], ebx
pop esi
pop ecx
pop ebx
ret
Function at 0x4179e0
Capabilities:
Encrypt data using blowfish

Disassembly:
push esi
push edi
mov dword [0x41d908], 0x10
mov esi, 0x41a3cc
mov edi, 0x41c880
mov ecx, 0x422
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
ret

Function at 0x418b88
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x418bce
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00418aec
mov eax, dword [ebp - 4]
call fcn.004046fc
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418bd5
lea eax, [ebp - 4]
call fcn.0040423c
ret

Function at 0x418c98
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00407b50
add esp, 0x104
pop ebx
ret

Function at 0x418f4c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0
push 0
push 0x1c
push 0
call sub.SHFolder.dll_SHGetFolderPathA
mov eax, ebx
mov edx, esp
mov ecx, 0x101
call fcn.004044ac
add esp, 0x104
pop ebx
ret

Function at 0x405630
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
adc dword [0x698e0c11], ecx
xor bl, al
sub esi, dword [edi]
pop es
adc dword [esi + ecx*4], ecx
imul esi, dword [edx], 0x7372bd8
jb 0x405632
push es
add byte [eax + 0x6f], dh
jo 0x4056b0
xor al, byte [eax]
add byte [edx], cl
sub al, 0x28
pop es
jb 0x40563f
push es
add byte [eax + 0x6f], dh
add byte cs:[eax], al
or bl, byte [eax]
outsd dx, dword [esi]
xor eax, dword [eax]
add byte [edx], cl
adc ecx, dword [ecx]
add bh, byte [ebx + 0xa]
add byte [eax], al
add al, 0x11
or dword [esi], edx
lcall 0x346f, 0x9a170911
add byte [eax], al
or ch, byte [ebx]
add dl, byte [esi]
sub al, byte [esi]
pop ss
pop eax
or al, byte [esi]
add ecx, dword [esi - 0x29ac097]
invalid
add byte [eax + 0x28], dh
sbb byte [eax], al
add byte [edx], cl
jge 0x4056c6
add byte [eax], al
add al, 2
jnp 0x4056cc
add byte [eax], al
add al, 0x28
xor eax, 0x2d0a0000
or al, 2
jnp 0x4056d9
or ch, byte [0xd7b020c]
add byte [eax], al
add al, 0x28
add byte ss:[eax], al
or ah, byte [esi]
add bh, byte [ebx + 6]
add byte [eax], al
add al, 0x28
add byte [eax + ebp], al
and al, byte [eax]
add byte [edx], cl
sub eax, 0x77b0229
add byte [eax], al
add al, 0x6f
aaa
add byte [eax], al
or bl, byte [edi]
rdmsr
sbb al, byte [edx]
jnp 0x4056fd
add byte [eax], al
add al, 0x6f
cmp byte [eax], al
add byte [edx], cl
sub al, 0xd
add bh, byte [ebx + 8]
add byte [eax], al
add al, 0x6f
or eax, 0x87b02
add byte [edi + ebp*2], al
cmp byte [eax], al
add byte [edx], cl
sub eax, 0x22a1602
jnp 0x405719
add byte [eax], al
add al, 0x72
sysret
cmp dword [eax], eax
add byte [edx], cl
sub eax, 0x97b0211
add byte [eax], al
add al, 0x72
sysret
Function at 0x401000
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x401a70
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x4a2d54]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ecx, ecx
push eax
mov eax, dword [ebp + 0xc]
lea esi, [esp + 0x14]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
call fcn.00401030
push 0x10
mov ecx, esi
lea ebx, [esp + 0x74]
call fcn.004010e0
add esp, 8
xor esi, esi
xor ebx, ebx
jmp 0x401ae0
movzx eax, byte [esp + esi + 0x6c]
push eax
push str._02x
lea ecx, [edi + ebx]
push 3
push ecx
call fcn.0044d33c
inc esi
add esp, 0x10
add ebx, eax
cmp esi, 0x10
jl 0x401ae0
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044bf82
mov esp, ebp
pop ebp
ret

Function at 0x401b13
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x4a2d54]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push eax
mov dword [esp + 0x38], ecx
mov byte [esp + 0x2b], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x401be5
lea eax, [esp + 0x20]
call fcn.00401000
mov ebx, 0xa000
push ebx
call fcn.0044bd14
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
pop ecx
push esi
lea ecx, [esp + 0x14]
push ecx
push ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], esi
push eax
jmp 0x401bb0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401bbc
push dword [esp + 0x14]
lea esi, [esp + 0x24]
call fcn.00401030
and dword [esp + 0x14], 0
pop ecx
push 0
lea eax, [esp + 0x14]
push eax
push ebx
push dword [esp + 0x20]
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x401b89
jmp 0x401bc1
mov byte [esp + 0xf], 1
push dword [esp + 0x14]
call fcn.0044d21d
mov ebx, dword [esp + 0x20]
push 0x10
lea ecx, [esp + 0x28]
call fcn.004010e0
pop ecx
pop ecx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x7c]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044bf82
mov esp, ebp
pop ebp
ret
Function at 0x401cdb
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
and dword [ebp - 0x10], 0
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov esi, 0x495e28
push esi
mov byte [ebp - 1], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x401d08
xor al, al
jmp 0x401d8d
push edi
call fcn.0044da5d
pop ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x401d5d
push eax
push edi
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x401d5d
and dword [ebp - 0x14], 0
and dword [ebp - 8], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push 0x48ac08
push dword [ebp - 0xc]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x401d5d
mov esi, dword [ebp - 8]
push 0xd
pop ecx
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x48], 0xfeef04bd
sete byte [ebp - 1]
push dword [ebp - 0xc]
call fcn.0044d937
cmp byte [ebp - 1], 0
pop ecx
je 0x401d01
mov eax, dword [ebp - 0x40]
shr eax, 0x10
mov dword [ebx], eax
movzx eax, word [ebp - 0x40]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x3c]
shr eax, 0x10
mov dword [ebx + 8], eax
movzx eax, word [ebp - 0x3c]
mov dword [ebx + 0xc], eax
mov al, 1
pop edi
pop esi
leave
ret
Function at 0x4021de
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a2d54]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 1
push esi
call fcn.00401dd7
pop ecx
pop ecx
test al, al
je 0x402207
mov al, 1
jmp 0x40238a
mov edx, esi
lea ecx, [ebp - 0x20]
call fcn.00401f12
cmp dword [ebp - 0x10], 2
jae 0x40222a
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.00403656
xor al, al
jmp 0x40238a
mov eax, dword [ebp - 0x20]
push 8
pop esi
cmp dword [ebp - 0xc], esi
jae 0x402238
lea eax, [ebp - 0x20]
push edi
push 0x5c
pop edi
cmp word [eax], di
jne 0x402256
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0xc], esi
jae 0x40224c
lea eax, [ebp - 0x20]
cmp word [eax + 2], di
jne 0x402256
push 2
jmp 0x4022bd
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0xc], esi
jae 0x402261
lea eax, [ebp - 0x20]
push 2
add eax, 2
push 0x48ac14
push eax
call fcn.0044d17f
add esp, 0xc
test eax, eax
jne 0x4022c0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
cmp ecx, esi
jae 0x402285
lea eax, [ebp - 0x20]
cmp word [eax], 0x61
jb 0x40229b
mov eax, dword [ebp - 0x20]
cmp ecx, esi
jae 0x402295
lea eax, [ebp - 0x20]
cmp word [eax], 0x7a
jbe 0x4022bb
mov eax, dword [ebp - 0x20]
cmp ecx, esi
jae 0x4022a5
lea eax, [ebp - 0x20]
cmp word [eax], 0x41
jb 0x4022c0
mov eax, dword [ebp - 0x20]
cmp ecx, esi
jae 0x4022b5
lea eax, [ebp - 0x20]
cmp word [eax], 0x5a
ja 0x4022c0
push 3
pop eax
jmp 0x4022c2
xor eax, eax
push ebx
push 1
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], edi
call fcn.0040287f
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xffffffff
je 0x402349
mov dword [ebp - 0x24], 0x5c
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x4022fb
lea eax, [ebp - 0x20]
xor ecx, ecx
mov word [eax + esi*2], cx
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x40230d
lea eax, [ebp - 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x40231f
call ebx
cmp eax, 0xb7
jne 0x40237a
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x40232b
lea eax, [ebp - 0x20]
push 0x5c
pop ecx
mov word [eax + esi*2], cx
push 1
inc esi
push esi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040287f
mov esi, eax
cmp esi, 0xffffffff
jne 0x4022ef
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x402355
lea eax, [ebp - 0x20]
xor esi, esi
push esi
push eax
call edi
test eax, eax
jne 0x40236b
call ebx
cmp eax, 0xb7
je 0x40236b
push esi
jmp 0x40237c
push esi
push 1
lea ecx, [ebp - 0x20]
call fcn.00403656
mov al, 1
jmp 0x402388
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.00403656
xor al, al
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0044bf82
leave
ret
Function at 0x402397
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x4a2d54]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
lea ecx, [ebp - 0x254]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x402468
mov ecx, 0x48ac1c
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4023f8
test dx, dx
je 0x4023f4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4023f8
add eax, 4
add ecx, 4
test dx, dx
jne 0x4023d2
xor eax, eax
jmp 0x4023fd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40244b
mov ecx, 0x48ac20
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402432
test dx, dx
je 0x40242e
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402432
add eax, 4
add ecx, 4
test dx, dx
jne 0x40240c
xor eax, eax
jmp 0x402437
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40244b
mov eax, dword [ebx]
lea ecx, [ebp - 0x254]
push ecx
push eax
push ebx
call fcn.00402a03
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4023c7
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0044bf82
leave
ret

Function at 0x402675
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4026b7
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp eax, 0x6400000
jb 0x4026be
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
add eax, 0xa
push eax
call fcn.0044bd14
mov esi, eax
pop ecx
cmp esi, ebx
je 0x4026b0
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov byte [esi + eax], bl
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4026f7
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, esi
jmp 0x4026b9

Function at 0x4026fb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402754
mov eax, dword [ebp + 0x10]
test eax, eax
jg 0x402738
mov eax, dword [ebp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40272f
sub eax, edx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x402756
xor al, al
pop esi
leave
ret
Function at 0x4038da
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 4], ebx
je 0x4038ee
xor eax, eax
jmp 0x40394c
mov eax, dword [ebp + 8]
push edi
mov dword [esi + 0xc], eax
xor eax, eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 4], eax
lea eax, [esi + 8]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push 0x40396a
push ebx
push ebx
mov dword [ebp - 8], esi
call fcn.004517cd
add esp, 0x18
xor edi, edi
mov dword [esi + 4], eax
cmp eax, ebx
je 0x403938
cmp dword [ebp - 4], ebx
je 0x403935
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edi, edi
inc edi
cmp dword [ebp - 4], ebx
je 0x403949
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4039b5
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 4]
test eax, eax
je 0x4039e8
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4039db
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 4], 0
pop ebp
ret 4
Function at 0x403b07
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x834
mov eax, 0x47684b
call fcn.0044cfd2
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
lea edx, [ebp - 0x838]
push edx
push 1
xor esi, esi
push esi
push ecx
mov dword [ebp - 0x834], esi
push eax
mov dword [ebp - 0x840], edi
mov dword [ebp - 0x838], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor eax, eax
cmp dword [ebp - 0x838], esi
jne 0x403b64
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], esi
mov word [ebx], ax
jmp 0x403c94
push 0x7fe
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push esi
push eax
mov dword [ebp - 0x830], esi
call fcn.0044d460
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x818], 7
mov dword [ebp - 0x81c], esi
mov word [ebp - 0x82c], ax
lea eax, [ebp - 0x834]
push eax
push esi
lea eax, [ebp - 0x83c]
push eax
push esi
mov dword [ebp - 4], esi
push edi
push dword [ebp - 0x838]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x83c], esi
mov dword [ebp - 0x834], esi
call edi
test eax, eax
jne 0x403c4a
cmp dword [ebp - 0x83c], 1
je 0x403bec
cmp dword [ebp - 0x83c], 2
je 0x403bec
cmp dword [ebp - 0x83c], 7
jne 0x403c4a
cmp dword [ebp - 0x834], 0x800
jae 0x403c00
lea eax, [ebp - 0x810]
jmp 0x403c0c
push dword [ebp - 0x834]
call fcn.0044bd14
pop ecx
mov dword [ebp - 0x830], eax
lea eax, [ebp - 0x834]
push eax
push dword [ebp - 0x830]
lea eax, [ebp - 0x83c]
push eax
push esi
push dword [ebp - 0x840]
push dword [ebp - 0x838]
call edi
test eax, eax
jne 0x403c4a
push dword [ebp - 0x830]
lea ecx, [ebp - 0x82c]
call fcn.004032fb
push dword [ebp - 0x838]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x830], esi
je 0x403c78
lea eax, [ebp - 0x810]
cmp dword [ebp - 0x830], eax
je 0x403c78
push dword [ebp - 0x830]
call fcn.0044bdaa
pop ecx
lea eax, [ebp - 0x82c]
push eax
mov ecx, ebx
call fcn.004033e9
push esi
push 1
lea ecx, [ebp - 0x82c]
call fcn.00403656
mov eax, ebx
call fcn.0044d055
ret

Function at 0x403c9c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov esi, eax
lea eax, [ebp - 4]
push eax
push 1
xor edi, edi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 4], edi
jne 0x403cc9
mov eax, esi
jmp 0x403d20
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x403d14
push 4
pop eax
cmp dword [ebp - 8], eax
je 0x403cfc
cmp dword [ebp - 8], 5
jne 0x403d14
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret
Function at 0x403d42
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
push eax
push 1
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 8], ebx
jne 0x403d6a
xor al, al
jmp 0x403dc8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0x10]
mov byte [ebp - 1], bl
push dword [ebp - 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call esi
test eax, eax
jne 0x403dbb
push dword [ebp - 0xc]
call fcn.0044bd14
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [edi], eax
mov eax, dword [ebp + 0x14]
push eax
mov dword [eax], ecx
push dword [edi]
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 8]
call esi
test eax, eax
jne 0x403dbb
mov byte [ebp - 1], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret

Function at 0x4041d7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 2
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x404209
push dword [ebp + 0xc]
lea esi, [ebp - 4]
push dword [ebp + 8]
call fcn.0040439c
pop ecx
pop ecx
cmp dword [ebp - 4], 0
jne 0x404213
xor al, al
jmp 0x40423c
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret

Function at 0x40443e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 4], esi
jne 0x404466
xor al, al
jmp 0x404496
push edi
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
push dword [ebp - 4]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, esi
sete al
pop edi
pop esi
leave
ret

Function at 0x4045d9
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 2
push 0
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 4], 0
je 0x40461f
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret
xor al, al
leave
ret