joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ea134
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x178]
test eax, eax
je 0x4ea1e0
cmp dword [ebx + 0x98], 0
jne 0x4ea1da
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4ea06c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x94]
cmp dword [eax + 8], 0
je 0x4ea1da
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
mov eax, esi
mov edx, 0xffffffec
push edx
push eax
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x4ea1a0
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x94]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4ea1da
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x94]
call fcn.004482f8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4ea1af
inc dword [ebx + 0x98]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4ea400
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x5c22f4]
cmp dword [eax + 0x178], 0
je 0x4ea565
test bl, bl
jne 0x4ea4b3
cmp dword [esi + 0xa0], 0
jne 0x4ea4a8
mov eax, esi
call fcn.004ed2fc
push eax
push 0x4ea30c
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x48], 0
je 0x4ea479
mov eax, dword [0x5c22f4]
cmp byte [eax + 0xd7], 0
je 0x4ea479
mov eax, dword [esi + 0xdc]
call fcn.0040b6f0
mov edi, eax
cmp edi, 0
jl 0x4ea479
push 0
mov eax, dword [esi + 0xdc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4ea462
mov eax, dword [esi + 0x9c]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4ea4a8
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x9c]
call fcn.004482f8
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4ea488
inc dword [esi + 0xa0]
jmp 0x4ea565
cmp dword [esi + 0xa0], 0
jle 0x4ea565
dec dword [esi + 0xa0]
cmp dword [esi + 0xa0], 0
jne 0x4ea565
cmp dword [esi + 0x48], 0
je 0x4ea510
mov eax, dword [0x5c22f4]
cmp byte [eax + 0xd7], 0
je 0x4ea510
mov eax, dword [esi + 0xdc]
call fcn.0040b6f0
mov edi, eax
cmp edi, 0
jl 0x4ea510
push 5
mov eax, dword [esi + 0xdc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4ea4f9
mov eax, dword [esi + 0x9c]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4ea53f
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x9c]
call fcn.004482f8
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4ea51f
mov eax, dword [esi + 0x9c]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xdc]
mov ecx, 1
mov edx, dword [0x4dbf38]
call fcn.0040b89c
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4eb1b8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xb0], 0
je 0x4eb223
cmp byte [ebx + 0xd7], 0
jne 0x4eb223
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x178]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00409650
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4eb210
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4eb230
mov eax, esi
mov edx, dword [ebx + 0x90]
call fcn.004098a8
jmp 0x4eb230
mov eax, esi
mov edx, dword [ebx + 0x90]
call fcn.004098a8
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4eca68
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x88]
test esi, esi
je 0x4ecad6
mov eax, esi
call fcn.0051af74
test al, al
je 0x4ecad6
mov eax, dword [ebx + 0x88]
call fcn.0051abc0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4ecad6
mov eax, dword [ebx + 0x88]
mov edx, dword [eax]
call dword [edx + 0x108]
test al, al
je 0x4ecaca
push 0
mov eax, dword [ebx + 0x88]
call fcn.0051abc0
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x88]
call fcn.005119dc
jmp 0x4ecad6
mov cl, 1
mov edx, dword [ebx + 0x78]
mov eax, ebx
call fcn.004ec8a0
pop esi
pop ebx
ret
Function at 0x4f3498
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x8c], 0
jne 0x4f3512
mov eax, dword [ebx + 8]
call fcn.0051abc0
mov ecx, eax
mov dl, 1
mov eax, dword [0x480920]
call fcn.00514fe4
mov esi, eax
mov dword [ebx + 0x8c], esi
xor edx, edx
mov eax, esi
call fcn.00485b18
mov dword [esi + 0x2a4], ebx
mov dword [esi + 0x2a0], 0x4f2d90
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x8c]
call fcn.0051abc0
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x8c]
call fcn.0051abc0
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x9c], 0
jne 0x4f3588
mov eax, dword [ebx + 8]
call fcn.0051abc0
mov ecx, eax
mov dl, 1
mov eax, dword [0x480920]
call fcn.00514fe4
mov esi, eax
mov dword [ebx + 0x9c], esi
mov dl, 1
mov eax, esi
call fcn.00485b18
mov dword [esi + 0x2a4], ebx
mov dword [esi + 0x2a0], 0x4f2ddc
push 8
push 0
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x9c]
call fcn.0051abc0
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x9c]
call fcn.0051abc0
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x94], 0
jne 0x4f35f4
mov eax, dword [ebx + 8]
call fcn.0051abc0
mov ecx, eax
mov dl, 1
mov eax, dword [0x48135c]
call fcn.00514fe4
mov esi, eax
mov dword [ebx + 0x94], esi
mov eax, esi
mov byte [eax + 0x278], 1
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x94]
call fcn.0051abc0
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x94]
call fcn.0051abc0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4fbec0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.004094c8
push 0
movzx eax, bl
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
mov ebx, eax
test ebx, ebx
je 0x4fbf12
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetKeyNameTextW
test eax, eax
je 0x4fbf0b
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.0040a330
jmp 0x4fbf12
mov eax, esi
call fcn.004094c8
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x5016b4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x501813
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x5ba500], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x45e24c]
call fcn.0045f398
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x5017e9
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0045f480
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.0040a330
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x50182c
call fcn.0040a4e0
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0045f70c
test al, al
je 0x5017d3
lea ecx, [ebp - 4]
mov edx, 0x5018a0
mov eax, dword [ebp - 0xc]
call fcn.0045ff94
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0042a5f0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5017d3
xor edx, edx
push ebp
push 0x5017cc
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x5018b8
mov eax, dword [ebp - 8]
push eax
call fcn.00410994
test eax, eax
je 0x5017b5
mov ebx, eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x5017b5
call fcn.00501640
test eax, eax
je 0x5017a5
mov eax, dword [ebx + 0x50]
jmp 0x5017a8
mov eax, dword [ebx + 0x28]
and eax, 1
cmp eax, 1
sete byte [0x5ba500]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5017d3
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_2
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5017f0
mov eax, dword [ebp - 0xc]
call fcn.0040787c
ret

Function at 0x50191c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x501963
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x501946
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x501957
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x501963
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x50f040
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x5c2388], 0
je 0x50f181
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x5bc390]
mov edx, dword [edx]
xor al, byte [edx + 0xc0]
je 0x50f181
mov eax, dword [0x5c238c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x5c2388]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x50f150
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x5c2388]
call fcn.004482f8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x50f148
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1f2], 0
je 0x50f148
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x68]
test al, al
je 0x50f148
mov eax, dword [ebp - 0x14]
call fcn.0051abc0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x50f148
push ebp
call fcn.0050effc
pop ecx
test al, al
jne 0x50f148
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffba
call fcn.00407bd8
test al, al
je 0x50f148
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00407bd8
cmp byte [ebp - 1], 0
je 0x50f148
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.0040f0b0
test al, al
je 0x50f148
mov edx, dword [ebp - 0x14]
mov eax, dword [0x5c238c]
call fcn.0050e75c
inc edi
dec ebx
jne 0x50f0a5
mov eax, dword [0x5c238c]
cmp dword [eax + 8], 0
jle 0x50f168
mov eax, dword [0x5c238c]
call fcn.0050e814
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x50f181
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0050ee64
pop ecx
test al, al
jne 0x50f181
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51763c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.0040f098
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.005115ec
test ebx, ebx
jne 0x51768f
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.005174b8
mov ebx, eax
test ebx, ebx
je 0x517785
cmp esi, ebx
je 0x5176b8
mov eax, dword [esp]
sub eax, dword [ebx + 0x48]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x4c]
mov dword [esp + 0x118], eax
jmp 0x5176cd
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x517705
add eax, 0xffffff5f
sub eax, 2
jb 0x51771d
dec eax
sub eax, 2
jb 0x517731
dec eax
sub eax, 2
jb 0x517727
jmp 0x51773b
add eax, 0xfffffdff
sub eax, 2
jb 0x51771d
dec eax
sub eax, 2
jb 0x517731
dec eax
sub eax, 2
jb 0x517727
jmp 0x51773b
mov byte [esp + 0x120], 0
jmp 0x517743
mov byte [esp + 0x120], 2
jmp 0x517743
mov byte [esp + 0x120], 1
jmp 0x517743
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.004df648
mov esi, eax
call fcn.0050e0ec
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.00513000
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x517787
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x5868ac
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x5868da
mov eax, ebx
call fcn.00587368
cmp dword [ebx + 0x40], 0
je 0x5868d3
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x58694b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x58693d
cmp dword [ebx + 8], 0
je 0x5868fc
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x58690e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x58693d
cmp dword [ebx + 8], 0
je 0x5868ef
cmp eax, 3
je 0x586921
dec eax
jne 0x5868ef
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x5868ef
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x5868ef
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x586969
cmp dword [ebx + 0x14], 0xcc
je 0x586969
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00586974
pop ebx
ret
Function at 0x10001000
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push 3
push esi
push esi
push connect
push dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100010cc
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 4], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
mov eax, dword [ebp - 4]
shr eax, 1
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push dword [ebp - 4]
mov dword [ebp + 8], eax
push esi
push ebx
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 4]
shr eax, 1
push eax
push esi
push dword [ebp + 8]
call sub.MSVCRT.dll_memset
add esp, 0x20
lea eax, [ebp - 8]
push esi
push eax
push dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp - 4]
push esi
shr eax, 1
push esi
push eax
push dword [ebp + 8]
inc ebx
inc ebx
push 0xffffffffffffffff
push ebx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x100010d0
push ebx
call fcn.1000620e
push dword [ebp + 8]
call fcn.1000620e
pop ecx
pop ecx
xor eax, eax
jmp 0x10001103
lea eax, [ebp - 8]
push esi
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call fcn.1000620e
push dword [ebp + 8]
call fcn.1000620e
pop ecx
pop ecx
push dword [ebp + 0xc]
call edi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002060
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
test edx, edx
je 0x10002081
cmp word [edx], 0x5a4d
jne 0x10002081
mov ecx, dword [edx + 0x3c]
add ecx, edx
cmp dword [ecx], 0x4550
jne 0x10002081
mov eax, dword [ecx + 0x50]
ret 4
Function at 0x10002e3a
Capabilities:
Delete file

Disassembly:
mov eax, 0x100064a0
call fcn.10006240
sub esp, 0x164
push ebx
push esi
push edi
push 1
pop edi
xor ebx, ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call sub.gdiplus.dll_GdiplusStartup
push dword [ebp + 8]
lea eax, [ebp - 0x170]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x170]
pop ecx
push 0x1000916c
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea ecx, [ebp - 0x170]
sub ecx, 3
add eax, ecx
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
pop ecx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call esi
mov dword [ebp - 0x10], eax
lea eax, [eax + eax + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x14], eax
push dword [ebp - 0x10]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call esi
push ebx
push ebx
lea eax, [ebp - 0x170]
push 0xffffffffffffffff
push eax
push ebx
push ebx
call esi
mov dword [ebp - 0x10], eax
lea eax, [eax + eax + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x18], eax
push dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x170]
push 0xffffffffffffffff
push eax
push ebx
push ebx
call esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], 0x10007228
mov dword [ebp - 0x24], ebx
push eax
push dword [ebp - 0x14]
call sub.gdiplus.dll_GdipLoadImageFromFile
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], ebx
push eax
push str.image_jpeg
call fcn.10002fad
mov dword [ebp - 0x5c], edi
mov esi, 0x10007230
lea edi, [ebp - 0x58]
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
lea eax, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
push 1
mov dword [ebp - 0x40], eax
pop esi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x44], 4
push dword [ebp - 0x18]
mov dword [ebp - 0x48], esi
push dword [ebp - 0x24]
call sub.gdiplus.dll_GdipSaveImageToFile
cmp eax, ebx
je 0x10002f6a
mov dword [ebp - 0x20], eax
push dword [ebp - 0x14]
call fcn.1000620e
push dword [ebp - 0x18]
call fcn.1000620e
pop ecx
mov dword [ebp - 0x28], 0x10007228
pop ecx
push dword [ebp - 0x24]
call sub.gdiplus.dll_GdipDisposeImage
push dword [ebp - 0x2c]
call sub.gdiplus.dll_GdiplusShutdown
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x100036c9
Capabilities:
Create thread

Disassembly:
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
push esi
push esi
push 0x100035ba
push esi
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
push esi
push esi
push esi
push 0x10003671
push esi
push esi
call edi
push eax
call ebx
push 1
pop eax
pop edi
pop esi
pop ebx
ret
Function at 0x10003866
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x100038a3
cmp byte [ebp - 0x190], 2
jne 0x1000389d
mov al, byte [ebp - 0x18f]
cmp al, 2
jne 0x1000389d
push 1
pop eax
leave
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
leave
ret

Function at 0x1000395d
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x100039a4
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx]
test ecx, ecx
je 0x100039a4
movsx eax, word [eax + 0xa]
push eax
lea eax, [ebp - 0xc]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x100039a8
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100039c6
xor eax, eax
jmp 0x10003a05
push dword [ebp + 8]
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10003a03
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x10003a05
mov eax, esi
pop esi
leave
ret
Function at 0x10003c3e
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
cmp dword [0x10090490], esi
jne 0x10003c73
push edi
push esi
push esi
push esi
push 0x10003fa8
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [esp + 0xc], esi
mov edi, eax
je 0x10003c6b
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret 4
Function at 0x10004401
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x1000439a
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
Function at 0x100049b3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
jle 0x10004a03
push esi
inc cl
movzx ecx, cl
mov edx, dword [eax + ecx*4 + 8]
mov dword [ebp + 8], ecx
lea esi, [eax + ecx*4 + 8]
mov cl, dl
add cl, bl
movzx ebx, cl
mov ecx, dword [eax + ebx*4 + 8]
mov dword [esi], ecx
mov esi, dword [ebp + 0xc]
add cl, dl
mov dword [eax + ebx*4 + 8], edx
movzx ecx, cl
add esi, edi
mov cl, byte [eax + ecx*4 + 8]
xor byte [esi], cl
mov ecx, dword [ebp + 8]
inc edi
cmp edi, dword [ebp + 0x10]
jl 0x100049c8
pop esi
mov dword [eax + 4], ebx
pop edi
mov dword [eax], ecx
pop ebx
pop ebp
ret 0xc