joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004dcf0
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 0x1004dd10
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1004dd23
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, edi
pop edi
pop esi
ret

Function at 0x1004dd30
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x20
mov eax, dword [0x1008f414]
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 0x1004de18
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.10006383
cmp eax, 0xea
jne 0x1004ddb4
lea eax, [esp + 0x14]
push eax
xor ebp, ebp
push ebp
push str.ProgramFilesDir
lea ecx, [esp + 0x24]
call fcn.10006383
test eax, eax
jne 0x1004ddbe
test ebp, ebp
jne 0x1004ddf4
jmp 0x1004ddc3
cmp eax, 0x7a
jne 0x1004ddf0
mov eax, dword [esp + 0x10]
test eax, eax
mov ecx, dword [esp + 0x14]
mov dword [edi], ecx
je 0x1004ddd8
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.10050837
add esp, 0x20
ret
test eax, eax
jne 0x1004de18
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1004de03
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.10050837
add esp, 0x20
ret
mov ecx, dword [0x100774b4]
mov ebp, dword [edi]
mov edx, dword [str._PROGRAMFILES_]
mov eax, dword [0x100774b0]
push ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], edx
mov dx, word [0x100774b8]
mov dword [esp + 0x24], eax
mov al, byte [0x100774ba]
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 0x1004de85
test ebx, ebx
mov dword [edi], eax
mov byte [esi], 0
je 0x1004de6d
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.10050837
add esp, 0x20
ret
test eax, eax
jbe 0x1004dea9
test ebx, ebx
je 0x1004de94
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.10050837
add esp, 0x20
ret
test ebx, ebx
je 0x1004deb4
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.10050837
add esp, 0x20
ret
Function at 0x1004ded0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x1008f414]
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 0x1004df2b
pop edi
mov eax, 0x490
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.10050837
add esp, 0x108
ret
mov ecx, 0x105
lea eax, [esp + 8]
push esi
cmp byte [eax], 0
je 0x1004df54
add eax, 1
sub ecx, 1
jne 0x1004df35
xor esi, esi
mov eax, dword [edi]
add esi, 1
cmp eax, esi
jae 0x1004df61
mov eax, 0x7a
jmp 0x1004df76
test ecx, ecx
je 0x1004df42
mov esi, 0x105
sub esi, ecx
jmp 0x1004df44
cmp eax, 0x7fffffff
ja 0x1004df74
lea edx, [esp + 0xc]
push edx
push eax
push ebx
call fcn.1000a28e
xor eax, eax
mov ecx, dword [esp + 0x110]
mov dword [edi], esi
pop esi
pop edi
pop ebx
xor ecx, esp
call fcn.10050837
add esp, 0x108
ret

Function at 0x1004dfc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x1008f414]
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 0x1004e015
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.10050837
add esp, 0x10c
ret
mov ecx, 0x105
lea eax, [esp + 8]
push esi
nop
cmp byte [eax], 0
je 0x1004e03f
add eax, 1
sub ecx, 1
jne 0x1004e020
xor esi, esi
mov eax, dword [edi]
add esi, 1
cmp eax, esi
jae 0x1004e04c
mov eax, 0x7a
jmp 0x1004e061
test ecx, ecx
je 0x1004e02d
mov esi, 0x105
sub esi, ecx
jmp 0x1004e02f
cmp eax, 0x7fffffff
ja 0x1004e05f
lea ecx, [esp + 0xc]
push ecx
push eax
push ebx
call fcn.1000a28e
xor eax, eax
mov ecx, dword [esp + 0x114]
mov dword [edi], esi
pop esi
pop edi
pop ebx
xor ecx, esp
call fcn.10050837
add esp, 0x10c
ret

Function at 0x1004e080
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 3
ja case.default.0x1004e089
jmp dword [eax*4 + 0x1004e0dc]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
push ecx
call fcn.1004dd30
add esp, 8
ret
mov dword [esp + 4], 2
jmp fcn.1004ded0
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
push edx
call fcn.1004df90
add esp, 8
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
push ecx
call fcn.1004dfc0
add esp, 8
ret
mov eax, 0xa0
ret
Function at 0x1004e130
Capabilities:
Encrypt data using rc4 prga

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

Function at 0x1004e1b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
xor eax, eax
mov byte [eax + ecx], al
add eax, 1
cmp eax, 0x100
jl 0x1004e1b2
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
xor edi, edi
xor esi, esi
jmp 0x1004e1d0
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 0x1004e1f8
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 0x1004e1d0
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 0x1004e2d0
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 0x1004e321
mov edx, dword [esp + 0x10]
add edx, 1
push edx
call fcn.100504d9
mov ebx, eax
mov dword [esp + 0x18], ebx
jmp 0x1004e339
push 0x201
mov dword [esp + 0x14], 0x200
call fcn.100504d9
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 0x1004e40b
lea ebx, [ebx]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1004e41f
cmp eax, ebp
jbe 0x1004e3ca
mov ecx, dword [esp + 0x10]
sub eax, ebp
lea esi, [ecx + ecx]
add eax, ecx
cmp esi, eax
jae 0x1004e386
nop
add esi, esi
cmp esi, eax
jb 0x1004e380
lea ecx, [esi + 1]
push ecx
call fcn.100504d9
mov edx, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [esp + 0x18]
sub edx, ebp
push edx
push eax
push ebx
call fcn.10052100
mov eax, dword [esp + 0x24]
sub edi, eax
mov ecx, esi
sub ecx, edi
push eax
mov ebp, ecx
call fcn.10050771
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 0x1004e402
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 0x1004e360
jmp 0x1004e40b
push ebx
call fcn.10050771
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 0x1004e440
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.10050771
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 0x1004e510
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 0x1004e54f
mov ecx, SysReAllocString
mov eax, ebx
cmp byte [eax], 0
je 0x1004e544
add eax, 1
sub ecx, 1
jne 0x1004e535
jmp 0x1004e54f
cmp ecx, edi
je 0x1004e54f
mov edi, SysReAllocString
sub edi, ecx
lea ebp, [edi + 2]
push ebp
call fcn.100504d9
add esp, 4
cmp ebp, 0x7fffffff
mov dword [esi], eax
ja 0x1004e576
cmp edi, 0x7fffffff
ja 0x1004e576
push edi
push ebx
push ebp
push eax
call fcn.1001949b
mov al, byte [esp + 0x18]
push 0x200
mov byte [esi + 4], al
mov dword [esi + 0xc], 0x3c
call fcn.100504d9
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.100504d9
push 0x200
mov dword [esi + 0x1c], eax
call fcn.100504d9
push 0x200
mov dword [esi + 0x28], eax
call fcn.100504d9
push 0x800
mov dword [esi + 0x30], eax
call fcn.100504d9
push 0x800
mov dword [esi + 0x38], eax
call fcn.100504d9
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 0x1004e600
Capabilities:
Parse url

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x1004e61e
mov edx, SysReAllocString
mov eax, edi
cmp byte [eax], 0
je 0x1004e659
add eax, 1
sub edx, 1
jne 0x1004e611
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 0x1004e666
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
ret 0xc
test edx, edx
je 0x1004e61e
mov eax, SysReAllocString
sub eax, edx
jmp 0x1004e620
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x1004e688
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004e688
push eax
push ecx
push SysReAllocString
push esi
call dword [sym.imp.WININET.dll_InternetCreateUrlA]
test eax, eax
je 0x1004e64e
pop edi
xor eax, eax
pop esi
ret 0xc
Function at 0x1004e690
Capabilities:
Check http status code
Connect to http server
Send data
Send http request

Disassembly:
sub esp, 0x820
mov eax, dword [0x1008f414]
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.1004e600
test eax, eax
jne 0x1004e851
cmp byte [esi + 5], al
push ebp
mov dword [esp + 0xc], eax
mov ebp, 0x84200300
jne 0x1004e6f0
mov ebp, 0x84280300
mov eax, dword [esp + 0x830]
test eax, eax
push ebx
jne 0x1004e720
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 0x1004e801
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1004e84f
cmp eax, 1
jne 0x1004e84a
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 0x1004e715
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], 0x10077544
mov dword [esp + 0x48], 0
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
jne 0x1004e78f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1004e83b
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 0x1004e7b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1004e832
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 0x1004e801
mov eax, dword [esp + 0x14]
cmp eax, 0xc8
jb 0x1004e7f4
cmp eax, 0x12c
jb 0x1004e801
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0x490
jmp 0x1004e834
mov eax, dword [esi + 0x4c]
test eax, eax
lea ebp, [esi + 0x4c]
lea ebx, [esi + 0x48]
mov dword [ebx], 0
je 0x1004e824
push eax
call fcn.10050771
add esp, 4
mov dword [ebp], 0
push ebx
push ebp
push edi
mov ecx, esi
call fcn.1004e2d0
mov ebx, dword [esp + 0x10]
mov esi, eax
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test ebx, ebx
je 0x1004e846
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, esi
jmp 0x1004e84f
mov eax, 0x57
pop ebx
pop ebp
mov ecx, dword [esp + 0x824]
pop edi
pop esi
xor ecx, esp
call fcn.10050837
add esp, 0x820
ret 0x10
Function at 0x1004e8b0
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 0x1004e911
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 0x1004e911
push 0x409
push ebp
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
jne 0x1004e911
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 0x1004e929
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 0x1004f860
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x60
mov eax, dword [0x1008f414]
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.10051ae0
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.1004f6d0
push edi
lea ecx, [esp + 0xc]
call fcn.1004f780
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor ecx, esp
call fcn.10050837
add esp, 0x60
ret

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

Disassembly:
cmp dword [0x100a4210], 0
push esi
jne 0x1004ff19
call fcn.1004fe44
test eax, eax
je 0x1004ff5c
mov eax, dword [0x100a4210]
cmp eax, 1
jne 0x1004ff3a
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1004ff5c
pop esi
ret
push eax
call dword [0x100a4218]
test eax, eax
jne 0x1004ffa4
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 0x1004ff60
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x100a4210]
call dword [0x100a4218]
mov edi, eax
test edi, edi
je 0x1004ff87
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x1004ffa3
lea edi, [esi + 0xff0]
push esi
push dword [0x100a4210]
call dword [0x100a4214]
add esi, 0x10
cmp esi, edi
jb 0x1004ff8d
mov eax, esi
pop edi
pop esi
ret
jmp 0x1004ff06
Function at 0x10050837
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1008f414]
jne 0x10050841
repz ret
jmp fcn.10059801

Function at 0x10059a86
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 + 0x1008fe50]
je 0x10059aa1
inc edi
cmp edi, 0x17
jb 0x10059a92
cmp edi, 0x17
jae 0x10059c21
push ebp
push 3
call fcn.1006319c
cmp eax, 1
pop ecx
je 0x10059bed
push 3
call fcn.1006319c
test eax, eax
pop ecx
jne 0x10059ad5
cmp dword [0x100a4268], 1
je 0x10059bed
cmp ebx, 0xfc
je 0x10059c20
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x100a45d0
push ebp
call fcn.10050f70
add esp, 0xc
test eax, eax
je 0x10059b0b
push esi
push esi
push esi
push esi
push esi
call fcn.100512be
add esp, 0x14
push 0x104
mov esi, 0x100a45e9
push esi
push 0
mov byte [0x100a46ed], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10059b4f
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10050f70
add esp, 0xc
test eax, eax
je 0x10059b4f
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.100512be
add esp, 0x14
push esi
call fcn.10051710
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10059b94
push esi
call fcn.10051710
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x100a48e4
push 0x10077f9c
sub ecx, eax
push ecx
push eax
call fcn.1005521c
add esp, 0x14
test eax, eax
je 0x10059b94
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.100512be
add esp, 0x14
jmp 0x10059b96
xor esi, esi
push 0x10077f98
push ebx
push ebp
call fcn.10053c2e
add esp, 0xc
test eax, eax
je 0x10059bb6
push esi
push esi
push esi
push esi
push esi
call fcn.100512be
add esp, 0x14
push dword [edi*8 + 0x1008fe54]
push ebx
push ebp
call fcn.10053c2e
add esp, 0xc
test eax, eax
je 0x10059bd8
push esi
push esi
push esi
push esi
push esi
call fcn.100512be
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10062fdf
add esp, 0xc
jmp 0x10059c20
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10059c20
cmp ebp, 0xffffffff
je 0x10059c20
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1008fe54]
push dword [esi]
call fcn.10051710
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
Function at 0x10062fdf
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10059d39
xor ebx, ebx
cmp dword [0x100a4d18], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x100630b5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10063195
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10078908
push edi
call esi
cmp eax, ebx
je 0x10063195
push eax
call fcn.10059ccb
mov dword [esp], 0x100788f8
push edi
mov dword [0x100a4d18], eax
call esi
push eax
call fcn.10059ccb
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100a4d1c], eax
call esi
push eax
call fcn.10059ccb
mov dword [0x100a4d20], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1005bde4
test eax, eax
pop ecx
pop ecx
je 0x10063083
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100512be
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x100630b5
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10059ccb
cmp eax, ebx
pop ecx
mov dword [0x100a4d28], eax
je 0x100630b5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10059ccb
pop ecx
mov dword [0x100a4d24], eax
mov eax, dword [0x100a4d24]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1006313a
cmp dword [0x100a4d28], ecx
je 0x1006313a
push eax
call fcn.10059d42
push dword [0x100a4d28]
mov esi, eax
call fcn.10059d42
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1006313a
cmp edi, ebx
je 0x1006313a
call esi
cmp eax, ebx
je 0x10063107
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10063107
test byte [ebp - 0x18], 1
jne 0x1006313a
lea eax, [ebp - 0x10]
push eax
call fcn.1005be1b
test eax, eax
pop ecx
je 0x10063122
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100512be
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10063131
or dword [ebp + 0x10], 0x200000
jmp 0x10063175
or dword [ebp + 0x10], 0x40000
jmp 0x10063175
mov eax, dword [0x100a4d1c]
cmp eax, dword [ebp - 8]
je 0x10063175
push eax
call fcn.10059d42
cmp eax, ebx
pop ecx
je 0x10063175
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10063175
mov eax, dword [0x100a4d20]
cmp eax, dword [ebp - 8]
je 0x10063175
push eax
call fcn.10059d42
cmp eax, ebx
pop ecx
je 0x10063175
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100a4d18]
call fcn.10059d42
cmp eax, ebx
pop ecx
je 0x10063195
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10063197
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret