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

Disassembly:
push 0x424
mov eax, 0x1002c5a8
call fcn.10014f96
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x1000abb5
push 2
push ebx
push esi
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x1000abb5
call fcn.10004855
mov esi, eax
jmp 0x1000acae
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1000abd8
call fcn.10004855
jmp 0x1000aca1
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x1000abce
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x1000ac0b
mov esi, 0x8007000e
jmp 0x1000aca3
push 2
push eax
mov byte [ebp - 4], 2
call main
pop ecx
pop ecx
cmp eax, 0x400
jbe 0x1000ac2e
push eax
lea ecx, [ebp - 0x418]
call main
jmp 0x1000ac50
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x1000ac50
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x1000ac01
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x41c]
push ebx
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x1000abce
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call main
mov esi, eax
test edi, edi
je 0x1000acae
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000acc7
lea ecx, [ebp - 0x418]
call fcn.1000a32f
mov eax, esi
call fcn.10014ee3
ret 0x10
Function at 0x10002360
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ebp + 0x20], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
je 0x10002393
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x1c]
call sym.ISCSIUM.dll_DiscpEncryptBuffer
mov ebx, eax
test ebx, ebx
jne 0x100023f7
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
jmp 0x10002398
mov eax, dword [ebp + 0x1c]
mov esi, edi
cmp dword [ebp + 8], 0
mov dword [ebp - 8], eax
jne 0x100023c3
cmp dword [ebp + 0xc], 0
je 0x100023c3
push 0x2001f
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call sym.ISCSIUM.dll_DiscpOpenRegistryKey
mov ebx, eax
test ebx, ebx
jne 0x100023ed
mov eax, dword [ebp - 4]
jmp 0x100023c9
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
push dword [ebp - 8]
push esi
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
cmp dword [ebp + 8], 0
mov ebx, eax
jne 0x100023ed
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp edi, esi
je 0x100023f7
push esi
call sym.ISCSIUM.dll_DiscpFreeMemory
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x1c
Function at 0x10002410
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
xor ebx, ebx
mov eax, ebx
push esi
mov dword [ebp - 8], eax
cmp dword [ebp + 8], eax
jne 0x10002450
cmp dword [ebp + 0xc], eax
je 0x10002443
push 0x20019
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call sym.ISCSIUM.dll_DiscpOpenRegistryKey
mov esi, eax
mov eax, dword [ebp - 8]
jmp 0x10002446
push 0x57
pop esi
test esi, esi
jne 0x1000258f
jmp 0x10002456
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
push ebx
push ebx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x28]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
mov esi, eax
test esi, esi
jne 0x10002580
mov eax, dword [ebp - 0xc]
push edi
lea ecx, [eax*2 + 2]
mov eax, dword [ebp - 0x18]
add eax, ecx
mov dword [ebp - 0xc], ecx
push eax
mov dword [ebp - 4], eax
call sym.ISCSIUM.dll_DiscpAllocMemory
mov edi, eax
test edi, edi
je 0x1000257c
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 4]
jae 0x10002572
mov edx, ebx
mov dword [ebp - 0x14], ebx
lea esi, [edi + ecx]
mov dword [ebp - 0x10], esi
cmp dword [ebp - 0x28], edx
jbe 0x10002572
mov bl, byte [ebp + 0x18]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x24]
mov dword [ebp - 4], ecx
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
push esi
push edx
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
test eax, eax
jne 0x1000255c
test bl, bl
je 0x1000250c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp - 4]
call sym.ISCSIUM.dll_DiscpDecryptBuffer
test eax, eax
jne 0x1000255c
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
jmp 0x10002517
mov esi, dword [ebp - 4]
mov ebx, edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], esi
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x24], eax
jne 0x1000253e
cmp esi, dword [ebp + 0x14]
jb 0x1000253e
mov ecx, dword [ebp + 0x1c]
push esi
push ebx
push dword [ebp - 0x24]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp + 0x20]
call dword [0x100081b4]
call dword [ebp + 0x1c]
cmp byte [ebp + 0x18], 0
je 0x10002556
push esi
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
call sym.ISCSIUM.dll_DiscpFreeMemory
mov esi, dword [ebp - 0x10]
mov bl, byte [ebp + 0x18]
mov edx, dword [ebp - 0x14]
inc edx
mov dword [ebp - 0x14], edx
cmp edx, dword [ebp - 0x28]
jae 0x10002570
mov ecx, dword [ebp - 0x18]
jmp 0x100024c4
xor ebx, ebx
push edi
mov esi, ebx
call sym.ISCSIUM.dll_DiscpFreeMemory
jmp 0x1000257f
push 8
pop esi
pop edi
cmp dword [ebp + 8], 0
jne 0x1000258f
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x100026c0
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
call sym.ISCSIUM.dll_DiscpEnableWinsock
mov ebx, eax
test ebx, ebx
jne 0x10002797
push esi
push edi
xor esi, esi
push 2
pop edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x20], edi
cmp byte [ebp + 0xc], al
je 0x10002706
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 6
jmp 0x10002710
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0x11
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
mov ebx, eax
test ebx, ebx
je 0x10002747
lea eax, [ebp - 4]
mov dword [ebp - 0x20], 0x17
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
mov ebx, eax
test ebx, ebx
jne 0x10002795
mov edx, dword [ebp - 4]
cmp dword [edx + 4], edi
jne 0x1000275f
mov ecx, dword [ebp + 0x10]
mov dword [ecx], esi
mov eax, dword [edx + 0x18]
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
jmp 0x1000278e
cmp dword [edx + 4], 0x17
jne 0x10002789
mov esi, dword [edx + 0x18]
mov edi, dword [ebp + 0x10]
mov dword [edi], 1
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x18]
add esi, 8
mov dword [edi + 8], eax
add edi, 0xc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x1000278e
mov ebx, 0x2af9
push edx
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x10002830
Capabilities:
Connect socket
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x10006004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x54], eax
movzx eax, word [ebp + 0xc]
push eax
push 0x10001250
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.100021c3
add esp, 0x10
mov dword [ebp - 0x70], 2
lea eax, [ebp - 0x48]
mov dword [ebp - 0x6c], 1
xor ebx, ebx
mov dword [ebp - 0x68], 6
mov dword [ebp - 0x74], ebx
push eax
lea eax, [ebp - 0x74]
mov dword [ebp - 0x64], ebx
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x60], ebx
push eax
push esi
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
neg eax
mov dword [ebp - 0x70], 0x17
sbb eax, eax
not eax
and dword [ebp - 0x48], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
mov esi, dword [ebp - 0x48]
mov edi, eax
mov ecx, edi
neg ecx
sbb ecx, ecx
not ecx
and ecx, dword [ebp - 0x4c]
xor eax, eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], eax
cmp eax, 2
jae 0x10002947
test esi, esi
je 0x1000293d
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x54]
mov dword [ecx], eax
cmp eax, 0xffffffff
je 0x10002924
push dword [esi + 0x10]
push dword [esi + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
test edi, edi
je 0x10002935
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov eax, dword [ebp - 0x54]
push dword [eax]
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1000292c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x100028e3
jmp 0x10002937
mov bl, 1
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
inc eax
mov esi, ecx
mov dword [ebp - 0x50], eax
test bl, bl
je 0x100028da
cmp dword [ebp - 0x48], 0
je 0x10002959
push dword [ebp - 0x48]
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x10002964
push ecx
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
test bl, bl
jne 0x1000296e
mov eax, dword [ebp - 0x54]
and dword [eax], 0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10004a40
leave
ret 0xc
Function at 0x10002fc0
Capabilities:
Encrypt data using dpapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x10
push esi
test eax, eax
je 0x1000303b
mov dword [ebp - 0x10], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 1
push esi
push esi
push esi
push 0x10001258
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
je 0x10003031
push dword [ebp - 8]
call sym.ISCSIUM.dll_DiscpAllocMemory
mov ecx, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x10003023
push dword [ebp - 8]
push dword [ebp - 4]
push ecx
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x10003026
push 8
pop esi
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
jmp 0x10003059
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
jmp 0x10003059
mov eax, dword [ebp + 0x10]
push 1
and dword [eax], 0
call sym.ISCSIUM.dll_DiscpAllocMemory
mov esi, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
neg esi
sbb esi, esi
and esi, 0xfffffff8
add esi, 8
mov eax, esi
pop esi
leave
ret 0x10

Function at 0x10003070
Capabilities:
Encrypt data using dpapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x10
push esi
xor esi, esi
test eax, eax
je 0x100030e7
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 1
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x100030dd
push dword [ebp - 8]
call sym.ISCSIUM.dll_DiscpAllocMemory
mov ecx, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x100030cf
push dword [ebp - 8]
push dword [ebp - 4]
push ecx
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x100030d2
push 8
pop esi
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
jmp 0x100030f1
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
jmp 0x100030f1
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x100031c0
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push ebx
push 3
mov dword [ebp - 4], ebx
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetComputerNameExW]
test eax, eax
je 0x100031e2
mov esi, ebx
jmp 0x100031ff
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
cmp esi, 0xea
je 0x100031ff
cmp esi, 0x7a
je 0x100031ff
test esi, esi
jne 0x10003285
mov eax, dword [ebp - 4]
test eax, eax
je 0x10003285
lea esi, [eax + 0x1c]
push edi
lea eax, [esi + esi]
push eax
call sym.ISCSIUM.dll_DiscpAllocMemory
mov edi, eax
test edi, edi
je 0x10003281
push 0x10001270
mov edx, esi
mov ecx, edi
call fcn.1000211d
lea eax, [ebp - 4]
push eax
lea esi, [edi + 0x34]
push esi
push 3
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetComputerNameExW]
test eax, eax
je 0x10003271
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10003240
sub ecx, edx
sar ecx, 1
cmp ecx, 0xdf
jbe 0x10003260
xor eax, eax
mov word [edi + 0x1be], ax
push 1
push esi
call sym.ISCSIUM.dll_DiscpMapiSCSIString
mov eax, dword [ebp + 8]
mov esi, ebx
mov dword [eax], edi
jmp 0x10003284
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push edi
mov esi, eax
call sym.ISCSIUM.dll_DiscpFreeMemory
jmp 0x10003284
push 8
pop esi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x10003340
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
lea edx, [ecx + 2]
xor edi, edi
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x10003350
sub ecx, edx
sar ecx, 1
lea ebx, [ecx + 0x106]
lea eax, [ebx + ebx]
push eax
call sym.ISCSIUM.dll_DiscpAllocMemory
mov esi, eax
test esi, esi
je 0x100033c0
push ebx
push esi
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
test eax, eax
je 0x100033b0
push 0x5c
pop ecx
cmp word [esi + eax*2], cx
je 0x10003394
mov word [esi + eax*2], cx
xor ecx, ecx
mov word [esi + eax*2 + 2], cx
push dword [ebp + 8]
mov edx, ebx
mov ecx, esi
call fcn.10002152
push esi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_LoadLibraryW]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
test eax, eax
jne 0x100033b8
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
push esi
call sym.ISCSIUM.dll_DiscpFreeMemory
jmp 0x100033c3
push 8
pop edi
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x10003cf0
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x10006004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10007254], 0
push ebx
mov ebx, dword [ebp + 0x1c]
push edi
mov dword [ebp - 0x4c], ebx
je 0x10003d97
push esi
mov esi, dword [ebp + 0x20]
push 9
pop eax
cmp si, ax
jbe 0x10003d28
mov esi, eax
mov dword [ebp + 0x20], esi
push dword [ebp + 0x14]
lea eax, [ebp - 0x1c]
push 0x100012a8
push 0xc
push eax
call fcn.100021c3
lea eax, [ebp - 0x1c]
xor edi, edi
mov dword [ebp - 0x44], eax
add esp, 0x10
movzx eax, si
mov ecx, edi
mov dword [ebp - 0x48], eax
test eax, eax
je 0x10003d68
lea edx, [ebp + 0x20]
mov ebx, eax
lea edx, [edx + 4]
mov eax, dword [edx]
mov dword [ebp + ecx*4 - 0x40], eax
inc ecx
cmp ecx, ebx
jb 0x10003d57
mov ebx, dword [ebp - 0x4c]
push ebx
lea eax, [ebp - 0x44]
inc esi
push eax
push dword [ebp + 0x18]
push esi
push edi
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [0x10007254]
call dword [sym.imp.api_ms_win_eventlog_legacy_l1_1_0.dll_ReportEventW]
pop esi
test eax, eax
jne 0x10003d9c
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
jmp 0x10003d9c
mov edi, 0x10d5
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.10004a40
leave
ret

Function at 0x10004a70
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x10004aae
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10004aa6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10004ab0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10004a96
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10004b90
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10004bbf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10004bbf
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401907
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push 0xa
push 0x1001
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x401925
jmp 0x401b16
mov dword [0x403c74], eax
push eax
push 0
call sub.kernel32.dll_SizeofResource
or eax, eax
jne 0x40193b
jmp 0x401b16
mov dword [0x403c78], eax
push dword [0x403c74]
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x401956
jmp 0x401b16
mov dword [0x403c7c], eax
push eax
call sub.kernel32.dll_LockResource
or eax, eax
jne 0x40196a
jmp 0x401b16
mov dword [0x403c80], eax
mov ebx, eax
mov dword [ebp - 8], eax
push 0x10
push ebx
push 0x403450
call sub.kernel32.dll_RtlMoveMemory
add ebx, 0x10
mov eax, dword [0x403c78]
sub eax, 0x10
push eax
push ebx
call fcn.00401a90
mov eax, dword [ebx]
add ebx, 4
mov dword [0x410684], eax
mov eax, dword [ebx]
add ebx, 4
test eax, eax
je 0x401a09
mov dword [ebp - 4], eax
push dword [ebp - 4]
push 8
push dword [0x403c70]
call sub.kernel32.dll_HeapAlloc
mov dword [0x410690], eax
push dword [ebp - 4]
push ebx
push dword [0x410690]
call sub.kernel32.dll_RtlMoveMemory
add ebx, dword [ebp - 4]
mov eax, dword [ebx]
add ebx, 4
mov dword [ebp - 4], eax
push dword [ebp - 4]
push 8
push dword [0x403c70]
call sub.kernel32.dll_HeapAlloc
mov dword [0x410694], eax
push dword [ebp - 4]
push ebx
push dword [0x410694]
call sub.kernel32.dll_RtlMoveMemory
add ebx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [0x410698], eax
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [0x41069c], eax
cmp dword [0x41069c], 2
jne 0x401a43
mov eax, dword [ebx]
add ebx, 4
mov dword [0x4106a8], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [0x4106a0], eax
cmp dword [0x4106a0], 1
jne 0x401a43
mov eax, dword [ebx]
add ebx, 4
mov dword [0x4106a4], eax
mov eax, dword [ebx]
mov dword [0x4106b0], eax
add ebx, 4
mov ecx, ebx
sub ecx, dword [ebp - 8]
mov eax, dword [0x403c78]
sub eax, ecx
mov dword [0x41068c], eax
push dword [0x41068c]
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov dword [0x410688], eax
push dword [0x41068c]
push ebx
push dword [0x410688]
call sub.kernel32.dll_RtlMoveMemory
push dword [0x403c7c]
call sub.kernel32.dll_FreeResource
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x4026b1
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push str.HeapSetInformation
push 0x404280
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4026e6
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ebx, 0x40427c
push ebx
call edi
test esi, esi
mov dword [0x40427c], esi
jne 0x40274a
mov dword [0x40427c], 0xbb40e64e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [section..data], 0x44bf19b1
pop ebx
leave
ret

Function at 0x402765
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40427c]
jne 0x40276e
ret
jmp fcn.00402aa0

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

Disassembly:
cmp dword [0x406410], 0
push esi
jne 0x402f6b
call fcn.00402e96
test eax, eax
je 0x402fae
mov eax, dword [0x406410]
cmp eax, 1
jne 0x402f8c
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x402fae
pop esi
ret
push eax
call dword [0x406418]
test eax, eax
jne 0x402ff6
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x402fb2
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x406410]
call dword [0x406418]
mov edi, eax
test edi, edi
je 0x402fd9
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x402ff5
lea edi, [esi + 0xff0]
push esi
push dword [0x406410]
call dword [0x406414]
add esi, 0x10
cmp esi, edi
jb 0x402fdf
mov eax, esi
pop edi
pop esi
ret
jmp 0x402f58
Function at 0x403181
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x40427c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00403116
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4031d0
cmp dword [ebp - 0x1c], 5
jb 0x4031e8
jmp 0x4031e4
cmp dword [ebp - 0x10], 1
jne 0x4031e8
cmp dword [ebp - 0x1c], 4
ja 0x4031e4
jne 0x4031e8
cmp dword [ebp - 0x18], 0
jbe 0x4031e8
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x404330
call fcn.0040302e
test eax, eax
jge 0x403209
mov byte [0x406494], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00402765
add ebp, 0x78
leave
ret