joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a004]
jne 0x40100a
repz ret
jmp fcn.00401ac6

Function at 0x4068bb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004026f6
and dword [ebp - 0x14], 0
cmp dword [0x42c620], 0
mov dword [ebp - 0x18], eax
jne 0x40696e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406a16
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406a16
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42c620], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42c624], eax
call edi
push eax
call esi
push 0x428858
push ebx
mov dword [0x42c628], eax
call edi
push eax
call esi
mov dword [0x42c630], eax
test eax, eax
je 0x40696e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42c62c], eax
mov eax, dword [0x42c62c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4069c7
cmp dword [0x42c630], ecx
je 0x4069c7
push eax
call esi
push dword [0x42c630]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4069c7
test ebx, ebx
je 0x4069c7
call edi
test eax, eax
je 0x4069be
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4069be
test byte [ebp - 8], 1
jne 0x4069c7
or dword [ebp + 0x10], 0x200000
jmp 0x4069fa
mov eax, dword [0x42c624]
cmp eax, dword [ebp - 0x18]
je 0x4069fa
push eax
call esi
test eax, eax
je 0x4069fa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4069fa
mov eax, dword [0x42c628]
cmp eax, dword [ebp - 0x18]
je 0x4069fa
push eax
call esi
test eax, eax
je 0x4069fa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42c620]
call esi
test eax, eax
je 0x406a16
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406a18
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0x426450
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc2c
mov eax, dword [0x42a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc28], eax
cmp ebx, 0x182
jne 0x426485
lea ecx, [ebp - 0xc20]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
jmp 0x4264a3
cmp ebx, 0x19f
jne 0x4264a3
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push edi
xor edi, edi
test ebx, ebx
jle 0x426504
push esi
jmp 0x4264b0
lea esi, [ebp - 0xc24]
mov dword [ebp - 0xc24], 0
call fcn.00426440
mov dl, byte [ebp - 0xc24]
mov eax, dword [ebp - 0xc28]
xor byte [eax + edi], dl
cmp ebx, 0xf
jne 0x4264fe
lea eax, [ebp - 0xc2c]
push eax
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
lea edx, [ebp - 0xc04]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
inc edi
cmp edi, ebx
jl 0x4264b0
pop esi
pop edi
cmp ebx, 0x2d
jne 0x42651e
mov dword [0x42e008], 0xa62e7790
mov dword [0x42e00c], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x426530
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x42dffc]
push ebx
push esi
mov esi, dword [0x42dd1c]
mov ebx, eax
cmp eax, 0x5dd
jne 0x426552
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov eax, dword [0x42b1d0]
call fcn.00426410
cmp dword [0x42dffc], 0x2f
jne 0x42656d
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push esi
call fcn.00426450
add esp, 4
cmp dword [0x42dffc], 0x568
pop esi
pop ebx
jne 0x426598
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
ret
Function at 0x10008f50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x100bde80]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], 0x4f0cdb8d
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
sub eax, 0xbfd9ba27
je 0x100090bb
jmp 0x10008f8b
mov eax, dword [ebp - 0x24]
sub eax, 0xbfdfedc
je 0x100090cc
jmp 0x10008f9e
mov eax, dword [ebp - 0x24]
sub eax, 0x31898c57
je 0x10008fee
jmp 0x10008fb1
mov eax, dword [ebp - 0x24]
sub eax, 0x4f0cdb8d
je 0x10008fdc
jmp 0x10008fc4
mov eax, dword [ebp - 0x24]
sub eax, 0x514e9688
je 0x10009034
jmp 0x10008fd7
jmp 0x10009114
push eax
mov eax, esp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0x31898c57
jmp 0x10009114
mov eax, dword [0x100bf384]
mov ecx, dword [0x100bf380]
xor esi, esi
sub esi, 1
mov edx, eax
add edx, esi
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0xbfdfedc
mov ecx, 0x514e9688
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x18], eax
jmp 0x10009114
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], ecx
mov edx, dword [ebp - 0x14]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
mov ecx, dword [ebp - 0x10]
mov edi, dword [edx]
not byte [edi]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
add byte [edi], 0x64
sub byte [edi], 0x88
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
imul byte [edi]
inc edi
loop 0x10009054
mov eax, dword [0x100bf384]
mov ecx, dword [0x100bf380]
xor esi, esi
sub esi, 1
mov edx, eax
add edx, esi
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0xbfdfedc
mov ecx, 0xbfd9ba27
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x18], eax
jmp 0x10009114
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.10024e20
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], ecx
mov edx, dword [ebp - 0x14]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
mov ecx, dword [ebp - 0x10]
mov edi, dword [edx]
not byte [edi]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
add byte [edi], 0x64
sub byte [edi], 0x88
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
imul byte [edi]
inc edi
loop 0x100090ec
mov dword [ebp - 0x18], 0x514e9688
jmp 0x10008f75
Function at 0x10029e3a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10029e79
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10029e79
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10029e79
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10029e79
cmp dword [ecx + 0x74], 0xe
jbe 0x10029e79
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1002c804
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1002c8a1
push ebx
push esi
call fcn.1002c7cd
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1002c761
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002c84e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002c8a0
push edi
push eax
call fcn.1002b102
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1002c86e
call fcn.1002b150
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002c89f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1002c761
add esp, 0x20
test eax, eax
jne 0x1002c88d
push edi
call fcn.1002b150
jmp 0x1002c895
push ebx
call fcn.1002b150
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1002cb0e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10035780
push 0x10035778
push str.FlsAlloc
push 0x1f
call fcn.1002ca2a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002cb42
push dword [ebp + 8]
mov ecx, esi
call dword [0x10033150]
call esi
jmp 0x1002cb48
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1002cb8c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10035790
push 0x10035788
push str.FlsGetValue
push 0x21
call fcn.1002ca2a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002cbc3
push dword [ebp + 8]
mov ecx, esi
call dword [0x10033150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1002cbcb
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10035798
push 0x10035790
push str.FlsSetValue
push 0x22
call fcn.1002ca2a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002cc05
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10033150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10032120
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003214d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003214d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x404c9e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 1
pop eax
test eax, eax
je 0x404d8e
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
test dword [eax - 4], esp
invalid
inc dword [ebx - 0x6fb43]
mov ebp, 0xfffff904
invalid
push eax
call fcn.00402cf8
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.00402cad
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
jne 0x404ccb
jmp 0x40468a
cmp dword [ebp - 0x37c], 0
je 0x404cd9
jmp 0x404d8e
push 0
push 0
push 2
push 0
push 2
push 0x40000000
push dword [ebp - 0x3a0]
call dword [ebp - 0x3c8]
mov dword [ebp - 0x380], eax
cmp dword [ebp - 0x380], 0xffffffff
je 0x404d32
push 0
lea eax, [ebp - 0x6c4]
push eax
push dword [ebp - 0x38c]
push dword [ebp - 0x748]
push dword [ebp - 0x380]
call dword [ebp - 0x730]
push dword [ebp - 0x380]
call dword [ebp - 0x680]
jmp 0x404d37
jmp 0x40468a
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x404d7e
lea eax, [ebp - 0x714]
push eax
call fcn.00402cf8
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.00402cad
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x404d89
jmp 0x404d8e
jmp 0x40468a

Function at 0x407428
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1198]
mov eax, 0x1218
call fcn.0040ff60
mov eax, dword [0x4525e4]
xor eax, ebp
mov dword [ebp + 0x1194], eax
push esi
mov esi, dword [ebp + 0x11a4]
lea eax, [ebp - 0x74]
push edi
mov edi, dword [ebp + 0x11a0]
push edi
push 0x44db94
push 0x44dbc4
push 0xffffffffffffffff
push 0x1000
push eax
call fcn.004046a8
add esp, 0x18
lea eax, [ebp - 0x78]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x74]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4074c4
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0x208
push eax
lea eax, [ebp + 0xf8c]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push str.Path
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x78]
test eax, eax
je 0x4074dd
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp + 0x1194]
pop edi
xor ecx, ebp
pop esi
call fcn.0040ff49
add ebp, 0x1198
leave
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x80], 1
jne 0x4074c4
cmp dword [esi + 4], 0
je 0x4074f8
push dword [esi + 4]
call fcn.004205c9
pop ecx
push edi
call fcn.004146d8
mov ecx, eax
lea eax, [esi + 8]
push eax
push ecx
mov dword [esi + 4], ecx
call fcn.00406f86
add esp, 0xc
cmp dword [esi], 0
je 0x40751d
push dword [esi]
call fcn.004205c9
pop ecx
lea ecx, [ebp + 0xf8c]
push ecx
call fcn.004146d8
mov dword [esi], eax
xor eax, eax
pop ecx
inc eax
jmp 0x4074c6
Function at 0x408324
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4525e4]
xor eax, esp
mov dword [esp + 0x190], eax
cmp dword [0x461390], 0
jne 0x4083a0
push esi
push edi
xor edi, edi
push str.ws2_32.dll
inc edi
call fcn.0040c03b
mov esi, eax
pop ecx
test esi, esi
jne 0x40836a
push str.wsock32.dll
call fcn.0040c03b
mov esi, eax
xor edi, edi
pop ecx
test esi, esi
je 0x4083b5
lea eax, [esp + 8]
push eax
push 2
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x40837f
push 0xe
jmp 0x4083b7
test edi, edi
je 0x408394
push str.WSASendDisconnect
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x46138c], eax
pop edi
mov dword [0x461390], 1
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0040ff49
add esp, 0x194
ret
push 0xd
call fcn.00409ee8
pop ecx
push eax
call fcn.00408284
int3

Function at 0x409592
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xf90]
mov eax, 0x1010
call fcn.0040ff60
mov eax, dword [0x4525e4]
xor eax, ebp
mov dword [ebp + 0xf8c], eax
push ebx
mov ebx, dword [ebp + 0xf98]
lea eax, [ebp - 0x78]
push esi
push eax
push 0x20019
push 0
push 0x44f410
xor esi, esi
mov dword [ebp - 0x7c], 0x400
push reloc.OLEAUT32.dll_SysReAllocString
inc esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40968f
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x78c]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push str.CurrentVersion
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x78]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
test eax, eax
lea eax, [ebp + 0x78c]
push eax
push str.SoftwareJavaSoftJava_Runtime_Environment
push 0x44f4e0
lea eax, [ebp - 0x74]
cmovne esi, ecx
push 0x400
push eax
call fcn.004099fb
add esp, 0x14
lea eax, [ebp - 0x78]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x74]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40968f
lea eax, [ebp + 0xf9c]
push eax
push ebx
lea eax, [ebp - 0x80]
push eax
push 0
push 0x44f4ec
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x78]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
mov ecx, dword [ebp + 0xf8c]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ff49
add ebp, 0xf90
leave
ret
Function at 0x409827
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4525e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x409851
xor eax, eax
jmp 0x40989b
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x409892
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebp - 0x228], ebx
je 0x40988b
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x409870
jmp 0x409891
mov esi, dword [ebp - 0x218]
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040ff49
leave
ret

Function at 0x4098a9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
xor esi, esi
lea eax, [ebp + 0xc]
push eax
push 0x20019
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4098ff
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push esi
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0xc]
test eax, eax
jne 0x4098f9
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x409901
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
leave
ret

Function at 0x409daa
Capabilities:
Terminate process

Disassembly:
push 0xb
call fcn.00409ee8
pop ecx
push eax
push 2
call fcn.00420f4e
pop ecx
push eax
call fcn.004099e3
pop ecx
pop ecx
call fcn.00421336
push dword [esp + 4]
cmp dword [eax], 0
je 0x409dd9
call fcn.00422334
pop ecx
jmp 0x409def
push str._t_s_n
push 2
call fcn.00420f4e
pop ecx
push eax
call fcn.004099e3
add esp, 0xc
jmp fcn.00409d9d
Function at 0x40e0c5
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x4014
call fcn.0040ff60
mov eax, dword [0x4525e4]
xor eax, esp
mov dword [esp + 0x4010], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x4024]
lea eax, [esp + 0x1c]
push edi
mov ebp, 0x1000
mov dword [esp + 0x1c], esi
xor ebx, ebx
push ebp
push ebx
push eax
mov edi, ebx
call fcn.00411e00
push ebp
lea eax, [esp + 0x1030]
push ebx
push eax
call fcn.00411e00
add esp, 0x18
mov dword [esp + 0x10], 0x800
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebx
push 0x440080
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e244
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [esp + 0x34]
push eax
push ebx
push dword [esp + 0x34]
call ebp
test eax, eax
jne 0x40e244
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x20]
push eax
push 0x4400d8
push 0x440130
lea eax, [esp + 0x102c]
push 0x800
push eax
call fcn.004099fb
add esp, 0x14
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
lea eax, [esp + 0x102c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e21c
push 0x1000
push eax
lea eax, [esp + 0x2028]
push eax
call fcn.00411e00
add esp, 0xc
mov dword [esp + 0x10], 0x800
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2024]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0x44013c
push dword [esp + 0x28]
call ebx
test eax, eax
jne 0x40e21c
cmp dword [esp + 0x10], eax
jbe 0x40e21c
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x800
push eax
lea eax, [esp + 0x3024]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0x440154
push dword [esp + 0x28]
call ebx
xor eax, eax
mov dword [esp + 0x10], 0x800
push eax
push eax
push eax
push eax
lea eax, [esp + 0x20]
inc edi
push eax
lea eax, [esp + 0x34]
push eax
push edi
push dword [esp + 0x34]
call ebp
test eax, eax
je 0x40e167
lea eax, [esp + 0x3020]
mov ecx, esi
push eax
call fcn.0040d414
mov ecx, dword [esp + 0x4020]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040ff49
add esp, 0x4014
ret

Function at 0x40e841
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
call fcn.0040eb6c
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax*2 + 2]
lea eax, [ebp - 4]
push eax
push 0x20006
push esi
push dword [0x4525dc]
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40e884
xor eax, eax
jmp 0x40e8a9
push edi
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40e89e
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x100b6c0
Capabilities:
Enumerate pe sections

Disassembly:
push 0x5c
push 0x10203f8
call fcn.0100be74
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1023a40
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100b47b
cmp eax, esi
jne 0x100b46e
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100b47e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100b455
xor esi, esi
inc esi
mov eax, dword [0x1023a3c]
cmp eax, esi
jne 0x100b491
push 0x1f
call fcn.0100be66
pop ecx
jmp 0x100b4c0
mov eax, dword [0x1023a3c]
test eax, eax
jne 0x100b4ba
mov dword [0x1023a3c], esi
push 0x100153c
push 0x1001530
call fcn.0100b3b7
pop ecx
pop ecx
test eax, eax
je 0x100b4c0
jmp 0x100b5e4
mov dword [0x1023408], esi
mov eax, dword [0x1023a3c]
cmp eax, esi
jne 0x100b4e4
push 0x100152c
push 0x1001518
call fcn.0100be5a
pop ecx
pop ecx
mov dword [0x1023a3c], 2
cmp dword [ebp - 0x20], ebx
jne 0x100b4f1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1023a50], ebx
je 0x100b512
push 0x1023a50
call fcn.0100bde9
pop ecx
test eax, eax
je 0x100b512
push ebx
push 2
push ebx
call dword [0x1023a50]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x100b5e4
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x100b57c
cmp cx, bx
je 0x100b537
cmp dword [ebp - 0x1c], ebx
jne 0x100b57c
movzx ecx, word [eax]
cmp cx, bx
je 0x100b54c
cmp cx, 0x20
ja 0x100b54c
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x100b537
test byte [ebp - 0x40], 1
je 0x100b558
movzx ecx, word [ebp - 0x3c]
jmp 0x100b55b
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1023404], eax
cmp dword [0x10233f8], ebx
jne 0x100b5c1
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x100b58d
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x100b521
cmp dword [0x1023408], ebx
jne 0x100b5cf
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1023404]
jmp 0x100b5f0
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0100beb9
ret
call fcn.0100bf97
jmp 0x100b418