joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4eb2c0
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x91c
mov eax, dword [0x66e8b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x91c], ecx
mov ecx, dword [ebp - 0x91c]
call fcn.004eb710
test eax, eax
je 0x4eb2f2
mov eax, 1
jmp 0x4eb46a
push 0x104
lea eax, [ebp - 0x117]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4eb318
cmp dword [ebp - 0xc], 0x104
jne 0x4eb31f
xor eax, eax
jmp 0x4eb46a
mov byte [ebp - 0x118], 0x22
mov ecx, dword [ebp - 0xc]
mov byte [ebp + ecx - 0x117], 0x22
mov edx, dword [ebp - 0xc]
mov byte [ebp + edx - 0x116], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4eb3ac
push 0x400
lea eax, [ebp - 0x518]
push eax
push 0xd80a
call fcn.004e9380
add esp, 0xc
test eax, eax
jne 0x4eb38a
push str.Could_not_open_Service_Manager
push 0x400
lea ecx, [ebp - 0x518]
push ecx
call fcn.004e9350
add esp, 0xc
push 0
mov edx, dword [ebp - 0x91c]
add edx, 0x40
push edx
lea eax, [ebp - 0x518]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x4eb46a
push 0
push 0
push str.RPCSS
push 0
push 0
lea ecx, [ebp - 0x118]
push ecx
push 1
push 3
push 0x10
push 0xf01ff
mov edx, dword [ebp - 0x91c]
add edx, 0x40
push edx
mov eax, dword [ebp - 0x91c]
add eax, 0x40
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4eb451
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea eax, [ebp - 0x918]
push eax
push 0xd80b
call fcn.004e9380
add esp, 0xc
test eax, eax
jne 0x4eb432
push str.Could_not_start_service
push 0x400
lea ecx, [ebp - 0x918]
push ecx
call fcn.004e9350
add esp, 0xc
push 0
mov edx, dword [ebp - 0x91c]
add edx, 0x40
push edx
lea eax, [ebp - 0x918]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x4eb46a
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059e318
mov esp, ebp
pop ebp
ret
Function at 0x4eb480
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x103c
call fcn.005a0b40
mov eax, dword [0x66e8b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x103c], ecx
mov ecx, dword [ebp - 0x103c]
call fcn.004eb710
test eax, eax
jne 0x4eb4b6
mov eax, 1
jmp 0x4eb6e0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4eb526
push 0x400
lea eax, [ebp - 0x830]
push eax
push 0xd80a
call fcn.004e9380
add esp, 0xc
test eax, eax
jne 0x4eb504
push str.Could_not_open_Service_Manager
push 0x400
lea ecx, [ebp - 0x830]
push ecx
call fcn.004e9350
add esp, 0xc
push 0
mov edx, dword [ebp - 0x103c]
add edx, 0x40
push edx
lea eax, [ebp - 0x830]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x4eb6e0
push 0x10020
mov ecx, dword [ebp - 0x103c]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0
jne 0x4eb5b0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea ecx, [ebp - 0xc30]
push ecx
push 0xd80c
call fcn.004e9380
add esp, 0xc
test eax, eax
jne 0x4eb58e
push str.Could_not_open_service
push 0x400
lea edx, [ebp - 0xc30]
push edx
call fcn.004e9350
add esp, 0xc
push 0
mov eax, dword [ebp - 0x103c]
add eax, 0x40
push eax
lea ecx, [ebp - 0xc30]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x4eb6e0
lea edx, [ebp - 0x430]
push edx
push 1
mov eax, dword [ebp - 0x410]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0
jne 0x4eb653
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc34], eax
cmp dword [ebp - 0xc34], 0x426
je 0x4eb653
cmp dword [ebp - 0xc34], 0x425
jne 0x4eb602
cmp dword [ebp - 0x42c], 3
je 0x4eb653
push 0x400
lea ecx, [ebp - 0x1038]
push ecx
push 0xd80e
call fcn.004e9380
add esp, 0xc
test eax, eax
jne 0x4eb638
push str.Could_not_stop_service
push 0x400
lea edx, [ebp - 0x1038]
push edx
call fcn.004e9350
add esp, 0xc
push 0
mov eax, dword [ebp - 0x103c]
add eax, 0x40
push eax
lea ecx, [ebp - 0x1038]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [ebp - 0x410]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x410]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x40c], 0
je 0x4eb68d
mov eax, 1
jmp 0x4eb6e0
push 0x400
lea edx, [ebp - 0x408]
push edx
push 0xd80d
call fcn.004e9380
add esp, 0xc
test eax, eax
jne 0x4eb6c3
push str.Could_not_delete_service
push 0x400
lea eax, [ebp - 0x408]
push eax
call fcn.004e9350
add esp, 0xc
push 0
mov ecx, dword [ebp - 0x103c]
add ecx, 0x40
push ecx
lea edx, [ebp - 0x408]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0059e318
mov esp, ebp
pop ebp
ret
Function at 0x4ef460
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e8969
mov eax, dword fs:[0]
push eax
sub esp, 0x4a0
mov eax, dword [0x66e8b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x21d], 0
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x10], 0x44
mov eax, dword [ebp - 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x470], eax
cmp dword [ebp - 0x470], 0
jne 0x4ef4c5
xor al, al
jmp 0x4ef655
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x470]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
jne 0x4ef4f4
mov ecx, dword [ebp - 0x470]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor al, al
jmp 0x4ef655
xor edx, edx
mov word [ebp - 0x474], dx
jmp 0x4ef511
mov ax, word [ebp - 0x474]
add ax, 1
mov word [ebp - 0x474], ax
movzx ecx, word [ebp - 0x474]
mov edx, dword [ebp + 0xc]
cmp ecx, dword [edx]
jae 0x4ef642
mov dword [ebp - 0x478], 0x100
mov dword [ebp - 0x47c], 0xf
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x47c]
push ecx
lea edx, [ebp - 0x260]
push edx
lea eax, [ebp - 0x478]
push eax
lea ecx, [ebp - 0x21c]
push ecx
movzx edx, word [ebp - 0x474]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*8 + 4]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
cmp dword [ebp - 0x264], 2
je 0x4ef587
cmp dword [ebp - 0x264], 4
jne 0x4ef63d
mov dword [ebp - 0x480], 7
movzx edx, word [ebp - 0x474]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*8 + 8]
and ecx, dword [ebp - 0x480]
je 0x4ef63d
lea edx, [ebp - 0x484]
push edx
movzx eax, word [ebp - 0x474]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*8 + 4]
push edx
call sub.ADVAPI32.dll_ConvertSidToStringSidA
mov eax, dword [ebp - 0x484]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x4a0]
call fcn.00492400
mov dword [ebp - 4], 0
lea edx, [ebp - 0x4a0]
push edx
lea eax, [ebp - 0x4ac]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.004f2830
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4a0]
call fcn.00490dc0
mov ecx, dword [ebp - 0x470]
push ecx
movzx edx, word [ebp - 0x474]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*8 + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4ef63d
mov byte [ebp - 0x21d], 1
jmp 0x4ef642
jmp 0x4ef4ff
mov edx, dword [ebp - 0x470]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, byte [ebp - 0x21d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0059e318
mov esp, ebp
pop ebp
ret
Function at 0x4fa120
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x434
call fcn.005a0b40
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
mov dword [esp + 0x10], 0
je 0x4fa17f
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.005b8598
fld qword [0x5f8fd0]
mov edi, eax
add esp, 8
mov eax, 8
call fcn.005a0b40
fstp qword [esp]
lea ecx, [esp + 0x24]
push 0x24
push ecx
call fcn.004f9f90
add esp, 0x10
test edi, edi
jl 0x4fa17f
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x4fa188
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x60abf8
push esi
call fcn.005a1f00
add esp, 8
test eax, eax
mov dword [esp + 0x14], eax
je 0x4fa225
jmp 0x4fa1a8
mov eax, dword [esp + 0x14]
test ebx, ebx
jle 0x4fa1b6
cmp ebx, 0x400
mov esi, ebx
jl 0x4fa1bb
mov esi, 0x400
push eax
push esi
lea edx, [esp + 0x48]
push 1
push edx
call fcn.005a6725
mov edi, eax
add esp, 0x10
test edi, edi
mov dword [esp + 0x18], edi
jle 0x4fa209
fild dword [esp + 0x18]
mov eax, 8
call fcn.005a0b40
lea eax, [esp + 0x48]
fstp qword [esp]
push esi
push eax
call fcn.004f9f90
mov ecx, dword [esp + 0x20]
add ecx, edi
add esp, 0x10
test ebx, ebx
mov dword [esp + 0x10], ecx
jle 0x4fa1a4
sub ebx, esi
test ebx, ebx
jg 0x4fa1a4
mov ecx, dword [esp + 0x14]
push ecx
call fcn.005a6225
lea edx, [esp + 0x44]
push 0x400
push edx
call fcn.00501970
add esp, 0xc
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x500a20
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push ebx
call fcn.005a1f00
mov edi, eax
add esp, 8
test edi, edi
jne 0x500ab0
push 0x7a
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.004fb040
push 0x6100c4
push esi
push 0x6100c0
push ebx
push str.fopen_
push 5
call fcn.004fac20
add esp, 0x2c
call fcn.005a1c07
cmp dword [eax], 2
jne 0x500a95
push 0x7d
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.004fb040
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x7f
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.004fb040
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x662674
call fcn.004fc190
mov esi, eax
add esp, 4
test esi, esi
jne 0x500ad2
push edi
call fcn.005a6225
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push esi
call fcn.004fbc50
push edi
push 1
push 0x6a
push esi
call fcn.004fbf80
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x501790
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104
call fcn.005a0b40
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x5017d5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x5017d5
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push 0x66e670
call fcn.005a90f8
add esp, 0xc
lea esp, [ebp - 0x108]
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
lea ecx, [ebp - 0x104]
push 0xff
push ecx
call fcn.005a8fc0
add esp, 0x10
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x50184e
call fcn.005016d0
test eax, eax
je 0x50184e
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [ebp - 0x104]
push esi
mov dword [ebp - 4], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea esp, [ebp - 0x108]
pop esi
mov esp, ebp
pop ebp
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [ebp - 0x104]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea esp, [ebp - 0x108]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x503800
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
test edi, edi
je 0x503863
mov al, byte [edi]
test al, al
je 0x503863
push ebx
push ebp
mov ebx, 0x100
lea esp, [esp]
movsx eax, al
or eax, ebx
mov edx, eax
shr edx, 2
xor edx, eax
and edx, 0xf
mov ecx, 0x20
sub ecx, edx
mov ebp, esi
shr ebp, cl
mov ecx, edx
shl esi, cl
mov ecx, eax
imul ecx, eax
mov al, byte [edi + 1]
or ebp, esi
xor ebp, ecx
add ebx, 0x100
inc edi
test al, al
mov esi, ebp
jne 0x503820
pop ebp
mov eax, esi
pop ebx
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x5364a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x10]
cmp ecx, dword [ebx + 4]
push esi
push edi
jge 0x5364b9
mov esi, ebx
mov ebx, eax
jmp 0x5364bb
mov esi, eax
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 4]
cmp eax, dword [edi + 8]
jle 0x5364d1
push eax
push edi
call fcn.0050ff20
add esp, 8
mov ecx, dword [ebx + 4]
xor eax, eax
test ecx, ecx
jle 0x5364fa
push ebp
jmp 0x5364e0
mov ecx, dword [ebx]
mov ebp, dword [ecx + eax*4]
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [edi]
xor edx, ebp
mov dword [ecx + eax*4], edx
mov ecx, dword [ebx + 4]
inc eax
cmp eax, ecx
jl 0x5364e0
pop ebp
cmp eax, dword [esi + 4]
jge 0x536512
nop
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
mov ecx, dword [esi + 4]
inc eax
cmp eax, ecx
jl 0x536500
mov esi, dword [esi + 4]
test esi, esi
mov dword [edi + 4], esi
jle 0x536538
mov eax, dword [edi]
lea eax, [eax + esi*4 - 4]
mov ecx, dword [eax]
sub eax, 4
test ecx, ecx
jne 0x536538
mov edx, dword [edi + 4]
dec edx
mov ecx, edx
test ecx, ecx
mov dword [edi + 4], edx
jg 0x536522
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x553da0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
je 0x553db8
mov eax, dword [ebp + 8]
cmp dword [eax + 0xa0], 0
je 0x553dbf
xor eax, eax
jmp 0x553ef8
mov ecx, dword [ebp + 8]
push ecx
call fcn.0055b8d0
add esp, 4
push eax
call fcn.00553f20
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x553de7
mov eax, 1
jmp 0x553ef8
push 1
mov edx, dword [ebp + 8]
add edx, 0xa4
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
je 0x553dff
jmp 0x553de7
mov eax, dword [ebp + 8]
cmp dword [eax + 0xa0], 0
je 0x553e1f
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xa4], 0
xor eax, eax
jmp 0x553ef8
mov edx, dword [ebp + 8]
cmp dword [edx + 0x9c], 0
je 0x553e48
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xa0], eax
jmp 0x553eb5
mov edx, dword [ebp + 8]
cmp dword [edx + 0x8c], 0
jne 0x553e71
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xa0], eax
jmp 0x553eb5
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x8c]
push eax
call fcn.00553f20
add esp, 4
mov dword [ebp - 4], eax
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
push 3
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xa0], eax
cmp dword [ebp - 4], 0
je 0x553eb5
mov edx, dword [ebp - 4]
push edx
call fcn.0055a080
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax + 0xa4], 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.0055a080
add esp, 4
mov edx, dword [ebp + 8]
cmp dword [edx + 0xa0], 0
jne 0x553ee7
push str.Could_not_open_session
call fcn.00553f00
add esp, 4
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [eax + 0xa0], 0
sete cl
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x554e50
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x7e8c
call fcn.005a0b40
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, 1
test eax, eax
je 0x554f18
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x554eac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x665bdc
call fcn.00553f00
add esp, 8
mov eax, 1
jmp 0x554f1a
cmp dword [ebp - 4], 0x1fa0
jbe 0x554ec1
mov dword [ebp - 0x7e8c], 0x1fa0
jmp 0x554eca
mov eax, dword [ebp - 4]
mov dword [ebp - 0x7e8c], eax
mov ecx, dword [ebp - 0x7e8c]
mov dword [ebp - 4], ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x7e88]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x554f0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x665c04
call fcn.00553f00
add esp, 8
mov eax, 1
jmp 0x554f1a
cmp dword [ebp - 8], 0
jne 0x554f13
jmp 0x554f18
jmp 0x554e6b
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x571e40
Capabilities:
Parse credit card information

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x10]
cmp byte [ecx], 0x25
jne 0x571f4e
push ebx
push esi
call fcn.0058e230
push esi
call fcn.0056dcc0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x571e7a
mov ecx, str.xmlParsePEReference:_no_name_n
lea eax, [ebx + 0x44]
call fcn.00569050
pop ebx
pop esi
ret
mov edx, dword [esi + 0x24]
mov eax, dword [edx + 0x10]
cmp byte [eax], 0x3b
je 0x571eeb
cmp dword [esi + 0xd4], 0
je 0x571e9b
cmp dword [esi + 0xac], 0xffffffff
je 0x571f4d
push 0
push str.EntityRef:_expecting___n
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 3
push 0x17
push 1
push 0
push esi
push 0
push 0
push 0
mov dword [esi + 0x54], 0x17
call fcn.00568740
add esp, 0x44
cmp dword [esi + 0x120], 0
mov dword [esi + 0xc], 0
jne 0x571f4d
pop ebx
mov dword [esi + 0xd4], 1
pop esi
ret
push edi
push esi
call fcn.0058e230
mov eax, dword [esi]
inc dword [esi + 0x1b8]
add esp, 4
test eax, eax
je 0x571f18
mov eax, dword [eax + 0x60]
test eax, eax
je 0x571f18
mov ecx, dword [esi + 4]
push ebx
push ecx
call eax
mov edi, eax
add esp, 8
test edi, edi
jne 0x571f6c
cmp dword [esi + 0x1c], 1
je 0x571f50
cmp dword [esi + 0x58], 0
jne 0x571f2a
cmp dword [esi + 0x5c], 0
je 0x571f50
push 0x1b
mov edx, ebx
push esi
xor ecx, ecx
mov ebx, str.PEReference:____s__not_found_n
call fcn.005690c0
add esp, 8
mov dword [esi + 0x64], 0
mov dword [esi + 0x5c], 1
pop edi
pop ebx
pop esi
ret
mov eax, ebx
mov edx, str.PEReference:____s__not_found_n
mov ecx, 0x1a
call fcn.00569250
pop edi
pop ebx
mov dword [esi + 0x5c], 1
pop esi
ret
mov eax, dword [edi + 0x30]
cmp eax, 4
je 0x571f98
cmp eax, 5
je 0x571f98
push 0x1b
mov edx, ebx
push esi
xor ecx, ecx
mov ebx, str.Internal:____s__is_not_a_parameter_entity_n
call fcn.005690c0
add esp, 8
pop edi
pop ebx
mov dword [esi + 0x5c], 1
pop esi
ret
mov edx, dword [esi + 0x24]
cmp dword [edx + 0x28], 0x56a240
push edi
je 0x571fc5
mov eax, esi
call fcn.0056a250
push eax
push esi
call fcn.0056bac0
add esp, 0xc
test eax, eax
jl 0x571f4c
pop edi
pop ebx
mov dword [esi + 0x5c], 1
pop esi
ret
push esi
call fcn.0058ef60
push eax
push esi
call fcn.0056bac0
add esp, 0x10
test eax, eax
jl 0x571f4c
cmp dword [edi + 0x30], 5
jne 0x571f45
mov eax, dword [esi + 0x24]
mov eax, dword [eax + 0x10]
cmp byte [eax], 0x3c
jne 0x571f45
cmp byte [eax + 1], 0x3f
jne 0x571f45
cmp byte [eax + 2], 0x78
jne 0x571f45
cmp byte [eax + 3], 0x6d
jne 0x571f45
cmp byte [eax + 4], 0x6c
jne 0x571f45
mov al, byte [eax + 5]
cmp al, 0x20
je 0x572035
cmp al, 9
jb 0x57202d
cmp al, 0xa
jbe 0x572035
cmp al, 0xd
jne 0x571f45
push esi
call fcn.0056ca80
add esp, 4
cmp dword [esi + 0x54], 0x20
jne 0x571f45
pop edi
pop ebx
mov dword [esi + 0xac], 0xffffffff
pop esi
ret
Function at 0x58ddc0
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x678388], 0
jne 0x58de1e
push 0x67838c
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x58ddfa
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x66e298], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x678384], eax
mov dword [0x678388], 1
ret
cmp dword [0x678388], 0
jne 0x58de1e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
push 0
call esi
cmp dword [0x678388], 0
je 0x58de10
pop esi
ret

Function at 0x58de20
Capabilities:
Create thread
Get thread local storage value
Set thread local storage value

Disassembly:
call fcn.0058ddc0
mov eax, dword [0x66e298]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x58ded1
push esi
call fcn.0058dd30
mov esi, eax
test esi, esi
jne 0x58de47
pop esi
ret
push edi
push 8
call fcn.0059df02
mov edi, eax
add esp, 4
test edi, edi
jne 0x58de8a
call fcn.0057bd60
mov edi, eax
call fcn.0057bda0
mov ecx, dword [eax]
mov edx, dword [edi]
push str.xmlGetGlobalState:_out_of_memory_n
push ecx
call edx
lea eax, [esi + 0x1c4]
push eax
call fcn.00568580
push esi
call fcn.0059de25
add esp, 0x10
pop edi
xor eax, eax
pop esi
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 1
push 0
push edi
mov dword [edi + 4], esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ecx, dword [0x66e298]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
push 0
push 0x58dd80
call fcn.005ab083
add esp, 0xc
pop ebx
pop edi
mov eax, esi
pop esi
ret

Function at 0x58fcd0
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
jle 0x58fd0b
test esi, esi
je 0x58fd0b
xor eax, eax
xor ecx, ecx
test edx, edx
jle 0x58fcfa
push edi
movzx edi, byte [ecx + esi]
add edi, eax
imul edi, edi, 0x401
mov eax, edi
shr edi, 6
inc ecx
xor eax, edi
cmp ecx, edx
jl 0x58fce1
pop edi
lea ecx, [eax + eax*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
ret
xor eax, eax
ret