joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
sub esp, 0x158
mov eax, dword [0x408030]
xor eax, dword [esp + 0x158]
push ebx
push esi
push edi
mov dword [esp + 0x160], eax
xor ebx, ebx
push 0x100
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0x40614e
mov dword [esp + 0x30], ebx
mov word [esp + 0x56], bx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x50], 0x100
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x60]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x401060
mov cx, word [0x40614c]
mov eax, dword [esp + 0x168]
mov word [edi], cx
mov edx, eax
jmp 0x401080
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401080
lea edi, [esp + 0x60]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x401090
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x20]
push eax
push ebx
push ebx
push ebx
push 1
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
push ebx
lea ecx, [esp + 0x80]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [esp + 0xc]
push ebx
push edx
mov esi, eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov ecx, dword [esp + 0x160]
xor ecx, dword [esp + 0x164]
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x158
jmp fcn.00401d13

Function at 0x401100
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
sub esp, 0x158
mov eax, dword [0x408030]
xor eax, dword [esp + 0x158]
push ebx
push esi
push edi
mov dword [esp + 0x160], eax
xor ebx, ebx
push 0x100
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], str.WinSta0Default
mov dword [esp + 0x30], ebx
mov word [esp + 0x56], bx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x50], 0x100
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x60]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x401160
mov cx, word [0x40614c]
mov eax, dword [esp + 0x16c]
mov word [edi], cx
mov edx, eax
jmp 0x401180
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401180
lea edi, [esp + 0x60]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x401190
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x16c]
lea eax, [esp + 0x20]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x80]
push ecx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov ecx, dword [esp + 0x160]
mov eax, dword [esp + 0xc]
xor ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
add esp, 0x158
jmp fcn.00401d13
Function at 0x4012b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x408030]
xor eax, dword [ebp + 4]
push edi
mov dword [esp + 0xa4], eax
xor eax, eax
mov ecx, 0x25
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401360
mov eax, dword [esp + 0x18]
dec eax
je 0x401376
dec eax
jne 0x401360
mov eax, dword [esp + 0xc]
cmp eax, 4
ja 0x40131c
mov eax, 0x28
mov ecx, dword [esp + 0xa4]
xor ecx, dword [ebp + 4]
call fcn.00401d13
pop edi
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x401360
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x401342
mov eax, 0x7d0
mov ecx, dword [esp + 0xa4]
xor ecx, dword [ebp + 4]
call fcn.00401d13
pop edi
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x401360
mov eax, 0x7d2
mov ecx, dword [esp + 0xa4]
xor ecx, dword [ebp + 4]
call fcn.00401d13
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [esp + 0xa4]
xor ecx, dword [ebp + 4]
call fcn.00401d13
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
cmp eax, 4
ja 0x4013a2
jne 0x401389
mov eax, dword [esp + 0x10]
test eax, eax
ja 0x4013a2
mov eax, 0x5f
mov ecx, dword [esp + 0xa4]
xor ecx, dword [ebp + 4]
call fcn.00401d13
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xa4]
xor ecx, dword [ebp + 4]
mov eax, 0x62
call fcn.00401d13
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x401a10
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
push esi
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xc
call fcn.004012b0
cmp eax, 0x7d0
jne 0x401ab7
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x401840
push 0
lea ecx, [esp + 0x1c]
push ecx
call esi
push 0x4082e8
push 0
push 0
push fcn.00401c20
push 0
lea edx, [esp + 0x1c]
push edx
call esi
push str.EloLaunchQuit
push 0
mov dword [0x4082e4], eax
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 1
push 0x401c70
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x401aa0
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 0x10
ret
cmp eax, 0x7d2
jne 0x401ac5
push 0
call fcn.00401c20
xor eax, eax
pop esi
add esp, 0x10
ret

Function at 0x401ad0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x408030]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov dword [esp + 0x13c], eax
xor eax, eax
push eax
mov dword [esp + 0x14], 0
mov ecx, 0x49
lea edi, [esp + 0x18]
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401b82
lea eax, [esp + 0x10]
push eax
push ebx
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401b5e
lea esp, [esp]
lea ecx, [esp + 0x34]
push ecx
mov edi, str.explorer.exe
call fcn.004055d6
add esp, 4
mov esi, eax
mov ecx, 0xd
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x401b9a
lea eax, [esp + 0x10]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401b30
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2710
call fcn.00401280
add esp, 4
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401b12
xor eax, eax
mov ecx, dword [esp + 0x13c]
xor ecx, dword [ebp + 4]
call fcn.00401d13
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x13c]
xor ecx, dword [ebp + 4]
mov eax, 1
call fcn.00401d13
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401d46
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x406268
call fcn.004020ac
mov edi, 0x94
mov eax, edi
call fcn.00402cd0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x408318], ecx
mov eax, dword [esi + 4]
mov dword [0x408324], eax
mov edx, dword [esi + 8]
mov dword [0x408328], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40831c], esi
cmp ecx, 2
je 0x401da6
or esi, 0x8000
mov dword [0x40831c], esi
shl eax, 8
add eax, edx
mov dword [0x408320], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x401ddf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401ddf
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401df7
cmp eax, 0x20b
je 0x401de4
mov dword [ebp - 0x1c], edi
jmp 0x401e0b
cmp dword [ecx + 0x84], 0xe
jbe 0x401ddf
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x401e05
cmp dword [ecx + 0x74], 0xe
jbe 0x401ddf
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.00402c78
pop ecx
test eax, eax
jne 0x401e37
cmp dword [0x408304], 2
je 0x401e24
call fcn.0040248a
push 0x1c
call fcn.00402313
push 0xff
call fcn.0040217c
pop ecx
pop ecx
call fcn.00402bd6
mov dword [ebp - 4], edi
call fcn.00402a2b
test eax, eax
jge 0x401e50
push 0x1b
call fcn.00401d21
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x408854], eax
call fcn.00402909
mov dword [0x4082fc], eax
call fcn.00402867
test eax, eax
jge 0x401e76
push 8
call fcn.00401d21
pop ecx
call fcn.00402634
test eax, eax
jge 0x401e87
push 9
call fcn.00401d21
pop ecx
call fcn.004021ac
mov dword [ebp - 0x20], eax
cmp eax, edi
je 0x401e9a
push eax
call fcn.00401d21
pop ecx
mov eax, dword [0x408338]
mov dword [0x40833c], eax
push eax
push dword [0x408330]
push dword [0x40832c]
call fcn.00401a10
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x1c], edi
jne 0x401ec9
push esi
call fcn.004022d3
call fcn.004022f5
jmp 0x401efb
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.004020e7
ret
Function at 0x402211
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x408358], esi
push edi
jne 0x402231
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x408354], esi
mov byte [0x408350], al
jne 0x402297
mov ecx, dword [0x408848]
test ecx, ecx
je 0x402278
mov eax, dword [0x408844]
sub eax, 4
cmp eax, ecx
jmp 0x402271
mov eax, dword [eax]
test eax, eax
je 0x402263
call eax
mov eax, dword [0x408844]
sub eax, 4
cmp eax, dword [0x408848]
mov dword [0x408844], eax
jae 0x40225b
mov eax, 0x40801c
mov esi, 0x408020
cmp eax, esi
mov edi, eax
jae 0x402297
mov eax, dword [edi]
test eax, eax
je 0x402290
call eax
add edi, 4
cmp edi, esi
jb 0x402288
mov eax, 0x408024
mov esi, 0x408028
cmp eax, esi
mov edi, eax
jae 0x4022b6
mov eax, dword [edi]
test eax, eax
je 0x4022af
call eax
add edi, 4
cmp edi, esi
jb 0x4022a7
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4022d1
push dword [ebp + 8]
mov dword [0x408358], 1
call fcn.0040217c
pop ecx
pop ebp
ret

Function at 0x402313
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x408030]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x408040]
je 0x402340
inc eax
cmp eax, 0x12
jb 0x402331
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x408040]
jne 0x402474
mov eax, dword [0x408304]
cmp eax, 1
je 0x40244f
cmp eax, edx
jne 0x402370
cmp dword [0x408038], 1
je 0x40244f
cmp ecx, 0xfc
je 0x402474
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4023a9
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00402e10
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00403040
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4023eb
lea eax, [ebp - 0x10c]
push eax
call fcn.00403040
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4062ac
push edi
call fcn.00402f10
add esp, 0x10
push edi
call fcn.00403040
push dword [esi + 0x408044]
mov ebx, eax
call fcn.00403040
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00402cd0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00402e10
push edi
push ebx
call fcn.00402e20
push 0x4062a8
push ebx
call fcn.00402e20
push dword [esi + 0x408044]
push ebx
call fcn.00402e20
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00402d0d
add esp, 0x2c
jmp 0x402474
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x408044]
push dword [esi]
call fcn.00403040
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00401d13
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402d0d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x408474], ebx
push esi
push edi
jne 0x402d8d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x402dc8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x408474], eax
je 0x402dc8
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x408478], eax
call esi
cmp dword [0x408318], 2
mov dword [0x40847c], eax
jne 0x402d8d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x408484], eax
je 0x402d8d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x408480], eax
mov eax, dword [0x408480]
test eax, eax
je 0x402dd2
call eax
test eax, eax
je 0x402db9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x408484]
test eax, eax
je 0x402db9
test byte [ebp - 8], 1
jne 0x402dd2
cmp dword [0x408324], 4
jb 0x402dcc
or byte [ebp + 0x12], 0x20
jmp 0x402df1
xor eax, eax
jmp 0x402e01
or byte [ebp + 0x12], 4
jmp 0x402df1
mov eax, dword [0x408478]
test eax, eax
je 0x402df1
call eax
mov ebx, eax
test ebx, ebx
je 0x402df1
mov eax, dword [0x40847c]
test eax, eax
je 0x402df1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x408474]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4052d8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00402cd0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40536d
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x408318]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x40536d
cmp eax, 1
je 0x405385
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40536d
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x405342
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x405369
xor eax, eax
inc eax
jmp 0x4053a1
cmp esi, ebx
jae 0x405371
xor eax, eax
jmp 0x4053a1
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x408318]
jmp 0x405387
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x401a2d
Capabilities:
Create thread

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x24
call fcn.00401e90
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x401851
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
mov dword [esp], 0xffffffff
call sub.KERNEL32.dll_Sleep
sub esp, 4
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret

Function at 0x401b80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x401ba6
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x401c3a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401bf5
cmp eax, 0x40
je 0x401bf5
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401b99
cmp eax, 0x40
je 0x401b99
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x401b99
mov dword [esp + 8], 0x34
mov dword [esp + 4], 0x404054
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sub.msvcrt.dll__assert
lea esi, [esi]
lea edi, [edi]

Function at 0x28d856a
Capabilities:
Encode data using xor

Disassembly:
setge al
call fcn.0181f4dd
push esp
mov dword [ebp - 4], eax
push dword [esp]
push dword [esp + 0xc]
mov byte [esp], 0x64
xchg dword [esp + 0x10], eax
seta ah
setne al
pushfd
mov dword [esp + 0x10], 0
lea esp, [esp + 0x10]
js 0x181e285
pushal
not eax
bswap ax
lea eax, sym.imp.KERNEL32.dll_LocalAlloc
pushfd
call fcn.0181f34d

Function at 0x28d8f85
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea esp, [esp + 8]
je 0x28dc80f
rcr dl, cl
adc dh, dh
sar si, cl
mov esi, dword [eax + 0x3c]
test bl, 0x17
add esi, eax
btr dx, di
mov edx, dword [esi + 0x78]
stc
bt esp, eax
test edx, edx
jmp 0x1821a99
jmp 0x15b2549

Function at 0x28dc1ee
Capabilities:
Encode data using xor

Disassembly:
mov edi, dword [esp + 0x28]
call fcn.028db3fd
aas
mov dword [0x16e65315], eax
dec edx
jnp 0x28dc238
das
or cl, byte [eax + 0x2f]
pop ds
invalid
invalid
Function at 0x4010b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4010c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401104
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401100
lea ebx, [ebx]
cmp esi, eax
jae 0x401104
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4010f0
cmp esi, eax
jb 0x40110a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x405a80
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405aee
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x405abf
cmp eax, 2
jne 0x405ada
mov eax, dword [esp]
test esi, esi
je 0x405ae8
test eax, eax
je 0x405ae3
test al, 1
jne 0x405ada
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x405ae8
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8
Function at 0x405fc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x471aa8
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x48f900]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x18]
cmp dword [eax - 4], 1
jle 0x406004
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402630
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [esp + 0x18]
setne cl
mov esi, ecx
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00457b39
add esp, 8
test eax, eax
jl 0x40607b
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx - 8]
jg 0x40607b
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x18]
xor edx, edx
mov word [ecx + eax*2], dx
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406068
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret
push 0x80070057
call fcn.00401090
int3