joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4af9f4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x4afa25
dec al
je 0x4afa60
dec al
je 0x4afaa5
dec al
je 0x4afb0e
jmp 0x4afb98
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x4afb98
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4afa35
jmp 0x4afb98
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4afb98
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4afa70
jmp 0x4afb98
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4afb98
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x4afad4
xor ebp, ebp
jmp 0x4afae4
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x4afaed
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4afab5
jmp 0x4afb98
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4afb98
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x4afb67
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.004acac4
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4afb22
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4b6edc
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4b6f0a
mov eax, ebx
call fcn.004b7990
cmp dword [ebx + 0x40], 0
je 0x4b6f03
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4b6f7b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4b6f6d
cmp dword [ebx + 8], 0
je 0x4b6f2c
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 0x4b6f3e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4b6f6d
cmp dword [ebx + 8], 0
je 0x4b6f1f
cmp eax, 3
je 0x4b6f51
dec eax
jne 0x4b6f1f
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 0x4b6f1f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4b6f1f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4b6f99
cmp dword [ebx + 0x14], 0xcc
je 0x4b6f99
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.004b6fa4
pop ebx
ret
Function at 0x4c8398
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x40bd24]
call fcn.00407544
xor eax, eax
push ebp
push 0x4c84e2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e20c4], 0
jne 0x4c83ec
mov ecx, dword [0x4e224c]
mov dl, 1
mov eax, dword [0x40ccf8]
call fcn.0041523c
call fcn.00405900
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x10
call fcn.004047fc
mov eax, ebx
call fcn.00406768
mov dword [ebp - 0x20], eax
push esi
mov esi, 0x4c84f0
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.004094ec
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
test eax, eax
je 0x4c8433
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x4c8488
mov dword [ebp - 0x14], 0x20
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x4c8481
lea eax, [ebp - 0x58]
mov edx, ebx
call fcn.00406b24
mov eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x54]
mov ecx, 0x10
call fcn.00406abc
mov eax, dword [ebp - 0x5c]
pop edx
call fcn.0041059c
test eax, eax
jne 0x4c8481
mov ebx, 0x15
jmp 0x4c848d
mov ebx, 0x10
jmp 0x4c848d
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
push ebx
push 0
push esi
call dword [0x4e20c4]
call fcn.004c8204
mov eax, dword [ebp - 4]
call fcn.004c8204
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00409504
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c84e9
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.004068b4
lea eax, [ebp - 0xc]
mov edx, dword [0x40bd24]
call fcn.0040761c
ret
Function at 0x4d4604
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, eax
push 1
push 0
mov eax, ebx
call fcn.00406948
push eax
push 0x4d4634
push 0x4d4650
mov eax, dword [0x4e25b4]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.shell32.dll_ShellExecuteW
pop ebx
ret
Function at 0x408782
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0x170
mov eax, 0x6c5cd0
call fcn.005635dc
mov esi, ecx
mov dword [ebp - 0x17c], esi
xor ebx, ebx
mov dword [ebp - 0x17c], esi
push 0xf
pop edi
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
mov dword [ebp - 0x11c], edi
cmp byte [ebp + 8], bl
je 0x40888d
lea eax, [ebp - 0x118]
mov dword [ebp - 4], ebx
push eax
push ebx
push ebx
push 0x26
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea ecx, [ebp - 0x130]
test eax, eax
js 0x408944
lea eax, [ebp - 0x118]
push eax
call fcn.00402496
push str.JiSu
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], edi
mov byte [ebp - 0x148], bl
call fcn.00402496
push 0x77b774
lea edx, [ebp - 0x130]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x178]
call fcn.00409928
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x160]
call fcn.0040261d
pop ecx
pop ecx
push str.Application
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.004022e2
push eax
mov ecx, esi
call fcn.00402324
lea ecx, [ebp - 0x160]
call fcn.00402470
lea ecx, [ebp - 0x178]
call fcn.00402470
lea ecx, [ebp - 0x148]
call fcn.00402470
lea ecx, [ebp - 0x130]
call fcn.00402470
jmp 0x408951
lea eax, [ebp - 0x118]
mov dword [ebp - 4], 4
push eax
push ebx
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea ecx, [ebp - 0x130]
test eax, eax
js 0x408944
lea eax, [ebp - 0x118]
push eax
call fcn.00402496
push str.JiSu
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], edi
mov byte [ebp - 0x148], bl
call fcn.00402496
push 0x77b774
lea edx, [ebp - 0x130]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x160]
call fcn.00409928
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 6
push ecx
mov edx, eax
lea ecx, [ebp - 0x178]
call fcn.0040261d
pop ecx
pop ecx
push str.Application
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.004022e2
push eax
mov ecx, esi
call fcn.00402324
lea ecx, [ebp - 0x178]
call fcn.00402470
lea ecx, [ebp - 0x160]
jmp 0x40886d
call fcn.00402470
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], edi
mov byte [esi], bl
mov eax, esi
call fcn.00563586
ret
Function at 0x40b625
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x7aae5c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, ecx
push esi
push edi
push 0x41
pop ecx
mov dword [ebp - 0x104], edx
lea esi, [ebp - 0x108]
mov dword [ebp - 0x108], 1
lea edi, [ebp - 0x20c]
rep movsd dword es:[edi], dword [esi]
push 0x41
pop ecx
lea esi, [ebp - 0x108]
mov dword [ebp - 0x324], eax
mov eax, dword [ebp + 0x10]
lea edi, [ebp - 0x310]
rep movsd dword es:[edi], dword [esi]
push 4
mov dword [ebp - 0x314], edx
mov dword [ebp - 0x320], eax
pop edi
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [edx + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
test esi, esi
jns 0x40b6c8
call fcn.0068c9d9
cmp dword [eax], edi
jne 0x40b6c6
mov edx, dword [ebp - 0x314]
jmp 0x40b689
test esi, esi
jne 0x40b6ce
push 0xd
jmp 0x40b745
test esi, esi
jle 0x40b743
mov esi, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x314]
call esi
test eax, eax
jne 0x40b6fe
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x314]
call esi
test eax, eax
je 0x40b743
lea eax, [ebp - 0x31c]
mov dword [ebp - 0x31c], edi
push eax
lea eax, [ebp - 0x318]
xor esi, esi
push eax
push 0x1007
push 0xffff
push dword [ebp - 0x314]
mov dword [ebp - 0x318], esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
js 0x40b73c
cmp dword [ebp - 0x318], esi
je 0x40b73f
push 2
pop esi
mov eax, esi
jmp 0x40b746
push 2
pop eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00562ab4
leave
ret
Function at 0x40b913
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push esi
mov esi, dword [sym.imp.WS2_32.dll_ioctlsocket]
push edi
push eax
push 0x8004667e
push ebx
mov edi, ecx
mov dword [ebp - 4], 1
call esi
mov eax, dword [ebp + 0xc]
push dword [eax + 0x10]
push dword [eax + 0x18]
push ebx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x40b990
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x40b969
mov eax, dword [edi + 4]
mov dword [eax], 2
xor al, al
jmp 0x40ba1c
mov eax, dword [edi + 0xc]
mov ecx, ebx
push dword [eax + 4]
push dword [eax]
mov eax, dword [edi + 8]
push dword [eax + 4]
push dword [eax]
call fcn.0040b625
mov ecx, dword [edi + 4]
add esp, 0x10
mov dword [ecx], eax
mov eax, dword [edi + 4]
cmp dword [eax], 0
jne 0x40b962
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push 0x8004667e
push ebx
call esi
mov eax, dword [edi + 0x14]
push 0
push 0x3e8
push dword [eax + 4]
push dword [eax]
call fcn.005638e0
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, eax
mov eax, dword [edi + 0x10]
push 4
imul eax, dword [eax], 0x3e8
add ecx, eax
lea eax, [ebp + 8]
push eax
push 0x1006
push 0xffff
push ebx
mov dword [ebp + 8], ecx
call esi
mov eax, dword [edi + 0x1c]
push 0
push 0x3e8
push dword [eax + 4]
push dword [eax]
call fcn.005638e0
mov ecx, eax
mov eax, dword [edi + 0x18]
push 4
imul eax, dword [eax], 0x3e8
add ecx, eax
mov dword [ebp + 8], ecx
lea ecx, [ebp + 8]
push ecx
push 0x1005
push 0xffff
push ebx
call esi
mov ecx, dword [edi + 4]
mov al, 1
and dword [ecx], 0
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40ba23
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x7aae5c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 2
mov dword [ebp - 0x40c], eax
mov ebx, edx
pop ecx
movzx eax, word [esi]
cmp ax, cx
je 0x40ba59
cmp eax, 0x17
jne 0x40bab5
movzx eax, word [esi + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebp - 0x40c]
movzx eax, ax
push 0x401
push 0
mov dword [ecx], eax
lea eax, [ebp - 0x408]
push eax
call fcn.00686080
add esp, 0xc
lea eax, [ebp - 0x408]
push 2
push 0
push 0
push 0x401
push eax
push ebx
push esi
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x40bab5
lea eax, [ebp - 0x408]
mov ecx, edi
push eax
call fcn.00402496
mov al, 1
jmp 0x40bab7
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00562ab4
leave
ret
Function at 0x40bd7b
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [0x7aae5c]
xor eax, esp
mov dword [esp + 0x8c], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 8]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0x80
push eax
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x40bdcd
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push edi
push esi
call fcn.0040ba23
pop ecx
pop ecx
mov ecx, dword [esp + 0x94]
pop edi
pop esi
xor ecx, esp
call fcn.00562ab4
mov esp, ebp
pop ebp
ret 8

Function at 0x40ed93
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40edba
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040f90e
jmp 0x40ee6f
mov eax, dword [ebx + 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 + 0x14], eax
test eax, eax
je 0x40eddc
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x40edde
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x40ee63
jg 0x40edf3
test esi, esi
je 0x40ee63
test ecx, ecx
jl 0x40ee3c
jg 0x40edfd
test eax, eax
je 0x40ee3c
cmp edi, ecx
jg 0x40ee11
jl 0x40ee07
cmp esi, eax
jae 0x40ee11
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.00685b00
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x40ee3f
mov edx, dword [ebp + 8]
test edi, edi
jl 0x40ee63
jg 0x40ee49
test esi, esi
je 0x40ee63
cmp dword [ebx + 0x4c], 0
je 0x40ee63
push dword [ebx + 0x4c]
push esi
push 1
push edx
call fcn.0068e966
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 0x40ee78
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x40ee9f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040f9d7
jmp 0x40ef6e
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x40eec1
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x40eec3
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x40ef62
jg 0x40eee0
test esi, esi
je 0x40ef62
test ecx, ecx
jl 0x40ef2d
jg 0x40eeea
test eax, eax
je 0x40ef2d
cmp ebx, ecx
jg 0x40eefe
jl 0x40eef4
cmp esi, eax
jae 0x40eefe
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.00685b00
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x40ef34
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x40ef62
jg 0x40ef3e
test esi, esi
je 0x40ef62
cmp dword [edi + 0x4c], 0
je 0x40ef62
mov ecx, edi
call fcn.00410177
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.0068f1ec
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40f1f3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x7aae5c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x40f219
xor eax, eax
jmp 0x40f2e0
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x40f242
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x40f242
dec dword [edx]
mov eax, ebx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x40f2e0
cmp dword [esi + 0x4c], 0
je 0x40f2de
mov ecx, esi
call fcn.00410177
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40f26f
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0068cf50
cmp eax, edi
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x40f2de
mov byte [ebp - 0x25], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x40f2de
cmp eax, 1
jle 0x40f2ad
cmp eax, 3
jne 0x40f2de
push dword [esi + 0x4c]
movsx ecx, byte [ebp - 0x25]
push ecx
jmp 0x40f261
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x30], eax
je 0x40f2d0
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.0068e966
add esp, 0x10
cmp dword [ebp - 0x30], eax
jne 0x40f2de
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x34], eax
mov eax, ebx
jne 0x40f2e0
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00562ab4
leave
ret 4

Function at 0x4101ff
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x7aae5c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x410283
cmp byte [esi + 0x3d], 0
je 0x410283
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x410255
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x410259
sub eax, 1
je 0x41025d
dec eax
sub eax, 1
je 0x410283
xor al, al
jmp 0x410285
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x41027a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0068e966
add esp, 0x10
cmp edi, eax
jne 0x410255
cmp byte [esi + 0x3d], 0
sete al
jmp 0x410285
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00562ab4
leave
ret
Function at 0x410f45
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push 0x48
mov eax, 0x6c6867
call fcn.005635dc
xor edi, edi
xorps xmm0, xmm0
mov dword [ebp - 4], edi
mov esi, edi
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], edi
cmp dword [edx + 0x10], edi
je 0x410f8a
cmp dword [edx + 0x14], 0x10
mov esi, edx
jb 0x410f7e
mov esi, dword [edx]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], 4
jmp 0x410fa2
cmp dword [ecx + 0x10], edi
je 0x410f99
cmp dword [ecx + 0x14], 0x10
mov esi, ecx
jb 0x410f99
mov esi, dword [ecx]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], edi
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.00403bb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x54]
push ecx
push eax
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x411089
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x411082
push 0x81
push edi
push edi
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x411012
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x411071
cmp byte [ebp + 0x14], 0
je 0x41102e
push 4
xor ecx, ecx
lea eax, [ebp - 0x30]
push eax
inc ecx
push ecx
push 6
push edi
mov dword [ebp - 0x30], ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp + 0x3c]
test ecx, ecx
je 0x411041
mov dword [ebp - 0x30], edi
lea edx, [ebp - 0x30]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
cmp dword [esi + 4], 0x17
jne 0x41105c
and dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push 4
push eax
push 0x1b
push 0x29
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push esi
push edi
lea ecx, [ebp + 0x40]
call fcn.0040b913
test al, al
jne 0x4110bb
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [esi + 0x1c]
push 0
pop edi
test esi, esi
jne 0x410fdf
mov esi, dword [ebp - 0x2c]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
or edi, 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402470
mov dword [ebp - 4], 4
mov ecx, dword [ebp + 0x3c]
test ecx, ecx
je 0x4110b3
mov esi, dword [ecx]
lea eax, [ebp + 0x18]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
call fcn.00563586
ret
push dword [ebp - 0x2c]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x41108c
Function at 0x413cfa
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
mov esi, ecx
xor cl, cl
push edi
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x413e94
mov edx, 0x10000000
cmp eax, 0x7c
je 0x413e94
cmp eax, 0x29
jne 0x413d37
cmp dword [esi + 0x10], 0
jne 0x413e94
cmp eax, eax
jne 0x413d37
test dword [esi + 0x50], edx
je 0x413e9a
cmp eax, 0x2e
jne 0x413d52
push 5
lea ecx, [esi + 0x24]
call fcn.00413f84
mov ecx, esi
call fcn.00413cd2
jmp 0x413e7e
cmp eax, 0x5c
jne 0x413da4
mov ecx, esi
call fcn.00413cd2
test byte [esi + 0x50], 0x80
je 0x413d98
mov al, byte [esi + 0x48]
cmp al, 0x62
jne 0x413d81
push 4
lea ecx, [esi + 0x24]
call fcn.00413f84
mov ecx, esi
call fcn.00413cd2
jmp 0x413e85
cmp al, 0x42
jne 0x413d98
push 4
lea ecx, [esi + 0x24]
call fcn.00413f84
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x413d75
mov ecx, esi
call fcn.00414c77
jmp 0x413e7e
cmp eax, 0x5b
jne 0x413e07
mov ecx, esi
call fcn.00413cd2
lea ecx, [esi + 0x24]
call fcn.00415b48
mov eax, dword [esi + 0x4c]
cmp eax, 0x5e
jne 0x413dd1
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.00413cd2
mov eax, dword [esi + 0x4c]
test dword [esi + 0x50], 0x20000000
je 0x413def
cmp eax, 0x5d
jne 0x413def
push eax
lea ecx, [esi + 0x24]
call fcn.00415b9a
mov ecx, esi
call fcn.00413cd2
mov ecx, esi
call fcn.00415947
cmp dword [esi + 0x4c], 0x5d
je 0x413d46
push 4
jmp 0x413e9c
cmp eax, 0x28
jne 0x413e24
mov ecx, esi
call fcn.00413cd2
mov ecx, esi
call fcn.00414d64
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x413e9a
jmp 0x413e73
cmp eax, 0x5e
jne 0x413e30
push 2
jmp 0x413d6d
cmp eax, 0x24
jne 0x413e3c
push 3
jmp 0x413d6d
cmp eax, 0x2a
je 0x413e90
cmp eax, 0x2b
je 0x413e90
cmp eax, 0x3f
je 0x413e90
cmp eax, 0x7b
je 0x413e90
cmp eax, 0x7d
jne 0x413e5a
test dword [esi + 0x50], edx
je 0x413e8c
cmp eax, 0x5d
jne 0x413e64
test dword [esi + 0x50], edx
je 0x413e00
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.00414f43
mov bl, 1
mov ecx, esi
call fcn.00413cd2
test bl, bl
je 0x413e85
mov ecx, esi
call fcn.00414e69
mov cl, 1
jmp 0x413d01
push 6
jmp 0x413e9c
push 0xa
jmp 0x413e9c
pop edi
pop esi
mov al, cl
pop ebx
ret
push 5
call fcn.00412cb7
int3