joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426031
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4394c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0041aa15
mov dword [ebp - 0x14], eax
cmp dword [0x43bbec], esi
jne 0x426124
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4260b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x426204
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x426204
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x426204
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43bbec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43bbf0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43bbf4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43bbfc], eax
test eax, eax
je 0x426121
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43bbf8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x426149
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42613c
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x42615e
push 4
pop eax
jmp 0x426206
cmp dword [ebp - 0x14], esi
je 0x42615e
push dword [0x43bbec]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x426143
mov eax, dword [0x43bbf8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4261bc
cmp dword [0x43bbfc], edi
je 0x4261bc
push eax
call ebx
push dword [0x43bbfc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4261bc
test eax, eax
je 0x4261bc
call ecx
test eax, eax
je 0x4261b1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4261b1
test byte [ebp - 8], 1
jne 0x4261bc
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4261ec
mov eax, dword [0x43bbf0]
cmp eax, edi
je 0x4261e9
push eax
call ebx
test eax, eax
je 0x4261e9
call eax
mov esi, eax
test esi, esi
je 0x4261e9
mov eax, dword [0x43bbf4]
cmp eax, edi
je 0x4261e9
push eax
call ebx
test eax, eax
je 0x4261e9
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43bbec]
call ebx
test eax, eax
je 0x426204
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x426206
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416cb0
mov esp, ebp
pop ebp
ret
Function at 0x10001630
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
imul ebx, eax, 0x508
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x100060ec]
test eax, eax
je 0x10001720
lea esi, [ebx + 0x100060a0]
mov edi, edx
mov eax, esi
call sym._controller_lock.part.0
test eax, eax
je 0x10001720
movzx ecx, word [esi + 0x30]
xor cx, word [esi + 0x3c]
mov edx, 1
xor eax, eax
movzx ecx, cx
jmp 0x10001687
mov edx, dword [eax*8 + 0x10009ba0]
test ecx, edx
jne 0x10001730
add eax, 1
cmp eax, 0xe
jne 0x10001680
imul edx, dword [ebp - 0x10], 0x508
cmp byte [edx + 0x100060d2], 0x1e
lea eax, [edx + 0x100060a0]
seta cl
cmp byte [edx + 0x100060de], 0x1e
seta dl
cmp cl, dl
jne 0x10001780
cmp byte [eax + 0x33], 0x1e
seta dl
cmp byte [eax + 0x3f], 0x1e
seta cl
cmp dl, cl
je 0x100017c0
mov dword [edi], 0x5807
xor edx, edx
cmp byte [eax + 0x33], 0x1f
setb dl
movzx ebx, byte [ebp - 0x10]
mov byte [edi + 7], 0
add edx, 1
mov word [edi + 4], dx
mov byte [edi + 6], bl
movzx edx, byte [eax + 0x33]
mov byte [eax + 0x3f], dl
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x10]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 0x48f
pop ebx
pop esi
pop edi
pop ebp
ret
imul ecx, dword [ebp - 0x10], 0x508
movzx eax, word [eax*8 + 0x10009ba4]
mov word [edi], ax
xor eax, eax
mov word [edi + 2], ax
lea eax, [ecx + 0x100060a0]
movzx ecx, word [ecx + 0x100060d0]
test ecx, edx
jne 0x100017b0
mov ecx, 2
not edx
mov word [edi + 4], cx
and word [eax + 0x3c], dx
movzx eax, byte [ebp - 0x10]
mov byte [edi + 7], 0
mov byte [edi + 6], al
xor eax, eax
jmp 0x10001700
mov dword [edi], 0x5806
xor edx, edx
cmp byte [eax + 0x32], 0x1f
setb dl
movzx ebx, byte [ebp - 0x10]
mov byte [edi + 7], 0
add edx, 1
mov word [edi + 4], dx
mov byte [edi + 6], bl
movzx edx, byte [eax + 0x32]
mov byte [eax + 0x3e], dl
xor eax, eax
jmp 0x10001700
mov ebx, 1
mov word [edi + 4], bx
or word [eax + 0x3c], dx
jmp 0x10001768
lea eax, [ebx + 0x100060e2]
mov dword [esp + 0xc], 0x5820
lea ecx, [ebx + 0x100060d4]
mov edx, edi
mov dword [esp + 8], eax
lea eax, [ebx + 0x100060e0]
mov dword [esp + 4], eax
lea eax, [ebx + 0x100060d6]
mov dword [esp], eax
mov eax, dword [ebp - 0x10]
call sym._check_joystick_keystroke
test eax, eax
je 0x10001700
lea eax, [ebx + 0x100060e6]
lea ecx, [ebx + 0x100060d8]
mov dword [esp + 0xc], 0x5830
mov edx, edi
mov dword [esp + 8], eax
lea eax, [ebx + 0x100060e4]
add ebx, 0x100060da
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], ebx
call sym._check_joystick_keystroke
jmp 0x10001700
Function at 0x10001bb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x18
movzx esi, word [eax + 0x264]
mov edi, dword [eax + 0x468]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x258]
test eax, eax
jne 0x10001c67
test byte [ebx + 0x1a], 1
jne 0x10001c90
lea eax, [ebx + 0x454]
mov edx, dword [ebx + 0x450]
mov dword [ebx + 0x258], 1
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x4c]
mov dword [ebx + 0x454], 0
mov dword [ebx + 0x458], 0
mov dword [ebx + 0x45c], 0
mov dword [ebx + 0x460], 0
mov dword [ebx + 0x464], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
jne 0x10001c70
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x3e5
je 0x10001c70
mov eax, ebx
call sym._controller_destroy.constprop.0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x1000c008]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEvent]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea ecx, [ebp - 0xe]
lea edx, [ebp - 0x10]
mov eax, ebx
call sym._HID_set_state.isra.0
jmp 0x10001be6
Function at 0x10001cb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 8]
sub esp, 0x1c
mov dword [esp + 8], eax
mov dword [esp + 4], sym._hid_update_thread_proc_4
mov dword [esp], 4
call dword [sym.imp.kernel32.dll_GetModuleHandleExW]
sub esp, 0xc
test eax, eax
jne 0x10001ce7
test byte [0x100074c0], 4
jne 0x10001e90
mov dword [esp + 0xc], 0
mov ebx, dword [sym.imp.kernel32.dll_CreateEventA]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call ebx
mov dword [0x1000c00c], eax
sub esp, 0x10
test eax, eax
je 0x10001e48
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call ebx
mov dword [0x1000c008], eax
sub esp, 0x10
test eax, eax
je 0x10001e00
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym._hid_update_thread_proc_4
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
sub esp, 0x18
mov ebx, eax
test eax, eax
je 0x10001dc0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [0x1000c00c]
sub esp, 4
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov ebx, dword [ebp - 4]
mov eax, 1
sub esp, 8
leave
ret 0xc
test byte [0x100074c0], 2
je 0x10001d8d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_create_update_thread__error__lu_n
mov dword [esp + 8], str.start_update_thread_once
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x100074c0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x10001d8d
test byte [0x100074c0], 2
je 0x10001d4f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_create_update_event__error__lu_n
mov dword [esp + 8], str.start_update_thread_once
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x100074c0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x10001d4f
test byte [0x100074c0], 2
je 0x10001d1e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_create_start_event__error__lu_n
mov dword [esp + 8], str.start_update_thread_once
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x100074c0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x10001d1e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.Failed_to_increase_modules_reference_count__error:__lu_n
mov dword [esp + 8], str.start_update_thread_once
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x100074c0
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x10001ce7
Function at 0x10004ea0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10004ef8
cmp byte [esi + ebx - 1], 0xa
je 0x10004ecc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x1000c0a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10005520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x100056f8
mov edi, dword [0x1000c0a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x10005607
test byte [0x100074e8], 8
jne 0x100056a0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x100074f8], 8
jne 0x10005660
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x100055a9
cmp esi, 3
jbe 0x10005618
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x100055ba
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x1000a528]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x100055a9
mov dword [esp], 0x100074f8
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10005580
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x10005580
mov dword [esp], 0x100074e8
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x1000556b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x10005573
mov eax, 0xffffffff
jmp 0x10005607
Function at 0x40d099
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42c658
cmp edx, dword [eax]
je 0x40d0bb
add eax, 8
inc ecx
cmp eax, 0x42c6e8
jl 0x40d0ac
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42c658]
jne 0x40d1e9
mov eax, dword [0x42f748]
cmp eax, 1
je 0x40d1c3
test eax, eax
jne 0x40d0ec
cmp dword [0x42c174], 1
je 0x40d1c3
cmp edx, 0xfc
je 0x40d1e9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40d123
lea eax, [ebp - 0x1a4]
push 0x424e90
push eax
call fcn.0040d280
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040d370
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40d166
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040d370
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x424e8c
push edi
call fcn.0040f5c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x424e70
push eax
call fcn.0040d280
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040d290
lea eax, [ebp - 0xa0]
push 0x424e6c
push eax
call fcn.0040d290
push dword [esi + 0x42c65c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040d290
push 0x12010
lea eax, [ebp - 0xa0]
push 0x424e44
push eax
call fcn.0040f537
add esp, 0x2c
pop edi
jmp 0x40d1e9
lea eax, [ebp + 8]
lea esi, [esi + 0x42c65c]
push 0
push eax
push dword [esi]
call fcn.0040d370
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 0x414d30
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.0040ae50
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x414dfb
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 0x414dfb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x414dae
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x414db9
or bh, 8
and edi, 0x8000000
je 0x414dd4
mov eax, dword [0x430e9c]
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 0x414dfb
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 0x4151d0
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 0x4151fb
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 0x41521f
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 0x41523a
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 0x419500
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 0x419542
call fcn.0041decf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x419542
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x419539
xor eax, eax
jmp 0x41954a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00419550
pop edi
pop esi
pop ebx
ret 4

Function at 0x41e68e
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 0x41e6bc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41e6da
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041e5f4
jmp 0x41e6da
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41e6da
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041e5f4
test edi, edi
mov eax, edi
jne 0x41e6c4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401490
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 4], eax
mov eax, 2
mov word [ebp - 0x14], ax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
movzx edx, word [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov esp, ebp
pop ebp
ret

Function at 0x401500
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0x104
lea eax, [ebp - 0x25c]
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x401557
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SHGetFolderPath_failed._Error:__d_n
call fcn.00401950
add esp, 8
xor eax, eax
jmp 0x401663
push 0x4032f0
push 0x104
lea ecx, [ebp - 0x25c]
push ecx
call fcn.004017e0
lea edx, [ebp - 0x158]
push edx
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x401595
xor ecx, ecx
jne 0x40158a
xor eax, eax
jmp 0x401663
mov edx, dword [ebp - 0x158]
and edx, 0x10
je 0x4015ca
lea eax, [ebp - 0x12c]
push eax
push str.___s____DIR__n
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add eax, dword [ebp + 8]
push eax
call fcn.00401830
add esp, 0x10
jmp 0x40160c
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x12c]
push ecx
push str.___s____lld_bytes_n
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add eax, dword [ebp + 8]
push eax
call fcn.00401830
add esp, 0x18
mov ecx, dword [ebp + 8]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov edx, 0x104
sub edx, eax
mov dword [ebp - 4], edx
lea eax, [ebp - 0x158]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x401641
cmp dword [ebp - 4], 0
ja 0x401595
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x12
je 0x401654
xor edx, edx
jne 0x401650
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov esp, ebp
pop ebp
ret