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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push esi
mov esi, dword [ebp + 0x14]
mov edx, 0x40000000
push edi
mov edi, dword [ebp + 0x10]
mov dword [esi], 0
nop dword [eax]
mov eax, edi
sub eax, ecx
cmp eax, 0x40000000
cmova eax, edx
push eax
mov eax, dword [ebp + 0xc]
add eax, ecx
push eax
push dword [ebx + 0x14]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
add esp, 0xc
test eax, eax
jle 0x10006ae4
mov ecx, dword [esi]
mov edx, 0x40000000
add ecx, eax
mov dword [esi], ecx
cmp ecx, edi
jb 0x10006ab0
test eax, eax
jns 0x10006b08
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
push eax
push 0xffffffffffffffff
push ebx
call fcn.10005f20
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
test eax, eax
jne 0x10006b13
mov dword [ebx + 0x40], 1
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x402b10
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x429250]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402ba4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402b61
cmp dword [ebp + 0x10], ebx
jne 0x402b98
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402b10
test eax, eax
jne 0x402b73
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402b48
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00406089
cmp eax, ebx
je 0x402bab
push ebx
push dword [0x429250]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ba4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x429250], ebx
jne 0x402ba1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402ba1
jmp 0x402ba4
Function at 0x402f38
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
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 0x402f58
mov dword [ebp - 8], GetSystemMetrics
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402f67
mov ebx, 0x40fe48
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402f7c
mov ecx, dword [0x4291f8]
add ecx, eax
push ecx
call fcn.00403166
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403134
test eax, eax
je 0x4030df
test byte [ebp + 0x17], 0x80
je 0x4030c8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40bdb8
mov dword [ebp - 0xc], eax
call fcn.004061a5
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x40312a
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402fcc
mov esi, dword [ebp + 0x14]
mov edi, 0x40be48
push esi
push edi
call fcn.00403134
test eax, eax
je 0x4030df
sub dword [ebp + 0x14], esi
mov dword [0x40bdd0], edi
mov dword [0x40bdd4], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40bdb8
mov dword [0x40bdd8], ebx
mov dword [0x40bddc], eax
call fcn.004061c5
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x4030c0
mov esi, dword [0x40bdd8]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x429254], 1
mov edi, eax
je 0x403074
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x40303b
cmp dword [ebp + 0x14], 0
jne 0x403074
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 - 0x94]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0
call fcn.00404fd3
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x4030b5
cmp dword [ebp + 0x10], eax
jne 0x40309d
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4030c4
cmp dword [ebp - 0x14], esi
jne 0x4030c4
add dword [ebp - 4], esi
jmp 0x4030a9
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40bdd8]
cmp dword [ebp - 0x10], 1
jne 0x402fef
jmp 0x40312a
cmp dword [ebp + 0x14], eax
jg 0x402fbf
jmp 0x40312a
push 0xfffffffffffffffc
jmp 0x4030e1
push 0xfffffffffffffffe
jmp 0x4030e1
test edi, edi
je 0x40311f
cmp dword [ebp + 0x14], esi
jge 0x4030d4
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403134
test eax, eax
jne 0x403127
push 0xfffffffffffffffd
pop eax
jmp 0x40312d
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x4030ef
mov esi, dword [ebp + 0x14]
mov edi, 0x40be48
push esi
push edi
call fcn.00403134
test eax, eax
je 0x4030df
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4030c4
cmp esi, dword [ebp + 0x10]
jne 0x4030c4
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x4030e4
jmp 0x40312a
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4054a1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x4256a0], 0x44
push eax
xor eax, eax
push 0x4256a0
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4054dc
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405566
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405983
mov edi, eax
cmp edi, 0xffffffff
je 0x4055a7
test byte [esp + 0x10], 1
push esi
je 0x405589
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40558f
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405598
xor eax, eax
inc eax
jmp 0x4055a9
test byte [esp + 0x10], 4
jne 0x4055a7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4055ae
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.0040588f
test bl, 8
mov dword [ebp - 0xc], eax
je 0x4055ed
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x429228], eax
jmp 0x405780
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405607
test eax, eax
je 0x40572e
test bl, 2
je 0x40572e
mov esi, 0x4246a0
push edi
push esi
call fcn.00405d1f
cmp dword [ebp + 8], 0
je 0x405626
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x40562c
push edi
call fcn.004057d3
cmp word [edi], 0
jne 0x40563c
cmp word [0x4246a0], 0x5c
jne 0x405647
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405723
lea eax, [ebp - 0x230]
push 0x3f
push eax
lea esi, [ebp - 0x230]
call fcn.004057b4
xor ecx, ecx
cmp word [eax], cx
je 0x40568e
cmp word [ebp - 0x28], cx
je 0x40568e
lea esi, [ebp - 0x28]
cmp word [esi], 0x2e
jne 0x4056a9
mov ax, word [esi + 2]
cmp ax, cx
je 0x405702
cmp ax, 0x2e
jne 0x4056a9
cmp word [esi + 4], cx
je 0x405702
push esi
push ebx
call fcn.00405d1f
test byte [ebp - 0x25c], 0x10
je 0x4056ce
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405702
push dword [ebp + 0xc]
push edi
call fcn.004055ae
jmp 0x405702
push dword [ebp - 4]
push edi
call fcn.00405566
test eax, eax
jne 0x4056fa
cmp dword [ebp - 4], eax
je 0x4056f2
push edi
push 0xfffffffffffffff1
call fcn.00404fd3
push 0
push edi
call fcn.00405bb9
jmp 0x405702
inc dword [0x429228]
jmp 0x405702
push edi
push 0xfffffffffffffff2
call fcn.00404fd3
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40566a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x40572e
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405780
cmp dword [ebp - 0xc], esi
jne 0x405742
inc dword [0x429228]
jmp 0x405780
push edi
call fcn.00406062
test eax, eax
je 0x405780
push edi
call fcn.00405787
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405566
test eax, eax
jne 0x405778
cmp dword [ebp - 4], esi
je 0x40573a
push edi
push 0xfffffffffffffff1
call fcn.00404fd3
push esi
push edi
call fcn.00405bb9
jmp 0x405780
push edi
push 0xffffffffffffffe5
call fcn.00404fd3
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40588f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x424ea0
push esi
call fcn.00405d1f
push esi
call fcn.00405832
mov edi, eax
test edi, edi
jne 0x4058b0
xor eax, eax
jmp 0x405908
push edi
call fcn.00405fb3
test byte [0x4291b8], 0x80
je 0x4058cd
mov ax, word [edi]
test ax, ax
je 0x4058ac
cmp ax, 0x5c
je 0x4058ac
sub edi, esi
sar edi, 1
jmp 0x4058e7
call fcn.00406062
test eax, eax
je 0x4058e1
test byte [eax], 0x10
je 0x4058ac
push esi
call fcn.004057d3
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x4058d3
call fcn.00405787
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405983
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 0x4059a2
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x4059a8
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x4059d7
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
mov eax, dword [0x40950c]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x409510]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405a27
test edi, edi
jne 0x4059e4
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405a21
Function at 0x405a2b
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, 0x425d38
push 0x409530
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x405a7a
push 1
push 0
push esi
call fcn.004059a8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x405bb3
cmp eax, edi
jg 0x405bb3
mov esi, 0x426538
push edi
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405bb3
cmp eax, edi
jg 0x405bb3
push esi
push ebx
push str._ls_ls_r_n
push 0x425938
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x4291b0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405d41
push 4
push 0xc0000000
push esi
call fcn.004059a8
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405bb3
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405bac
lea eax, [esp + 0x10]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405bac
cmp edi, dword [esp + 0x10]
jne 0x405bac
push str._Rename__r_n
push esi
call fcn.0040590d
test eax, eax
jne 0x405b42
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405b77
add eax, 0xa
push 0x409514
push eax
call fcn.0040590d
mov ebp, eax
test ebp, ebp
je 0x405b73
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405b64
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405b5e
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x405b79
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x425938
push eax
call fcn.00405963
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x405bec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x18]
push edi
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov word [esi], di
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405c60
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x800
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405c4d
cmp dword [ebp + 0x14], 1
je 0x405c50
cmp dword [ebp + 0x14], 2
je 0x405c50
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x7fe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x406137
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x426d3c], 0
push esi
jne 0x40616e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406148
mov dword [ecx*4 + 0x426d38], eax
inc ecx
cmp ecx, 0x100
jl 0x406143
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40619f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x426d38]
xor eax, esi
inc ecx
dec edx
jne 0x406181
pop edi
not eax
pop esi
ret 0xc
Function at 0x4026e4
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x4026f2
call dword [0x47501c]
or eax, eax
je 0x4026f3
ret
mov al, 1
jmp fcn.00402770

Function at 0x4026fc
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x40270a
call dword [0x475020]
or eax, eax
jne 0x40270b
ret
mov al, 2
jmp fcn.00402770

Function at 0x402714
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [eax]
test ecx, ecx
je 0x40274c
test edx, edx
je 0x402736
push eax
mov eax, ecx
call dword [0x475024]
pop ecx
or eax, eax
je 0x402745
mov dword [ecx], eax
ret
mov al, 2
jmp fcn.00402770
mov dword [eax], edx
mov eax, ecx
call dword [0x475020]
or eax, eax
jne 0x40272f
ret
mov al, 1
jmp fcn.00402770
test edx, edx
je 0x402760
push eax
mov eax, edx
call dword [0x47501c]
pop ecx
or eax, eax
je 0x402745
mov dword [ecx], eax
ret

Function at 0x402770
Capabilities:
Terminate process

Disassembly:
and eax, 0x7f
mov ecx, dword [0x477004]
test ecx, ecx
je 0x402780
pop edx
call ecx
dec eax
mov al, byte [eax + 0x402799]
jns 0x402794
call fcn.00405d88
mov eax, dword [eax + 4]
jmp fcn.00403960

Function at 0x4028b4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4028e3
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403ad4
jmp 0x402901
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.0040283c
mov edi, eax
test ebx, ebx
je 0x402901
cmp dword [esi], 0
je 0x402901
dec ebx
jmp 0x4028ea
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402c30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402cc8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402ca8
xor eax, eax
push ebp
push 0x402ca1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402ce4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ca8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret

Function at 0x402f48
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x402f62
mov ecx, eax
mov ecx, dword [ecx]
cmp ecx, edx
je 0x402f62
mov ecx, dword [ecx - 0x24]
test ecx, ecx
jne 0x402f4e
mov al, 0xa
jmp fcn.00402770
ret

Function at 0x402f94
Capabilities:
Terminate process

Disassembly:
cmp dword [0x47701c], 0
je 0x402953
call dword [0x47701c]
mov eax, 0xd2
jmp fcn.00403960
push eax
push ecx
mov eax, dword [eax]
call fcn.00402f64
pop ecx
pop eax
je 0x402fa3
jmp ebx
pop ecx
jmp 0x402944
Function at 0x402fac
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, edx
mov eax, dword [eax]
call fcn.00402f64
mov eax, ebx
pop ebx
jne 0x402fc1
pop ecx
jmp 0x402944
ret

Function at 0x40383c
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x4774a4
mov esi, 0x477038
mov edi, 0x47703c
cmp byte [ebx + 0x24], 0
jne 0x40386b
cmp dword [edi], 0
je 0x40386b
mov edx, dword [edi]
mov eax, edx
xor edx, edx
mov dword [edi], edx
mov ebp, eax
call ebp
cmp dword [edi], 0
jne 0x40385a
cmp dword [0x477040], 0
je 0x4038b2
call fcn.004037b8
cmp byte [0x477048], 0
je 0x403898
mov edx, 0x47502c
mov eax, 0x47721c
call fcn.00405624
call fcn.004055a7
jmp 0x4038ab
push 0
push 0x47504c
push 0x47502c
push 0
call sub.user32.dll_MessageBoxA
xor eax, eax
mov dword [0x477040], eax
cmp byte [ebx + 0x24], 2
jne 0x4038c2
cmp dword [esi], 0
jne 0x4038c2
xor eax, eax
mov dword [ebx + 0xc], eax
call fcn.0040368c
cmp byte [ebx + 0x24], 1
jbe 0x4038d2
cmp dword [esi], 0
je 0x4038ef
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x4038ef
call fcn.00405028
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 0x10]
cmp edx, dword [eax + 4]
je 0x4038ef
push edx
call sub.kernel32.dll_FreeLibrary
call fcn.00403664
cmp byte [ebx + 0x24], 1
jne 0x4038fd
call dword [ebx + 0x28]
cmp byte [ebx + 0x24], 0
je 0x403908
call fcn.00403808
cmp dword [ebx], 0
jne 0x403915
mov eax, dword [esi]
push eax
call sub.kernel32.dll_ExitProcess
mov eax, dword [ebx]
push esi
mov esi, eax
mov edi, ebx
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x4038b2

Function at 0x4039a4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026e4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x477049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40396c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x403ff8
Capabilities:
Terminate process

Disassembly:
test edx, edx
je fcn.00403fbc
mov ecx, dword [edx - 4]
shr ecx, 1
je fcn.00403fbc
push ecx
push edx
push eax
call sub.oleaut32.dll_SysReAllocStringLen
test eax, eax
je 0x403fa4
ret

Function at 0x4040a0
Capabilities:
Terminate process

Disassembly:
mov al, 1
jmp fcn.00402770
test ecx, ecx
je fcn.00403fbc
push eax
push ecx
push edx
call sub.oleaut32.dll_SysAllocStringLen
test eax, eax
je 0x403fa4
pop edx
push dword [edx]
mov dword [edx], eax
call sub.oleaut32.dll_SysFreeString
ret
Function at 0x404168
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov esi, edx
mov edi, ecx
xor edx, edx
mov al, byte [esi]
mov dl, byte [esi + 1]
xor ecx, ecx
cmp al, 0xa
je 0x4041a7
cmp al, 0xb
je 0x4041a7
cmp al, 0xc
je 0x4041b1
cmp al, 0xd
je 0x4041c4
cmp al, 0xe
je 0x4041e2
cmp al, 0xf
je 0x4041a7
cmp al, 0x11
je 0x4041a7
mov al, 2
pop edi
pop esi
pop ebx
jmp fcn.00402770
mov dword [ebx], ecx
add ebx, 4
dec edi
jg 0x4041a7
jmp 0x4041f6
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], ecx
add ebx, 0x10
dec edi
jg 0x4041b1
jmp 0x4041f6
push ebp
mov ebp, edx
mov edx, dword [esi + ebp + 0xa]
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov ecx, dword [esi + ebp + 6]
mov edx, dword [edx]
call 0x404168
dec edi
jg 0x4041c7
pop ebp
jmp 0x4041f6
push ebp
mov ebp, edx
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov edx, esi
call fcn.0040413c
dec edi
jg 0x4041e5
pop ebp
pop edi
pop esi
pop ebx
ret
mov ecx, 1
jmp 0x404168

Function at 0x4041fc
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov esi, edx
mov edi, ecx
xor edx, edx
mov al, byte [esi]
mov dl, byte [esi + 1]
xor ecx, ecx
cmp al, 0xa
je 0x4041a7
cmp al, 0xb
je 0x4041a7
cmp al, 0xc
je 0x4041b1
cmp al, 0xd
je 0x4041c4
cmp al, 0xe
je 0x4041e2
cmp al, 0xf
je 0x4041a7
cmp al, 0x11
je 0x4041a7
mov al, 2
pop edi
pop esi
pop ebx
jmp fcn.00402770
mov dword [ebx], ecx
add ebx, 4
dec edi
jg 0x4041a7
jmp 0x4041f6
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], ecx
add ebx, 0x10
dec edi
jg 0x4041b1
jmp 0x4041f6
push ebp
mov ebp, edx
mov edx, dword [esi + ebp + 0xa]
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov ecx, dword [esi + ebp + 6]
mov edx, dword [edx]
call 0x404168
dec edi
jg 0x4041c7
pop ebp
jmp 0x4041f6
push ebp
mov ebp, edx
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov edx, esi
call fcn.0040413c
dec edi
jg 0x4041e5
pop ebp
pop edi
pop esi
pop ebx
ret
mov ecx, 1
jmp 0x404168