joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405aff
Capabilities:
Delete directory

Disassembly:
push 8
mov eax, 0x46dc9a
call fcn.004500f0
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040393d
push str..
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004015e6
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.0040393d
call fcn.004046c8
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004010dc
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010dc
call fcn.004501c8
ret

Function at 0x406b88
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x48d250]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x110], 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.00450200
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x10c]
push eax
mov ecx, edi
call fcn.0040161d
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004500e1
leave
ret

Function at 0x406cd7
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x318
lea ebp, [esp - 4]
mov eax, dword [0x48d250]
xor eax, ebp
mov dword [ebp + 0x318], eax
push 0x10
mov eax, 0x46dfca
call fcn.004500f0
mov eax, dword [ebp + 0x328]
and dword [ebp - 4], 0
mov edi, dword [ebp + 0x324]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x1c], edi
call fcn.00406c99
mov esi, 0x105
push esi
xor ebx, ebx
lea eax, [ebp + 0x108]
push 0
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00450200
add esp, 0x10
push esi
lea eax, [ebp + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
lea eax, [ebp]
push 0
push eax
call fcn.00450200
add esp, 0xc
push esi
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
lea eax, [ebp + 0x210]
push 0
push eax
call fcn.00450200
add esp, 0xc
lea eax, [ebp + 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push dword [ebp - 0x18]
mov ecx, edi
call fcn.0040161d
push dword [ebp - 0x10]
mov ecx, edi
push str.APPPATH
mov dword [ebp - 0x14], ebx
call fcn.004048e3
lea eax, [ebp + 0x108]
push eax
push str.SYSTEMPATH
mov ecx, edi
call fcn.004048e3
lea eax, [ebp]
push eax
push str.WINDOWSPATH
mov ecx, edi
call fcn.004048e3
lea eax, [ebp + 0x210]
push eax
push str.TEMPPATH
mov ecx, edi
call fcn.004048e3
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004010dc
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x318]
xor ecx, ebp
call fcn.004500e1
add ebp, 0x31c
leave
ret
Function at 0x40e3ca
Capabilities:
Create directory
Download url
Receive data

Disassembly:
push 0xc
mov eax, 0x46f33c
call fcn.004500f0
mov esi, ecx
call fcn.00430032
push eax
lea ecx, [ebp - 0x10]
call fcn.00401358
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
xor ebx, ebx
cmp dword [ecx - 0xc], ebx
mov dword [ebp - 4], ebx
jg 0x40e437
push dword [eax]
lea eax, [ebp - 0x18]
push eax
call fcn.0040e234
mov eax, dword [eax]
mov ecx, dword [esi + 8]
mov ecx, dword [ecx + 4]
push 0x5c
push eax
push ecx
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.0040e300
add esp, 0x18
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00404d02
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004010dc
jmp 0x40e45a
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
push 0x5c
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040e300
add esp, 0x10
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00404d02
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.004010dc
mov eax, dword [esi + 8]
push ebx
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esi + 8]
mov eax, dword [eax]
push esi
mov esi, dword [ebp - 0x10]
push ebx
push esi
push eax
push ebx
call sub.urlmon.dll_URLDownloadToFileA
cmp eax, ebx
jge 0x40e49c
mov dword [ebp - 0x18], eax
push 0x482cd0
lea eax, [ebp - 0x18]
push eax
call fcn.00451425
lea ecx, [esi - 0x10]
call fcn.004010dc
call fcn.004501c8
ret

Function at 0x40e631
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x48d250]
xor eax, ebp
mov dword [ebp + 0x8c], eax
and dword [ebp - 0x80], 0
push esi
mov esi, dword [ebp + 0x98]
push 0x105
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.00450200
lea eax, [ebp - 0x80]
push eax
call fcn.00406b88
add esp, 0x10
lea ecx, [ebp - 0x7c]
push ecx
push 0
push 0x474dac
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, dword [ebp - 0x80]
add ecx, 0xfffffff0
call fcn.004010dc
lea eax, [ebp - 0x7c]
push eax
mov ecx, esi
call fcn.0040161d
mov ecx, dword [ebp + 0x8c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004500e1
add ebp, 0x90
leave
ret
Function at 0x40edc9
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
sub esp, 0x104
lea ebp, [esp - 4]
mov eax, dword [0x48d250]
xor eax, ebp
mov dword [ebp + 0x104], eax
push 0x2c
mov eax, 0x46f578
call fcn.00450123
mov eax, dword [ebp + 0x110]
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [ebp - 0x18], eax
xor ebx, ebx
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x26
push ebx
mov dword [ebp - 4], ebx
call esi
test eax, eax
jl 0x40ee4a
call fcn.00430032
push eax
lea ecx, [ebp - 0x14]
call fcn.00401358
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004015e6
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push edi
push str._ProgramFiles_
call fcn.004048e3
lea ecx, [edi - 0x10]
mov byte [ebp - 4], bl
call fcn.004010dc
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x1a
push ebx
call esi
test eax, eax
jl 0x40ee93
call fcn.00430032
push eax
lea ecx, [ebp - 0x14]
call fcn.00401358
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004015e6
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push edi
push str._AppData_
call fcn.004048e3
lea ecx, [edi - 0x10]
mov byte [ebp - 4], bl
call fcn.004010dc
mov ecx, dword [ebp - 0x18]
mov edi, str._FFProfile_
push edi
call fcn.004028da
cmp eax, 0xffffffff
jle 0x40efbe
call fcn.00430032
push eax
lea ecx, [ebp - 0x20]
call fcn.00401358
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x1a
push ebx
mov byte [ebp - 4], 3
call esi
test eax, eax
jl 0x40efb3
call fcn.00430032
push eax
lea ecx, [ebp - 0x14]
call fcn.00401358
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.004015e6
push str.MozillaFirefoxProfiles_
lea ecx, [ebp - 0x14]
call fcn.004015e6
lea ecx, [ebp - 0x38]
call fcn.0043aec8
push 0x474158
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 5
call fcn.00405089
add esp, 0xc
mov eax, dword [eax]
push ebx
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.0043af5d
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov esi, eax
mov byte [ebp - 4], 5
call fcn.004010dc
cmp esi, ebx
je 0x40ef92
lea ecx, [ebp - 0x38]
call fcn.0043abcc
mov esi, eax
mov eax, dword [ebp - 0x38]
push 0x10
lea ecx, [ebp - 0x38]
call dword [eax + 0x38]
cmp eax, ebx
je 0x40ef3c
lea ecx, [ebp - 0x38]
call fcn.0043ae8d
cmp eax, ebx
jne 0x40ef3c
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x38]
call fcn.0043b197
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 7
call fcn.00401503
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 5
call fcn.004010dc
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push esi
push edi
call fcn.004048e3
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.0043aeee
lea ecx, [esi - 0x10]
call fcn.004010dc
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004010dc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.004500e1
add ebp, 0x108
leave
ret
Function at 0x40f464
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x100
lea ebp, [esp - 4]
mov eax, dword [0x48d250]
xor eax, ebp
mov dword [ebp + 0x100], eax
push 0x44
mov eax, 0x46f6f8
call fcn.004500f0
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0xd], 0
call fcn.0040161d
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
mov ebx, 0x20019
push ebx
push 0
push dword [ebp - 0x1c]
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
call esi
test eax, eax
jne 0x40f58a
push 0xfe
push eax
mov byte [ebp], al
lea eax, [ebp + 1]
push eax
call fcn.00450200
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x30], 0xff
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp - 0x20], 1
jbe 0x40f521
mov byte [ebp - 0xd], 0
jmp 0x40f581
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v1.1.4322
lea ecx, [ebp - 0x14]
call fcn.0040161d
lea eax, [ebp - 0x24]
push eax
push ebx
xor ebx, ebx
push ebx
push dword [ebp - 0x14]
push edi
call esi
test eax, eax
jne 0x40f576
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push 0x474fac
push dword [ebp - 0x24]
mov dword [ebp - 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f56d
cmp dword [ebp - 0x28], 1
je 0x40f56d
mov byte [ebp - 0xd], 1
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004010dc
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004010dc
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.004500e1
add ebp, 0x104
leave
ret
Function at 0x4113f5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x48d250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x34
lea eax, [ebp - 0x38]
push 0
push eax
mov esi, ecx
call fcn.00450200
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
and dword [ebp - 0x1c], 0
add esp, 0xc
mov dword [ebp - 0x28], eax
imul eax, eax, 3
push 0x36
xor ebx, ebx
pop edx
inc ebx
mov word [ebp - 0x20], bx
push 0x18
pop ebx
mov word [ebp - 0x1e], bx
mov ebx, eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], 0x28
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x40], ebx
test bl, 3
je 0x41145c
or ebx, 3
inc ebx
mov dword [ebp - 0x40], ebx
mov eax, ebx
imul eax, ecx
add eax, edx
push ebx
push str.Bytes_per_line_:__d_n
mov dword [ebp - 0x38], eax
call fcn.0045373f
push 0x475468
push edi
call fcn.0045251b
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x44], edi
test edi, edi
je 0x411556
push edi
push 2
push 1
push 0x475464
call fcn.00451d8f
push edi
push 0x34
lea eax, [ebp - 0x38]
push 1
push eax
call fcn.00451d8f
push ebx
push 1
call fcn.004536ff
mov edi, eax
add esp, 0x28
test edi, edi
jne 0x4114c8
push dword [esi]
call fcn.00451471
xor eax, eax
jmp 0x411555
mov eax, dword [esi + 8]
dec eax
mov dword [ebp - 0x3c], eax
js 0x411546
xor ecx, ecx
cmp dword [esi + 4], ecx
jle 0x411530
mov edx, dword [esi + 4]
imul edx, dword [ebp - 0x3c]
mov eax, dword [esi + 0xc]
mov ebx, dword [esi]
add edx, ecx
imul edx, eax
imul eax, ecx
mov dl, byte [edx + ebx + 2]
mov byte [eax + edi], dl
mov edx, dword [esi + 4]
imul edx, dword [ebp - 0x3c]
mov eax, dword [esi + 0xc]
mov ebx, dword [esi]
add edx, ecx
imul edx, eax
imul eax, ecx
mov dl, byte [edx + ebx + 1]
mov byte [eax + edi + 1], dl
mov edx, dword [esi + 4]
imul edx, dword [ebp - 0x3c]
mov eax, dword [esi + 0xc]
mov ebx, dword [esi]
add edx, ecx
imul edx, eax
imul eax, ecx
mov dl, byte [edx + ebx]
inc ecx
mov byte [eax + edi + 2], dl
cmp ecx, dword [esi + 4]
jl 0x4114d8
push dword [ebp - 0x44]
push dword [ebp - 0x40]
push 1
push edi
call fcn.00451d8f
add esp, 0x10
dec dword [ebp - 0x3c]
jns 0x4114d1
push edi
call fcn.00451471
push dword [ebp - 0x44]
call fcn.00452163
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004500e1
leave
ret 4

Function at 0x4131ba
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.00450200
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x44], 0x44
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
setne al
pop esi
leave
ret 8
Function at 0x415cf0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x415d1f
push esi
call fcn.0041a3a0
add esp, 4
cmp byte [esi + 0x40], 0
je 0x415d18
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x415d99
mov eax, dword [esi + 0x1a0]
cmp byte [eax + 0x10], 0
je 0x415d89
mov eax, dword [esi + 8]
test eax, eax
je 0x415d44
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov edx, dword [esi + 0x1a0]
mov eax, dword [edx]
push esi
call eax
add esp, 4
test eax, eax
je 0x415d85
cmp eax, 2
je 0x415d89
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x415d35
cmp eax, 3
je 0x415d6c
cmp eax, 1
jne 0x415d35
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x415d35
mov edx, dword [esi + 0x120]
add dword [eax + 8], edx
jmp 0x415d35
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.004159c0
pop esi
ret
cmp eax, 0xcc
je 0x415dbb
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.004159c0
pop esi
ret
Function at 0x421a60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, dword [esp + 0x24]
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1b8]
mov dword [esp + 0x18], esi
jne 0x421a87
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x421a93
mov dword [esp + 8], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [esp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x64], ecx
mov dword [esp + 0x14], ecx
jle 0x421ba6
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x14], edx
jmp 0x421ad8
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov edi, dword [edx]
cdq
idiv edi
cmp dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
je 0x421af9
mov eax, dword [esi + 0x18]
add dword [eax + ecx*4], 0xff
lea eax, [eax + ecx*4]
mov edx, dword [esi + 0x18]
mov ebp, dword [edx + ecx*4]
lea eax, [edi + 0xfe]
lea esi, [edi + edi - 2]
cdq
idiv esi
xor ebx, ebx
mov dword [esp + 0x24], ebp
xor esi, esi
mov edx, eax
cmp esi, edx
jle 0x421b4f
mov ecx, ebx
lea ebp, [edi + edi - 2]
imul ecx, ecx, 0x1fe
jmp 0x421b30
add ecx, 0x1fe
lea eax, [ecx + edi + 0xfe]
cdq
idiv ebp
inc ebx
mov edx, eax
cmp esi, edx
jg 0x421b30
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
mov al, byte [esp + 0x18]
imul bl
mov byte [esi + ebp], al
inc esi
cmp esi, 0xff
jle 0x421b16
cmp dword [esp + 0x10], 0
je 0x421b8d
mov eax, 1
lea edx, [ebp - 1]
movzx ebx, byte [ebp]
mov byte [edx], bl
movzx ebx, byte [ebp + 0xff]
mov byte [eax + ebp + 0xff], bl
inc eax
dec edx
cmp eax, 0xff
jle 0x421b70
mov eax, dword [esp + 0x2c]
add dword [esp + 0x14], 4
inc ecx
cmp ecx, dword [eax + 0x64]
mov dword [esp + 0x1c], ecx
jl 0x421ad0
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x42ce1c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x48d250]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x42ceba
push 0x476d6c
push 4
push eax
call fcn.004546f1
push eax
call fcn.0040191c
add esp, 0x10
push ebx
push edi
call fcn.0045467e
mov edi, dword [eax]
call fcn.0045467e
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00452681
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.0045467e
cmp dword [eax], ebx
je 0x42ced1
call fcn.0045467e
push dword [eax]
call fcn.0042c31a
pop ecx
jmp 0x42ced8
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x42ce62
jmp 0x42cf5f
call fcn.0045467e
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
je 0x42cf5b
cmp dword [ebp - 0x11c], esi
jae 0x42cf5b
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x15c]
push ebx
push eax
mov dword [ebp - 0x160], 0x40
call fcn.00450200
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x42cf4a
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x42cf4a
lea ecx, [ebp - 0x160]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x42cf4a
push ebx
push ebx
push esi
jmp 0x42cf53
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x42cf5d
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004500e1
leave
ret

Function at 0x430c0d
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4706ee
call fcn.004500f0
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x430c32
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x430c78
lea ecx, [ebp - 0x10]
call fcn.00403929
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042c145
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010dc
mov eax, esi
call fcn.004501c8
ret 8
Function at 0x431690
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4316d8
call fcn.0042fe9f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4316d8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x43171b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x431704
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x431704
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x431718
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x438a4a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x438a91
call fcn.0042fe9f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x438a91
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x438aad
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004385c4
mov esi, eax
test edi, edi
je 0x438aab
test ebx, ebx
je 0x438aab
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x439647
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x43966b
cmp dword [edi + 0x54], 0
jne 0x43966b
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0042fe9f
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00439608
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x43bab9
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x43bae4
call fcn.0042fe9f
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x43bb07
push eax
push dword [esi + 4]
call fcn.0043ba3f
push esi
push eax
mov ecx, 0x492d34
call fcn.0043b6b3
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x43c34f
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x470d58
call fcn.004500f0
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0043c30f
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00403929
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 4], eax
test eax, eax
jne 0x43c3b5
push eax
push dword [esi + 8]
call fcn.0043ba3f
push dword [esi + 0xc]
mov ecx, 0x492d34
push eax
call fcn.0043b6b3
mov eax, esi
call fcn.004501c8
ret 0x18

Function at 0x4500e1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48d250]
jne 0x4500eb
repz ret
jmp fcn.00459f4c