joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004e0a0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006eaa0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1009140c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [0x100913cc]
mov ebx, eax
mov eax, dword [0x100a61f4]
mov edx, dword [eax + 0xc]
mov ecx, 0x100a61f4
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [0x100a61f4]
mov edx, dword [eax + 0xc]
mov ecx, 0x100a61f4
mov dword [ebp - 4], 0
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov edi, dword [ebp + 8]
test edi, edi
mov byte [ebp - 4], 1
jne 0x1004e113
xor eax, eax
jmp 0x1004e13d
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x1004e128
xor eax, eax
jmp 0x1004e13d
lea esi, [eax + eax]
mov eax, esi
call fcn.100524c0
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.10009ac2
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x1c]
push ecx
push eax
call fcn.1004d5a0
mov ebx, dword [ebp - 0x14]
mov esi, eax
add esp, 0x10
test esi, esi
jl 0x1004e1fe
push 0x10070d78
push ebx
call fcn.10051cb6
add esp, 8
test eax, eax
setne al
test al, al
je 0x1004e1de
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
push 0x20006
push edx
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.1000649d
test eax, eax
je 0x1004e1b4
jle 0x1004e1a2
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1004e1fe
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1004e1fe
mov edi, dword [ebp - 0x14]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x1004e1d1
jle 0x1004e1cf
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test edi, edi
je 0x1004e1fe
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1004e1fe
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x1004e1fe
jle 0x1004e1fc
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004e21e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004e244
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
lea esp, [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100511f7
mov esp, ebp
pop ebp
ret
Function at 0x1004e5c0
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push 0x80
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x1004e5e0
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1004e5f3
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, edi
pop edi
pop esi
ret

Function at 0x1004e600
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x20
mov eax, dword [0x1009140c]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x10]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x1004e6e8
mov ecx, dword [edi]
mov ebx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push esi
mov dword [esp + 0x1c], ecx
push str.ProgramFilesDir
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebx
mov ebp, esi
call fcn.100064d2
cmp eax, 0xea
jne 0x1004e684
lea eax, [esp + 0x14]
push eax
xor ebp, ebp
push ebp
push str.ProgramFilesDir
lea ecx, [esp + 0x24]
call fcn.100064d2
test eax, eax
jne 0x1004e68e
test ebp, ebp
jne 0x1004e6c4
jmp 0x1004e693
cmp eax, 0x7a
jne 0x1004e6c0
mov eax, dword [esp + 0x10]
test eax, eax
mov ecx, dword [esp + 0x14]
mov dword [edi], ecx
je 0x1004e6a8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 0x7a
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.100511f7
add esp, 0x20
ret
test eax, eax
jne 0x1004e6e8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1004e6d3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.100511f7
add esp, 0x20
ret
mov ecx, dword [0x100784ec]
mov ebp, dword [edi]
mov edx, dword [str._PROGRAMFILES_]
mov eax, dword [0x100784e8]
push ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], edx
mov dx, word [0x100784f0]
mov dword [esp + 0x24], eax
mov al, byte [0x100784f2]
push esi
lea ecx, [esp + 0x24]
push ecx
mov word [esp + 0x34], dx
mov byte [esp + 0x36], al
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp eax, ebp
jbe 0x1004e755
test ebx, ebx
mov dword [edi], eax
mov byte [esi], 0
je 0x1004e73d
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 0x7a
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.100511f7
add esp, 0x20
ret
test eax, eax
jbe 0x1004e779
test ebx, ebx
je 0x1004e764
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.100511f7
add esp, 0x20
ret
test ebx, ebx
je 0x1004e784
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x490
call fcn.100511f7
add esp, 0x20
ret
Function at 0x1004e7a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x1009140c]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x114]
push edi
mov edi, dword [esp + 0x11c]
push 0
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x1004e7fb
pop edi
mov eax, 0x490
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.100511f7
add esp, 0x108
ret
mov ecx, 0x105
lea eax, [esp + 8]
push esi
cmp byte [eax], 0
je 0x1004e824
add eax, 1
sub ecx, 1
jne 0x1004e805
xor esi, esi
mov eax, dword [edi]
add esi, 1
cmp eax, esi
jae 0x1004e831
mov eax, 0x7a
jmp 0x1004e846
test ecx, ecx
je 0x1004e812
mov esi, 0x105
sub esi, ecx
jmp 0x1004e814
cmp eax, 0x7fffffff
ja 0x1004e844
lea edx, [esp + 0xc]
push edx
push eax
push ebx
call fcn.1000a575
xor eax, eax
mov ecx, dword [esp + 0x110]
mov dword [edi], esi
pop esi
pop edi
pop ebx
xor ecx, esp
call fcn.100511f7
add esp, 0x108
ret

Function at 0x1004e890
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x1009140c]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
mov ebx, dword [esp + 0x114]
push edi
mov edi, dword [esp + 0x11c]
push 0x105
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x1004e8e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.100511f7
add esp, 0x10c
ret
mov ecx, 0x105
lea eax, [esp + 8]
push esi
nop
cmp byte [eax], 0
je 0x1004e90f
add eax, 1
sub ecx, 1
jne 0x1004e8f0
xor esi, esi
mov eax, dword [edi]
add esi, 1
cmp eax, esi
jae 0x1004e91c
mov eax, 0x7a
jmp 0x1004e931
test ecx, ecx
je 0x1004e8fd
mov esi, 0x105
sub esi, ecx
jmp 0x1004e8ff
cmp eax, 0x7fffffff
ja 0x1004e92f
lea ecx, [esp + 0xc]
push ecx
push eax
push ebx
call fcn.1000a575
xor eax, eax
mov ecx, dword [esp + 0x114]
mov dword [edi], esi
pop esi
pop edi
pop ebx
xor ecx, esp
call fcn.100511f7
add esp, 0x10c
ret

Function at 0x1004e950
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 3
ja case.default.0x1004e959
jmp dword [eax*4 + 0x1004e9ac]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
push ecx
call fcn.1004e600
add esp, 8
ret
mov dword [esp + 4], 2
jmp fcn.1004e7a0
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
push edx
call fcn.1004e860
add esp, 8
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
push ecx
call fcn.1004e890
add esp, 8
ret
mov eax, 0xa0
ret
Function at 0x1004ea10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
test ebp, ebp
jbe 0x1004ea77
push ebx
push edi
mov edi, dword [esp + 0x14]
add byte [ecx + 0x100], 1
movzx eax, byte [ecx + 0x100]
lea edx, [eax + ecx]
movzx eax, byte [edx]
add byte [ecx + 0x101], al
mov al, byte [ecx + 0x101]
mov bl, byte [edx]
movzx eax, al
movzx eax, byte [eax + ecx]
mov byte [edx], al
movzx edx, byte [ecx + 0x101]
mov byte [edx + ecx], bl
movzx eax, byte [ecx + 0x100]
movzx edx, byte [eax + ecx]
add dl, bl
movzx eax, dl
movzx edx, byte [eax + ecx]
xor byte [esi + edi], dl
add esi, 1
cmp esi, ebp
jb 0x1004ea22
pop edi
pop ebx
pop esi
mov al, 1
pop ebp
ret 8

Function at 0x1004ea90
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
xor eax, eax
mov byte [eax + ecx], al
add eax, 1
cmp eax, 0x100
jl 0x1004ea92
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
xor edi, edi
xor esi, esi
jmp 0x1004eab0
xor edx, edx
mov eax, esi
div dword [esp + 0x18]
mov bl, byte [esi + ecx]
movzx eax, byte [edx + ebp]
movzx edx, bl
add eax, edi
add edx, eax
mov edi, edx
and edi, 0x800000ff
jns 0x1004ead8
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [edi + ecx]
mov byte [esi + ecx], al
add esi, 1
cmp esi, 0x100
mov byte [edi + ecx], bl
jl 0x1004eab0
pop edi
pop esi
pop ebp
mov byte [ecx + 0x101], 0
mov byte [ecx + 0x100], 0
mov al, 1
pop ebx
ret 8
Function at 0x1004ebb0
Capabilities:
Get http content length
Query remote server for available data
Read data from internet
Receive data

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
xor eax, eax
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x20000005
push esi
mov dword [esp + 0x38], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x1004ec01
mov edx, dword [esp + 0x10]
add edx, 1
push edx
call fcn.10050e99
mov ebx, eax
mov dword [esp + 0x18], ebx
jmp 0x1004ec19
push 0x201
mov dword [esp + 0x14], 0x200
call fcn.10050e99
mov dword [esp + 0x18], eax
mov ebx, eax
mov ebp, dword [esp + 0x14]
add esp, 4
push 0
push 0
lea eax, [esp + 0x24]
push eax
push esi
mov edi, ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x1004eceb
lea ebx, [ebx]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1004ecff
cmp eax, ebp
jbe 0x1004ecaa
mov ecx, dword [esp + 0x10]
sub eax, ebp
lea esi, [ecx + ecx]
add eax, ecx
cmp esi, eax
jae 0x1004ec66
nop
add esi, esi
cmp esi, eax
jb 0x1004ec60
lea ecx, [esi + 1]
push ecx
call fcn.10050e99
mov edx, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [esp + 0x18]
sub edx, ebp
push edx
push eax
push ebx
call fcn.10052b10
mov eax, dword [esp + 0x24]
sub edi, eax
mov ecx, esi
sub ecx, edi
push eax
mov ebp, ecx
call fcn.10051131
mov eax, dword [esp + 0x30]
add esp, 0x14
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x14], ebx
add edi, ebx
lea edx, [esp + 0x28]
push edx
push eax
push edi
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1004ece2
mov eax, dword [esp + 0x28]
add dword [esp + 0x20], eax
push 0
add edi, eax
sub ebp, eax
push 0
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x1004ec40
jmp 0x1004eceb
push ebx
call fcn.10051131
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
call esi
test eax, eax
mov dword [esp + 0x18], eax
jne 0x1004ed20
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x38]
mov byte [edi], 0
pop edi
pop esi
mov dword [ecx], ebx
pop ebp
mov dword [edx], eax
mov eax, dword [esp + 0xc]
pop ebx
add esp, 0x1c
ret 0xc
push ebx
call fcn.10051131
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
mov dword [ecx], 0
mov dword [edx], 0
pop ebx
add esp, 0x1c
ret 0xc
Function at 0x1004edf0
Capabilities:
Create http request

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp ebx, edi
mov byte [esi + 5], 0
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov byte [esi + 0x50], 0
je 0x1004ee2f
mov ecx, SysReAllocString
mov eax, ebx
cmp byte [eax], 0
je 0x1004ee24
add eax, 1
sub ecx, 1
jne 0x1004ee15
jmp 0x1004ee2f
cmp ecx, edi
je 0x1004ee2f
mov edi, SysReAllocString
sub edi, ecx
lea ebp, [edi + 2]
push ebp
call fcn.10050e99
add esp, 4
cmp ebp, 0x7fffffff
mov dword [esi], eax
ja 0x1004ee56
cmp edi, 0x7fffffff
ja 0x1004ee56
push edi
push ebx
push ebp
push eax
call fcn.100197a6
mov al, byte [esp + 0x18]
push 0x200
mov byte [esi + 4], al
mov dword [esi + 0xc], 0x3c
call fcn.10050e99
xor ecx, ecx
cmp byte [esi + 4], cl
push 0x200
setne cl
mov dword [esi + 0x10], eax
add ecx, 3
mov dword [esi + 0x18], ecx
call fcn.10050e99
push 0x200
mov dword [esi + 0x1c], eax
call fcn.10050e99
push 0x200
mov dword [esi + 0x28], eax
call fcn.10050e99
push 0x800
mov dword [esi + 0x30], eax
call fcn.10050e99
push 0x800
mov dword [esi + 0x38], eax
call fcn.10050e99
mov edx, dword [esi]
add esp, 0x18
push 0
push 0
push 0
push 0
push edx
mov dword [esi + 0x40], eax
call dword [sym.imp.WININET.dll_InternetOpenA]
pop edi
mov dword [esi + 8], eax
mov eax, esi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x1004eee0
Capabilities:
Parse url

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x1004eefe
mov edx, SysReAllocString
mov eax, edi
cmp byte [eax], 0
je 0x1004ef39
add eax, 1
sub edx, 1
jne 0x1004eef1
xor eax, eax
mov esi, 0x800
mov dword [ecx + 0x44], esi
mov dword [ecx + 0x3c], esi
lea esi, [ecx + 0xc]
push esi
push 0
mov edx, 0x200
push eax
push edi
mov dword [ecx + 0x34], edx
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x20], edx
mov dword [ecx + 0x2c], edx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x1004ef46
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
ret 0xc
test edx, edx
je 0x1004eefe
mov eax, SysReAllocString
sub eax, edx
jmp 0x1004ef00
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x1004ef68
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004ef68
push eax
push ecx
push SysReAllocString
push esi
call dword [sym.imp.WININET.dll_InternetCreateUrlA]
test eax, eax
je 0x1004ef2e
pop edi
xor eax, eax
pop esi
ret 0xc
Function at 0x1004ef70
Capabilities:
Check http status code
Connect to http server
Send data
Send http request

Disassembly:
sub esp, 0x820
mov eax, dword [0x1009140c]
xor eax, esp
mov dword [esp + 0x81c], eax
mov eax, dword [esp + 0x82c]
push esi
push edi
mov edi, dword [esp + 0x830]
mov esi, ecx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edx
push edi
mov ecx, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], 0x800
call fcn.1004eee0
test eax, eax
jne 0x1004f131
cmp byte [esi + 5], al
push ebp
mov dword [esp + 0xc], eax
mov ebp, 0x84200300
jne 0x1004efd0
mov ebp, 0x84280300
mov eax, dword [esp + 0x830]
test eax, eax
push ebx
jne 0x1004f000
push esi
push ebp
push eax
push eax
mov eax, dword [esi + 8]
push edi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
test edi, edi
jne 0x1004f0e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1004f12f
cmp eax, 1
jne 0x1004f12a
movzx ecx, word [esi + 0x24]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 8]
push esi
push 0
push 3
push 0
push 0
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x10], ebx
je 0x1004eff5
mov edx, dword [esi + 0x38]
mov eax, dword [str.POST]
push 0
push ebp
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push edx
push eax
push ebx
mov dword [esp + 0x44], 0x1007857c
mov dword [esp + 0x48], 0
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
jne 0x1004f06f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1004f11b
mov ecx, dword [esp + 0x840]
mov edx, dword [esp + 0x18]
push ecx
push edx
push 0x30
push str.Content_Type:_application_x_www_form_urlencoded
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x1004f096
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1004f112
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x20000013
push edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x1004f0e1
mov eax, dword [esp + 0x14]
cmp eax, 0xc8
jb 0x1004f0d4
cmp eax, 0x12c
jb 0x1004f0e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0x490
jmp 0x1004f114
mov eax, dword [esi + 0x4c]
test eax, eax
lea ebp, [esi + 0x4c]
lea ebx, [esi + 0x48]
mov dword [ebx], 0
je 0x1004f104
push eax
call fcn.10051131
add esp, 4
mov dword [ebp], 0
push ebx
push ebp
push edi
mov ecx, esi
call fcn.1004ebb0
mov ebx, dword [esp + 0x10]
mov esi, eax
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test ebx, ebx
je 0x1004f126
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, esi
jmp 0x1004f12f
mov eax, 0x57
pop ebx
pop ebp
mov ecx, dword [esp + 0x824]
pop edi
pop esi
xor ecx, esp
call fcn.100511f7
add esp, 0x820
ret 0x10
Function at 0x1004f190
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
movzx edi, ax
mov eax, dword [esp + 0x1c]
push edi
push ebp
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
jne 0x1004f1f1
and edi, 0x3ff
push edi
mov edi, dword [esp + 0x20]
push ebp
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
jne 0x1004f1f1
push 0x409
push ebp
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
jne 0x1004f1f1
pop edi
pop esi
pop ebp
mov eax, 0x490
pop ebx
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x1004f209
pop edi
pop esi
pop ebp
pop ebx
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x24]
push edi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esp + 0x20]
mov dword [edx], eax
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 0x7fffbffb
pop ebp
add eax, 0x80004005
pop ebx
ret

Function at 0x10050250
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x60
mov eax, dword [0x1009140c]
xor eax, esp
mov dword [esp + 0x5c], eax
push esi
mov esi, dword [esp + 0x68]
push edi
mov edi, dword [esp + 0x74]
push 0x40
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x14], vtable.CMD5Checksum.0
call fcn.100524f0
mov ecx, dword [esp + 0x7c]
add esp, 0xc
push ecx
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x5c], 0x67452301
mov dword [esp + 0x60], 0xefcdab89
mov dword [esp + 0x64], 0x98badcfe
mov dword [esp + 0x68], 0x10325476
call fcn.100500c0
push edi
lea ecx, [esp + 0xc]
call fcn.10050170
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor ecx, esp
call fcn.100511f7
add esp, 0x60
ret

Function at 0x10050974
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x100a6210], 0
push esi
jne 0x100508e7
call fcn.10050812
test eax, eax
je 0x1005092a
mov eax, dword [0x100a6210]
cmp eax, 1
jne 0x10050908
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1005092a
pop esi
ret
push eax
call dword [0x100a6218]
test eax, eax
jne 0x10050972
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1005092e
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x100a6210]
call dword [0x100a6218]
mov edi, eax
test edi, edi
je 0x10050955
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x10050971
lea edi, [esi + 0xff0]
push esi
push dword [0x100a6210]
call dword [0x100a6214]
add esi, 0x10
cmp esi, edi
jb 0x1005095b
mov eax, esi
pop edi
pop esi
ret
jmp 0x100508d4
Function at 0x100511f7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1009140c]
jne 0x10051201
repz ret
jmp fcn.1005a1c1

Function at 0x1005a446
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10091e40]
je 0x1005a461
inc edi
cmp edi, 0x17
jb 0x1005a452
cmp edi, 0x17
jae 0x1005a5e1
push ebp
push 3
call fcn.10063b5c
cmp eax, 1
pop ecx
je 0x1005a5ad
push 3
call fcn.10063b5c
test eax, eax
pop ecx
jne 0x1005a495
cmp dword [0x100a6268], 1
je 0x1005a5ad
cmp ebx, 0xfc
je 0x1005a5e0
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x100a65d0
push ebp
call fcn.10051930
add esp, 0xc
test eax, eax
je 0x1005a4cb
push esi
push esi
push esi
push esi
push esi
call fcn.10051cd3
add esp, 0x14
push 0x104
mov esi, 0x100a65e9
push esi
push 0
mov byte [0x100a66ed], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1005a50f
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10051930
add esp, 0xc
test eax, eax
je 0x1005a50f
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10051cd3
add esp, 0x14
push esi
call fcn.10052120
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1005a554
push esi
call fcn.10052120
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x100a68e4
push 0x10079014
sub ecx, eax
push ecx
push eax
call fcn.10055bd7
add esp, 0x14
test eax, eax
je 0x1005a554
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10051cd3
add esp, 0x14
jmp 0x1005a556
xor esi, esi
push 0x10079010
push ebx
push ebp
call fcn.1005463e
add esp, 0xc
test eax, eax
je 0x1005a576
push esi
push esi
push esi
push esi
push esi
call fcn.10051cd3
add esp, 0x14
push dword [edi*8 + 0x10091e44]
push ebx
push ebp
call fcn.1005463e
add esp, 0xc
test eax, eax
je 0x1005a598
push esi
push esi
push esi
push esi
push esi
call fcn.10051cd3
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1006399f
add esp, 0xc
jmp 0x1005a5e0
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1005a5e0
cmp ebp, 0xffffffff
je 0x1005a5e0
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x10091e44]
push dword [esi]
call fcn.10052120
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret