joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x1ff5008], 0x8088405
inc edx
mov dword [ebx + 0x1ff5008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf00
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf28
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f05c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x1fd954a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ab
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
jmp 0x41f0ca
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f13c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f125
test esi, esi
jbe 0x41f13c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f117
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f13c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0f4
jmp 0x41f13c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f13c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1fd9551
ret
Function at 0x420294
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x1fda8af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202cf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202e8
lea eax, [ebp - 0x10]
mov edx, dword [0x1ff754c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202fb
lea eax, [ebp - 0x10]
mov edx, dword [0x1ff754c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x420307
adc edx, 0
mov edx, dword [edx*4 + 0x1ff6378]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420481
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420474
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420474
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420412
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420412
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420412
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420412
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420474
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420474
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420499
inc ebx
cmp ebx, 0x19
jne 0x4202c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1fda8b6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x401070
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SOFTWAREElectronic_ArtsRoadRash_95
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
nop
nop
mov dword [esp + 4], 0x50
lea eax, [esp + 4]
mov ecx, dword [esp]
push eax
push 0x406fc8
push 0
push 0
push str.Path
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
nop
nop
mov eax, dword [esp + 4]
add eax, 0x406fc6
mov cl, byte [eax]
cmp cl, 0x5c
je 0x4010d2
cmp cl, 0x2f
jne 0x4010d5
mov byte [eax], 0
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x406fc8
add esp, 8
ret

Function at 0x401100
Capabilities:
Get disk information

Disassembly:
sub esp, 0x14
mov eax, dword [0x40608c]
mov dword [esp], eax
push ebx
push esi
mov ebx, 0x5a
lea esi, [esp + 0xc]
push edi
mov byte [esp + 0xc], 0x41
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea eax, [esp + 0xc]
push eax
call edi
cmp eax, 5
jne 0x40115c
mov al, byte [esp + 0xc]
push 0
push str.x:_RoadRash_Text_enu.dll
mov byte [str.x:_RoadRash_Text_enu.dll], al
call fcn.00403fc0
add esp, 8
test eax, eax
je 0x40116f
mov al, byte [esp + 0xc]
inc esi
inc esi
mov byte [esi - 2], al
mov byte [esi - 1], 0x3a
mov byte [esi], 0x2c
inc esi
inc byte [esp + 0xc]
cmp byte [esp + 0xc], bl
jle 0x401123
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov eax, str.x:_RoadRash_Text_enu.dll
pop edi
mov byte [0x40603b], 0
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x403fc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403fe5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004039e0
add esp, 4
mov eax, 0xffffffff
ret
test al, 1
je 0x40400a
test byte [esp + 8], 2
je 0x40400a
mov dword [0x406240], 0xd
mov dword [0x406244], 5
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x41fe40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
jmp 0x41fe5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41fe61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41fe50
mov eax, 1
add ebx, ebx
jne 0x41fe73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41fe68
jne 0x41fe84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41fe68
xor ecx, ecx
sub eax, 3
jb 0x41fe98
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41ff0a
mov ebp, eax
add ebx, ebx
jne 0x41fea3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41feb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41fed4
inc ecx
add ebx, ebx
jne 0x41fec0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41feb5
jne 0x41fed1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41feb5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41fef4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41fee5
jmp 0x41fe56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41fef4
add edi, ecx
jmp 0x41fe56
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41ff12
cmp byte [edi], 9
jne 0x41ff12
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41ff17
lea edi, [esi + 0x1d000]
mov eax, dword [edi]
or eax, eax
je 0x41ff8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x20f08]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x20fe8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41ff44
mov ecx, edi
jns 0x41ff73
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x20ff0]
or eax, eax
je 0x41ff89
mov dword [ebx], eax
add ebx, 4
jmp 0x41ff61
call dword [esi + 0x20fec]
mov ebp, dword [esi + 0x20ff4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41ffc3
sub esp, 0xffffff80
jmp 0x41382f
Function at 0x402400
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x104
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
push 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
call sub.WS2_32.dll_gethostname
cmp eax, 0xffffffff
jne 0x40244c
call sub.WS2_32.dll_WSAGetLastError
push eax
push 0x41d05c
call fcn.00413a20
add esp, 8
xor al, al
pop edi
add esp, 0x104
ret
lea ecx, [esp + 8]
push ecx
call sub.WS2_32.dll_gethostbyname
test eax, eax
mov dword [esp + 4], eax
jne 0x402475
push 0x41d044
call fcn.00413a20
add esp, 4
xor al, al
pop edi
add esp, 0x104
ret
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
test eax, eax
je 0x4024eb
push ebx
push ebp
push esi
xor ebx, ebx
mov esi, dword [eax]
push 0x1c
push 1
call sub.util.dll_nd_chk_calloc
add esp, 8
mov ebp, eax
push esi
mov dword [ebp], 0
mov dword [ebp + 4], 0
call sub.WS2_32.dll_inet_ntoa
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x465480
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.util.dll_list_add_first
mov ecx, dword [esp + 0x18]
add ebx, 4
add esp, 8
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + ebx]
test eax, eax
jne 0x402483
pop esi
pop ebp
pop ebx
mov al, 1
pop edi
add esp, 0x104
ret
Function at 0x40ca70
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x18
xor eax, eax
push esi
mov dword [esp + 0xc], eax
push edi
mov dword [esp + 0x14], eax
mov ecx, 0xca
mov dword [esp + 0x18], eax
mov edi, 0x4648e0
rep stosd dword es:[edi], eax
mov ecx, 0xd
mov edi, 0x464060
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 0xc], 1
cmp ecx, 0x4226d0
mov dword [esp + 0x1c], eax
mov word [esp + 0x10], 2
jne 0x40cabf
push 0x964
jmp 0x40cac7
mov dx, word [0x4226d0]
push edx
call sub.WS2_32.dll_htons
mov word [esp + 0x12], ax
xor eax, eax
cmp eax, 0x422810
jne 0x40cae2
push eax
call sub.WS2_32.dll_htonl
jmp 0x40caec
push 0x422810
call sub.WS2_32.dll_inet_addr
push 0x60
mov dword [esp + 0x18], eax
call fcn.00413ecf
mov edi, eax
mov ecx, 0x18
xor eax, eax
mov dword [0x4648f4], edi
rep stosd dword es:[edi], eax
mov eax, dword [0x4648f4]
add esp, 4
test eax, eax
jne 0x40cb1c
pop edi
xor al, al
pop esi
add esp, 0x18
ret
push ebx
xor al, al
push ebp
mov byte [esp + 0x13], al
xor esi, esi
mov ebx, 0x4640a0
mov ebp, 0x4227a0
mov ecx, dword [0x4648f4]
mov dword [ebx], 0
mov byte [esi + ecx + 5], 0
mov edx, dword [0x4648f4]
mov dword [esi + edx], 0xffffffff
mov cl, byte [ebp]
test cl, cl
je 0x40cba6
mov ecx, dword [0x4648f4]
push ebp
mov byte [esi + ecx + 4], al
mov edx, dword [0x4648f4]
mov word [esi + edx + 8], 2
call sub.WS2_32.dll_inet_addr
mov ecx, dword [0x4648f4]
push 0xcc77c4
mov dword [esi + ecx + 0xc], eax
mov al, byte [0x4648f8]
inc al
mov byte [0x4648f8], al
call fcn.00413ecf
add esp, 4
mov edi, eax
mov ecx, 0x331df1
xor eax, eax
mov dword [ebx], edi
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x13]
inc al
add ebp, 0x10
add esi, 0x18
add ebx, 4
cmp al, 4
mov byte [esp + 0x13], al
jb 0x40cb30
mov edi, 1
push 0
push edi
push 2
call sub.WS2_32.dll_socket
mov esi, eax
pop ebp
cmp esi, 0xffffffff
pop ebx
jne 0x40cbdd
pop edi
xor al, al
pop esi
add esp, 0x18
ret
lea edx, [esp + 0xc]
push 4
push edx
push edi
push 6
push esi
mov dword [0x4648e0], esi
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x40cc06
push esi
call sub.WS2_32.dll_closesocket
pop edi
xor al, al
pop esi
add esp, 0x18
ret
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0xffff
push esi
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x40cc2d
push esi
call sub.WS2_32.dll_closesocket
pop edi
xor al, al
pop esi
add esp, 0x18
ret
lea ecx, [esp + 0xc]
push ecx
push 0x8004667e
push esi
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x40cc50
push esi
call sub.WS2_32.dll_closesocket
pop edi
xor al, al
pop esi
add esp, 0x18
ret
lea edx, [esp + 0x10]
push 0x10
push edx
push esi
call sub.WS2_32.dll_bind
cmp eax, 0xffffffff
jne 0x40cc70
push esi
call sub.WS2_32.dll_closesocket
pop edi
xor al, al
pop esi
add esp, 0x18
ret
push 8
push esi
call sub.WS2_32.dll_listen
cmp eax, 0xffffffff
jne 0x40cc8b
push esi
call sub.WS2_32.dll_closesocket
pop edi
xor al, al
pop esi
add esp, 0x18
ret
mov eax, dword [0x4648e0]
mov dword [0x4648fc], edi
mov dword [0x464a00], edi
mov dword [0x464b04], edi
mov dword [0x464900], eax
mov dword [0x464a04], eax
mov dword [0x464b08], eax
pop edi
mov al, 1
pop esi
add esp, 0x18
ret
Function at 0x40ce70
Capabilities:
Get socket status

Disassembly:
sub esp, 0x318
push ebx
push esi
push edi
mov ecx, 0xd
xor eax, eax
mov edi, 0x464060
rep stosd dword es:[edi], eax
mov ecx, 0x41
mov esi, 0x4648fc
lea edi, [esp + 0x18]
mov dword [esp + 0x10], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x41
mov esi, 0x464a00
lea edi, [esp + 0x220]
lea eax, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x41
mov esi, 0x464b04
lea edi, [esp + 0x11c]
push eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x120]
lea edx, [esp + 0x224]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
push 0
xor bl, bl
mov dword [esp + 0x28], 0x186a0
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x40cefd
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x318
ret
mov edx, dword [0x4648e0]
lea ecx, [esp + 0x18]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x40cf1d
call fcn.0040d040
test al, al
je 0x40cef1
mov bl, 1
mov byte [esp + 0xc], 0
call fcn.0040d000
test eax, eax
jle 0x40cf79
mov edi, dword [esp + 0xc]
xor esi, esi
mov ecx, dword [0x4648f4]
lea eax, [esi + esi*2]
mov eax, dword [ecx + eax*8]
cmp eax, 0xffffffff
je 0x40cf60
lea edx, [esp + 0x18]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x40cf60
push edi
call fcn.00401120
add esp, 4
test al, al
je 0x40cf60
mov bl, 1
inc byte [esp + 0xc]
mov edi, dword [esp + 0xc]
mov esi, edi
and esi, 0xff
call fcn.0040d000
cmp esi, eax
jl 0x40cf31
mov eax, dword [0x420830]
push eax
call sub.util.dll_tokent_process_lock
add esp, 4
mov byte [esp + 0xc], 0
call fcn.0040d000
test eax, eax
jle 0x40cfdd
mov edi, dword [esp + 0xc]
xor esi, esi
mov ecx, dword [0x4648f4]
lea esi, [esi + esi*2]
shl esi, 3
cmp byte [esi + ecx + 6], 1
jne 0x40cfc4
push edi
call fcn.0040cd10
mov edx, dword [0x4648f4]
add esp, 4
mov bl, 1
mov byte [esi + edx + 6], 0
inc byte [esp + 0xc]
mov edi, dword [esp + 0xc]
mov esi, edi
and esi, 0xff
call fcn.0040d000
cmp esi, eax
jl 0x40cf9b
mov eax, dword [0x420830]
push eax
call sub.util.dll_tokent_process_unlock
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
add esp, 0x318
ret
Function at 0x40d040
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x1c
xor eax, eax
push esi
mov dword [esp + 0x10], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], eax
push edi
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [0x4648e0]
push ecx
push edx
push eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0x10
call sub.WS2_32.dll_accept
mov edi, eax
cmp edi, 0xffffffff
je 0x40d20a
lea ecx, [esp + 0xc]
push ecx
push 0x8004667e
push edi
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x40d204
lea edx, [esp + 0xc]
push 4
push edx
push 1
push 6
push edi
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x40d204
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0xffff
push edi
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x40d204
push ebp
mov byte [esp + 0xc], 0
call fcn.0040d000
test eax, eax
jle 0x40d154
mov ebp, dword [esp + 0xc]
xor esi, esi
mov edx, dword [0x4648f4]
lea ecx, [esi + esi*2]
mov eax, dword [edx + ecx*8 + 0xc]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
je 0x40d11c
inc byte [esp + 0xc]
mov ebp, dword [esp + 0xc]
mov esi, ebp
and esi, 0xff
call fcn.0040d000
cmp esi, eax
jl 0x40d0ec
jmp 0x40d158
mov byte [esp + 0xc], 0
call fcn.0040d000
test eax, eax
jle 0x40d158
xor esi, esi
mov edx, dword [0x4648f4]
lea ecx, [esi + esi*2]
cmp dword [edx + ecx*8], 0xffffffff
je 0x40d158
inc byte [esp + 0xc]
mov esi, dword [esp + 0xc]
and esi, 0xff
call fcn.0040d000
cmp esi, eax
jl 0x40d12c
jmp 0x40d158
mov ebp, dword [esp + 0xc]
call fcn.0040d000
and ebp, 0xff
cmp ebp, eax
pop ebp
jg 0x40d204
mov esi, dword [esp + 8]
and esi, 0xff
call fcn.0040d000
cmp esi, eax
jge 0x40d204
mov eax, dword [0x4648fc]
cmp eax, 0x40
jae 0x40d19f
mov dword [eax*4 + 0x464900], edi
mov eax, dword [0x4648fc]
inc eax
mov dword [0x4648fc], eax
mov eax, dword [0x464a00]
cmp eax, 0x40
jae 0x40d1bb
mov dword [eax*4 + 0x464a04], edi
mov eax, dword [0x464a00]
inc eax
mov dword [0x464a00], eax
mov eax, dword [0x464b04]
cmp eax, 0x40
jae 0x40d1d7
mov dword [eax*4 + 0x464b08], edi
mov eax, dword [0x464b04]
inc eax
mov dword [0x464b04], eax
mov ecx, dword [0x4648f4]
lea eax, [esi + esi*2]
shl eax, 3
mov dword [eax + ecx], edi
mov edx, dword [0x4648f4]
pop edi
pop esi
mov byte [eax + edx + 5], 1
mov ecx, dword [0x4648f4]
mov byte [eax + ecx + 6], 0
mov al, 1
add esp, 0x1c
ret
push edi
call sub.WS2_32.dll_closesocket
pop edi
xor al, al
pop esi
add esp, 0x1c
ret

Function at 0x40d220
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.0040d010
add esp, 4
test al, al
je 0x40d264
mov eax, dword [esp + 0x10]
push 0
mov ecx, dword [esp + 0x10]
push eax
mov eax, esi
push ecx
and eax, 0xff
lea edx, [eax + eax*2]
mov eax, dword [0x4648f4]
mov ecx, dword [eax + edx*8]
push ecx
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
jne 0x40d266
push esi
call fcn.0040ccc0
add esp, 4
xor eax, eax
pop esi
ret
Function at 0x40d270
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push ebp
call fcn.0040d010
add esp, 4
test al, al
jne 0x40d28c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ecx, dword [0x4648f4]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov eax, ebp
and eax, 0xff
push 0
push edi
push esi
lea eax, [eax + eax*2]
mov edx, dword [ecx + eax*8]
push edx
call sub.WS2_32.dll_send
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40d2de
cmp edi, 6
jle 0x40d2ce
mov al, byte [esi + 6]
cmp al, 0x1f
je 0x40d2c8
cmp al, 0x1e
jne 0x40d2ce
inc dword [0x42238c]
push ebp
call fcn.0040ccc0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp edi, 6
jle 0x40d2f4
mov al, byte [esi + 6]
cmp al, 0x1f
je 0x40d2ee
cmp al, 0x1e
jne 0x40d2f4
inc dword [0x422388]
mov al, byte [0x41d084]
test al, al
je 0x40d347
mov eax, dword [0x42238c]
mov ecx, dword [0x422388]
add ecx, eax
cmp ecx, 0x7530
jb 0x40d347
call sub.util.dll_sGetMsTime
fsub qword [0x420820]
sub esp, 8
fmul qword [0x41b210]
fstp qword [esp]
push 0x41d470
call fcn.00413a20
push 0x7530
call sub.util.dll_sMsSleep
add esp, 0x10
mov byte [0x41d084], 0
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret

Function at 0x410750
Capabilities:
Parse credit card information

Disassembly:
sub esp, 0x34
lea eax, [esp + 4]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push edi
push eax
push ecx
lea eax, [esp + 0x44]
push edx
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x44]
push edx
push eax
push 0x41da60
push ecx
call fcn.00413d5a
mov edx, dword [esp + 0x6c]
push edx
push 0
call fcn.00411f90
mov edi, eax
mov eax, dword [esp + 0x74]
add esp, 0x38
cmp eax, 0x10000
jb 0x4107cf
lea eax, [esp + 0x24]
push eax
push 0x41d9d4
push 0x41da34
call sub.dblib.dll_PutInfo
add esp, 0xc
xor al, al
pop edi
add esp, 0x34
ret
push esi
mov esi, dword [0x4227e0]
test esi, esi
je 0x4107f5
cmp dword [esi + 8], edi
je 0x410811
mov ecx, dword [0x4227e0]
push esi
push ecx
call sub.util.dll_list_get_next
mov esi, eax
add esp, 8
test esi, esi
jne 0x4107da
push 0x3c
push 1
call sub.util.dll_nd_chk_calloc
mov esi, eax
push esi
push 0x4227e0
mov dword [esi + 8], edi
call sub.util.dll_list_add_last
add esp, 0x10
mov eax, dword [esp + 8]
cmp eax, 0x2d
je 0x41088a
cmp eax, 0x3a
je 0x41088a
cmp eax, 0xff
je 0x41088a
cmp eax, 0x4a
je 0x41088a
cmp eax, 0x2e
je 0x41087b
cmp eax, 0x3b
je 0x41087b
cmp eax, 0x2f
je 0x41086c
cmp eax, 0x3c
je 0x41086c
cmp eax, 0x30
je 0x41085d
cmp eax, 0x3d
je 0x41085d
cmp eax, 0x31
je 0x41085d
cmp eax, 0x3e
je 0x41085d
cmp eax, 0x32
je 0x41085d
cmp eax, 0x3f
jne 0x41088d
mov eax, dword [esi + 0x28]
inc eax
mov dword [esi + 0x28], eax
pop esi
mov al, 1
pop edi
add esp, 0x34
ret
mov eax, dword [esi + 0x24]
inc eax
mov dword [esi + 0x24], eax
pop esi
mov al, 1
pop edi
add esp, 0x34
ret
mov eax, dword [esi + 0x20]
inc eax
mov dword [esi + 0x20], eax
pop esi
mov al, 1
pop edi
add esp, 0x34
ret
inc dword [esi + 0x1c]
pop esi
mov al, 1
pop edi
add esp, 0x34
ret