joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416c10
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x4557b3
call fcn.0043d4e1
mov edi, ecx
xor ebx, ebx
push 0x20
inc ebx
call fcn.00438419
mov esi, eax
pop ecx
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
test esi, esi
je 0x416c48
push edi
mov ecx, esi
call fcn.00413b5f
and dword [esi + 0x1c], 0
mov byte [esi + 0x18], 0
jmp 0x416c4a
xor esi, esi
or dword [ebp - 4], 0xffffffff
call fcn.0040dae3
mov dword [esi + 0x1c], eax
xor eax, eax
push eax
push eax
push esi
push 0x416c93
push eax
push eax
mov byte [esi + 0x18], bl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x416c78
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x416c8b
push 0
push ebx
mov ecx, esi
call fcn.00401385
push esi
call fcn.00438414
pop ecx
xor bl, bl
mov al, bl
call fcn.0043d4af
ret

Function at 0x418034
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor cl, cl
mov bl, 1
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x4181d4
mov edx, 0x10000000
cmp eax, 0x7c
je 0x4181d4
cmp eax, 0x29
jne 0x41806f
cmp dword [esi + 0x10], 0
jne 0x4181d4
test dword [esi + 0x50], edx
je 0x4181da
cmp eax, 0x2e
jne 0x41808a
push 5
lea ecx, [esi + 0x24]
call fcn.004071f1
mov ecx, esi
call fcn.00418009
jmp 0x4181bc
cmp eax, 0x5c
jne 0x4180e7
mov ecx, esi
call fcn.00418009
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x4180bd
cmp word [esi + 0x48], 0x62
jne 0x4180bd
push 4
lea ecx, [esi + 0x24]
call fcn.004071f1
mov ecx, esi
call fcn.00418009
jmp 0x4181c3
test eax, eax
je 0x4180db
cmp word [esi + 0x48], 0x42
jne 0x4180db
push 4
lea ecx, [esi + 0x24]
call fcn.004071f1
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x4180b1
mov ecx, esi
call fcn.0041855b
jmp 0x4181bc
cmp eax, 0x5b
jne 0x418147
mov ecx, esi
call fcn.00418009
lea ecx, [esi + 0x24]
call fcn.0040891e
cmp dword [esi + 0x4c], 0x5e
jne 0x41810f
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.00418009
test dword [esi + 0x50], 0x20000000
je 0x41812f
cmp dword [esi + 0x4c], 0x5d
jne 0x41812f
push 0x5d
lea ecx, [esi + 0x24]
call fcn.00418eac
mov ecx, esi
call fcn.00418009
mov ecx, esi
call fcn.00418c7f
cmp dword [esi + 0x4c], 0x5d
je 0x41807e
push 4
jmp 0x4181dc
cmp eax, 0x28
jne 0x418164
mov ecx, esi
call fcn.00418009
mov ecx, esi
call fcn.00418643
cmp dword [esi + 0x4c], 0x29
mov bl, al
je 0x4181b1
jmp 0x4181da
cmp eax, 0x5e
jne 0x418170
push 2
jmp 0x4180a9
cmp eax, 0x24
jne 0x41817c
push 3
jmp 0x4180a9
cmp eax, 0x2a
je 0x4181d0
cmp eax, 0x2b
je 0x4181d0
cmp eax, 0x3f
je 0x4181d0
cmp eax, 0x7b
je 0x4181d0
cmp eax, 0x7d
jne 0x41819a
test dword [esi + 0x50], edx
je 0x4181cc
cmp eax, 0x5d
jne 0x4181a4
test dword [esi + 0x50], edx
je 0x418140
movzx eax, word [esi + 0x48]
push eax
lea ecx, [esi + 0x24]
call fcn.00407e54
mov ecx, esi
call fcn.00418009
test bl, bl
je 0x4181c3
mov ecx, esi
call fcn.004186f3
mov cl, 1
mov bl, cl
jmp 0x41803d
push 6
jmp 0x4181dc
push 0xa
jmp 0x4181dc
pop edi
pop esi
mov al, cl
pop ebx
ret
push 5
call fcn.00424cca
int3
Function at 0x44ce90
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0044252a
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x44cec8
xor eax, eax
jmp 0x44cef4
cmp esi, dword [ebp - 4]
je 0x44cef1
cmp dword [ebp + 0xc], 0
je 0x44cef1
push dword [edi + 0x9c]
call fcn.0044ca9e
push dword [edi + 0x9c]
mov esi, eax
call fcn.0043aa35
pop ecx
pop ecx
cmp esi, eax
je 0x44cec4
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x44d112
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46ae30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0043f403
mov dword [ebp - 0x14], eax
cmp dword [0x46de8c], edi
jne 0x44d203
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x44d190
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x44d2e3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x44d2e3
push 0x45ecb8
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x44d2e3
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x46de8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x46de90], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x46de94], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46de9c], eax
test eax, eax
je 0x44d200
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46de98], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x44d228
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x44d21b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x44d23d
push 4
pop eax
jmp 0x44d2e5
cmp dword [ebp - 0x14], edi
je 0x44d23d
push dword [0x46de8c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x44d222
mov eax, dword [0x46de98]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x44d29b
cmp dword [0x46de9c], esi
je 0x44d29b
push eax
call ebx
push dword [0x46de9c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x44d29b
test eax, eax
je 0x44d29b
call ecx
test eax, eax
je 0x44d290
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x44d290
test byte [ebp - 8], 1
jne 0x44d29b
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x44d2cb
mov eax, dword [0x46de90]
cmp eax, esi
je 0x44d2c8
push eax
call ebx
test eax, eax
je 0x44d2c8
call eax
mov edi, eax
test edi, edi
je 0x44d2c8
mov eax, dword [0x46de94]
cmp eax, esi
je 0x44d2c8
push eax
call ebx
test eax, eax
je 0x44d2c8
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x46de8c]
call ebx
test eax, eax
je 0x44d2e3
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x44d2e5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00437d2f
leave
ret
Function at 0x401090
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x1c
push esi
push 0
push 0x401dd0
push 0
push 0x65
push eax
mov dword [0x411b74], eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov ecx, dword [ebp + 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x4010fe
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x4010e0
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402e50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 4], eax
cmp ebx, eax
jne 0x402e69
lea ebx, [ebp + 0x10]
mov dword [ebx], eax
mov edx, dword [esi + 8]
cmp edx, eax
jne 0x402e82
mov eax, 6
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [esi + 0x14]
push edi
mov edi, dword [ebp + 0x14]
cmp ecx, eax
jne 0x402ea8
cmp edi, eax
jne 0x402e97
cmp dword [ebp + 0x18], 0xffffffff
je 0x402eac
mov eax, 1
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp edi, eax
jne 0x402ec5
cmp ecx, eax
je 0x402ec5
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
lea edi, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edi
push ebx
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402f46
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x402f3a
lea edx, [ebp - 0x14]
cmp edi, edx
jne 0x402f54
mov eax, dword [ebp + 0x18]
mov ecx, dword [edi + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x402f22
cmp eax, 0x102
jne 0x402f34
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov eax, 0x5b4
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esi + 8]
push 0
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x402f54
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
test edi, edi
je 0x402f54
mov ecx, dword [edi + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x402fa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 4], eax
cmp ebx, eax
jne 0x402fb9
lea ebx, [ebp + 0x10]
mov dword [ebx], eax
mov edx, dword [esi + 8]
cmp edx, eax
jne 0x402fd2
mov eax, 6
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [esi + 0x14]
push edi
cmp ecx, eax
jne 0x402ff6
cmp dword [ebp + 0x14], eax
jne 0x402fe5
cmp dword [ebp + 0x18], 0xffffffff
je 0x402ffd
mov eax, 1
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edi, dword [ebp + 0x14]
cmp edi, eax
jne 0x403012
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
lea edi, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edi
push ebx
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403093
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x403087
lea edx, [ebp - 0x14]
cmp edi, edx
jne 0x4030a1
mov eax, dword [ebp + 0x18]
mov ecx, dword [edi + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40306f
cmp eax, 0x102
jne 0x403081
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov eax, 0x5b4
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esi + 8]
push 0
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x4030a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
test edi, edi
je 0x4030a1
mov ecx, dword [edi + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4030b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x41007c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push 0x800
lea edx, [ebp - 0x804]
push 0x800
push edx
call fcn.00403cad
add esp, 0x14
test eax, eax
jns 0x4030ed
mov eax, 0x7fd
push esi
lea esi, [ebp + eax - 0x804]
lea eax, [ebp - 0x804]
cmp esi, eax
jbe 0x40311f
nop
movsx ecx, byte [esi - 1]
push ecx
call fcn.00403dfa
add esp, 4
test eax, eax
je 0x40311f
dec esi
lea edx, [ebp - 0x804]
mov byte [esi], 0
cmp esi, edx
ja 0x403100
lea eax, [ebp - 0x804]
mov word [esi], 0xa0d
push eax
mov byte [esi + 2], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00403221
mov esp, ebp
pop ebp
ret

Function at 0x403221
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41007c]
jne 0x40322b
repz ret
jmp fcn.0040405f
Function at 0x409afc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41007c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004052bb
and dword [ebp - 0x14], 0
cmp dword [0x411b54], 0
mov dword [ebp - 0x18], eax
jne 0x409baf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409c57
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress_1]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x409c57
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40e1c4
push ebx
mov dword [0x411b54], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x411b58], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x411b5c], eax
call edi
push eax
call esi
mov dword [0x411b64], eax
test eax, eax
je 0x409baf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x411b60], eax
mov eax, dword [0x411b60]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x409c08
cmp dword [0x411b64], ecx
je 0x409c08
push eax
call esi
push dword [0x411b64]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x409c08
test ebx, ebx
je 0x409c08
call edi
test eax, eax
je 0x409bff
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x409bff
test byte [ebp - 8], 1
jne 0x409c08
or dword [ebp + 0x10], 0x200000
jmp 0x409c3b
mov eax, dword [0x411b58]
cmp eax, dword [ebp - 0x18]
je 0x409c3b
push eax
call esi
test eax, eax
je 0x409c3b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x409c3b
mov eax, dword [0x411b5c]
cmp eax, dword [ebp - 0x18]
je 0x409c3b
push eax
call esi
test eax, eax
je 0x409c3b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x411b54]
call esi
test eax, eax
je 0x409c57
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x409c59
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403221
leave
ret
Function at 0x427000
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x10360e1
sub eax, 0xffffffe1
mov eax, 0x59c
mov ebx, 0x10360e1
push 0x42702e
pop edi
push dword [eax + edi]
mov ecx, 0x10360e1
xor dword [esp], esi
sub ebx, 0xffffffe1
pop dword [eax + edi]
sub eax, 3
dec eax
jne 0x427018
nop
nop
nop
or dword [0x60e10102], ebx
add eax, dword [ecx]
loope 0x42709c
inc ebx
add dword [ebx + esi*2 + 0x3e], edx
rol dword [0xd0107af], cl
mov ch, 7
add ecx, esp
rol byte [ecx], cl
or dword [esi], ebx
lahf
cld
invalid
add eax, dword [ecx]
loope 0x427100
add eax, dword [ecx]
loope 0x427104
add eax, dword [ecx]
loope 0x427108
add eax, dword [ecx]
loope 0x42710c
add eax, dword [ecx]
loope 0x427110
add eax, dword [ecx]
add byte [eax], al
add byte [eax], al
stosb byte es:[edi], al
add eax, 0xc846f71
xor byte [ebx], dh
iretd
insb byte es:[edi], dx
xchg ecx, eax
push 0x6d
test byte [esi], ch
bound ebp, qword [esp + eax*4 + 0x21]
add eax, dword [edx - 0x6d]
add eax, 0x26847562
push 0x6d
test byte [ecx], ah
add edx, dword [ebx - 0x7c]
add dword [edi + 0x47], esp
inc edi
mov byte [esi], cl
add dword [esi - 0x7b8a95ee], esi
push 0x6d
test byte [eax + 0x50], ah
push eax
xchg ebp, eax
push 0x6d
push 0x6d
test byte [eax], dh
insb byte es:[edi], dx
push 0x7366148f
loope 0x427133
jae 0x4270f0
and ebp, dword [edi + 0x6e]
outsd dx, dword [esi]
outsb dx, byte [esi]
xchg edx, eax
add eax, 0x48f604b
outsd dx, dword [esi]
loope 0x427143
jne 0x4270d4
or dword [eax + 0x6a], esp
mov byte [0x956f760f], al
pushal
inc esp
xchg ebp, eax
sub eax, 0xc94656c
inc di
mov byte [esi], cl
or al, 0x66
dec edi
or byte [0x21e14066], 0x47
push edi
mov al, byte [0xd3324a30]
dec esi
insd dword es:[di], dx
lea esp, [eax + 0x51]
xchg byte fs:[edi], ch
jae 0x4271b2
invalid
test byte [eax + 0x56], ah
mov cl, byte [0x1fc1c7e1]
lahf
cld
mov ah, byte [ebx]
ret
Function at 0x100013b0
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x100106da
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 4]
call fcn.10001000
lea ecx, [esi + 0x2c]
mov dword [esp + 0x1a4], 0
call fcn.10001000
lea ecx, [esi + 0x54]
mov byte [esp + 0x1a4], 1
call fcn.10001000
lea ecx, [esi + 0x7c]
mov byte [esp + 0x1a4], 2
call fcn.10001000
lea eax, [esp + 0xc]
mov dword [esi], 0x10011328
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov byte [esp + 4], 0x47
mov byte [esp + 5], 0x68
mov byte [esp + 6], 0x30
mov byte [esp + 7], 0x73
mov edx, dword [esp + 4]
lea ecx, [esi + 0xb0]
mov dword [esi + 0xac], eax
mov al, 0x74
mov dword [ecx], edx
mov byte [esi + 0xb5], 0
mov dword [esi + 0xa8], 0xffffffff
mov byte [ecx + 4], al
mov ecx, dword [esp + 0x19c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1a4
ret
Function at 0x10001570
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.10001cf0
mov eax, dword [esi + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov byte [esi + 0xb5], 0
mov eax, dword [0x10015b10]
test eax, eax
je 0x100015b1
cmp eax, 4
je 0x100015b1
cmp eax, 5
je 0x100015b1
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret 8
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0xa8], eax
jne 0x100015d4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret 8
mov eax, dword [0x10015b10]
mov ebx, dword [esp + 0x34]
test eax, eax
je 0x100015e8
push 0x10015b14
jmp 0x100015e9
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x10001601
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret 8
mov eax, dword [0x10015b10]
mov ebp, dword [esp + 0x38]
test eax, eax
mov word [esp + 0x20], 2
je 0x1000161f
mov cx, word [0x10014020]
push ecx
jmp 0x10001620
push ebp
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x22], ax
mov edx, dword [edi + 0xc]
push 0x10
mov eax, dword [edx]
lea edx, [esp + 0x24]
push edx
mov ecx, dword [eax]
mov eax, dword [esi + 0xa8]
push eax
mov dword [esp + 0x30], ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1000165b
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret 8
cmp dword [0x10015b10], 5
jne 0x1000167b
push ebp
push ebx
mov ecx, esi
call fcn.10001710
test al, al
jne 0x1000167b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
mov edx, dword [esi + 0xa8]
lea ecx, [esp + 0x13]
push 1
push ecx
push 8
push 0xffff
push edx
mov byte [esp + 0x27], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x100016db
push eax
mov edx, dword [esi + 0xa8]
push eax
lea eax, [esp + 0x1b]
push eax
push 0
push 0
lea ecx, [esp + 0x28]
push 0xc
push ecx
push 0x98000004
push edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], 0x2bf20
mov dword [esp + 0x40], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 1
push 0
push 0
push esi
push 0x10001a20
push 0
push 0
mov byte [esi + 0xb5], 1
call fcn.1000a5b0
add esp, 0x1c
mov dword [esi + 0xa4], eax
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x10001ef0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
cmp ebx, esi
mov ebp, ecx
mov dword [esp + 0x14], 0
jb 0x10001f5a
mov dword [esp + 0x1c], 0
mov eax, dword [ebp + 0xa8]
push 0
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x10001f39
mov ecx, dword [esp + 0x1c]
inc ecx
cmp ecx, 0xf
mov dword [esp + 0x1c], ecx
jl 0x10001f16
cmp dword [esp + 0x1c], 0xf
je 0x10001f90
mov ecx, dword [esp + 0x14]
push 0xa
add ecx, eax
add edi, esi
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, esi
cmp ebx, esi
jae 0x10001f0e
test ebx, ebx
jle 0x10001f84
xor esi, esi
mov ecx, dword [ebp + 0xa8]
push 0
push ebx
push edi
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x10001f7b
inc esi
cmp esi, 0xf
jl 0x10001f60
cmp esi, 0xf
je 0x10001f90
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
je 0x10001f93
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x100022f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10011348
push 0x10010456
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x1000244d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x1000239c
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x1000239c
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10002377
cmp al, 0x5c
je 0x10002377
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x1000235f
cmp byte [esi], 0
je 0x10002380
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10002395
cmp al, 0x5c
je 0x10002395
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x1000237d
cmp byte [esi], 0
je 0x100023bb
jmp 0x100023b7
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x100023bb
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x100023bb
cmp al, 0x5c
jne 0x100023bb
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov al, byte [esi]
test al, al
je 0x10002411
cmp al, 0x5c
jne 0x10002403
mov byte [esi], 0
push edi
call ebx
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x100023f6
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10002400
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10002400
push edi
jmp 0x10002444
and eax, 0x10
cmp al, 0x10
je 0x10002400
push edi
jmp 0x10002444
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x100023c1
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4