joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a9521
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi + 0xc8], 0
jne 0x4a95c6
cmp dword [edi + 0xb8], 0
je 0x4a95c6
push esi
call fcn.00496f4c
push 5
push dword [edi + 0xb8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4a95c5
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4a95c4
call fcn.00496f4c
mov esi, dword [eax + 0x3c]
test esi, esi
je 0x4a95c4
push 0x10
call fcn.004878b4
mov edx, dword [esi]
pop ecx
push ebx
push eax
mov ecx, esi
mov dword [ebp - 4], eax
call dword [edx + 0x14]
mov ecx, dword [edi + 0xcc]
mov ebx, dword [ebp - 4]
mov dword [edi + 0xc8], ebx
test ecx, ecx
je 0x4a95be
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x18]
push 0x10
push dword [edi + 0xcc]
call fcn.005bb24c
pop ecx
pop ecx
mov dword [edi + 0xcc], ebx
pop ebx
pop esi
mov eax, dword [edi + 0xc8]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x597140
Capabilities:
Get common file path

Disassembly:
push 0x228
mov eax, 0x6074a5
call fcn.005bb181
mov ebx, ecx
mov dword [ebp - 0x230], ebx
call fcn.005a6a88
push 0x1c4
call fcn.004878b4
pop ecx
mov dword [ebp - 0x22c], eax
and dword [ebp - 4], 0
test eax, eax
je 0x597183
push 0
push dword [ebx + 0x60]
mov ecx, eax
call fcn.005a709f
jmp 0x597185
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
push eax
call fcn.005a5ed2
call fcn.00496f4c
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x8c]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x218]
push eax
call fcn.005cab7e
mov esi, eax
pop ecx
push 0x5c
pop eax
mov word [ebp + esi*2 - 0x218], ax
inc esi
mov dword [ebp - 0x22c], esi
lea eax, [esi + esi]
cmp eax, 0x208
jae 0x59739c
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
xor eax, eax
mov dword [ebp - 0x228], eax
test edi, edi
je 0x597396
xor ebx, ebx
cmp dword [edi + 4], eax
jle 0x597396
call fcn.004887ac
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040654d
mov eax, dword [edi]
xor ecx, ecx
inc ecx
push ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x218]
push esi
push ecx
push ebx
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, edi
call dword [eax + 0xc]
test eax, eax
je 0x59737a
push 0x6347c0
mov esi, 0x6347c8
lea ecx, [ebp - 0x21c]
push esi
call fcn.004097ea
push esi
push 0x60bc30
lea ecx, [ebp - 0x21c]
call fcn.004097ea
push esi
push 0x6347c0
lea ecx, [ebp - 0x21c]
call fcn.004097ea
call fcn.004887ac
push eax
lea ecx, [ebp - 0x220]
call fcn.0040654d
mov eax, dword [ebp - 0x228]
mov byte [ebp - 4], 2
cmp eax, 9
jne 0x5972b0
push dword [ebp - 0x21c]
lea eax, [ebp - 0x220]
push str.10__Ts
push eax
call fcn.00406c3b
add esp, 0xc
jmp 0x5972e2
jge 0x5972d0
push dword [ebp - 0x21c]
inc eax
push eax
lea eax, [ebp - 0x220]
push str._d__Ts
push eax
call fcn.00406c3b
add esp, 0x10
jmp 0x5972e2
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.004067de
push 0x1c4
call fcn.004878b4
pop ecx
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x59730c
mov ecx, eax
call fcn.0054d30f
mov ecx, eax
mov dword [ebp - 0x224], eax
jmp 0x597314
xor ecx, ecx
mov dword [ebp - 0x224], ecx
mov eax, dword [ecx]
mov esi, dword [ebp - 0x220]
push esi
mov byte [ebp - 4], 2
call dword [eax + 0xb4]
mov ecx, dword [ebp - 0x224]
lea eax, [ebx + 0xe110]
push eax
mov edx, dword [ecx]
call dword [edx + 0xb0]
push ebx
mov ecx, edi
call fcn.0044883c
mov ecx, dword [ebp - 0x224]
push dword [eax]
mov edx, dword [ecx]
call dword [edx + 0xc8]
mov ecx, dword [ebp - 0x224]
push ecx
mov ecx, dword [ebp - 0x230]
call fcn.005a5ed2
inc dword [ebp - 0x228]
lea ecx, [esi - 0x10]
call fcn.00406e44
mov esi, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x21c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00406e44
inc ebx
cmp ebx, dword [edi + 4]
jl 0x597205
call fcn.005bb12b
ret
call fcn.005bbf1f
int3
Function at 0x5d036a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x5d037d
xor eax, eax
jmp 0x5d0420
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0x78]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
jmp 0x5d03bc
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x18]
jae 0x5d041e
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.005d031a
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x5d041c
mov edx, dword [ebp - 8]
jmp 0x5d03b3
xor eax, eax
Function at 0x5d8ef4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005d8bb7

Function at 0x5d8eff
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005d8d38

Function at 0x5dbed4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005db842

Function at 0x5dbedf
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005dba7d

Function at 0x41cee0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
or ebp, 0xffffffff
jmp 0x41cf02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41cf09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41cef8
mov eax, 1
add ebx, ebx
jne 0x41cf1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41cf10
jne 0x41cf2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41cf10
xor ecx, ecx
sub eax, 3
jb 0x41cf40
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41cfb2
mov ebp, eax
add ebx, ebx
jne 0x41cf4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41cf58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41cf7c
inc ecx
add ebx, ebx
jne 0x41cf68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41cf5d
jne 0x41cf79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41cf5d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41cf9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41cf8d
jmp 0x41cefe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41cf9c
add edi, ecx
jmp 0x41cefe
pop esi
mov edi, esi
mov ecx, 0x157
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41cfba
cmp byte [edi], 0
jne 0x41cfba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x41cfbf
lea edi, [esi + 0x1a000]
mov eax, dword [edi]
or eax, eax
je 0x41d02e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1d0b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1d100]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41cfec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1d104]
or eax, eax
je 0x41d028
mov dword [ebx], eax
add ebx, 4
jmp 0x41d009
call dword [esi + 0x1d108]
popal
jmp 0x403ab4
Function at 0x10019ab
Capabilities:
Delete file
Enumerate disk volumes
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x10150c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1001a47
push edi
lea edi, [esi + 0x13]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1001a2c
lea eax, [ebp - 0x210]
push eax
push edi
lea eax, [ebp - 0x440]
push eax
call fcn.01001845
push 0x1001a58
push edi
lea eax, [ebp - 0x440]
push eax
call fcn.010018e7
lea eax, [ebp - 0x440]
push eax
call fcn.01001a73
test eax, eax
jne 0x10091b6
push esi
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x10019e0
push ebx
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.010015a4
leave
ret
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1001a2c

Function at 0x1001a73
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
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 0x80000000
push dword [ebp + 8]
mov dword [ebp - 4], ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x1009043
xor edi, edi
cmp edi, 1
je 0x100907a
cmp esi, ebx
jne 0x10090a9
cmp dword [ebp + 8], 0xffffffff
jne 0x10090b5
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, 0x8000
push eax
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x1001aa8
push ebx
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
add eax, 0xfffffffe
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
jmp 0x1001aaa
mov eax, dword [ebp - 4]
push esi
push edi
push ebx
push ebx
mov byte [esi + eax], bl
mov eax, dword [ebp - 4]
push 0x400003e9
push 4
mov byte [esi + eax + 1], bl
call fcn.0100e37b
add esp, 0x18
test eax, eax
je 0x1001ab3
xor edi, edi
jmp 0x1001ab3
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1001abb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001ac5
Function at 0x10020d8
Capabilities:
Listen for remote procedure calls

Disassembly:
push 0x5c
push 0x10021f8
call fcn.010027d1
mov dword [ebp - 0x6c], 0xd
xor esi, esi
mov dword [ebp - 4], esi
push 0x1011bf1
mov edi, 0x4d2
push edi
push 0x28
push esi
push esi
push dword [0x10156b4]
call dword [sym.imp.RPCRT4.dll_RpcServerRegisterIfEx]
mov dword [ebp - 0x6c], eax
cmp eax, esi
jne 0x1009943
xor ebx, ebx
inc ebx
mov dword [0x1015120], ebx
push 0x10151e8
call dword [sym.imp.RPCRT4.dll_RpcServerInqBindings]
mov dword [ebp - 0x6c], eax
cmp eax, esi
jne 0x1009976
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x1d4]
push 0x1003168
push 0x25
lea eax, [ebp - 0x68]
push eax
call fcn.01002691
add esp, 0x10
mov esi, 0x1015250
push esi
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.RPCRT4.dll_UuidFromStringW]
mov dword [ebp - 0x6c], eax
test eax, eax
jne 0x10099a8
mov dword [0x1015148], ebx
mov dword [0x101514c], esi
push dword [ebp + 8]
call fcn.0100208f
mov dword [ebp - 0x6c], eax
xor esi, esi
cmp eax, esi
jne 0x10099da
push esi
push 0x1015148
push dword [0x10151e8]
push dword [0x10156b4]
call dword [sym.imp.RPCRT4.dll_RpcEpRegisterW]
mov dword [ebp - 0x6c], eax
cmp eax, esi
jne 0x1009a09
mov dword [0x101511c], ebx
push ebx
push edi
push ebx
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
mov dword [ebp - 0x6c], eax
cmp eax, 0x6b1
jne 0x10021d2
mov dword [ebp - 0x6c], esi
cmp dword [ebp - 0x6c], esi
jne 0x1009a38
mov dword [ebp - 4], 0xfffffffe
call fcn.01002243
mov eax, dword [ebp - 0x6c]
call fcn.0100228c
ret 4
mov eax, dword [0x10150c0]
cmp eax, 0x10150c0
je 0x10021db
test byte [eax + 0x1c], 1
je 0x10021db
cmp byte [eax + 0x19], 2
jb 0x10021db
push dword [ebp - 0x6c]
push 0x100ab60
push 0x15
jmp 0x1009a65
mov eax, dword [0x10150c0]
cmp eax, 0x10150c0
je 0x10021db
test byte [eax + 0x1c], bl
je 0x10021db
cmp byte [eax + 0x19], 2
jb 0x10021db
push dword [ebp - 0x6c]
push 0x100ab60
push 0x16
jmp 0x1009a65
mov eax, dword [0x10150c0]
cmp eax, 0x10150c0
je 0x10021db
test byte [eax + 0x1c], bl
je 0x10021db
cmp byte [eax + 0x19], 2
jb 0x10021db
push dword [ebp - 0x6c]
push 0x100ab60
push 0x17
jmp 0x1009a65
mov eax, dword [0x10150c0]
cmp eax, 0x10150c0
je 0x10021db
test byte [eax + 0x1c], bl
je 0x10021db
cmp byte [eax + 0x19], 2
jb 0x10021db
push dword [ebp - 0x6c]
push 0x100ab60
push 0x18
jmp 0x1009a65
mov eax, dword [0x10150c0]
cmp eax, 0x10150c0
je 0x10021db
test byte [eax + 0x1c], bl
je 0x10021db
cmp byte [eax + 0x19], 2
jb 0x10021db
push dword [ebp - 0x6c]
push 0x100ab60
push 0x19
jmp 0x1009a65
mov eax, dword [0x10150c0]
cmp eax, 0x10150c0
je 0x10021db
test byte [eax + 0x1c], bl
je 0x10021db
cmp byte [eax + 0x19], 2
jb 0x10021db
push dword [ebp - 0x6c]
push 0x100ab60
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002f89
jmp 0x10021db
Function at 0x10026f2
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 8], esi
push dword [ebp + 8]
mov dword [ebp - 0xc], 4
mov dword [ebp - 4], esi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1002741
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
cmp eax, esi
je 0x1002747
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], esi
pop esi
je 0x1002756
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret 0x10
Function at 0x1002f01
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
cmp dword [0x10156bc], esi
jne 0x1002f7c
push ebx
lea eax, [ebp - 4]
push eax
xor ebx, ebx
inc ebx
push ebx
push esi
push 0x10025c0
push 0x80000002
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, esi
je 0x100748b
mov ecx, dword [0x10150c0]
cmp ecx, 0x10150c0
je 0x1002f72
test byte [ecx + 0x1c], bl
je 0x1002f72
cmp byte [ecx + 0x19], 3
jb 0x1002f72
push eax
push 0x10025ac
push 0x66
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01002f89
pop ebx
cmp dword [ebp - 4], esi
jne 0x10074ff
mov eax, dword [0x10156b8]
pop esi
leave
ret
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x1007510
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
cmp eax, esi
je 0x10074e7
mov ecx, dword [0x10150c0]
cmp ecx, 0x10150c0
je 0x1002f72
test byte [ecx + 0x1c], bl
je 0x1002f72
cmp byte [ecx + 0x19], 3
jb 0x1002f72
push eax
push 0x10025ac
push 0x67
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01002f89
jmp 0x1002f72
xor eax, eax
cmp dword [ebp - 8], esi
mov dword [0x10156bc], ebx
setne al
mov dword [0x10156b8], eax
jmp 0x1002f72
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x1002f7c
Function at 0x1003e5a
Capabilities:
Check for peb beingdebugged flag
Check systemkerneldebuggerinformation
Get system information on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor ebx, ebx
push ebx
push 2
lea eax, [ebp - 4]
push eax
xor edi, edi
push 0x23
inc edi
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp byte [ebp - 4], bl
je 0x100a620
push esi
push 0x1012229
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push 0x1006898
push 0x80000002
mov dword [ebp - 8], ebx
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003ee4
push 4
pop esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x1003f30
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x100a637
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp edi, ebx
je 0x1003f24
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x20
call dword [sym.imp.ntdll.dll_NtSystemDebugControl]
mov esi, eax
mov eax, dword [0x10150c0]
cmp eax, 0x10150c0
je 0x1003f09
test byte [eax + 0x1c], 8
jne 0x100a64d
push ebx
mov eax, 0xea60
push eax
push eax
xor eax, eax
cmp esi, ebx
setl al
dec eax
push eax
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SetTimerQueueTimer]
pop esi
pop edi
xor eax, eax
pop ebx
leave
ret 4
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
cmp byte [eax + 2], bl
jne 0x1003e81
jmp 0x1003f25
cmp dword [ebp - 0x10], esi
jne 0x1003ed7
cmp dword [ebp - 0x14], ebx
sete al
mov edi, eax
jmp 0x1003ed7
cmp byte [eax + 0x19], 5
jb 0x1003f09
push esi
push 0x100ab80
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002f89
jmp 0x1003f09
Function at 0x1004385
Capabilities:
Get hostname
Query environment variable
Query or enumerate registry value
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1040
call fcn.01003f4c
mov eax, dword [0x10150c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x1038]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x1034], esi
mov dword [ebp - 0x1038], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x10043d9
push 1
lea eax, [ebp - 0x24]
push eax
push 0x1006570
push esi
call fcn.01004511
lea eax, [ebp - 0x1030]
push eax
push 0x20019
xor edi, edi
push edi
push 0x10044b8
push 0x80000002
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x100449e
push ebx
mov ebx, 0x401
lea eax, [ebp - 0x103c]
push eax
lea eax, [ebp - 0x102c]
push eax
lea eax, [ebp - 0x1040]
push eax
push 0
push dword [edi + 0x10156c0]
mov dword [ebp - 0x103c], 0x802
push dword [ebp - 0x1030]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1004485
push ebx
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x102c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1004485
cmp eax, ebx
jae 0x1004485
push 1
lea eax, [ebp - 0x828]
push eax
lea esi, [edi + 0x10156c4]
push dword [esi]
push dword [ebp - 0x1034]
call fcn.01004511
lea eax, [ebp - 0x828]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add edi, 8
cmp edi, 0x10
jb 0x1004406
push dword [ebp - 0x1030]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.010015a4
leave
ret 4
Function at 0x1004dc8
Capabilities:
Terminate process

Disassembly:
call fcn.01003c5c
push 0x58
push 0x1004ee0
call fcn.010017fb
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x1015178
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x100969a
xor esi, esi
inc esi
mov eax, dword [0x1015134]
cmp eax, esi
je 0x10096b8
mov eax, dword [0x1015134]
test eax, eax
jne 0x1004f36
mov dword [0x1015134], esi
push 0x1004ed8
push 0x1004ecc
call fcn.01004d9f
pop ecx
pop ecx
test eax, eax
jne 0x1009784
mov eax, dword [0x1015134]
cmp eax, esi
jne 0x1004e79
push 0x1004ec8
push 0x1004ec0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1015134], 2
test ebx, ebx
jne 0x1004e85
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1015704], 0
jne 0x10096c5
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
jbe 0x1004f08
cmp al, 0x22
je 0x1009718
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
jne 0x1009728
inc esi
jmp 0x1004e99
test al, al
jne 0x1004f41
mov al, byte [esi]
test al, al
jne 0x10096e9
test byte [ebp - 0x3c], 1
jne 0x10096fa
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call fcn.0100290c
jmp 0x1009703
mov dword [0x10158b8], esi
jmp 0x1004e55
cmp dword [ebp - 0x1c], 0
je 0x1004f0c
jmp 0x1004ea2
cmp eax, esi
jne 0x10096a8
xor esi, esi
inc esi
mov ebx, esi
jmp 0x1004e1c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1004e07
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1004e55
push 0x1015704
call fcn.01010159
pop ecx
test eax, eax
je 0x1004e92
push 0
push 2
push 0
call dword [0x1015704]
jmp 0x1004e92
cmp al, 0x20
ja 0x1004f16
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1004f0c
movzx eax, word [ebp - 0x38]
jmp 0x1004f23
mov dword [0x10158b4], eax
cmp dword [0x101510c], 0
jne 0x1009760
push eax
call dword [sym.imp.msvcrt.dll_exit]
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
jmp 0x1004eaa
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1004ebd
cmp dword [0x10158b8], 0
jne 0x100976f
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10158b4]
jmp 0x1009790
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010015e2
ret
Function at 0x1005783
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10150c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push 0
push 5
call sub.profapi.dll_Ordinal_104
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jl 0x1009a7f
lea eax, [ebp - 0x20c]
push eax
push 0x1005878
call edi
push esi
lea eax, [ebp - 0x20c]
push eax
push 0
push 3
call sub.profapi.dll_Ordinal_104
test eax, eax
jl 0x10057ef
lea eax, [ebp - 0x20c]
push eax
push 0x1005868
call edi
push esi
lea eax, [ebp - 0x20c]
push eax
push 0
push 4
call sub.profapi.dll_Ordinal_104
test eax, eax
jl 0x1005820
lea eax, [ebp - 0x20c]
push eax
push 0x1005850
call edi
lea eax, [ebp - 0x20c]
push eax
push 0x1005830
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.010015a4
leave
ret
mov eax, dword [0x10150c0]
cmp eax, 0x10150c0
je 0x10057cc
test byte [eax + 0x1c], 1
je 0x10057cc
cmp byte [eax + 0x19], 2
jb 0x10057cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x10150c0]
push 0x10017bc
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002f89
jmp 0x10057cc