joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480cc8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x480cf9
dec al
je 0x480d35
dec al
je 0x480d79
dec al
je 0x480de4
jmp 0x480e6e
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x480e6e
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x480d09
jmp 0x480e6e
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x480e6e
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x480d45
jmp 0x480e6e
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x480e6e
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x480da7
xor ebp, ebp
jmp 0x480db8
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x480dc1
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x480d89
jmp 0x480e6e
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x480e6e
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x480e3c
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.0047e1b4
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x480df8
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x484e90
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe10
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1f0], edx
mov dword [ebp - 0x1ec], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c80
xor eax, eax
push ebp
push 0x4850d7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov ecx, 0x4850f0
mov edx, dword [0x492014]
call fcn.00404adc
mov eax, dword [0x492014]
call fcn.00484d18
cmp eax, 0x989680
jle 0x484f0e
mov eax, dword [ebp - 8]
call fcn.00484c74
mov eax, dword [ebp - 8]
call fcn.00404c90
push eax
mov eax, dword [0x492014]
call fcn.00404c90
push eax
call sub.kernel32.dll_MoveFileA
xor eax, eax
push ebp
push 0x484f4a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x492014]
lea eax, [ebp - 0x1d8]
call fcn.0040301c
lea eax, [ebp - 0x1d8]
call fcn.00402db8
call fcn.00402c04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x484fcf
xor eax, eax
push ebp
push 0x4850a5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
call fcn.0040a510
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x1ec]
mov eax, 0x485100
call fcn.0040b188
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x1e8], eax
mov byte [ebp - 0x1e4], 0xb
call fcn.00484e20
mov ecx, 0xf4240
xor edx, edx
div ecx
mov eax, edx
mov ecx, 0x3e8
xor edx, edx
div ecx
mov dword [ebp - 0x1e0], eax
mov byte [ebp - 0x1dc], 0
lea edx, [ebp - 0x1e8]
mov ecx, 1
mov eax, 0x485114
call fcn.004098c8
lea eax, [ebp - 0x1f0]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.00404adc
mov edx, dword [ebp - 0x1f0]
lea eax, [ebp - 0x1d8]
call fcn.00404e80
call fcn.00403454
call fcn.00402c04
lea eax, [ebp - 0x1d8]
call fcn.004030cc
call fcn.00402c04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4850ac
lea eax, [ebp - 0x1d8]
call fcn.004030e4
call fcn.00402c04
ret

Function at 0x48ad70
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
xor edx, edx
xor ecx, ecx
xor esi, esi
xor edi, edi
mov ebx, dword [eax + 0x320]
cmp byte [ebx + 0x182], 1
jne 0x48ad8f
mov edx, 1
mov ebx, dword [eax + 0x31c]
cmp byte [ebx + 0x182], 1
jne 0x48ada3
mov edx, 2
mov ebx, dword [eax + 0x328]
cmp byte [ebx + 0x182], 1
jne 0x48adb7
mov ecx, 1
mov ebx, dword [eax + 0x32c]
cmp byte [ebx + 0x182], 1
jne 0x48adcb
mov ecx, 2
mov ebx, dword [eax + 0x314]
cmp byte [ebx + 0x182], 1
jne 0x48addf
mov esi, 1
mov ebx, dword [eax + 0x318]
cmp byte [ebx + 0x182], 1
jne 0x48adf3
mov esi, 2
mov ebx, dword [eax + 0x324]
cmp byte [ebx + 0x182], 1
jne 0x48ae07
mov edi, 1
mov byte [eax + 0x331], 0x92
mov byte [eax + 0x332], 9
mov byte [eax + 0x333], 1
mov byte [eax + 0x334], dl
mov byte [eax + 0x335], cl
mov edx, esi
mov byte [eax + 0x336], dl
mov byte [eax + 0x337], 0
mov edx, edi
mov byte [eax + 0x338], dl
mov dl, byte [eax + 0x332]
xor dl, byte [eax + 0x333]
mov byte [eax + 0x339], dl
mov edx, 4
mov cl, byte [eax + edx + 0x330]
xor byte [eax + 0x339], cl
inc edx
cmp edx, 9
jne 0x48ae56
mov dword [eax + 0x33c], 0xa
pop edi
pop esi
pop ebx
ret
Function at 0x48b5e8
Capabilities:
Create udp socket
Encode data using xor
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff30
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov esi, edx
lea edi, [ebp - 0x44]
push ecx
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
pop ecx
mov dword [ebp - 4], ecx
mov edi, eax
xor eax, eax
push ebp
push 0x48b7bf
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [edi + 0x620], 1
jne 0x48b734
lea eax, [ebp - 0x58]
push eax
call fcn.00484e58
sub eax, dword [edi + 0x50]
mov dword [ebp - 0xd0], eax
mov byte [ebp - 0xcc], 0
xor ebx, ebx
mov bl, byte [ebp - 0x41]
mov dword [ebp - 0xc8], ebx
mov byte [ebp - 0xc4], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc0], eax
mov byte [ebp - 0xbc], 0
xor eax, eax
mov al, byte [ebp - 0x44]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 0xb4], 0
xor eax, eax
mov al, byte [ebp - 0x43]
mov dword [ebp - 0xb0], eax
mov byte [ebp - 0xac], 0
xor eax, eax
mov al, byte [ebp - 0x42]
mov dword [ebp - 0xa8], eax
mov byte [ebp - 0xa4], 0
mov dword [ebp - 0xa0], ebx
mov byte [ebp - 0x9c], 0
xor eax, eax
mov al, byte [ebp - 0x40]
mov dword [ebp - 0x98], eax
mov byte [ebp - 0x94], 0
xor eax, eax
mov al, byte [ebp - 0x3f]
mov dword [ebp - 0x90], eax
mov byte [ebp - 0x8c], 0
xor eax, eax
mov al, byte [ebp - 0x3e]
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x84], 0
xor eax, eax
mov al, byte [ebp - 0x3d]
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 0
xor eax, eax
mov al, byte [ebp - 0x3c]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0
xor eax, eax
mov al, byte [ebp - 0x3b]
mov dword [ebp - 0x70], eax
mov byte [ebp - 0x6c], 0
xor eax, eax
mov al, byte [ebp - 0x3a]
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x64], 0
xor eax, eax
mov al, byte [ebp - 0x39]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0
lea edx, [ebp - 0xd0]
mov ecx, 0xe
mov eax, 0x48b7d8
call fcn.004098c8
mov eax, dword [ebp - 0x58]
call fcn.00484e90
mov esi, 4
lea ebx, [ebp - 0x44]
xor byte [ebx], 0xb9
mov dl, 5
mov al, byte [ebx]
call fcn.0048afe0
mov byte [ebx], al
inc ebx
dec esi
jne 0x48b73c
cmp dword [edi + 0x624], 0
jne 0x48b768
push 0x11
push 2
push 2
call sub.ws2_32.dll_socket
mov dword [edi + 0x624], eax
mov word [ebp - 0x54], 2
mov eax, dword [edi + 0x58]
call fcn.00404c90
push eax
call sub.ws2_32.dll_inet_addr
mov dword [ebp - 0x50], eax
push 0x138a
call sub.ws2_32.dll_htons
mov word [ebp - 0x52], ax
push 0x10
lea eax, [ebp - 0x54]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [edi + 0x624]
push eax
call sub.ws2_32.dll_sendto
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b7c6
lea eax, [ebp - 0x58]
call fcn.004047d0
ret
Function at 0x48b83c
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe70
push ebx
push esi
push edi
test dl, dl
je 0x48b854
add esp, 0xfffffff0
call fcn.00403cf8
mov esi, ecx
mov ebx, edx
mov edi, eax
lea eax, [ebp - 0x18e]
push eax
push 0x2010
call sub.ws2_32.dll_WSAStartup
xor eax, eax
mov dword [edi + 0x624], eax
mov dword [edi + 0x40], esi
xor eax, eax
mov dword [edi + 0x61c], eax
xor ecx, ecx
xor edx, edx
mov eax, edi
call fcn.0041a8ec
mov eax, edi
test bl, bl
je 0x48b89e
call fcn.00403d50
pop dword fs:[0]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401090
Capabilities:
Query or enumerate registry value

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi]
test eax, eax
jne 0x40109d
pop edi
ret 0xc
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0xc]
push esi
push edx
mov edx, dword [esp + 0x10]
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
mov eax, esi
pop esi
pop edi
ret 0xc
Function at 0x40edf9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42e690
cmp edx, dword [eax]
je 0x40ee1b
add eax, 8
inc ecx
cmp eax, 0x42e720
jl 0x40ee0c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42e690]
jne 0x40ef49
mov eax, dword [0x4311a4]
cmp eax, 1
je 0x40ef23
test eax, eax
jne 0x40ee4c
cmp dword [0x42df24], 1
je 0x40ef23
cmp edx, 0xfc
je 0x40ef49
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40ee83
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040fb40
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040fc30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40eec6
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040fc30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x426dac
push edi
call fcn.004113b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040fb40
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040fb50
lea eax, [ebp - 0xa0]
push 0x426d8c
push eax
call fcn.0040fb50
push dword [esi + 0x42e694]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040fb50
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041131c
add esp, 0x2c
pop edi
jmp 0x40ef49
lea eax, [ebp + 8]
lea esi, [esi + 0x42e694]
push 0
push eax
push dword [esi]
call fcn.0040fc30
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]
pop esi
leave
ret
Function at 0x4167b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040c000
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41687b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41687b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41682e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x416839
or bh, 8
and edi, 0x8000000
je 0x416854
mov eax, dword [0x43293c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41687b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416c50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x416c7b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x416c9f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x416cba
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x4191bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4191e1
cmp dword [edi + 0x3c], 0
jne 0x4191e1
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0041fd42
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0041920e
pop edi
pop esi
pop ebx
ret 8

Function at 0x419559
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x422ee4
call fcn.0040b0b4
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0041fd42
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x419598
call fcn.0041fd42
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4195a6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4195b4
or eax, 0xffffffff
jmp 0x41969c
mov ecx, esi
call fcn.004194cf
mov dword [ebp - 0x14], eax
call fcn.0041a410
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x4195eb
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4195eb
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0041a3c4
push dword [ebp - 0x14]
call fcn.00419f12
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0041925c
cmp eax, edi
je 0x41965e
test byte [esi + 0x24], 0x10
je 0x41962c
push 4
mov ecx, esi
pop ebx
call fcn.00418d94
test ah, 1
je 0x419624
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0041bf50
cmp dword [esi + 0x1c], edi
je 0x41965e
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00418e7a
jmp 0x41965e
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x419672
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41968b
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41968b
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00419509
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x41bdfe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41be40
call fcn.0041fd42
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41be40
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41be37
xor eax, eax
jmp 0x41be48
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041be4e
pop edi
pop esi
pop ebx
ret 4

Function at 0x42056b
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 0x420599
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4205b7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004204d1
jmp 0x4205b7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4205b7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004204d1
test edi, edi
mov eax, edi
jne 0x4205a1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x409bc0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48cf0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0047fa7a
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x409c42
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0047d360
mov eax, dword [eax]
push 0x668200
push eax
call fcn.0046f224
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0047fd05
test bl, bl
je 0x409c42
push 0x668200
lea ecx, [esp + 0xc]
call fcn.004800e1
push 0x66bd84
lea ecx, [esp + 0xc]
call fcn.004800e1
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x409c7e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0047fd05
jmp 0x409d49
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x409d02
lea edx, [esp + 0x7c]
push 0x66bd80
push edx
call fcn.0046f224
add esp, 8
test eax, eax
je 0x409d02
lea eax, [esp + 0x7c]
push 0x66bd7c
push eax
call fcn.0046f224
add esp, 8
test eax, eax
je 0x409d02
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409c92
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0047fd05
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40a540
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40a5a2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc