joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44816d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x44819b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4481b9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004480d7
jmp 0x4481b9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4481b9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004480d7
test edi, edi
mov eax, edi
jne 0x4481a3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x5727ec]
test ecx, ecx
je 0x44826c
jmp 0x44816c
ret 8

Function at 0x4283d0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
jmp 0x4283e8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jae 0x42848c
mov edx, dword [ebp - 4]
sub edx, 0x231d
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + eax*2 + 0x463a]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
shr eax, 0xc
cmp eax, 3
jne 0x428487
mov ecx, dword [ebp - 8]
push ecx
call fcn.004289b0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x428446
push 0x154b
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x428446
xor eax, eax
jmp 0x42848c
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax - 0x4c3f8]
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx]
add ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov edx, dword [ebp + 0x10]
mov dword [edx + eax], ecx
mov eax, dword [ebp - 8]
sub eax, 0x4c3f8
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
sub edx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
jmp 0x4283df
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x6082158b
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x42e1d0
nop
mov ecx, 0x68874128
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4

Function at 0x402000
Capabilities:
Access peb ldr_data

Disassembly:
push 0
push 2
push 0x403068
push 0x403053
call dword [sym.imp.Winmm.dll_mciSendStringA]
cmp eax, 0x107
je 0x40201c
ret
mov edi, edi
mov esi, 0x4020c7
mov edi, esi
push 1
push 0x403086
push 1
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateSemaphoreA]
mov edx, eax
pop ebx
mov ecx, 0x3ab
mov al, byte [esi]
sub al, bl
stosb byte es:[edi], al
inc esi
loop 0x402040
push dword fs:[0x30]
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
cmp word [eax], 0x5a4d
je 0x402066
xor eax, eax
mov dword [0x403099], eax
add esp, 4
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 0x432000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
mov ecx, 0x60d64113
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
mov ecx, 0x129f71cb
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x408db0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add byte [eax - 1], ch
sti
add byte [edi + 4], ch
call edi
push ebp
mov ebp, esp
push ecx
jge 0x408e21
adc byte [ebx], dh
leave
test eax, eax
setne cl
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x40
push esi
adc cl, byte [edi + 0x9b7d35]
je 0x408fdb
movsb byte es:[edi], byte [esi]
add esp, 0xf
ja 0x7f90de
xor esp, dword [ecx - 0x6eef6e76]
inc eax
jae 0x408de6
jmp dword [0xc440907b]
and al, 0x25
jnp 0x408d7b
inc eax
les ecx, [ebx - 0x2dccf78b]
mov ecx, dword [esi + 0x38]
and ecx, 2
adc bl, 2
sete dl
cmp eax, edx
je 0x408e31
mov ecx, dword [esi + 0x31]
lea eax, [ebp - 0x69]
push 4
push eax
push 0xffffffffffffffc2
push 0xffff
push ecx
call dword [0x40c16f]
cmp eax, 0xffffffb1
je 0xde9065
add byte [ebx - 0x3f7aefbb], cl
mov eax, dword [ebp + 0x10]
test eax, eax
mov eax, dword [esi + 0x38]
je 0x408e3a
or al, 0xc7
mov dword [esi + 0x38], eax
xor eax, eax
sbb eax, 0xc2e1e58b
or al, 0
and al, 0xfd
mov dword [esi + 0x38], eax
xor eax, eax
mov ecx, dword [ebx + 0xcc25de5]
loope 0x408dd4
scasb al, byte es:[edi]
push 0x33
cmc
mov edx, dword [esi + 0x38]
and edx, 4
cmp dl, 4
sete cl
cmp eax, ecx
je 0x408e31
mov eax, dword [esi + 4]
lea edx, [ebp - 4]
push 4
push edx
push 1
push 0xffff
push eax
call dword [0x63a0c1b8]
cmp eax, 0xffffffff
je 0x409065
cmp eax, 0xfa851045
mov eax, dword [esi + 0x38]
je 0x408e95
or al, 4
invalid
and al, 0xfb
mov dword [esi - 0x5c], eax
xor esi, ecx
pop esi
pop ds
in eax, 0x5d
ret 0xd60c
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0x10]
push 0xffffffffffffff9a
dec esp
mov eax, dword [edx + 4]
push 0x90d9c801
Function at 0x4010b8
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
xor eax, eax
push esi
mov esi, ecx
push edi
mov ecx, 0x1369e
lea edi, [esi + 0x10]
mov dword [esi], 0x418820
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0xc], eax
mov dword [esi + 0x4da8c], edi
mov dword [esi + 4], edi
mov dword [esi + 8], 0xffffffff
mov eax, esi
pop edi
pop esi
add esp, 0x190
ret

Function at 0x4011d0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
sub esp, 8
lea eax, [esp]
push esi
push edi
push eax
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
mov edi, ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x4da78
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x401217
pop edi
pop esi
add esp, 8
ret
mov edx, dword [0x41e030]
push ebx
push ebp
add edi, 0x4da90
push edx
push edi
push esi
call fcn.00401160
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0xc
push str.VirtualProtect
push str.KERNEL32.dll
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.CreateThread
push str.KERNEL32.dll
mov ebp, eax
call edi
push eax
call ebx
lea eax, [esp + 0x14]
push eax
push 0x40
push 0x4da78
push esi
call ebp
push 0
push 0
push esi
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 8
ret

Function at 0x4051d0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x38
push edi
mov edi, ecx
mov eax, dword [edi + 0x48]
test eax, eax
jne 0x4051e6
mov al, 1
pop edi
add esp, 0x38
ret 8
push ebx
push ebp
push esi
push 0xd
mov dword [esp + 0x20], 9
xor esi, esi
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x20]
push esi
push esi
push 0x1200
push eax
mov byte [esp + 0x23], 1
call ebx
xor ebp, ebp
mov dword [esp + 0x18], eax
test eax, eax
jle 0x405271
mov edx, dword [edi + 0x20]
lea ecx, [esp + 0x1c]
push ecx
push ebp
push 0x1203
push edx
call ebx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
add esi, eax
mov eax, 1
shl eax, cl
test dword [edi + 0x48], eax
je 0x405268
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x4c]
cdq
sub eax, edx
mov edx, esi
sar eax, 1
sub edx, eax
cmp ecx, edx
jle 0x405268
add eax, esi
cmp ecx, eax
jge 0x405268
mov byte [esp + 0x13], 0
mov eax, dword [esp + 0x18]
inc ebp
cmp ebp, eax
jl 0x405221
mov al, byte [esp + 0x13]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x38
ret 8
Function at 0x405ab0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x415e52
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
xor ebx, ebx
mov dword [esp + 0x18], ebx
call fcn.0041510e
lea edi, [esi + 0x5c]
mov byte [esp + 0x18], 1
mov ecx, edi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x6c]
mov byte [esp + 0x18], 2
call fcn.00407230
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 3
call fcn.00407d10
lea ecx, [esi + 0x114]
mov byte [esp + 0x18], 4
call fcn.00407900
mov al, byte [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov byte [esi + 0x46], al
mov eax, dword [esp + 0x24]
push 0x7fe2
push ebx
mov byte [esp + 0x20], 5
mov dword [esi], 0x419038
mov dword [esi + 0x64], ecx
mov dword [esi + 0x54], edx
mov dword [esi + 0x58], eax
mov dword [esi + 0x60], ebx
call dword [sym.imp.USER32.dll_LoadBitmapA]
lea ecx, [esp + 0x28]
mov dword [esi + 0x68], eax
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::operator_1
push 0x15
mov dword [esi + 0x154], esi
mov dword [esi + 0xc0], esi
mov dword [esi + 0x10c], esi
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dl, byte [esp + 0x30]
or edi, 0xffffffff
push 8
mov dword [esi + 0x50], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x4c], dl
mov byte [esi + 0x160], 1
mov dword [esi + 0x48], edi
mov byte [esi + 0x44], bl
mov byte [esi + 0x45], 1
call dword [sym.imp.USER32.dll_GetSysColor]
lea ecx, [esp + 0x28]
mov dword [esi + 0x164], eax
mov dword [esp + 0x18], edi
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18
Function at 0x411e60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x416b77
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x41a060
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call sub.MFC42.DLL_CImageList::CImageList
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call sub.MFC42.DLL_CImageList::CImageList
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], 0x41a044
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.00412980
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x4129d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x416c50
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
push edi
and ebx, 0xffff
push 0xf1
mov esi, ecx
push ebx
call sub.MFC42.DLL_AfxFindResourceHandle
mov edi, eax
xor ebp, ebp
cmp edi, ebp
jne 0x412a12
xor al, al
jmp 0x412b34
push 0xf1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x412a2a
xor al, al
jmp 0x412b34
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x412a3d
xor al, al
jmp 0x412b34
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x412a51
xor al, al
jmp 0x412b34
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call sub.MFC42.DLL_CImageList::Create
test eax, eax
jne 0x412a85
xor al, al
jmp 0x412b34
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x418ebc
push ebx
push 2
push ebx
mov dword [esp + 0x2c], ebp
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::Attach
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::DeleteObject
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x412b19
mov ax, word [ebx]
test ax, ax
je 0x412b0b
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.00412b50
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x412aef
mov dword [esp + 0x10], 0x418ee4
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5a1014]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
push dword [ecx]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wfullpath]
add esp, 0xc
push 0x5c
pop eax
cmp word [ebp - 0x214], ax
je 0x497ed9
push ebx
xor ebx, ebx
lea eax, [ebp - 0xc]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 4
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
push 0x4012f8
lea eax, [ebp - 0xc]
push 4
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0x30
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
je 0x430138
test eax, eax
je 0x430138
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047a40f
leave
ret
mov bl, 1
jmp 0x430129
cmp word [ebp - 0x212], ax
jne 0x4300e6
mov al, 1
jmp 0x43012c
Function at 0x430bf5
Capabilities:
Write file on windows

Disassembly:
push 0x48
mov eax, 0x48ac97
call fcn.0047ec24
mov edi, dword [ebp + 8]
push 2
pop eax
mul dword [ebp + 0xc]
mov esi, eax
test edx, edx
jne 0x4984f1
cmp esi, 0xffffffff
ja 0x4984f1
push edx
lea eax, [ebp - 0x44]
push eax
push esi
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4984d3
cmp dword [ebp - 0x44], esi
jne 0x498506
call fcn.0047ebd3
ret 8

Function at 0x431a2e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x5a3e5c], 0
jne 0x431a4f
mov eax, dword [ebp - 0x20]
mov dword [0x5a3e5c], eax
cmp dword [ebp - 0x18], 0xc0000000
jbe 0x498b21
mov dword [0x5a2f9c], 0x50000000
leave
ret
mov eax, 0x80000000
cmp eax, dword [ebp - 0x18]
sbb eax, eax
and eax, 0x20000000
add eax, 0x10000000
mov dword [0x5a2f9c], eax
leave
ret
Function at 0x4325b8
Capabilities:
Resolve path using msvcrt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x5a1014]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x5a44dc], 0
push ebx
push esi
push edi
mov esi, ecx
jne 0x432664
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p__wpgmptr]
xor ebx, ebx
lea ecx, [ebp - 0x210]
push ebx
push ebx
mov edi, 0x100
push edi
push ecx
push edi
lea ecx, [ebp - 0x410]
push ecx
push 3
lea ecx, [ebp - 0xc]
push ecx
push dword [eax]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
push ebx
push ebx
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x618]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmakepath_s]
push 0xffffffffffffffff
push 0x4015bc
lea eax, [ebp - 0x210]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x4c
test eax, eax
jne 0x43267b
sub esp, 0x18
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x618]
call fcn.00430274
test eax, eax
js 0x43267b
mov byte [0x5a44dc], 1
push ecx
mov edx, esi
call fcn.00432683
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047a40f
leave
ret
mov dword [0x5a44e0], ebx
jmp 0x43265d

Function at 0x432683
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [0x5a44e4]
push esi
push edi
mov edi, dword [0x5a44e0]
mov esi, edx
push eax
mov eax, esi
shr eax, 4
inc eax
movzx eax, ax
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x4326e1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4326e1
and esi, 0xf
je 0x4326cf
movzx ecx, word [eax]
lea eax, [eax + ecx*2]
add eax, 2
sub esi, 1
jne 0x4326c1
lea ecx, [eax + 2]
movzx eax, word [eax]
neg eax
sbb eax, eax
and eax, ecx
pop edi
pop esi
leave
ret 4
xor eax, eax
jmp 0x4326db