joyce8/EMBER2024-capa huggingface dataset:
Function at 0x590430
Capabilities:
Parse credit card information

Disassembly:
test ebx, ebx
jne 0x590438
or eax, 0xffffffff
ret
push esi
mov esi, dword [ebx]
mov edx, 1
mov al, byte [esi]
cmp al, 0x61
jl 0x59044e
cmp al, 0x7a
jle 0x59052d
cmp al, 0x41
jl 0x59045a
cmp al, 0x5a
jle 0x59052d
cmp al, 0x30
jl 0x590466
cmp al, 0x39
jle 0x59052d
cmp al, 0x2d
je 0x59052d
cmp al, 0x2e
je 0x59052d
cmp al, 0x5f
je 0x59052d
cmp al, 0x7e
je 0x59052d
cmp al, 0x25
jne 0x5904cc
mov cl, byte [esi + 1]
cmp cl, 0x30
jl 0x590497
cmp cl, 0x39
jle 0x5904ab
cmp cl, 0x61
jl 0x5904a1
cmp cl, 0x66
jle 0x5904ab
cmp cl, 0x41
jl 0x5904cc
cmp cl, 0x46
jg 0x5904cc
mov cl, byte [esi + 2]
cmp cl, 0x30
jl 0x5904b8
cmp cl, 0x39
jle 0x59052d
cmp cl, 0x61
jl 0x5904c2
cmp cl, 0x66
jle 0x59052d
cmp cl, 0x41
jl 0x5904cc
cmp cl, 0x46
jle 0x59052d
cmp al, 0x21
je 0x59052d
cmp al, 0x24
je 0x59052d
cmp al, 0x26
je 0x59052d
cmp al, 0x28
je 0x59052d
cmp al, 0x29
je 0x59052d
cmp al, 0x2a
je 0x59052d
cmp al, 0x2b
je 0x59052d
cmp al, 0x2c
je 0x59052d
cmp al, 0x3b
je 0x59052d
cmp al, 0x3d
je 0x59052d
cmp al, 0x3a
je 0x59052d
cmp al, 0x40
je 0x59052d
cmp al, 0x2f
je 0x59052d
cmp al, 0x3f
je 0x59052d
cmp al, 0x5b
je 0x59052d
cmp al, 0x5d
je 0x59052d
test edi, edi
je 0x590583
test byte [edi + 0x24], dl
je 0x590540
cmp al, 0x7b
je 0x59052d
cmp al, 0x7d
je 0x59052d
cmp al, 0x7c
je 0x59052d
cmp al, 0x5c
je 0x59052d
cmp al, 0x5e
je 0x59052d
cmp al, 0x60
jne 0x590540
cmp al, 0x25
jne 0x590539
add esi, 3
jmp 0x590440
add esi, edx
jmp 0x590440
mov eax, dword [edi + 0x20]
test eax, eax
je 0x590551
push eax
call dword [0x89ad58]
add esp, 4
test byte [edi + 0x24], 2
mov eax, dword [ebx]
je 0x590570
mov ecx, esi
sub ecx, eax
push ecx
push eax
call fcn.005846d0
add esp, 8
mov dword [edi + 0x20], eax
mov dword [ebx], esi
xor eax, eax
pop esi
ret
mov edx, esi
push 0
sub edx, eax
push edx
push eax
call fcn.00590100
add esp, 0xc
mov dword [edi + 0x20], eax
mov dword [ebx], esi
xor eax, eax
pop esi
ret
Function at 0x590590
Capabilities:
Parse credit card information

Disassembly:
test ebx, ebx
jne 0x590598
or eax, 0xffffffff
ret
push esi
mov esi, dword [ebx]
mov edx, 1
mov al, byte [esi]
cmp al, 0x61
jl 0x5905ae
cmp al, 0x7a
jle 0x590691
cmp al, 0x41
jl 0x5905ba
cmp al, 0x5a
jle 0x590691
cmp al, 0x30
jl 0x5905c6
cmp al, 0x39
jle 0x590691
cmp al, 0x2d
je 0x590691
cmp al, 0x2e
je 0x590691
cmp al, 0x5f
je 0x590691
cmp al, 0x7e
je 0x590691
cmp al, 0x25
jne 0x59062c
mov cl, byte [esi + 1]
cmp cl, 0x30
jl 0x5905f7
cmp cl, 0x39
jle 0x59060b
cmp cl, 0x61
jl 0x590601
cmp cl, 0x66
jle 0x59060b
cmp cl, 0x41
jl 0x59062c
cmp cl, 0x46
jg 0x59062c
mov cl, byte [esi + 2]
cmp cl, 0x30
jl 0x590618
cmp cl, 0x39
jle 0x590691
cmp cl, 0x61
jl 0x590622
cmp cl, 0x66
jle 0x590691
cmp cl, 0x41
jl 0x59062c
cmp cl, 0x46
jle 0x590691
cmp al, 0x21
je 0x590691
cmp al, 0x24
je 0x590691
cmp al, 0x26
je 0x590691
cmp al, 0x28
je 0x590691
cmp al, 0x29
je 0x590691
cmp al, 0x2a
je 0x590691
cmp al, 0x2b
je 0x590691
cmp al, 0x2c
je 0x590691
cmp al, 0x3b
je 0x590691
cmp al, 0x3d
je 0x590691
cmp al, 0x3a
je 0x590691
cmp al, 0x40
je 0x590691
cmp al, 0x2f
je 0x590691
cmp al, 0x3f
je 0x590691
test edi, edi
je 0x590704
test byte [edi + 0x24], dl
je 0x5906a4
cmp al, 0x7b
je 0x590691
cmp al, 0x7d
je 0x590691
cmp al, 0x7c
je 0x590691
cmp al, 0x5c
je 0x590691
cmp al, 0x5e
je 0x590691
cmp al, 0x5b
je 0x590691
cmp al, 0x5d
je 0x590691
cmp al, 0x60
jne 0x5906a4
cmp al, 0x25
jne 0x59069d
add esi, 3
jmp 0x5905a0
add esi, edx
jmp 0x5905a0
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x5906b5
push eax
call dword [0x89ad58]
add esp, 4
test byte [edi + 0x24], 2
mov eax, dword [ebx]
je 0x5906cd
mov ecx, esi
sub ecx, eax
push ecx
push eax
call fcn.005846d0
add esp, 8
jmp 0x5906dd
mov edx, esi
push 0
sub edx, eax
push edx
push eax
call fcn.00590100
add esp, 0xc
mov dword [edi + 0x1c], eax
mov eax, dword [edi + 0x28]
test eax, eax
je 0x5906f1
push eax
call dword [0x89ad58]
add esp, 4
mov eax, dword [ebx]
mov ecx, esi
sub ecx, eax
push ecx
push eax
call fcn.005846d0
add esp, 8
mov dword [edi + 0x28], eax
mov dword [ebx], esi
xor eax, eax
pop esi
ret
Function at 0x590710
Capabilities:
Parse credit card information

Disassembly:
push esi
mov esi, dword [ebx]
mov al, byte [esi]
cmp al, 0x61
jl 0x590721
cmp al, 0x7a
jle 0x5907bb
cmp al, 0x41
jl 0x59072d
cmp al, 0x5a
jle 0x5907bb
cmp al, 0x30
jl 0x590739
cmp al, 0x39
jle 0x5907bb
cmp al, 0x2d
je 0x5907bb
cmp al, 0x2e
je 0x5907bb
cmp al, 0x5f
je 0x5907bb
cmp al, 0x7e
je 0x5907bb
cmp al, 0x25
jne 0x59078f
mov cl, byte [esi + 1]
cmp cl, 0x30
jl 0x59075a
cmp cl, 0x39
jle 0x59076e
cmp cl, 0x61
jl 0x590764
cmp cl, 0x66
jle 0x59076e
cmp cl, 0x41
jl 0x59078f
cmp cl, 0x46
jg 0x59078f
mov cl, byte [esi + 2]
cmp cl, 0x30
jl 0x59077b
cmp cl, 0x39
jle 0x5907bb
cmp cl, 0x61
jl 0x590785
cmp cl, 0x66
jle 0x5907bb
cmp cl, 0x41
jl 0x59078f
cmp cl, 0x46
jle 0x5907bb
cmp al, 0x21
je 0x5907bb
cmp al, 0x24
je 0x5907bb
cmp al, 0x26
je 0x5907bb
cmp al, 0x28
je 0x5907bb
cmp al, 0x29
je 0x5907bb
cmp al, 0x2a
je 0x5907bb
cmp al, 0x2b
je 0x5907bb
cmp al, 0x2c
je 0x5907bb
cmp al, 0x3b
je 0x5907bb
cmp al, 0x3d
je 0x5907bb
cmp al, 0x3a
jne 0x5907cd
cmp al, 0x25
jne 0x5907c7
add esi, 3
jmp 0x590713
inc esi
jmp 0x590713
cmp byte [esi], 0x40
jne 0x59081f
test edi, edi
je 0x590819
mov eax, dword [edi + 0x10]
test eax, eax
je 0x5907e7
push eax
call dword [0x89ad58]
add esp, 4
test byte [edi + 0x24], 2
mov eax, dword [ebx]
je 0x590806
mov ecx, esi
sub ecx, eax
push ecx
push eax
call fcn.005846d0
add esp, 8
mov dword [edi + 0x10], eax
mov dword [ebx], esi
xor eax, eax
pop esi
ret
mov edx, esi
push 0
sub edx, eax
push edx
push eax
call fcn.00590100
add esp, 0xc
mov dword [edi + 0x10], eax
mov dword [ebx], esi
xor eax, eax
pop esi
ret
mov eax, 1
pop esi
ret
Function at 0x590830
Capabilities:
Parse credit card information

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, dword [eax]
mov al, byte [edi]
mov dword [esp + 0x10], edi
mov ebx, edi
cmp al, 0x5b
jne 0x590875
mov al, byte [edi + 1]
inc edi
cmp al, 0x5d
je 0x59085f
test al, al
je 0x590865
mov al, byte [edi + 1]
inc edi
cmp al, 0x5d
jne 0x590853
inc edi
jmp 0x59097e
cmp byte [edi], 0x5d
je 0x59085f
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
cmp al, 0x30
jl 0x5908c8
cmp al, 0x39
jg 0x5908c8
lea esi, [esp + 0x10]
call fcn.0058f010
test eax, eax
jne 0x5908c8
mov ecx, dword [esp + 0x10]
cmp byte [ecx], 0x2e
jne 0x5908c8
inc dword [esp + 0x10]
call fcn.0058f010
test eax, eax
jne 0x5908c8
mov edx, dword [esp + 0x10]
cmp byte [edx], 0x2e
jne 0x5908c8
call fcn.0058f010
test eax, eax
jne 0x5908c8
mov eax, dword [esp + 0x10]
cmp byte [eax], 0x2e
jne 0x5908c8
call fcn.0058f010
test eax, eax
je 0x59097a
mov al, byte [edi]
cmp al, 0x61
jl 0x5908d6
cmp al, 0x7a
jle 0x590968
cmp al, 0x41
jl 0x5908e2
cmp al, 0x5a
jle 0x590968
cmp al, 0x30
jl 0x5908ea
cmp al, 0x39
jle 0x590968
cmp al, 0x2d
je 0x590968
cmp al, 0x2e
je 0x590968
cmp al, 0x5f
je 0x590968
cmp al, 0x7e
je 0x590968
cmp al, 0x25
jne 0x590940
mov cl, byte [edi + 1]
cmp cl, 0x30
jl 0x59090b
cmp cl, 0x39
jle 0x59091f
cmp cl, 0x61
jl 0x590915
cmp cl, 0x66
jle 0x59091f
cmp cl, 0x41
jl 0x590940
cmp cl, 0x46
jg 0x590940
mov cl, byte [edi + 2]
cmp cl, 0x30
jl 0x59092c
cmp cl, 0x39
jle 0x590968
cmp cl, 0x61
jl 0x590936
cmp cl, 0x66
jle 0x590968
cmp cl, 0x41
jl 0x590940
cmp cl, 0x46
jle 0x590968
cmp al, 0x21
je 0x590968
cmp al, 0x24
je 0x590968
cmp al, 0x26
je 0x590968
cmp al, 0x28
je 0x590968
cmp al, 0x29
je 0x590968
cmp al, 0x2a
je 0x590968
cmp al, 0x2b
je 0x590968
cmp al, 0x2c
je 0x590968
cmp al, 0x3b
je 0x590968
cmp al, 0x3d
jne 0x59097e
cmp al, 0x25
jne 0x590974
add edi, 3
jmp 0x5908c8
inc edi
jmp 0x5908c8
mov edi, dword [esp + 0x10]
xor esi, esi
cmp ebp, esi
je 0x5909f5
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x590995
push eax
call dword [0x89ad58]
add esp, 4
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], esi
cmp eax, esi
je 0x5909a9
push eax
call dword [0x89ad58]
add esp, 4
cmp edi, ebx
je 0x5909f2
test byte [ebp + 0x24], 2
je 0x5909d2
mov ecx, edi
sub ecx, ebx
push ecx
push ebx
call fcn.005846d0
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x24]
add esp, 8
mov dword [eax], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edx, edi
push esi
sub edx, ebx
push edx
push ebx
call fcn.00590100
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x28]
add esp, 0xc
mov dword [eax], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov dword [ebp + 0xc], esi
mov eax, dword [esp + 0x1c]
mov dword [eax], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x590d80
Capabilities:
Parse credit card information

Disassembly:
push ecx
push esi
mov esi, dword [ebx]
push edi
mov edi, eax
mov al, byte [esi]
mov dword [esp + 8], esi
cmp al, 0x2f
jne 0x590de8
cmp byte [esi + 1], 0x2f
lea eax, [esp + 8]
push eax
jne 0x590dd4
add esi, 2
mov eax, edi
mov dword [esp + 0xc], esi
call fcn.00590a10
add esp, 4
test eax, eax
jne 0x590edf
lea ecx, [esp + 8]
push ecx
call fcn.00590a90
add esp, 4
test eax, eax
jne 0x590edf
mov edx, dword [esp + 8]
pop edi
mov dword [ebx], edx
pop esi
pop ecx
ret
call fcn.00590b30
add esp, 4
test eax, eax
je 0x590ed7
pop edi
pop esi
pop ecx
ret
cmp al, 0x61
jl 0x590df4
cmp al, 0x7a
jle 0x590ec6
cmp al, 0x41
jl 0x590e00
cmp al, 0x5a
jle 0x590ec6
cmp al, 0x30
jl 0x590e0c
cmp al, 0x39
jle 0x590ec6
cmp al, 0x2d
je 0x590ec6
cmp al, 0x2e
je 0x590ec6
cmp al, 0x5f
je 0x590ec6
cmp al, 0x7e
je 0x590ec6
cmp al, 0x25
jne 0x590e72
mov cl, byte [esi + 1]
cmp cl, 0x30
jl 0x590e3d
cmp cl, 0x39
jle 0x590e51
cmp cl, 0x61
jl 0x590e47
cmp cl, 0x66
jle 0x590e51
cmp cl, 0x41
jl 0x590e72
cmp cl, 0x46
jg 0x590e72
mov cl, byte [esi + 2]
cmp cl, 0x30
jl 0x590e5e
cmp cl, 0x39
jle 0x590ec6
cmp cl, 0x61
jl 0x590e68
cmp cl, 0x66
jle 0x590ec6
cmp cl, 0x41
jl 0x590e72
cmp cl, 0x46
jle 0x590ec6
cmp al, 0x21
je 0x590ec6
cmp al, 0x24
je 0x590ec6
cmp al, 0x26
je 0x590ec6
cmp al, 0x28
je 0x590ec6
cmp al, 0x29
je 0x590ec6
cmp al, 0x2a
je 0x590ec6
cmp al, 0x2b
je 0x590ec6
cmp al, 0x2c
je 0x590ec6
cmp al, 0x3b
je 0x590ec6
cmp al, 0x3d
je 0x590ec6
cmp al, 0x3a
je 0x590ec6
cmp al, 0x40
je 0x590ec6
test edi, edi
je 0x590edb
mov eax, dword [edi + 0x18]
test eax, eax
je 0x590eb7
push eax
call dword [0x89ad58]
add esp, 4
mov dword [edi + 0x18], 0
pop edi
mov dword [ebx], esi
xor eax, eax
pop esi
pop ecx
ret
lea ecx, [esp + 8]
push ecx
call fcn.00590c00
add esp, 4
test eax, eax
jne 0x590edf
mov esi, dword [esp + 8]
mov dword [ebx], esi
xor eax, eax
pop edi
pop esi
pop ecx
ret
Function at 0x590ef0
Capabilities:
Parse credit card information

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, eax
mov al, byte [ebx]
cmp al, 0x2f
jne 0x590f51
cmp byte [ebx + 1], al
jne 0x590f39
lea eax, [esp + 0xc]
push eax
add ebx, 2
mov eax, edi
mov dword [esp + 0x10], ebx
call fcn.00590a10
add esp, 4
test eax, eax
jne 0x59108c
lea ecx, [esp + 0xc]
push ecx
call fcn.00590a90
add esp, 4
test eax, eax
je 0x59103a
pop edi
pop ebx
ret
lea edx, [esp + 0xc]
push edx
call fcn.00590b30
add esp, 4
test eax, eax
je 0x59103a
pop edi
pop ebx
ret
cmp al, 0x61
jl 0x590f5d
cmp al, 0x7a
jle 0x591029
cmp al, 0x41
jl 0x590f69
cmp al, 0x5a
jle 0x591029
cmp al, 0x30
jl 0x590f75
cmp al, 0x39
jle 0x591029
cmp al, 0x2d
je 0x591029
cmp al, 0x2e
je 0x591029
cmp al, 0x5f
je 0x591029
cmp al, 0x7e
je 0x591029
cmp al, 0x25
jne 0x590fdb
mov cl, byte [ebx + 1]
cmp cl, 0x30
jl 0x590fa6
cmp cl, 0x39
jle 0x590fba
cmp cl, 0x61
jl 0x590fb0
cmp cl, 0x66
jle 0x590fba
cmp cl, 0x41
jl 0x590fdb
cmp cl, 0x46
jg 0x590fdb
mov cl, byte [ebx + 2]
cmp cl, 0x30
jl 0x590fc7
cmp cl, 0x39
jle 0x591029
cmp cl, 0x61
jl 0x590fd1
cmp cl, 0x66
jle 0x591029
cmp cl, 0x41
jl 0x590fdb
cmp cl, 0x46
jle 0x591029
cmp al, 0x21
je 0x591029
cmp al, 0x24
je 0x591029
cmp al, 0x26
je 0x591029
cmp al, 0x28
je 0x591029
cmp al, 0x29
je 0x591029
cmp al, 0x2a
je 0x591029
cmp al, 0x2b
je 0x591029
cmp al, 0x2c
je 0x591029
cmp al, 0x3b
je 0x591029
cmp al, 0x3d
je 0x591029
cmp al, 0x3a
je 0x591029
cmp al, 0x40
je 0x591029
test edi, edi
je 0x59103e
mov eax, dword [edi + 0x18]
test eax, eax
je 0x591020
push eax
call dword [0x89ad58]
add esp, 4
mov dword [edi + 0x18], 0
jmp 0x59103e
lea eax, [esp + 0xc]
push eax
call fcn.00590cc0
add esp, 4
test eax, eax
jne 0x59108c
mov ebx, dword [esp + 0xc]
cmp byte [ebx], 0x3f
jne 0x591059
inc ebx
mov dword [esp + 0xc], ebx
lea ebx, [esp + 0xc]
call fcn.00590590
test eax, eax
jne 0x59108c
mov ebx, dword [esp + 0xc]
cmp byte [ebx], 0x23
jne 0x591074
inc ebx
mov dword [esp + 0xc], ebx
lea ebx, [esp + 0xc]
call fcn.00590430
test eax, eax
jne 0x59108c
mov ebx, dword [esp + 0xc]
cmp byte [ebx], 0
je 0x59108a
push esi
mov esi, edi
call fcn.0058fe10
pop esi
pop edi
mov eax, 1
pop ebx
ret
xor eax, eax
pop edi
pop ebx
ret
Function at 0x59d820
Capabilities:
Resolve dns

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x59d8c4
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x59d895
cmp word [ecx + 0xa], 4
jne 0x59d895
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x59d895
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea esp, [esp]
mov edx, dword [eax]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebx
push ebp
call fcn.0059d7b0
mov dword [esi], eax
test eax, eax
je 0x59d8b8
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x59d870
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call fcn.00645f2a
add esp, 0x10
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret 0x18
pop edi
pop ebp
pop ebx
mov eax, 8
pop esi
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x59d8d4.11001
jmp dword [eax*4 + 0x59d8f8]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18
Function at 0x59e130
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x8a0c44]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x8a6230], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x59db90
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x59de80
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.0059db40
je 0x59e1a2
movzx eax, word [esp + 0x234]
mov eax, dword [eax*8 + 0x89b54c]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0063ecb3
add esp, 0x230
ret 4
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x59e29d
push ebx
push ebp
push esi
push edi
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.00645ec2
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.00646265
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x59e21d
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x59e264
push esi
call ebp
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.00645ec2
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.00646265
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x59e299
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x59e2cd
xor edi, edi
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
mov dword [esp + edi*8 + 0x14], eax
test eax, eax
je 0x59e2cd
inc edi
cmp edi, 3
jl 0x59e266
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x89b54c], edx
mov dword [0x89b554], eax
mov dword [fcn.0059db40], ecx
pop edi
pop esi
pop ebp
pop ebx
movzx edx, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
mov eax, dword [edx*8 + 0x89b54c]
xor ecx, esp
mov dword [0x8a6230], 1
call fcn.0063ecb3
add esp, 0x230
ret 4
push esi
call ebp
jmp 0x59e299
Function at 0x59ed20
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Set socket configuration

Disassembly:
sub esp, 0x218
push esi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x59ed55
push str.socket_failed_n
push 0
push 0xa
call fcn.00589550
add esp, 0xc
or eax, esi
pop esi
add esp, 0x218
ret
lea eax, [esp + 8]
push eax
push 0x8004667e
push esi
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [esp + 0x220]
inc eax
neg eax
sbb eax, eax
push 0x10
neg eax
push ecx
dec eax
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x59edae
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jl 0x59eda4
cmp eax, 0x2734
jle 0x59edae
push str.error_connecting_to_HTTP_server
jmp 0x59eecf
cmp esi, 0x40
mov edx, dword [0x89b544]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0
jg 0x59eee2
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x11c]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
lea eax, [esi + 1]
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], 1
mov dword [esp + 0x130], esi
mov dword [esp + 0x12c], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x59eeca
test eax, eax
je 0x59eec3
lea ecx, [esp + 0x14]
push ecx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x59ee41
lea edx, [esp + 0x118]
push edx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x59ee41
push str.select_failed_n
jmp 0x59eecf
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
push 0x1007
push 0xffff
push esi
mov dword [esp + 0x1c], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jge 0x59ee84
push str.getsockopt_failed_n
push 0
push 0xa
call fcn.00589550
add esp, 0xc
or eax, 0xffffffff
pop esi
add esp, 0x218
ret
cmp dword [esp + 4], 0
je 0x59eeb9
push str.Error_connecting_to_remote_host
push 0
push 0xa
call fcn.00589550
add esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call fcn.006426ac
mov edx, dword [esp + 4]
mov dword [eax], edx
or eax, 0xffffffff
pop esi
add esp, 0x218
ret
mov eax, esi
pop esi
add esp, 0x218
ret
push str.Connect_attempt_timed_out
jmp 0x59eecf
push str.Connect_failed
push 0
push 0xa
call fcn.00589550
add esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x218
ret
Function at 0x59fab0
Capabilities:
Receive data
Receive data on socket

Disassembly:
test esi, esi
je 0x59fb7f
mov ecx, dword [esi + 0x440]
test ecx, ecx
jl 0x59fb7f
cmp ecx, 0x400
jg 0x59fb7f
mov eax, dword [esi + 0x444]
test eax, eax
jl 0x59fb7f
cmp eax, 0x400
jg 0x59fb7f
cmp ecx, eax
jg 0x59fb7f
test ecx, ecx
jle 0x59fb21
sub eax, ecx
push eax
lea eax, [ecx + esi + 0x3c]
push eax
lea ecx, [esi + 0x3c]
push ecx
call fcn.00642110
mov edx, dword [esi + 0x440]
add esp, 0xc
sub dword [esi + 0x444], edx
mov dword [esi + 0x440], 0
mov eax, 0x400
sub eax, dword [esi + 0x444]
jne 0x59fb2f
ret
mov edx, dword [esi + 0x2c]
push 0
push eax
mov eax, dword [esi + 0x440]
lea ecx, [eax + esi + 0x3c]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jge 0x59fb6d
push str.recv_failed
push 0
push 9
call fcn.00589550
mov eax, dword [esi + 0x2c]
add esp, 0xc
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
mov dword [esi + 0x2c], eax
ret
add dword [esi + 0x444], eax
mov ecx, dword [esi + 0x444]
mov byte [ecx + esi + 0x3c], 0
ret
or eax, 0xffffffff
ret

Function at 0x59fcd0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0xcc
mov eax, dword [0x8a0c44]
xor eax, esp
mov dword [esp + 0xc8], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x59fd07
push str.USER_anonymous_r_n
lea eax, [esp + 8]
push 0xc8
push eax
call fcn.00645515
add esp, 0xc
jmp 0x59fd1f
push eax
push str.USER__s_r_n
lea ecx, [esp + 0xc]
push 0xc8
push ecx
call fcn.00645515
add esp, 0x10
lea eax, [esp + 4]
mov byte [esp + 0xcb], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x59fd30
sub eax, edx
push 0
push eax
mov eax, dword [esi + 0x2c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test esi, esi
jge 0x59fd7a
push str.send_failed
push 0
push 9
call fcn.00589550
add esp, 0xc
mov eax, esi
pop esi
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0063ecb3
add esp, 0xcc
ret
mov ecx, dword [esp + 0xcc]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0063ecb3
add esp, 0xcc
ret

Function at 0x59fda0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0xcc
mov eax, dword [0x8a0c44]
xor eax, esp
mov dword [esp + 0xc8], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x59fdd7
push str.PASS_anonymous__r_n
lea eax, [esp + 8]
push 0xc8
push eax
call fcn.00645515
add esp, 0xc
jmp 0x59fdef
push eax
push str.PASS__s_r_n
lea ecx, [esp + 0xc]
push 0xc8
push ecx
call fcn.00645515
add esp, 0x10
lea eax, [esp + 4]
mov byte [esp + 0xcb], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x59fe00
sub eax, edx
push 0
push eax
mov eax, dword [esi + 0x2c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test esi, esi
jge 0x59fe4a
push str.send_failed
push 0
push 9
call fcn.00589550
add esp, 0xc
mov eax, esi
pop esi
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0063ecb3
add esp, 0xcc
ret
mov ecx, dword [esp + 0xcc]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0063ecb3
add esp, 0xcc
ret
Function at 0x5a07e0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x210
push esi
mov esi, dword [esp + 0x218]
test esi, esi
je 0x5a08a5
mov eax, dword [esi + 0x30]
push ebx
push edi
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
push eax
call edi
mov eax, dword [esi + 0x2c]
mov ecx, 1
mov dword [esp + 0x118], ecx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
lea ecx, [esp + 0x124]
mov dword [esp + 0x128], eax
mov dword [esp + 0x24], eax
push ecx
inc eax
or ebx, 0xffffffff
push eax
mov dword [esi + 0x30], ebx
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x24], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jge 0x5a086d
mov edx, dword [esi + 0x2c]
push edx
call edi
pop edi
mov dword [esi + 0x2c], ebx
mov eax, ebx
pop ebx
pop esi
add esp, 0x210
ret
jne 0x5a0884
mov eax, dword [esi + 0x2c]
push eax
call edi
mov dword [esi + 0x2c], ebx
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0x210
ret
mov eax, esi
call fcn.0059fb90
cmp eax, 2
je 0x5a0878
mov ecx, dword [esi + 0x2c]
push ecx
call edi
pop edi
mov dword [esi + 0x2c], ebx
mov eax, ebx
pop ebx
pop esi
add esp, 0x210
ret
or eax, 0xffffffff
pop esi
add esp, 0x210
ret

Function at 0x5a261a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
and dword [ebp + 8], 0
cmp dword [ebp + 0x14], 2
mov ecx, dword [esi + 0x14]
jl 0x5a266c
mov edx, dword [ebp + 0x10]
test ecx, ecx
je 0x5a263f
movzx eax, byte [edx + 1]
movzx ebx, byte [edx]
jmp 0x5a2646
movzx eax, byte [edx]
movzx ebx, byte [edx + 1]
sub dword [ebp + 0x14], 2
add dword [ebp + 8], 2
shl eax, 8
add eax, ebx
inc edx
inc edx
cmp eax, 0xfeff
je 0x5a2666
cmp eax, 0xfffe
jne 0x5a2679
xor ecx, 1
cmp dword [ebp + 0x14], 2
jge 0x5a2632
push 0xfffffffffffffffe
pop eax
sub eax, dword [ebp + 8]
mov dword [esi + 0x14], ecx
pop esi
pop ebx
pop ebp
ret
cmp eax, 0xd800
jb 0x5a268c
cmp eax, 0xe000
jae 0x5a268c
or eax, 0xffffffff
jmp 0x5a2675
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
jmp 0x5a2672