joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10097891
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100978d0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100978d0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100978d0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100978d0
cmp dword [ecx + 0x74], 0xe
jbe 0x100978d0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x100a25d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100a25fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100a25fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x100a2b09
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100c69c8
push 0x100c69c0
push 0x100c69c8
push 0x1f
call fcn.100a352a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100a2b3d
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x100a2b43
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100a2b87
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100c69ec
push 0x100c69e4
push 0x100c69ec
push 0x21
call fcn.100a352a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100a2bbe
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100a2bc6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100c6a00
push 0x100c69f8
push 0x100c6a00
push 0x22
call fcn.100a352a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100a2c00
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100ab77d
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x100d16b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x100ab7c8
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.100aba6f
test al, al
jne 0x100ab7c2
sub edx, 2
cmp edx, edi
jne 0x100ab7a8
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x100ab7ea
lea eax, [edi + 2]
cmp edx, eax
je 0x100ab7ea
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.100ab6c9
add esp, 0x10
jmp 0x100ab8e4
push esi
lea ecx, [ebp - 0x255]
call fcn.100aba6f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100ab82d
push dword [ebp - 0x25c]
jmp 0x100ab7da
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x100ab86a
cmp word [ebp - 0x226], 0
je 0x100ab88b
cmp word [ebp - 0x226], ax
jne 0x100ab86a
cmp word [ebp - 0x224], 0
je 0x100ab88b
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.100ab6c9
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x100ab8d7
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x100ab844
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x100ab8bf
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x100ab8e4
push 0x100abaad
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.100bae30
add esp, 0x10
jmp 0x100ab8b4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007916f
leave
ret
Function at 0x100ac39d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100ac43a
push ebx
push esi
call fcn.100ac4a0
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100ac2a1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100ac3e7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100ac439
push edi
push eax
call fcn.100a6609
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100ac407
call fcn.100a5431
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100ac438
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100ac2a1
add esp, 0x20
test eax, eax
jne 0x100ac426
push edi
call fcn.100a5431
jmp 0x100ac42e
push ebx
call fcn.100a5431
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100ac43d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100ac44e
pop esi
ret
push ebx
push edi
push esi
call fcn.100ac4a0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100a6609
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100ac476
push ebx
push esi
push edi
call fcn.1007c030
add esp, 0xc
push 0
call fcn.100a5431
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100ac547
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100ac7d6
Function at 0x100b772b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100d16b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.100a3c69
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.100a3c69
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x100b77a2
cmp word [ecx], dx
je 0x100b77a2
mov eax, dword [0x100ca80c]
push edi
dec eax
push eax
push 0x100ca6f8
call fcn.100b791b
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100b7815
cmp word [eax], dx
je 0x100b7815
mov eax, dword [edi]
test eax, eax
je 0x100b77c6
cmp word [eax], dx
je 0x100b77c6
lea eax, [ebp - 0x10]
push eax
call fcn.100b797c
jmp 0x100b77cf
lea eax, [ebp - 0x10]
push eax
call fcn.100b7c6a
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x100b783f
mov eax, dword [0x100ca6f4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100ca3e8
call fcn.100b791b
add esp, 0xc
test al, al
je 0x100b783f
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100b780a
cmp word [eax], di
je 0x100b780a
lea eax, [ebp - 0x10]
push eax
call fcn.100b797c
pop ecx
jmp 0x100b7841
lea eax, [ebp - 0x10]
push eax
call fcn.100b7c6a
jmp 0x100b7807
mov eax, dword [edi]
test eax, eax
je 0x100b782c
cmp word [eax], dx
je 0x100b782c
lea eax, [ebp - 0x10]
push eax
call fcn.100b7d9e
pop ecx
jmp 0x100b783f
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x100b790a
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100b7eae
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100b790a
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100b790a
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100b790a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100b7897
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100a2ef4
test ebx, ebx
je 0x100b7905
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100a2ef4
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100b790a
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100b790a
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100bee24
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100b790c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007916f
leave
ret
Function at 0x100b7fb4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100a3c69
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100b8023
cmp esi, dword [ebp - 4]
je 0x100b801e
cmp dword [ebp + 0xc], 0
je 0x100b801e
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100b7ffb
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100b807d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100b8025
xor eax, eax
inc eax
jmp 0x100b8025
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100bcc16
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100d2ec8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100bcc56
cmp byte [ebx], 0xa
jne 0x100bcc56
or byte [edi + eax + 0x28], 4
jmp 0x100bcc5b
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x100bcd5a
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100bcd3d
inc eax
cmp dl, 0xd
je 0x100bcc87
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100bccad
cmp eax, ecx
jae 0x100bccbb
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x100bcc6f
jmp 0x100bcd5a
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100bcd38
cmp dword [ebp - 0x10], 0
je 0x100bcd38
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100d2ec8]
test byte [eax + edi + 0x28], 0x48
je 0x100bcd12
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100bccfd
mov byte [esi], dl
jmp 0x100bcd0e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100d2ec8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100bcd5a
cmp byte [ebp - 1], 0xa
jne 0x100bcd21
cmp esi, ebx
jne 0x100bcd21
mov byte [esi], 0xa
jmp 0x100bcd59
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100bbf46
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100bcd5a
mov byte [esi], 0xd
jmp 0x100bcd59
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100d2ec8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100bcd57
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100bcd5a
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100bcd63
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100d2ec8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100bcda9
cmp word [ebx], dx
jne 0x100bcda9
or byte [eax + edi + 0x28], 4
jmp 0x100bcdae
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x100bcf11
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x100bcef1
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100bcdef
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100bce25
cmp eax, edx
jae 0x100bce33
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x100bcdca
jmp 0x100bcf11
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100bceec
cmp dword [ebp - 0x18], 0
je 0x100bceec
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100d2ec8]
test byte [eax + edi + 0x28], 0x48
je 0x100bcec2
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x100bce86
mov word [esi], cx
jmp 0x100bcebd
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100d2ec8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100d2ec8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100d2ec8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100bcf11
pop eax
cmp word [ebp - 4], ax
jne 0x100bced2
cmp esi, ebx
jne 0x100bced2
mov word [esi], ax
jmp 0x100bcf0e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100bbf46
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100bcf11
push 0xd
pop eax
jmp 0x100bcecd
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100d2ec8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100bcf0b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100bcf11
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x100bfdd4
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100bfe5c
Function at 0x4040f1
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xe9
mov dword [ebp - 4], 0
pushal
mov eax, dword [ebp + 8]
cmp word [eax], 0x5a4d
je 0x40412c
mov esi, dword [ebp + 0xc]
add esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
sub esi, 5
sub esi, edi
mov dword [ebp - 7], esi
jmp 0x40413d
mov edi, dword [ebp + 8]
add edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub esi, 5
sub esi, edi
mov dword [ebp - 7], esi
lea edx, [ebp - 0xc]
push edx
push 0x40
push 1
push edi
call dword [sym.imp.kernel32.dll_VirtualProtect]
push 5
lea edx, [ebp - 8]
push edx
push edi
call dword [sym.imp.kernel32.dll_RtlMoveMemory]
add edi, 5
push 0x90
push dword [ebp + 0x14]
push edi
call dword [sym.imp.kernel32.dll_RtlFillMemory]
sub edi, 5
lea edx, [ebp - 0xc]
push edx
push dword [ebp - 0xc]
push 5
push edi
call dword [sym.imp.kernel32.dll_VirtualProtect]
popal
leave
ret 0x10

Function at 0x40426b
Capabilities:
Allocate or change rwx memory
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [0x450869], eax
push 0
push 0x84000000
push 0
push 0
push 0x450871
push dword [0x450869]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [0x45086d], eax
test eax, eax
je 0x404377
push 0x40
push 0x3000
push 0x100000
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov dword [0x41122c], eax
mov esi, eax
push 0x451c4d
push 0x1024
push esi
push dword [0x45086d]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4042eb
mov edi, dword [0x451c4d]
add esi, edi
test edi, edi
jne 0x4042c4
mov eax, dword [0x41122c]
sub esi, dword [0x41122c]
mov dword [0x411230], esi
push 0
push pe_nt_image_headers32
push 5
push 0
push 0
push 0xc0000000
push 0x450873
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x404377
mov edi, eax
mov eax, dword [0x41122c]
push 0
push 0x451c4d
push dword [0x411230]
push eax
push edi
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x404377
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0x8000
push 0
push dword [0x41122c]
call dword [sym.imp.kernel32.dll_VirtualFree]
push dword [0x45086d]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [0x450869]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, 1
jmp 0x404379
xor eax, eax
ret
Function at 0x404855
Capabilities:
Packed with generic packer

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push ecx
push edx
push esi
push edi
mov esi, dword [ebp + 8]
or esi, esi
je 0x40493d
cmp dword [esi + 3], 0x79617278
je 0x404887
push ebx
push str.___XRAY__Unknown_command:__s
call dword [0x450e53]
add esp, 8
jmp 0x40493d
pushal
mov ecx, dword [0x4909f4]
push str.sv_status
call dword [0x45111e]
call fcn.004072c5
popal
cmp byte [0x4505fa], 0
je 0x4048b5
push 0x32
push 0x4505fa
call dword [sym.imp.kernel32.dll_RtlZeroMemory]
cmp dword [0x411dbf], 0
jne 0x40493d
mov dword [0x411dbf], 1
cmp dword [esi + 6], 0x6d682d79
je 0x4048f8
cmp dword [esi + 6], 0x6d742d79
je 0x404904
cmp dword [esi + 6], 0x63612d79
je 0x404910
cmp dword [esi + 6], 0x76732d79
jne 0x40491c
mov dword [0x411db7], 6
jmp 0x40491c
mov dword [0x411db7], 4
jmp 0x40491c
mov dword [0x411db7], 5
jmp 0x40491c
mov dword [0x411db7], 6
jmp 0x40491c
cmp byte [esi + 0xa], 0
je 0x40493d
lea esi, [esi + 0xb]
push esi
call fcn.00404948
or eax, eax
je 0x40493d
push 0x19
push esi
push 0x4505fa
call dword [sym.imp.kernel32.dll_RtlMoveMemory]
xor eax, eax
pop edi
pop esi
pop edx
pop ecx
pop ebx
leave
ret 4

Function at 0x404ccc
Capabilities:
Packed with generic packer
Read .ini file

Disassembly:
pushal
mov dword [0x42c91d], 0
call fcn.0040b666
push 0x20
push 0x447289
call dword [sym.imp.kernel32.dll_RtlZeroMemory]
push 0x30
push 0x451426
call dword [sym.imp.kernel32.dll_RtlZeroMemory]
push 0xc8
push 0x411cbf
call dword [sym.imp.kernel32.dll_RtlZeroMemory]
call fcn.00408872
call fcn.004080d7
call fcn.0040723b
call fcn.00408821
call fcn.0040bdd1
push 0
push 0x44741a
push 0x104
push str.xray.ini
call dword [sym.imp.kernel32.dll_GetFullPathNameA]
push 0x44741a
push 0x400
push 0x44751e
call dword [sym.imp.kernel32.dll_GetPrivateProfileSectionNamesA]
or eax, eax
je 0x404df0
mov esi, 0x44751e
cmp byte [esi], 0
je 0x404dc5
mov edi, 0x44f91e
lodsb al, byte [esi]
stosb byte es:[edi], al
or al, al
jne 0x404d62
push esi
push 0x44741a
push 0x8000
push 0x44791e
push 0x44f91e
call dword [sym.imp.kernel32.dll_GetPrivateProfileSectionA]
or eax, eax
je 0x404dc2
mov esi, 0x44791e
cmp byte [esi], 0
je 0x404dc2
mov edi, 0x44fa1e
lodsb al, byte [esi]
cmp al, 0x3d
je 0x404d9e
stosb byte es:[edi], al
jmp 0x404d96
xor eax, eax
stosb byte es:[edi], al
mov edi, 0x44fb1e
lodsb al, byte [esi]
stosb byte es:[edi], al
or al, al
jne 0x404da6
push 0x44fb1e
push 0x44fa1e
push 0x44f91e
call fcn.00404e19
jmp 0x404d8c
pop esi
jmp 0x404d58
push str.__XRAY__xray.ini_success_loaded
call dword [0x450e53]
add esp, 4
call fcn.004072a5
or eax, eax
je 0x404df0
push 0x451171
push eax
push str.___XRAY__Total:___d__respawn_points__at_current_level:___s__
call dword [0x450e53]
add esp, 0xc
popal
ret
Function at 0x405b0e
Capabilities:
Execute shellcode via indirect call
Parse credit card information
Read data from internet
Receive data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pushal
call 0x405b27
push esi
imul esi, dword [ebx + 0x75], 0x6c506c61
popal
jns 0x405b89
jb 0x405b99
add bh, bh
jne 0x405b32
call fcn.00403290
or eax, eax
je 0x405b4c
sbb edi, eax
add eax, 0x44725d
add byte [eax], al
add byte [eax], al
mov dword [0x44725d], 0
push dword [ebp + 0xc]
call fcn.004043b8
mov dword [0x447259], eax
jmp 0x405b91
cmp dword [0x447259], 0
je 0x405b91
mov edi, dword [0x44725d]
inc dword [0x44725d]
mov ebx, dword [edi*4 + 0x446e0d]
lea ebx, [ebx]
push 0x64
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.kernel32.dll_RtlMoveMemory]
cmp dword [0x44725d], 0xc
jb 0x405b91
push 0x2000
push 0x451c4d
call dword [sym.imp.kernel32.dll_RtlZeroMemory]
jmp 0x405b91
popal
leave
ret 8
mov ebp, esp
pushal
call 0x405bb2
inc esp
je 0x405c0a
arpl word [ebp + ecx*2 + 0x6f], si
jne 0x405c1e
dec ebp
popal
arpl word [edx + 0x6f], si
add bh, bh
jne 0x405bbd
call fcn.00403290
or eax, eax
je 0x405bcb
or eax, 0xe80c75ff
out 0xff, eax
jmp dword [ebx + 0x447255]
push dword [ebp + 0xc]
call fcn.004043b8
mov dword [0x447255], eax
popal
leave
ret 8
js 0x405c12
inc ecx
add byte [ebp + 0x50840fc0], al
push eax
add al, byte [eax]
add byte [ebx + 0x450869], ah