joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401dda
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call fcn.00404d61
mov ebx, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
cmp eax, 5
jg 0x401df5
mov ebx, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
and dword [ebp - 4], 0
push 0
push 0x18
push ebx
mov edi, str.SEContainer
push edi
lea eax, [ebp - 4]
push eax
call esi
test eax, eax
jne 0x401e20
push 8
push 0x18
push ebx
push edi
lea eax, [ebp - 4]
push eax
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401e28
Capabilities:
Encrypt data using aes via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x426090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x38], eax
cmp esi, ebx
jne 0x401e4e
mov esi, str.vc8v7vghw7v278vn2v8239vh29vh890m
cmp eax, ebx
jne 0x401e59
mov dword [ebp - 0x38], str.aqkeezgxijvlm2op
push 8
pop ecx
xor eax, eax
mov word [ebp - 0x2e], ax
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push 0x2c
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
mov byte [ebp - 0x30], cl
mov byte [ebp - 0x2f], 2
mov dword [ebp - 0x2c], 0x6610
mov dword [ebp - 0x28], 0x20
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
cmp dword [ebp - 0x34], ebx
je 0x401ec7
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push ebx
lea eax, [ebp - 0x3c]
push eax
push 4
push dword [ebp - 0x34]
xor edi, edi
inc edi
mov dword [ebp - 0x3c], edi
call esi
push ebx
lea eax, [ebp - 0x40]
push eax
push 3
push dword [ebp - 0x34]
mov dword [ebp - 0x40], edi
call esi
push ebx
push dword [ebp - 0x38]
push edi
push dword [ebp - 0x34]
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x34]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041032b
leave
ret

Function at 0x401ed9
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x401f7d
cmp dword [ebp + 0xc], 0xffffffff
je 0x401f7d
call fcn.00401dda
mov dword [ebp - 4], eax
cmp eax, edi
je 0x401f79
mov ecx, dword [ebp + 0x14]
push ebx
push dword [ebp + 0x18]
push eax
call fcn.00401e28
mov ebx, eax
pop ecx
pop ecx
cmp ebx, edi
je 0x401f6d
mov eax, dword [ebp + 0xc]
push esi
test al, 0xf
je 0x401f27
shr eax, 4
lea esi, [eax + 1]
shl esi, 4
jmp 0x401f2a
lea esi, [eax + 0x10]
push esi
call fcn.00410315
push esi
mov edi, eax
push 0
push edi
call fcn.00412060
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call fcn.004175a0
add esp, 0x1c
push esi
lea eax, [ebp + 0xc]
push eax
push edi
push 0
push 1
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
mov dword [ecx], eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
pop esi
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop ebx
mov eax, edi
jmp 0x401f7f
xor eax, eax
pop edi
leave
ret
Function at 0x401f82
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x402009
cmp dword [ebp + 0xc], 0xffffffff
je 0x402009
xor esi, esi
call fcn.00401dda
mov dword [ebp - 4], eax
cmp eax, edi
je 0x402029
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push eax
call fcn.00401e28
mov ebx, eax
pop ecx
pop ecx
cmp ebx, edi
je 0x40201f
mov eax, dword [ebp + 0xc]
push eax
mov dword [ebp - 8], eax
call fcn.00410315
push dword [ebp - 8]
mov esi, eax
push edi
push esi
call fcn.00412060
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.004175a0
add esp, 0x1c
lea eax, [ebp + 0xc]
push eax
push esi
push edi
push 1
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x402010
push esi
call fcn.00410320
pop ecx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
mov dword [ecx], eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
jmp 0x40200b

Function at 0x402030
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, eax
test esi, esi
je 0x402176
test ebx, ebx
je 0x402176
cmp dword [ebp + 0xc], 0
je 0x402176
lea ecx, [edi + 2]
test ecx, ecx
js 0x402176
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x40000000
jge 0x402176
mov ecx, ebx
cmp edi, 2
jle 0x4020ff
lea edx, [edi - 3]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
lea eax, [edx*4]
sub eax, edx
neg eax
add edi, eax
movzx eax, byte [esi]
shr eax, 2
movzx eax, byte [eax + 0x421e40]
mov byte [ecx], al
movzx eax, byte [esi]
movzx ebx, byte [esi + 1]
and eax, 3
add eax, eax
shr ebx, 4
movzx eax, byte [ebx + eax*8 + 0x421e40]
mov byte [ecx + 1], al
movzx eax, byte [esi + 1]
movzx ebx, byte [esi + 2]
and eax, 0xf
shr ebx, 6
movzx eax, byte [ebx + eax*4 + 0x421e40]
mov byte [ecx + 2], al
movzx eax, byte [esi + 2]
and eax, 0x3f
movzx eax, byte [eax + 0x421e40]
mov byte [ecx + 3], al
add ecx, 4
add esi, 3
dec edx
jne 0x4020a0
mov ebx, dword [ebp + 8]
test edi, edi
je 0x402163
movzx edx, byte [esi]
shr edx, 2
mov al, byte [edx + 0x421e40]
mov byte [ecx], al
cmp edi, 1
jle 0x402148
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
and edx, 3
add edx, edx
shr eax, 4
movzx edx, byte [eax + edx*8 + 0x421e40]
mov byte [ecx + 1], dl
movzx eax, byte [esi + 1]
and eax, 0xf
movzx edx, byte [eax*4 + 0x421e40]
mov byte [ecx + 2], dl
mov byte [ecx + 3], 0x3d
jmp 0x402160
movzx eax, byte [esi]
and eax, 3
shl eax, 4
mov dl, byte [eax + 0x421e40]
mov byte [ecx + 1], dl
mov word [ecx + 2], 0x3d3d
add ecx, 4
mov edx, dword [ebp + 0xc]
mov eax, ecx
sub eax, ebx
pop edi
pop esi
mov dword [edx], eax
mov byte [ecx], 0
xor eax, eax
pop ebx
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
Function at 0x40231b
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x428164], 0
je 0x402383
push esi
push edi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.00410a9b
mov edi, eax
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 8]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00410315
push 0x422088
mov esi, eax
push 8
push esi
call fcn.00410ab7
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [esi + 0xe]
push 0xffffffffffffffff
push edi
push eax
call fcn.00410d79
add esp, 0x2c
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.00410320
pop ecx
pop edi
pop esi
pop ebp
ret

Function at 0x402385
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x428164], 0
je 0x4023df
push esi
push edi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.00410d99
mov edi, eax
lea eax, [edi + 8]
push eax
call fcn.00410315
push 0x422098
mov esi, eax
push 8
push esi
call fcn.00410db5
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [esi + 7]
push 0xffffffffffffffff
push edi
push eax
call fcn.00411041
add esp, 0x2c
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call fcn.00410320
pop ecx
pop edi
pop esi
pop ebp
ret

Function at 0x4027f6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, eax
test edx, edx
jne 0x402801
xor eax, eax
pop edi
ret
or eax, 0xffffffff
push esi
mov ecx, 0xff
cmp edi, 8
jb 0x4028b6
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x421a40]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x421a40]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x421a40]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x421a40]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x421a40]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x421a40]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x421a40]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x421a40]
add edx, 8
sub edi, 8
dec esi
jne 0x402819
pop ebx
test edi, edi
je 0x4028cf
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x421a40]
inc edx
dec edi
jne 0x4028ba
pop esi
not eax
pop edi
ret

Function at 0x4043e0
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x404c7c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x426090]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
mov dword [esp + 0x38], ecx
mov byte [esp + 0x2b], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x404d4b
lea eax, [esp + 0x20]
call fcn.004043e0
mov ebx, 0xa000
push ebx
call fcn.00410315
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
pop ecx
push esi
lea ecx, [esp + 0x14]
push ecx
push ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], esi
push eax
jmp 0x404d19
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404d25
push dword [esp + 0x14]
lea esi, [esp + 0x24]
call fcn.00404410
and dword [esp + 0x14], 0
pop ecx
push 0
lea eax, [esp + 0x14]
push eax
push ebx
push dword [esp + 0x20]
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x404cf2
jmp 0x404d2a
mov byte [esp + 0xf], 1
push dword [esp + 0x14]
call fcn.00410a34
mov ebx, dword [esp + 0x20]
pop ecx
lea ecx, [esp + 0x20]
call fcn.004044c0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x7c]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041032b
mov esp, ebp
pop ebp
ret
Function at 0x404d61
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x426090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x426f84]
cmp eax, 0xffffffff
jne 0x404ed9
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [0x426f84], 0xfffffc18
mov dword [ebp - 0x118], 0x114
call fcn.00412060
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x404ed4
cmp dword [ebp - 0x108], 2
jne 0x404ed4
cmp dword [ebp - 0x114], 5
jne 0x404e61
cmp dword [ebp - 0x110], 0
jne 0x404dec
xor eax, eax
inc eax
jmp 0x404ec6
cmp dword [ebp - 0x110], 1
jne 0x404e53
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_1
call fcn.0041145e
add esp, 0xc
test eax, eax
jne 0x404e13
push 3
jmp 0x404e5e
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_2
call fcn.0041145e
add esp, 0xc
test eax, eax
jne 0x404e31
push 4
jmp 0x404e5e
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_3
call fcn.0041145e
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
jmp 0x404ec6
cmp dword [ebp - 0x110], 2
jne 0x404ed4
push 6
pop eax
jmp 0x404ec6
cmp dword [ebp - 0x114], 6
jne 0x404ecd
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x404e88
cmp eax, 1
je 0x404e84
jbe 0x404ed4
cmp eax, 3
ja 0x404ed4
push 0xb
jmp 0x404e5e
push 0xa
jmp 0x404e5e
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_1
call fcn.0041145e
add esp, 0xc
test eax, eax
jne 0x404ea6
push 8
jmp 0x404e5e
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_2
call fcn.0041145e
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 9
mov dword [0x426f84], eax
jmp 0x404ed9
mov eax, 0x3e8
jmp 0x404ec6
mov eax, dword [0x426f84]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041032b
leave
ret
Function at 0x404ee5
Capabilities:
Check http status code
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x426090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
push 0x1ff
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x203]
mov esi, ecx
mov edi, edx
push ebx
push eax
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x220], edi
mov byte [ebp - 0x204], bl
call fcn.00412060
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push 0x13
push esi
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov dword [ebp - 0x20c], 0x200
mov dword [ebp - 0x210], ebx
call esi
test eax, eax
je 0x4050ad
lea eax, [ebp - 0x204]
push eax
call fcn.00411512
pop ecx
mov ecx, dword [ebp - 0x214]
mov dword [ecx], eax
cmp eax, 0xc8
je 0x404fa2
cmp eax, 0x12e
jne 0x4050ad
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push 0x15
push dword [ebp - 0x218]
mov dword [ebp - 0x20c], 0x200
mov dword [ebp - 0x210], ebx
call esi
test eax, eax
jne 0x40502b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40502b
mov eax, dword [ebp - 0x20c]
inc eax
push eax
call fcn.00410315
pop ecx
mov edi, eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push 0x15
push dword [ebp - 0x218]
call esi
mov eax, dword [ebp - 0x20c]
push edi
push dword [ebp - 0x208]
mov byte [edi + eax], bl
call fcn.004012a0
push edi
call fcn.00410320
mov edi, dword [ebp - 0x220]
pop ecx
mov eax, 0x2800
push eax
mov dword [ebp - 0x208], eax
call fcn.0041110e
mov esi, dword [ebp - 0x21c]
pop ecx
mov dword [esi], eax
mov ecx, dword [edi]
mov eax, dword [ebp - 0x208]
add ecx, 0x200
cmp ecx, eax
jb 0x405070
lea eax, [eax + eax + 0x200]
push eax
push dword [esi]
mov dword [ebp - 0x208], eax
call fcn.00411061
pop ecx
pop ecx
mov dword [esi], eax
mov eax, dword [edi]
lea ecx, [ebp - 0x214]
push ecx
mov ecx, dword [ebp - 0x208]
sub ecx, eax
push ecx
mov ecx, dword [esi]
add ecx, eax
push ecx
push dword [ebp - 0x218]
mov dword [ebp - 0x214], ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4050ab
mov eax, dword [ebp - 0x214]
cmp eax, ebx
je 0x4050ad
add dword [edi], eax
jmp 0x405045
mov dword [edi], ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041032b
leave
ret
Function at 0x4050bc
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x426090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
push 0x3ff
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x403]
push esi
push eax
mov ebx, ecx
mov dword [ebp - 0x408], esi
mov byte [ebp - 0x404], 0
call fcn.00412060
add esp, 0xc
mov edi, 0x400
test esi, esi
jbe 0x40513b
mov ecx, 0xc800
mov eax, ecx
sub eax, esi
cmp dword [ebp - 0x408], eax
jae 0x405177
push dword [ebp - 0x408]
lea ecx, [ebp - 0x404]
push ecx
push eax
lea eax, [ebx + esi]
push eax
call fcn.00411533
add esp, 0x10
add esi, dword [ebp - 0x408]
push edi
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.00412060
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
push edi
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x40c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x405192
cmp dword [ebp - 0x408], 0
ja 0x40510a
jmp 0x405192
mov eax, ecx
sub eax, esi
lea ecx, [eax - 1]
push ecx
lea ecx, [ebp - 0x404]
push ecx
push eax
add ebx, esi
push ebx
call fcn.00411533
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041032b
leave
ret

Function at 0x4051a3
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
jbe 0x4051d3
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x4051d7
mov eax, dword [ebp - 4]
add dword [ebp + 0xc], eax
sub dword [ebp + 0x10], eax
jne 0x4051b1
xor eax, eax
leave
ret
or eax, 0xffffffff
leave
ret
Function at 0x405706
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x426090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
push esi
push esi
mov edi, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
cmp ebx, esi
je 0x405798
push esi
push 0x80000000
push esi
push esi
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, eax
mov dword [ebp - 0x14], ecx
cmp ecx, esi
je 0x40577f
push dword [ebp - 0x10]
lea eax, [ebp - 8]
push dword [ebp - 0x18]
lea edx, [ebp - 0xc]
push eax
call fcn.00404ee5
add esp, 0xc
push dword [ebp - 0x14]
call edi
push ebx
call edi
cmp dword [ebp - 0xc], esi
jne 0x405798
cmp dword [ebp - 8], esi
je 0x405798
push dword [ebp - 8]
call fcn.00410320
pop ecx
mov dword [ebp - 8], esi
mov eax, dword [ebp - 0x1c]
pop edi
cmp eax, esi
pop esi
pop ebx
je 0x4057a7
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
xor ecx, ebp
call fcn.0041032b
leave
ret
Function at 0x4057b6
Capabilities:
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1094
call fcn.0041b0f0
mov eax, dword [0x426090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov edi, ecx
mov dword [ebp - 0x1030], eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x1024], eax
cmp eax, ebx
je 0x405985
push esi
mov esi, 0x7ff
push esi
lea eax, [ebp - 0x1003]
push ebx
push eax
mov byte [ebp - 0x1004], bl
call fcn.00412060
push esi
lea eax, [ebp - 0x803]
push ebx
push eax
mov byte [ebp - 0x804], bl
call fcn.00412060
push 0x38
lea eax, [ebp - 0x1068]
push ebx
push eax
call fcn.00412060
lea eax, [ebp - 0x1004]
mov dword [ebp - 0x105c], eax
lea eax, [esi + 1]
add esp, 0x24
mov dword [ebp - 0x1058], eax
mov dword [ebp - 0x103c], eax
lea eax, [ebp - 0x106c]
push eax
push ebx
push ebx
lea ecx, [ebp - 0x804]
push edi
mov dword [ebp - 0x106c], 0x3c
mov dword [ebp - 0x1040], ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push ebx
push ebx
push 3
mov eax, 0x4220a0
push eax
push eax
push 0x50
push dword [ebp - 0x105c]
push dword [ebp - 0x1024]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x102c], eax
cmp eax, ebx
je 0x405978
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x1040]
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x1028], eax
cmp eax, ebx
je 0x40596c
push str.Content_Type:_application_x_www_form_urlencoded_r_n
lea esi, [ebp - 0x1020]
call fcn.004022eb
cmp dword [ebp - 0x100c], 0x10
mov eax, dword [ebp - 0x1020]
jae 0x4058e9
mov eax, esi
push 0x20000000
push dword [ebp - 0x1010]
push eax
push dword [ebp - 0x1028]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push 1
xor edi, edi
lea esi, [ebp - 0x1020]
call fcn.00401d93
mov esi, dword [ebp - 0x1028]
push 9
pop ecx
push ebx
xor eax, eax
push ebx
lea edi, [ebp - 0x1090]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
push ebx
lea eax, [ebp - 0x1094]
push eax
push esi
mov dword [ebp - 0x1094], 0x28
mov dword [ebp - 0x1078], edi
call dword [sym.imp.WININET.dll_HttpSendRequestExA]
test eax, eax
je 0x40595b
push edi
push dword [ebp - 0x1030]
push esi
call fcn.004051a3
add esp, 0xc
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpEndRequestA]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x102c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x1024]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0041032b
leave
ret
Function at 0x405c89
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
or ebx, 0xffffffff
push ebx
xor esi, esi
push esi
mov edi, 0x426edc
call fcn.00401cba
mov eax, dword [ebp + 8]
push ebx
push esi
mov edi, 0x426ec0
call fcn.00401cba
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov edi, 0x426ef8
call fcn.00401cba
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov edi, 0x426f4c
call fcn.00401cba
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov edi, 0x426f30
call fcn.00401cba
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x428168
push esi
mov edi, eax
push edi
push 0x405c02
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4061ef
Capabilities:
Encrypt or decrypt via wincrypt
Reference public rsa key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x40635a
mov ebx, dword [ebp + 0xc]
cmp ebx, edi
jbe 0x40635a
mov dword [ebp - 8], edi
call fcn.00401dda
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x406355
lea ecx, [ebp - 0x14]
push ecx
push edi
push edi
push 0x94
push 0x4219a8
push eax
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x40634b
push esi
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 8
push dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
mov esi, dword [ebp - 0x10]
shr esi, 3
xor edx, edx
lea ecx, [esi - 0xb]
lea eax, [ebx - 1]
div ecx
inc eax
imul eax, esi
push eax
call fcn.00410315
push esi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edi
call fcn.00410315
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0xc]
lea eax, [esi - 0xb]
cmp eax, ecx
sbb bl, bl
inc bl
je 0x4062a2
mov dword [ebp - 4], ecx
jmp 0x4062a8
lea eax, [esi - 0xb]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
push dword [ebp - 4]
add eax, dword [ebp + 8]
push eax
push dword [ebp - 0x10]
call fcn.004175a0
mov eax, dword [ebp - 4]
add dword [ebp - 0xc], eax
add esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
movzx eax, bl
push 0
push eax
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x406300
push dword [ebp - 4]
mov eax, dword [ebp - 8]
push dword [ebp - 0x10]
add eax, edi
push eax
call fcn.004175a0
add edi, dword [ebp - 4]
add esp, 0xc
test bl, bl
je 0x40628c
mov ebx, dword [ebp - 8]
jmp 0x40630e
push dword [ebp - 8]
call fcn.00410320
xor ebx, ebx
pop ecx
mov dword [ebp - 8], ebx
push dword [ebp - 0x10]
call fcn.00410320
pop ecx
test ebx, ebx
je 0x40633f
mov eax, dword [ebp + 0x10]
mov dword [ebp + 8], edi
xor esi, esi
shr dword [ebp + 8], 1
mov dword [eax], edi
je 0x40633f
lea eax, [edi + ebx - 1]
mov dl, byte [eax]
mov cl, byte [esi + ebx]
mov byte [esi + ebx], dl
inc esi
mov byte [eax], cl
dec eax
cmp esi, dword [ebp + 8]
jb 0x40632e
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor edi, edi
pop esi
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
jmp 0x40635c
xor eax, eax
pop edi
pop ebx
leave
ret