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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006c6d0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1008d414]
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 [0x1008d3d4]
mov ebx, eax
mov eax, dword [0x100a21f4]
mov edx, dword [eax + 0xc]
mov ecx, 0x100a21f4
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [0x100a21f4]
mov edx, dword [eax + 0xc]
mov ecx, 0x100a21f4
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 0x1004c343
xor eax, eax
jmp 0x1004c36d
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x1004c358
xor eax, eax
jmp 0x1004c36d
lea esi, [eax + eax]
mov eax, esi
call fcn.10050610
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.100099b6
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x1c]
push ecx
push eax
call fcn.1004bb20
mov ebx, dword [ebp - 0x14]
mov esi, eax
add esp, 0x10
test esi, esi
jl 0x1004c42e
push 0x1006dd58
push ebx
call fcn.1004fe06
add esp, 8
test eax, eax
setne al
test al, al
je 0x1004c40e
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.100064c9
test eax, eax
je 0x1004c3e4
jle 0x1004c3d2
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1004c42e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1004c42e
mov edi, dword [ebp - 0x14]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x1004c401
jle 0x1004c3ff
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test edi, edi
je 0x1004c42e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1004c42e
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 0x1004c42e
jle 0x1004c42c
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 0x1004c44e
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 0x1004c474
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.1004f347
mov esp, ebp
pop ebp
ret
Function at 0x1004c840
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
test ebp, ebp
jbe 0x1004c8a7
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 0x1004c852
pop edi
pop ebx
pop esi
mov al, 1
pop ebp
ret 8

Function at 0x1004c8c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
xor eax, eax
mov byte [eax + ecx], al
add eax, 1
cmp eax, 0x100
jl 0x1004c8c2
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
xor edi, edi
xor esi, esi
jmp 0x1004c8e0
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 0x1004c908
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 0x1004c8e0
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 0x1004c9e0
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 0x1004ca31
mov edx, dword [esp + 0x10]
add edx, 1
push edx
call fcn.1004efe9
mov ebx, eax
mov dword [esp + 0x18], ebx
jmp 0x1004ca49
push 0x201
mov dword [esp + 0x14], 0x200
call fcn.1004efe9
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 0x1004cb1b
lea ebx, [ebx]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1004cb2f
cmp eax, ebp
jbe 0x1004cada
mov ecx, dword [esp + 0x10]
sub eax, ebp
lea esi, [ecx + ecx]
add eax, ecx
cmp esi, eax
jae 0x1004ca96
nop
add esi, esi
cmp esi, eax
jb 0x1004ca90
lea ecx, [esi + 1]
push ecx
call fcn.1004efe9
mov edx, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [esp + 0x18]
sub edx, ebp
push edx
push eax
push ebx
call fcn.10050c60
mov eax, dword [esp + 0x24]
sub edi, eax
mov ecx, esi
sub ecx, edi
push eax
mov ebp, ecx
call fcn.1004f281
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 0x1004cb12
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 0x1004ca70
jmp 0x1004cb1b
push ebx
call fcn.1004f281
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 0x1004cb50
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.1004f281
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 0x1004cc20
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 0x1004cc5f
mov ecx, SysReAllocString
mov eax, ebx
cmp byte [eax], 0
je 0x1004cc54
add eax, 1
sub ecx, 1
jne 0x1004cc45
jmp 0x1004cc5f
cmp ecx, edi
je 0x1004cc5f
mov edi, SysReAllocString
sub edi, ecx
lea ebp, [edi + 2]
push ebp
call fcn.1004efe9
add esp, 4
cmp ebp, 0x7fffffff
mov dword [esi], eax
ja 0x1004cc86
cmp edi, 0x7fffffff
ja 0x1004cc86
push edi
push ebx
push ebp
push eax
call fcn.100195a9
mov al, byte [esp + 0x18]
push 0x200
mov byte [esi + 4], al
mov dword [esi + 0xc], 0x3c
call fcn.1004efe9
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.1004efe9
push 0x200
mov dword [esi + 0x1c], eax
call fcn.1004efe9
push 0x200
mov dword [esi + 0x28], eax
call fcn.1004efe9
push 0x800
mov dword [esi + 0x30], eax
call fcn.1004efe9
push 0x800
mov dword [esi + 0x38], eax
call fcn.1004efe9
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 0x1004cd10
Capabilities:
Parse url

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x1004cd2e
mov edx, SysReAllocString
mov eax, edi
cmp byte [eax], 0
je 0x1004cd69
add eax, 1
sub edx, 1
jne 0x1004cd21
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 0x1004cd76
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
ret 0xc
test edx, edx
je 0x1004cd2e
mov eax, SysReAllocString
sub eax, edx
jmp 0x1004cd30
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x1004cd98
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004cd98
push eax
push ecx
push SysReAllocString
push esi
call dword [sym.imp.WININET.dll_InternetCreateUrlA]
test eax, eax
je 0x1004cd5e
pop edi
xor eax, eax
pop esi
ret 0xc
Function at 0x1004cda0
Capabilities:
Check http status code
Connect to http server
Send data
Send http request

Disassembly:
sub esp, 0x820
mov eax, dword [0x1008d414]
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.1004cd10
test eax, eax
jne 0x1004cf61
cmp byte [esi + 5], al
push ebp
mov dword [esp + 0xc], eax
mov ebp, 0x84200300
jne 0x1004ce00
mov ebp, 0x84280300
mov eax, dword [esp + 0x830]
test eax, eax
push ebx
jne 0x1004ce30
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 0x1004cf11
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1004cf5f
cmp eax, 1
jne 0x1004cf5a
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 0x1004ce25
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], 0x100753f0
mov dword [esp + 0x48], 0
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
jne 0x1004ce9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1004cf4b
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 0x1004cec6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1004cf42
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 0x1004cf11
mov eax, dword [esp + 0x14]
cmp eax, 0xc8
jb 0x1004cf04
cmp eax, 0x12c
jb 0x1004cf11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0x490
jmp 0x1004cf44
mov eax, dword [esi + 0x4c]
test eax, eax
lea ebp, [esi + 0x4c]
lea ebx, [esi + 0x48]
mov dword [ebx], 0
je 0x1004cf34
push eax
call fcn.1004f281
add esp, 4
mov dword [ebp], 0
push ebx
push ebp
push edi
mov ecx, esi
call fcn.1004c9e0
mov ebx, dword [esp + 0x10]
mov esi, eax
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test ebx, ebx
je 0x1004cf56
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, esi
jmp 0x1004cf5f
mov eax, 0x57
pop ebx
pop ebp
mov ecx, dword [esp + 0x824]
pop edi
pop esi
xor ecx, esp
call fcn.1004f347
add esp, 0x820
ret 0x10
Function at 0x1004cfc0
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 0x1004cfe0
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1004cff3
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, edi
pop edi
pop esi
ret

Function at 0x1004d000
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x20
mov eax, dword [0x1008d414]
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 0x1004d0e8
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.100064fe
cmp eax, 0xea
jne 0x1004d084
lea eax, [esp + 0x14]
push eax
xor ebp, ebp
push ebp
push str.ProgramFilesDir
lea ecx, [esp + 0x24]
call fcn.100064fe
test eax, eax
jne 0x1004d08e
test ebp, ebp
jne 0x1004d0c4
jmp 0x1004d093
cmp eax, 0x7a
jne 0x1004d0c0
mov eax, dword [esp + 0x10]
test eax, eax
mov ecx, dword [esp + 0x14]
mov dword [edi], ecx
je 0x1004d0a8
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.1004f347
add esp, 0x20
ret
test eax, eax
jne 0x1004d0e8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1004d0d3
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.1004f347
add esp, 0x20
ret
mov ecx, dword [0x1007543c]
mov ebp, dword [edi]
mov edx, dword [str._PROGRAMFILES_]
mov eax, dword [0x10075438]
push ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], edx
mov dx, word [0x10075440]
mov dword [esp + 0x24], eax
mov al, byte [0x10075442]
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 0x1004d155
test ebx, ebx
mov dword [edi], eax
mov byte [esi], 0
je 0x1004d13d
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.1004f347
add esp, 0x20
ret
test eax, eax
jbe 0x1004d179
test ebx, ebx
je 0x1004d164
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.1004f347
add esp, 0x20
ret
test ebx, ebx
je 0x1004d184
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.1004f347
add esp, 0x20
ret
Function at 0x1004d1a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x1008d414]
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 0x1004d1fb
pop edi
mov eax, 0x490
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1004f347
add esp, 0x108
ret
mov ecx, 0x105
lea eax, [esp + 8]
push esi
cmp byte [eax], 0
je 0x1004d224
add eax, 1
sub ecx, 1
jne 0x1004d205
xor esi, esi
mov eax, dword [edi]
add esi, 1
cmp eax, esi
jae 0x1004d231
mov eax, 0x7a
jmp 0x1004d246
test ecx, ecx
je 0x1004d212
mov esi, 0x105
sub esi, ecx
jmp 0x1004d214
cmp eax, 0x7fffffff
ja 0x1004d244
lea edx, [esp + 0xc]
push edx
push eax
push ebx
call fcn.1000a486
xor eax, eax
mov ecx, dword [esp + 0x110]
mov dword [edi], esi
pop esi
pop edi
pop ebx
xor ecx, esp
call fcn.1004f347
add esp, 0x108
ret

Function at 0x1004d290
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x1008d414]
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 0x1004d2e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.1004f347
add esp, 0x10c
ret
mov ecx, 0x105
lea eax, [esp + 8]
push esi
nop
cmp byte [eax], 0
je 0x1004d30f
add eax, 1
sub ecx, 1
jne 0x1004d2f0
xor esi, esi
mov eax, dword [edi]
add esi, 1
cmp eax, esi
jae 0x1004d31c
mov eax, 0x7a
jmp 0x1004d331
test ecx, ecx
je 0x1004d2fd
mov esi, 0x105
sub esi, ecx
jmp 0x1004d2ff
cmp eax, 0x7fffffff
ja 0x1004d32f
lea ecx, [esp + 0xc]
push ecx
push eax
push ebx
call fcn.1000a486
xor eax, eax
mov ecx, dword [esp + 0x114]
mov dword [edi], esi
pop esi
pop edi
pop ebx
xor ecx, esp
call fcn.1004f347
add esp, 0x10c
ret

Function at 0x1004d350
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 3
ja case.default.0x1004d359
jmp dword [eax*4 + 0x1004d3ac]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
push ecx
call fcn.1004d000
add esp, 8
ret
mov dword [esp + 4], 2
jmp fcn.1004d1a0
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
push edx
call fcn.1004d260
add esp, 8
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
push ecx
call fcn.1004d290
add esp, 8
ret
mov eax, 0xa0
ret
Function at 0x1004d3c0
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 0x1004d421
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 0x1004d421
push 0x409
push ebp
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
jne 0x1004d421
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 0x1004d439
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 0x1004e370
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x60
mov eax, dword [0x1008d414]
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.10050640
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.1004e1e0
push edi
lea ecx, [esp + 0xc]
call fcn.1004e290
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor ecx, esp
call fcn.1004f347
add esp, 0x60
ret

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

Disassembly:
cmp dword [0x100a2210], 0
push esi
jne 0x1004ea29
call fcn.1004e954
test eax, eax
je 0x1004ea6c
mov eax, dword [0x100a2210]
cmp eax, 1
jne 0x1004ea4a
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1004ea6c
pop esi
ret
push eax
call dword [0x100a2218]
test eax, eax
jne 0x1004eab4
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 0x1004ea70
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x100a2210]
call dword [0x100a2218]
mov edi, eax
test edi, edi
je 0x1004ea97
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x1004eab3
lea edi, [esi + 0xff0]
push esi
push dword [0x100a2210]
call dword [0x100a2214]
add esi, 0x10
cmp esi, edi
jb 0x1004ea9d
mov eax, esi
pop edi
pop esi
ret
jmp 0x1004ea16
Function at 0x1004f347
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1008d414]
jne 0x1004f351
repz ret
jmp fcn.10058311

Function at 0x10058596
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 + 0x1008de50]
je 0x100585b1
inc edi
cmp edi, 0x17
jb 0x100585a2
cmp edi, 0x17
jae 0x10058731
push ebp
push 3
call fcn.10061cac
cmp eax, 1
pop ecx
je 0x100586fd
push 3
call fcn.10061cac
test eax, eax
pop ecx
jne 0x100585e5
cmp dword [0x100a2268], 1
je 0x100586fd
cmp ebx, 0xfc
je 0x10058730
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x100a25d0
push ebp
call fcn.1004fa80
add esp, 0xc
test eax, eax
je 0x1005861b
push esi
push esi
push esi
push esi
push esi
call fcn.1004fe23
add esp, 0x14
push 0x104
mov esi, 0x100a25e9
push esi
push 0
mov byte [0x100a26ed], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1005865f
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1004fa80
add esp, 0xc
test eax, eax
je 0x1005865f
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1004fe23
add esp, 0x14
push esi
call fcn.10050270
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100586a4
push esi
call fcn.10050270
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x100a28e4
push 0x10075ec4
sub ecx, eax
push ecx
push eax
call fcn.10053c57
add esp, 0x14
test eax, eax
je 0x100586a4
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1004fe23
add esp, 0x14
jmp 0x100586a6
xor esi, esi
push 0x10075ec0
push ebx
push ebp
call fcn.1005278e
add esp, 0xc
test eax, eax
je 0x100586c6
push esi
push esi
push esi
push esi
push esi
call fcn.1004fe23
add esp, 0x14
push dword [edi*8 + 0x1008de54]
push ebx
push ebp
call fcn.1005278e
add esp, 0xc
test eax, eax
je 0x100586e8
push esi
push esi
push esi
push esi
push esi
call fcn.1004fe23
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10061aef
add esp, 0xc
jmp 0x10058730
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10058730
cmp ebp, 0xffffffff
je 0x10058730
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1008de54]
push dword [esi]
call fcn.10050270
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