joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427870
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b320
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5a4aa8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4278b0
sub eax, edx
sar eax, 1
jne 0x4278e7
push str.Fail_____Invalid_Parameter_in_CGDPRDlg::OpenUrl____
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jbe 0x427917
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push str.Fail___Open___s__in_CGDPRDlg::OpenUrl____
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4292f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5200c0
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov ebx, edx
mov dword [ebp - 4], 0
push 0x208
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.004fd670
add esp, 0xc
call fcn.004e4d97
mov eax, dword [eax + 8]
push 0x104
lea ecx, [ebp - 0x220]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x42939d
push 0x5c
lea edx, [ebp - 0x220]
push edx
call fcn.004fa6eb
add esp, 8
test eax, eax
je 0x42937b
mov word [eax], 0
lea esi, [edi + 0x10800]
push 0x3ff
lea eax, [ebp - 0x220]
push eax
push 0x400
push esi
call fcn.004fa71b
add esp, 0x10
jmp 0x4293af
lea esi, [edi + 0x10800]
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
lea ecx, [edi + 0x20]
mov edx, esi
call fcn.0047fa50
mov dword [ebp - 0x224], eax
test eax, eax
je 0x4293d6
push 0x544314
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fa103
mov esp, ebp
pop ebp
ret
Function at 0x445fa0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2a0
mov eax, dword [0x5a4aa8]
xor eax, esp
mov dword [esp + 0x29c], eax
push ebx
push esi
lea eax, [esp + 8]
push eax
push 0x101
xor esi, esi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x44602b
push 0x104
lea ecx, [esp + 0x19c]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x446025
lea edx, [esp + 0x198]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x446025
mov eax, dword [eax + 0xc]
cmp dword [eax], esi
je 0x446025
mov eax, dword [eax]
mov eax, dword [eax]
xor ecx, ecx
mov ch, al
mov edx, eax
shr edx, 0x10
xor ebx, ebx
mov bh, dl
mov cl, ah
shr eax, 0x18
movzx edx, bx
shl ecx, 0x10
or ecx, edx
or ecx, eax
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x2a4]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004fa103
mov esp, ebp
pop ebp
ret

Function at 0x44c200
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52207b
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
push 0x535a4c
lea ecx, [ebp - 0x228]
call fcn.00405c00
xor edi, edi
mov dword [ebp - 4], edi
push 0x208
push edi
lea eax, [ebp - 0x220]
push eax
call fcn.004fd670
add esp, 0xc
mov byte [ebp - 4], 1
cmp esi, edi
je 0x44c2dc
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x44c270
sub eax, edx
sar eax, 1
je 0x44c2dc
push 0x103
push esi
push 0x104
lea ecx, [ebp - 0x220]
push ecx
call fcn.004fa71b
add esp, 0x10
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x248]
push ecx
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x44c302
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x234]
shrd eax, ecx, 0x14
mov dword [ebp - 0x224], eax
shr ecx, 0x14
jmp 0x44c308
lea ecx, [ebp - 0x220]
call fcn.0044c380
test eax, eax
je 0x44c29b
mov dword [ebp - 0x22c], edi
push 0x5815cc
lea edx, [ebp - 0x22c]
push edx
call fcn.004fd5a3
mov dword [ebp - 0x224], edi
mov dword [ebp - 4], edi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.00406150
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fa103
mov esp, ebp
pop ebp
ret
Function at 0x46d710
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [0x5a4aa8]
xor eax, esp
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
cmp ecx, 6
ja 0x46d824
jne 0x46d741
cmp ah, 1
jae 0x46d824
mov ecx, dword [0x534894]
mov eax, dword [0x534890]
mov edx, dword [0x534898]
mov dword [esp + 8], ecx
lea ecx, [esp + 4]
mov dword [esp + 4], eax
mov eax, dword [0x53489c]
mov dword [esp + 0xc], edx
push ecx
mov edx, edi
mov ecx, esi
mov dword [esp + 0x14], eax
call fcn.0046d860
mov edx, dword [0x55c40c]
mov eax, dword [0x55c410]
mov ecx, dword [0x55c414]
mov dword [esp + 4], edx
mov edx, dword [0x55c418]
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
push eax
mov edx, edi
mov ecx, esi
call fcn.0046d860
mov ecx, dword [0x55c3ec]
mov edx, dword [0x55c3f0]
mov eax, dword [0x55c3f4]
mov dword [esp + 4], ecx
mov ecx, dword [0x55c3f8]
mov dword [esp + 8], edx
lea edx, [esp + 4]
mov dword [esp + 0x10], ecx
push edx
mov edx, edi
mov ecx, esi
mov dword [esp + 0x10], eax
call fcn.0046d860
mov ecx, dword [0x55c400]
mov eax, dword [0x55c3fc]
mov edx, dword [0x55c404]
mov dword [esp + 8], ecx
lea ecx, [esp + 4]
mov dword [esp + 4], eax
mov eax, dword [0x55c408]
mov dword [esp + 0xc], edx
push ecx
mov edx, edi
mov ecx, esi
mov dword [esp + 0x14], eax
call fcn.0046d860
mov al, 1
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004fa103
mov esp, ebp
pop ebp
ret
push str._CSystemRefresh::RemoveUnknownDevice__Call_Windows_7_Remove_Unknown_Device_Function
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
push ebx
mov edx, edi
mov ecx, esi
call fcn.0046dca0
mov ecx, dword [esp + 0x14]
xor ecx, esp
mov al, 1
call fcn.004fa103
mov esp, ebp
pop ebp
ret

Function at 0x474400
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0xa04
mov eax, dword [0x5a4aa8]
xor eax, esp
mov dword [esp + 0xa00], eax
push ebx
push 0x200
lea eax, [esp + 8]
push 0
push eax
xor bl, bl
call fcn.004fd670
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx ecx, ax
push ecx
push str.SET_ALTITUDE_LIST
push str._s___id_0X_04X__
lea edx, [esp + 0x10]
call fcn.00418d80
add esp, 0xc
call fcn.004e4d97
mov eax, dword [eax + 4]
add eax, 0x7f44
push eax
lea edx, [esp + 8]
call fcn.00488160
test al, al
je 0x4744a4
call fcn.004e4d97
mov eax, dword [eax + 4]
add eax, 0x7f44
push 0x400
push eax
lea ecx, [esp + 0x20c]
lea edx, [esp + 0xc]
call fcn.00487c90
test eax, eax
jne 0x4744a4
lea edx, [esp + 0x204]
push edx
push esi
call fcn.004f9f1e
add esp, 8
test eax, eax
mov al, 1
je 0x4744a6
mov al, bl
mov ecx, dword [esp + 0xa04]
pop ebx
xor ecx, esp
call fcn.004fa103
add esp, 0xa04
ret
Function at 0x47d000
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51cf90
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5a4aa8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ebx, edx
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp + 8], eax
mov dword [ebp - 4], eax
cmp ebx, eax
je 0x47d130
cmp esi, eax
je 0x47d130
mov eax, dword [edi + 0x28af4]
cmp eax, 0xffffffff
je 0x47d065
lea ecx, [edi + 0x145f8]
call fcn.0047e010
mov eax, dword [eax]
mov dword [ebp + 8], eax
push 0x38
push 0
push esi
call fcn.004fd670
add esp, 0xc
mov ecx, dword [ebx + 0x808]
mov dword [esi + 8], ecx
mov edx, dword [ebx + 0x80c]
mov dword [esi + 0xc], edx
cmp byte [ebx + 0xa11], 0
je 0x47d0b4
lea eax, [edi + 0x14610]
test eax, eax
je 0x47d09a
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47d0b4
mov eax, dword [edi + 0x24c10]
mov dword [esi + 0x18], eax
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x1c], ecx
lea eax, [ebx + 0xa14]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47d0c0
sub eax, edx
xor ecx, ecx
sar eax, 1
je 0x47d0ec
mov eax, dword [ebp + 8]
cmp eax, ecx
je 0x47d0ec
mov edx, dword [esi + 0x18]
add edx, dword [esi + 8]
mov dword [esi + 0x28], edx
mov eax, dword [eax + 0x10604]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ecx
mov eax, dword [esi + 0x18]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esi + 0x20], ecx
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x24], ecx
mov edx, dword [esi + 8]
add edx, eax
mov dword [esi + 0x30], edx
mov eax, dword [esi + 0x2c]
add eax, ecx
mov dword [esi + 0x34], eax
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4cdab0
Capabilities:
Resolve dns

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x1c], ecx
je 0x4cdb54
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x4cdb25
cmp word [ecx + 0xa], 4
jne 0x4cdb25
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x4cdb25
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea esp, [esp]
mov edx, dword [eax]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebx
push ebp
call fcn.004cda40
test eax, eax
mov dword [esi], eax
je 0x4cdb48
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x4cdb00
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call fcn.004fb3bd
add esp, 0x10
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret 0x18
pop edi
pop ebp
pop ebx
mov eax, 8
pop esi
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x4cdb64.11001
jmp dword [eax*4 + 0x4cdb88]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18
Function at 0x501e2e
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x5a4c40]
je 0x501e49
inc edi
cmp edi, 0x17
jb 0x501e3a
cmp edi, 0x17
jae 0x501fc9
push ebp
push 3
call fcn.0050ef17
cmp eax, 1
pop ecx
je 0x501f95
push 3
call fcn.0050ef17
test eax, eax
pop ecx
jne 0x501e7d
cmp dword [0x5a4a40], 1
je 0x501f95
cmp ebx, 0xfc
je 0x501fc8
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x5a94c8
push ebp
call fcn.004fdb44
add esp, 0xc
test eax, eax
je 0x501eb3
push esi
push esi
push esi
push esi
push esi
call fcn.004f9c5d
add esp, 0x14
push 0x104
mov esi, 0x5a94e1
push esi
push 0
mov byte [0x5a95e5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x501ef7
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004fdb44
add esp, 0xc
test eax, eax
je 0x501ef7
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004f9c5d
add esp, 0x14
push esi
call fcn.00500090
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x501f3c
push esi
call fcn.00500090
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x5a97dc
push 0x532b7c
sub ecx, eax
push ecx
push eax
call fcn.004fb3bd
add esp, 0x14
test eax, eax
je 0x501f3c
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004f9c5d
add esp, 0x14
jmp 0x501f3e
xor esi, esi
push 0x532b78
push ebx
push ebp
call fcn.004fc184
add esp, 0xc
test eax, eax
je 0x501f5e
push esi
push esi
push esi
push esi
push esi
call fcn.004f9c5d
add esp, 0x14
push dword [edi*8 + 0x5a4c44]
push ebx
push ebp
call fcn.004fc184
add esp, 0xc
test eax, eax
je 0x501f80
push esi
push esi
push esi
push esi
push esi
call fcn.004f9c5d
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0050ed5a
add esp, 0xc
jmp 0x501fc8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x501fc8
cmp ebp, 0xffffffff
je 0x501fc8
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x5a4c44]
push dword [esi]
call fcn.00500090
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x50ed5a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.005029de
xor ebx, ebx
cmp dword [0x5a9fc4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x50ee30
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x50ef10
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x50ef10
push eax
call fcn.00502970
mov dword [esp], 0x532f48
push edi
mov dword [0x5a9fc4], eax
call esi
push eax
call fcn.00502970
mov dword [esp], 0x532f34
push edi
mov dword [0x5a9fc8], eax
call esi
push eax
call fcn.00502970
mov dword [0x5a9fcc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.005001c4
test eax, eax
pop ecx
pop ecx
je 0x50edfe
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004f9c5d
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x50ee30
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00502970
cmp eax, ebx
pop ecx
mov dword [0x5a9fd4], eax
je 0x50ee30
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00502970
pop ecx
mov dword [0x5a9fd0], eax
mov eax, dword [0x5a9fd0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x50eeb5
cmp dword [0x5a9fd4], ecx
je 0x50eeb5
push eax
call fcn.005029e7
push dword [0x5a9fd4]
mov esi, eax
call fcn.005029e7
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x50eeb5
cmp edi, ebx
je 0x50eeb5
call esi
cmp eax, ebx
je 0x50ee82
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x50ee82
test byte [ebp - 0x18], 1
jne 0x50eeb5
lea eax, [ebp - 0x10]
push eax
call fcn.005001fb
test eax, eax
pop ecx
je 0x50ee9d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004f9c5d
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x50eeac
or dword [ebp + 0x10], 0x200000
jmp 0x50eef0
or dword [ebp + 0x10], 0x40000
jmp 0x50eef0
mov eax, dword [0x5a9fc8]
cmp eax, dword [ebp - 8]
je 0x50eef0
push eax
call fcn.005029e7
cmp eax, ebx
pop ecx
je 0x50eef0
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x50eef0
mov eax, dword [0x5a9fcc]
cmp eax, dword [ebp - 8]
je 0x50eef0
push eax
call fcn.005029e7
cmp eax, ebx
pop ecx
je 0x50eef0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5a9fc4]
call fcn.005029e7
cmp eax, ebx
pop ecx
je 0x50ef10
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x50ef12
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1c21120
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 4], ebx
test edi, edi
jne 0x1c2113e
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 4]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov eax, dword [ebx]
push dword [ecx + 0x78]
mov ecx, ebx
call dword [eax + 4]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x1c211db
mov eax, dword [ebp + 8]
cmp eax, 0xffff
ja 0x1c21176
pop esi
mov word [edi], ax
mov al, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx]
mov ecx, ebx
push dword [esi + 0x20]
call dword [eax + 4]
mov ecx, dword [esi + 0x18]
mov ebx, eax
mov dword [ebp - 0xc], eax
lea edi, [eax + ecx*4]
cmp eax, edi
je 0x1c211db
nop
mov ecx, dword [ebp - 4]
mov eax, edi
sub eax, ebx
sar eax, 2
cdq
sub eax, edx
sar eax, 1
push dword [ebx + eax*4]
lea esi, [ebx + eax*4]
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov ecx, edx
mov dl, byte [edx]
test dl, dl
je 0x1c211c2
cmp dl, byte [eax]
jne 0x1c211c2
mov dl, byte [ecx + 1]
inc ecx
inc eax
test dl, dl
jne 0x1c211b5
movzx eax, byte [eax]
movzx ecx, byte [ecx]
sub ecx, eax
je 0x1c211e6
test ecx, ecx
jle 0x1c211d5
lea ebx, [esi + 4]
jmp 0x1c211d7
mov edi, esi
cmp ebx, edi
jne 0x1c21190
pop esi
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, dword [ecx]
push dword [edi + 0x24]
call dword [eax + 4]
sub esi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
sar esi, 2
mov ax, word [eax + esi*2]
add ax, word [edi + 0x10]
pop esi
pop edi
mov word [ecx], ax
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1c21220
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, ecx
push esi
mov dword [ebp - 4], ebx
mov eax, dword [ebx + 4]
mov edx, dword [eax + 0x3c]
add edx, eax
mov eax, dword [ebx]
push dword [edx + 0x78]
call dword [eax + 4]
mov edx, dword [ebx + 4]
mov esi, eax
mov dword [ebp - 0x20], esi
mov ecx, dword [edx + 0x3c]
mov eax, dword [ecx + edx + 0x7c]
mov dword [ebp - 0x24], eax
test esi, esi
je 0x1c21343
test eax, eax
je 0x1c21343
mov eax, dword [esi + 0x10]
mov ecx, ebx
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
push edi
push dword [esi + 0x1c]
call dword [eax + 4]
mov edx, dword [ebx]
mov ecx, ebx
push dword [esi + 0x20]
mov dword [ebp - 0x10], eax
call dword [edx + 4]
mov edx, dword [ebx]
mov ecx, ebx
push dword [esi + 0x24]
mov dword [ebp - 0x1c], eax
call dword [edx + 4]
xor edi, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], edi
cmp dword [ebp - 0xc], edi
jbe 0x1c21338
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebx]
push dword [ecx + edi*4]
mov ecx, ebx
call dword [eax + 4]
mov ebx, eax
test ebx, ebx
je 0x1c21328
mov ecx, dword [ebp - 0x14]
xor edx, edx
xor esi, esi
test ecx, ecx
je 0x1c212eb
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + esi*2]
cmp eax, edi
je 0x1c212d7
inc esi
cmp esi, ecx
jb 0x1c212c5
jmp 0x1c212eb
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ecx]
push dword [edx + esi*4]
call dword [eax + 4]
mov edx, eax
test edx, edx
jne 0x1c212ed
xor esi, esi
mov eax, dword [ebp - 0x20]
xor ecx, ecx
cmp ebx, eax
jb 0x1c21304
add eax, dword [ebp - 0x24]
mov edi, dword [ebp - 8]
cmp ebx, eax
ja 0x1c21304
mov ecx, ebx
xor ebx, ebx
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x28]
push ecx
push ebx
mov ebx, dword [ebp - 4]
add eax, edi
push edx
push esi
push eax
push ebx
call dword [ebp + 8]
add esp, 0x1c
test al, al
jne 0x1c2132b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp - 4]
inc edi
mov dword [ebp - 8], edi
cmp edi, dword [ebp - 0xc]
jb 0x1c212a7
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1c21350
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x1c21360
xor al, al
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1c2135d
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x1c2135d
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete al
ret
Function at 0x1c21958
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 1
jne 0x1c2197b
push 0
push str.failed_count
push dword [ebp + 8]
call fcn.01c21c00
add esp, 0xc
neg eax
sbb eax, eax
inc eax
jmp 0x1c219e0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 4
push eax
xor esi, esi
mov ebx, str.failed_count
push esi
push esi
push ebx
push dword [edi]
mov dword [ebp + 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x1c219b1
test eax, eax
jne 0x1c219db
mov esi, dword [ebp + 0xc]
inc esi
push esi
push ebx
push edi
mov dword [ebp + 0xc], esi
call fcn.01c21c00
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp eax, dword [0x1c35a80]
jb 0x1c219db
push 3
push str.state
push edi
call fcn.01c21c00
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1c219e4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.01c22338
test al, al
je 0x1c21a89
call fcn.01c23d5a
test al, al
jne 0x1c21a89
cmp byte [ebp + 8], al
jne 0x1c21a10
call fcn.01c21a8f
test al, al
je 0x1c21a89
push ebx
push edi
xor ebx, ebx
push ebx
call fcn.01c23fbf
mov edi, eax
pop ecx
test edi, edi
je 0x1c21a87
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 0x40
push 0x40
push section..crthunk
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1c21a87
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x18]
mov esi, dword [edi]
push ebx
push 0x40
push section..crthunk
push 0x1c22cfd
push ebx
push str.NtMapViewOfSection
push 0x1c20000
push 0x1c35264
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
mov ecx, edi
call dword [esi + 4]
mov edx, dword [edi]
mov ecx, edi
push 1
mov esi, eax
call dword [edx]
test esi, esi
setns byte [0x1c3e4bc]
call fcn.01c21d20
pop esi
pop edi
pop ebx
xor al, al
mov esp, ebp
pop ebp
ret