joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100818b5
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 8], 0
jne 0x100818db
push 0x110
push str.appui3.cpp
call fcn.100a7480
test eax, eax
je 0x100818db
int3
xor eax, eax
test eax, eax
jne 0x100818c1
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x80], 0
je 0x100819c6
cmp dword [ebp + 0xc], 0
jne 0x1008192f
mov ecx, dword [ebp - 0x14]
call fcn.100b8b6c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1008190f
xor eax, eax
jmp 0x10081a39
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100819bb
cmp dword [ebp + 0x10], 0
jne 0x1008196e
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.100b8c72
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10081951
xor eax, eax
jmp 0x10081a39
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100819bb
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.100b8c72
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1008198a
xor eax, eax
jmp 0x10081a39
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov edx, dword [ebp + 0x10]
push edx
push 1
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 4], 0
sete al
jmp 0x10081a39
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x94], 0
jne 0x100819e6
push 0x132
push str.appui3.cpp
call fcn.100a7480
test eax, eax
je 0x100819e6
int3
xor ecx, ecx
test ecx, ecx
jne 0x100819c6
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0xfff
jl 0x10081a17
push 0x133
push str.appui3.cpp
call fcn.100a7480
test eax, eax
je 0x10081a17
int3
xor ecx, ecx
test ecx, ecx
jne 0x100819ec
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x94]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10093496
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp + 0x18]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.100930c0
mov dword [ebp - 0x28], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
je 0x100934f5
push 0x20
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.10093254
test eax, eax
jne 0x100934f3
push 0xffffffffffffffff
push 0
mov edx, dword [ebp + 0x14]
push edx
call fcn.10080a89
mov ecx, dword [ebp + 8]
call fcn.100931df
jmp 0x10093514
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.10077523
mov dword [ebp - 4], 0
mov esp, ebp
pop ebp
ret

Function at 0x10093b84
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.1009310e
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x10093bfd
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x10093bd4
mov eax, dword [ebp - 8]
add eax, 1
push eax
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.1006d2f7
push eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x10093bf1
push 0x100
push 0xff
mov ecx, dword [ebp + 0x10]
call fcn.1006d148
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x10]
call fcn.1006d283
jmp 0x10093c2e
mov ecx, dword [ebp + 0x10]
call fcn.100a3aaa
push eax
push 0xffffffffffffffff
push 0x14d
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x10093c2e
mov ecx, dword [ebp + 0x10]
call fcn.100a3aaa
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.10077523
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100950d8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
push 5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100951c7
mov eax, dword [ebp - 4]
push eax
call fcn.10065148
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100951b3
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1c]
cmp edx, dword [ebp - 4]
je 0x100951b3
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1c]
push edx
call fcn.10094cf0
test eax, eax
je 0x100951b3
push 0xfffffffffffffff0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
jne 0x10095179
mov ecx, dword [ebp - 0xc]
and ecx, 0x18000000
cmp ecx, 0x10000000
jne 0x10095179
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
or ecx, 2
mov edx, dword [ebp - 8]
mov dword [edx + 0x24], ecx
jmp 0x100951b3
cmp dword [ebp + 8], 0
je 0x100951b3
mov eax, dword [ebp - 0xc]
and eax, 0x18000000
test eax, eax
jne 0x100951b3
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
and edx, 2
test edx, edx
je 0x100951b3
push 4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
and edx, 0xfffffffd
mov eax, dword [ebp - 8]
mov dword [eax + 0x24], edx
push 2
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 4], eax
jmp 0x100950f3
mov esp, ebp
pop ebp
ret 4
Function at 0x1009902e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
and ecx, 1
test ecx, ecx
je 0x10099052
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 4], eax
jmp 0x1009908c
push 5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100990a6
push 0xc9
push str.dlgprop.cpp
call fcn.100a7480
test eax, eax
je 0x100990a6
int3
xor eax, eax
test eax, eax
jne 0x1009908c
mov ecx, dword [ebp - 4]
xor edx, edx
mov dx, word [ecx + 2]
cmp edx, 0xffff
jne 0x10099181
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
and eax, 0x80000000
test eax, eax
je 0x10099151
push 0x104a505c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x100990fe
push 0xe1
push str.dlgprop.cpp
call fcn.100a7480
test eax, eax
je 0x100990fe
int3
xor ecx, ecx
test ecx, ecx
jne 0x100990e4
cmp dword [ebp - 0x18], 0
je 0x1009914f
push 0x104a506c
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x10099145
mov eax, 1
test eax, eax
je 0x1009913f
push 0xe6
push str.dlgprop.cpp
call fcn.100a7480
test eax, eax
je 0x1009913f
int3
xor ecx, ecx
test ecx, ecx
jne 0x10099122
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10099181
mov eax, dword [ebp - 0x14]
and eax, 0xff
cmp eax, 3
jne 0x10099181
mov ecx, 1
test ecx, ecx
je 0x1009917b
push 0xed
push str.dlgprop.cpp
call fcn.100a7480
test eax, eax
je 0x1009917b
int3
xor edx, edx
test edx, edx
jne 0x1009915e
call fcn.100b7d03
cmp dword [eax + 0x1038], 0
je 0x1009919e
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.10098fe3
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.10098ea5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x44], 0
je 0x100991ce
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x44], 0
cmp dword [ebp - 8], 0
je 0x100991e3
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
mov dword [edx + 0x44], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
or ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100b6fcc
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
cmp dword [ebp + 8], 0
jne 0x100b6ff2
push 0x146
push str.afxtls.cpp
call fcn.100a7480
test eax, eax
je 0x100b6ff2
int3
xor eax, eax
test eax, eax
jne 0x100b6fd8
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
jmp 0x100b7011
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 8]
jge 0x100b7094
cmp dword [ebp + 0xc], 0
je 0x100b7034
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + eax*8 + 4]
cmp ecx, dword [ebp + 0xc]
jne 0x100b7079
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x100b7060
push 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xc]
call dword [edx]
mov dword [ebp - 0x20], eax
jmp 0x100b7067
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 8]
mov dword [ecx + edx*4], 0
jmp 0x100b708f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 8]
cmp dword [ecx + edx*4], 0
je 0x100b708f
mov dword [ebp - 4], 0
jmp 0x100b7008
cmp dword [ebp - 4], 0
je 0x100b7108
mov eax, dword [ebp - 0x1c]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x14
call fcn.100b7690
mov edx, dword [ebp - 0x1c]
add edx, 0x1c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x100b70f3
push 1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x14]
call dword [edx]
mov dword [ebp - 0x24], eax
jmp 0x100b70fa
mov dword [ebp - 0x24], 0
push 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100b7111
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 0xc], 0
jne 0x100b7154
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100b7152
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.100b6fcc
jmp 0x100b7189
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.100b76b0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100b7189
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.100b6fcc
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
jmp 0x100b7162
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esp, ebp
pop ebp
ret 8
Function at 0x100c13a8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ole32.dll_CoTreatAsClass]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100c144b
cmp dword [ebp + 8], 0
je 0x100c144b
lea edx, [ebp - 0xc]
push edx
push 0x104aa274
push OleUIInsertObjectA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov edx, dword [ebp - 0x10]
push edx
call fcn.100bd72e
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ole32.dll_CoTreatAsClass]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100db8af
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
push 0x55
push str.oledrop1.cpp
mov eax, dword [ebp - 0x24]
push eax
call fcn.1006e3a0
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x30], 0
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x34], 0
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x38], 0
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x100db913
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x38]
or al, 1
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x34]
or al, 2
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x34], eax
jmp 0x100db940
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x100db940
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x38]
or ecx, 2
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x38], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x34]
or ecx, 1
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x34], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
call fcn.100a8f84
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x30], 0
jne 0x100dba1a
call fcn.100a8f73
cmp eax, dword [ebp + 8]
je 0x100db96d
jmp 0x100dba1a
push 1
push 0x209
push 0x200
push 0
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x100db9a5
push 1
push 0x108
push 0x100
push 0
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x100db9fa
cmp dword [ebp - 0x1c], 0x202
je 0x100db9c9
cmp dword [ebp - 0x1c], 0x205
je 0x100db9c9
cmp dword [ebp - 0x1c], 0x201
je 0x100db9c9
cmp dword [ebp - 0x1c], 0x204
jne 0x100db9cb
jmp 0x100dba1a
cmp dword [ebp - 0x1c], 0x100
jne 0x100db9dc
cmp dword [ebp - 0x18], 0x1b
jne 0x100db9dc
jmp 0x100dba1a
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0x20
call fcn.100aee76
neg eax
sbb eax, eax
inc eax
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [0x104b2da4]
jbe 0x100dba15
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x30], 1
jmp 0x100db951
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + 0x30]
mov esp, ebp
pop ebp
ret 4
Function at 0x401a60
Capabilities:
Check http status code
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x442310]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x1c], eax
push dword [ebx + 8]
mov dword [ebp - 0xc], 0
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x401aba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x2f00
xor ecx, ecx
cmp eax, edx
pop ebx
cmove ecx, edx
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d103
mov esp, ebp
pop ebp
ret 8
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x20000013
push dword [ebx + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x401af0
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d103
mov esp, ebp
pop ebp
ret 8
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
xor esi, esi
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0xc], 0xc8
jne 0x401b79
lea esp, [esp]
cmp esi, 0xa3e8
ja 0x401b5c
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebx + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x401b37
call edi
mov eax, dword [ebp - 8]
jmp 0x401b58
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
mov eax, dword [ebp - 0x18]
add eax, esi
push eax
push dword [ebx + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x401b53
call edi
mov eax, dword [ebp - 8]
add esi, eax
test eax, eax
jne 0x401b10
mov eax, dword [ebp - 0x1c]
pop edi
mov dword [eax], esi
mov eax, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d103
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d103
mov esp, ebp
pop ebp
ret 8
Function at 0x401bc0
Capabilities:
Get file size
Read and send data from client to server
Read file on windows
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x442310]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x403]
xor esi, esi
mov byte [ebp - 0x404], 0
push 0x3ff
push esi
push eax
mov ebx, ecx
mov dword [ebp - 0x408], esi
mov dword [ebp - 0x40c], esi
call fcn.0041dbc0
add esp, 0xc
cmp dword [ebx + 8], esi
je 0x401d28
test edi, edi
je 0x401d28
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401d28
lea eax, [ebp - 0x414]
mov dword [ebp - 0x414], esi
push eax
push edi
mov dword [ebp - 0x410], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x401d21
mov eax, dword [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x401c88
push esi
push dword [ebx + 0x2c]
push dword [ebx + 0x28]
push eax
push 1
push dword [ebx + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
test eax, eax
je 0x401d21
push 0
push dword [ebp - 0x418]
push 0
push 0
push 0
push 0
push dword [ebx + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x401d21
push 0
lea eax, [ebp - 0x408]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x401d21
mov ecx, dword [ebp - 0x408]
test ecx, ecx
je 0x401d21
lea eax, [ebp - 0x40c]
push eax
push ecx
lea eax, [ebp - 0x404]
push eax
push dword [ebx + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
mov esi, eax
test esi, esi
je 0x401d21
push 0
lea eax, [ebp - 0x408]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
je 0x401d21
mov ecx, dword [ebp - 0x408]
test ecx, ecx
jne 0x401cd7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d103
mov esp, ebp
pop ebp
ret 4
Function at 0x4030b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431e08
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x442310]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x830], 0
je 0x403100
cmp dword [esi + 0x834], 8
lea eax, [esi + 0x820]
jb 0x4031cc
mov eax, dword [eax]
jmp 0x4031cc
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x30], ecx
test ecx, ecx
je 0x4031cc
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
push 0x104
mov dword [ebp - 4], eax
lea ebx, [esi + 0x208]
lea eax, [esi + 0x618]
push eax
push 0x104
lea eax, [esi + 0x410]
push eax
push 0x104
push ebx
push 0x104
push esi
push dword [ecx]
call fcn.004310fe
add esp, 0x24
cmp word [esi], 0
jne 0x40316f
xor ecx, ecx
jmp 0x403183
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403174
sub ecx, edx
sar ecx, 1
push ecx
lea edi, [esi + 0x820]
push esi
mov ecx, edi
call fcn.004021a0
cmp word [ebx], 0
jne 0x40319c
xor ecx, ecx
jmp 0x4031b0
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4031a1
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, edi
call fcn.004021a0
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [edi + 0x14], 8
jb 0x4031ca
mov edi, dword [edi]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d103
mov esp, ebp
pop ebp
ret