joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4129e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496d70
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4bc040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00475cbc
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00474c19
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x415300
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x4bc040]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
push edi
push str.InstallDir
push dword [ebp + 0xc]
push eax
call fcn.00414f60
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4153ba
test edi, edi
je 0x4153ba
mov ecx, dword [edi]
mov edx, 7
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov word [esp + 0xc], ax
test ecx, ecx
je 0x415365
push ecx
lea edx, [esp + 0x10]
call fcn.0040f8e0
mov edx, dword [esp + 0x24]
add esp, 4
cmp edx, 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [esp + 0x20]
test eax, eax
mov ecx, 0xa
cmove esi, ecx
cmp edx, 8
jb 0x4153ba
mov ecx, dword [esp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4153b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4153cd
push edx
push ecx
call fcn.00475cec
add esp, 8
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00475cfa
mov esp, ebp
pop ebp
ret
call fcn.0047b37a
int3
Function at 0x41be10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4bc040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov byte [ebp - 9], 0
test edi, edi
jne 0x41be5d
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x41be49
mov eax, dword [ecx]
push str.PIMSqlite::initWithDBPath_NULL_parameter
push 0x4b0b8f
push ecx
call dword [eax + 0x20]
add esp, 0xc
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475cfa
mov esp, ebp
pop ebp
ret 8
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41be62
push ebx
sub ecx, edx
lea ebx, [esi + 0xc]
push ecx
push edi
mov ecx, ebx
call fcn.0040c040
cmp dword [ebx + 0x14], 0x10
jb 0x41be80
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
mov ecx, 1
push 0
sete al
cmp dword [ebp + 0xc], 0
mov byte [esi + 8], al
mov eax, 6
cmove eax, ecx
push eax
push esi
push edi
call fcn.0042e0ba
mov edx, dword [esi + 0x24]
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x41bf4f
test edx, edx
je 0x41bed3
mov eax, dword [edx]
push edi
push str.Success_sqlite3_open_from_the_path:__s
push 0x4b0b8f
push edx
call dword [eax + 0x20]
add esp, 0x10
push 0x3e8
push dword [esi]
call fcn.0042cd18
add esp, 8
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 8]
mov ecx, esi
push eax
push 0x41ba70
push str.select_count___from_sqlite_master
call fcn.0041f5f0
test al, al
jne 0x41bf1e
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x41bf67
mov eax, dword [ecx]
push str.Could_not_createOrUpdatePIMDbSchema.
push 0x4b0b8f
push ecx
call dword [eax + 0x20]
add esp, 0xc
jmp 0x41bf67
cmp dword [ebp - 8], 0
mov ecx, esi
jne 0x41bf2d
call fcn.0041f100
jmp 0x41bf32
call fcn.0041f460
mov ecx, dword [esi + 0x24]
test al, al
je 0x41bf05
mov bl, 1
test ecx, ecx
je 0x41bf6a
mov eax, dword [ecx]
push str.PIM_Database_is_Up_To_Date
push ecx
call dword [eax + 0x14]
add esp, 8
jmp 0x41bf6a
test edx, edx
je 0x41bf67
mov ecx, dword [edx]
push edi
push str.Error_unable_to_open_Sqlite_Data_base_from_the_path:__s
push 0x4b0b8f
push edx
call dword [ecx + 0x20]
add esp, 0x10
mov bl, byte [ebp - 9]
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.00475cfa
mov esp, ebp
pop ebp
ret 8
Function at 0x4218e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498071
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x4bc040]
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
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push 0x4b127c
push 0
push 0
push 0x2b
push 0
call sub.SHELL32.dll_SHGetFolderPathAndSubDirW
test eax, eax
jne 0x421aa2
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 7
lea edx, [ecx + 2]
mov word [ebp - 0x248], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421980
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.004015e0
cmp dword [ebp - 0x234], 8
lea edx, [ebp - 0x248]
mov eax, dword [ebp - 0x238]
lea edi, [ebp - 0x248]
cmovae edx, dword [ebp - 0x248]
lea ecx, [ebp - 0x230]
cmovae edi, dword [ebp - 0x248]
mov byte [ebp - 4], 1
mov dword [ebp - 0x220], 0
lea ebx, [edx + eax*2]
mov dword [ebp - 0x21c], 0xf
mov eax, ebx
mov byte [ebp - 0x230], 0
sub eax, edi
sar eax, 1
push eax
call fcn.00413be0
push dword [ebp - 0x264]
lea ecx, [ebp - 0x230]
push ebx
push edi
call fcn.00420980
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x260]
push eax
mov byte [ebp - 4], 2
call fcn.00410c30
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x421a78
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x421a6e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421b3c
push edx
push ecx
call fcn.00475cec
add esp, 8
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
mov byte [ebp - 4], 0
call fcn.00401500
push 0x11
push str.Adobe_PCDpcd.db
lea ecx, [ebp - 0x260]
call fcn.00410c30
cmp dword [ebp - 0x24c], 0x10
lea ecx, [ebp - 0x264]
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push ecx
push eax
call fcn.0042dd7a
add esp, 8
test eax, eax
jne 0x421ae6
mov esi, dword [ebp - 0x264]
test esi, esi
jne 0x421ae8
xor esi, esi
mov edx, dword [ebp - 0x24c]
cmp edx, 0x10
jb 0x421b1e
mov ecx, dword [ebp - 0x260]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x421b14
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421b41
push edx
push ecx
call fcn.00475cec
add esp, 8
mov eax, esi
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.00475cfa
mov esp, ebp
pop ebp
ret
call fcn.0047b37a
call fcn.0047b37a
int3
Function at 0x4227a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4bc040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x42282e
test esi, esi
je 0x42282e
push ebx
lea ecx, [ebp - 0x14]
xor bl, bl
push ecx
push 1
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x422813
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x422813
cmp dword [ebp - 0x10], 0
mov eax, 1
movzx ebx, bl
cmove ebx, eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475cfa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00475cfa
mov esp, ebp
pop ebp
ret

Function at 0x422c10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4bc040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x422c89
test esi, esi
je 0x422c89
push ebx
lea ecx, [ebp - 8]
xor bl, bl
push ecx
push 0xf003f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x422c6e
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475cfa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00475cfa
mov esp, ebp
pop ebp
ret

Function at 0x4244f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498363
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4bc040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x4bd3b8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ebp - 4], 0
mov dword [ecx], 0x4bd3b8
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x4b0b8f
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.004242f0
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44f533
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x44f548
xor eax, eax
jmp 0x44f627
push ebx
mov ebx, dword [ebp + 8]
push edi
push 8
push ebx
call fcn.0044be1e
mov edi, eax
mov dword [ebp - 0x10], edi
pop ecx
pop ecx
test edi, edi
je 0x44f593
test byte [ebp + 0x10], 1
mov eax, dword [esi]
mov dword [edi], eax
jne 0x44f577
xor eax, eax
inc eax
cmp dword [esi], eax
jle 0x44f577
add eax, eax
cmp eax, dword [esi]
jl 0x44f571
imul eax, eax, 0x18
push eax
push ebx
call fcn.0044be1e
mov dword [edi + 4], eax
pop ecx
pop ecx
test eax, eax
jne 0x44f59a
push edi
push ebx
call fcn.0044bdc1
pop ecx
pop ecx
xor eax, eax
jmp 0x44f625
and dword [ebp - 8], 0
cmp dword [esi], 0
mov ecx, dword [esi + 4]
mov dword [ebp + 0xc], ecx
jle 0x44f623
lea edx, [eax + 0x10]
sub eax, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov dword [ebp - 0xc], eax
push 0
push dword [ebp + 0x10]
push dword [ecx]
push ebx
call fcn.00439798
mov ecx, dword [ebp + 0xc]
mov dword [edi + ecx], eax
push dword [ecx + 4]
push ebx
call fcn.0044c008
mov ecx, dword [ebp - 4]
mov dword [ecx - 0xc], eax
mov eax, dword [ebp + 0xc]
push dword [eax + 8]
push ebx
call fcn.0044c008
mov edx, dword [ebp - 4]
add esp, 0x20
mov ecx, dword [ebp + 0xc]
mov dword [edx - 8], eax
mov al, byte [ecx + 0xc]
and dword [edx], 0xfffffffe
mov byte [edx - 4], al
mov eax, dword [ecx + 0x10]
xor eax, dword [edx]
and eax, 2
xor dword [edx], eax
mov eax, dword [ecx + 0x14]
add ecx, 0x18
mov dword [edx + 4], eax
add edx, 0x18
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov dword [ebp + 0xc], ecx
cmp eax, dword [esi]
jl 0x44f5b6
mov edi, dword [ebp - 0x10]
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x469e25
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
test esi, esi
jle 0x469e51
push ebx
mov ebx, dword [ebp + 8]
movzx eax, byte [ebx]
mov ecx, edi
shl ecx, 3
movzx edx, byte [eax + 0x49b3b0]
xor edx, ecx
xor edi, edx
inc ebx
dec esi
test esi, esi
jg 0x469e37
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x474817
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test ebx, ebx
jg 0x47483b
jl 0x474832
test esi, esi
jne 0x47483b
xor eax, eax
xor edx, edx
jmp 0x47492e
cmp dword [edi + 0x38], 0
je 0x474850
push ebx
push esi
push dword [ebp + 8]
call fcn.0040fc90
jmp 0x47492e
mov eax, dword [edi + 0x1c]
mov ecx, esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], esi
mov ecx, dword [eax]
test ecx, ecx
je 0x4748a4
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4748a4
cmp eax, esi
jb 0x474876
mov eax, esi
mov dword [ebp - 4], esi
push eax
push ecx
push dword [ebp + 8]
call fcn.00477d80
mov edx, dword [ebp - 4]
mov ecx, esi
mov eax, dword [ebp + 8]
sub ecx, edx
add eax, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
add esp, 0xc
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0xc], ecx
sub dword [eax], edx
mov eax, dword [edi + 0x1c]
add dword [eax], edx
jmp 0x4748aa
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [edi + 0x4c], 0
je 0x474922
mov ecx, edi
call fcn.00474149
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
cmp eax, 0xfff
jbe 0x4748fe
mov ecx, dword [ebp - 4]
push dword [edi + 0x4c]
push 0xfff
push 1
push ecx
call fcn.0047f3d5
mov ecx, dword [ebp - 4]
add esp, 0x10
mov edx, dword [ebp - 8]
add ecx, eax
sub edx, eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
cmp eax, 0xfff
jne 0x4748fa
cmp edx, eax
ja 0x4748c7
jmp 0x474901
sub esi, edx
jmp 0x474927
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ecx, eax
test eax, eax
je 0x474925
push dword [edi + 0x4c]
push edx
push 1
push dword [ebp - 4]
call fcn.0047f3d5
mov ecx, dword [ebp - 0xc]
add esp, 0x10
sub ecx, eax
jmp 0x474925
mov ecx, dword [ebp - 0xc]
sub esi, ecx
sbb ebx, 0
mov eax, esi
mov edx, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x48851e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00488394
Function at 0x40107d
Capabilities:
Create thread

Disassembly:
jmp 0x442dd0
push ecx
push 8
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [eax + 4], ecx
lea ecx, [esp]
push ecx
push 0
push eax
mov dword [eax], edx
mov edx, dword [0x4a9a9c]
push 0x401a5a
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret

Function at 0x40108c
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
jmp 0x4439f0
cmp dword [0x48b140], 2
mov ecx, dword [esp + 4]
mov eax, ecx
je 0x443a14
cmp byte [ecx], 0
je 0x443a14
cmp byte [eax], 0x2f
jne 0x443a0c
mov byte [eax], 0x5c
add eax, 1
cmp byte [eax], 0
jne 0x443a04
mov dword [esp + 4], ecx
jmp 0x45170e
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x488180]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xa0]
or dword [ebp - 0x7c], 0xffffffff
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
lea esi, [ebp - 0x74]
mov dword [ebp - 0x80], ebx
jne 0x451768
call fcn.0044bb04
mov dword [eax], ebx
call fcn.0044baf1
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.004516d1
add esp, 0x14
or eax, 0xffffffff
jmp 0x45181a
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x4517fd
lea eax, [ebp - 0x74]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, eax
cmp edi, 0x104
jle 0x4517bb
lea ebx, [edi + 1]
push 1
push ebx
call fcn.004525d9
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4517fb
test edi, edi
mov dword [ebp - 0x80], 1
je 0x4517fb
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x4517fd
mov al, byte [esi]
cmp al, 0x5c
je 0x4517c9
cmp al, 0x2f
jne 0x4517ce
cmp al, byte [esi + 1]
je 0x4517f6
mov byte [ebp - 0x78], 0x3d
movzx eax, byte [esi]
push eax
call fcn.0045eacc
pop ecx
mov byte [ebp - 0x77], al
push esi
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 0x76], 0x3a
mov byte [ebp - 0x75], 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x4517fd
mov dword [ebp - 0x7c], ebx
jmp 0x45180a
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0044bb17
pop ecx
cmp dword [ebp - 0x80], ebx
pop edi
je 0x451817
push esi
call fcn.00451a88
pop ecx
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp + 0x94]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c66d
add ebp, 0x98
leave
ret
Function at 0x401096
Capabilities:
Create thread

Disassembly:
jmp 0x442b00
sub esp, 0x10
mov eax, dword [0x4a9a60]
test eax, eax
mov dword [esp + 4], 0xc
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
jne 0x442b37
push eax
push eax
push eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x4a9a60], eax
cmp dword [0x4a9a64], 0
je 0x442b47
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x442b5d
mov dword [0x4a9a64], esi
xor eax, eax
pop esi
add esp, 0x10
ret
mov edx, dword [0x4a9a9c]
lea ecx, [esp + 4]
push ecx
push 0
push esi
push 0x40187f
push edx
push 0
mov dword [0x4a9a64], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x442b8e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4a9a68]
imul esi, esi, 0x3e8
mov dword [0x4a9a68], esi
pop esi
add esp, 0x10
ret

Function at 0x40111d
Capabilities:
Manipulate console buffer

Disassembly:
jmp 0x44b060
jmp 0x4453b0
mov eax, dword [0x48b11c]
sub esp, 0x20
cmp eax, 0xffffffff
je 0x44540a
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x44540a
mov edx, dword [esp + 0x16]
sub edx, dword [esp + 0x12]
mov ax, word [esp + 0x14]
mov cx, word [esp + 0x18]
add edx, 1
mov word [esp + 4], dx
lea edx, [esp]
push edx
mov word [esp + 6], ax
mov eax, dword [0x48b11c]
push 1
push eax
mov word [esp + 0xc], 0
mov word [esp + 0x12], cx
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
add esp, 0x20
ret
push ebx
mov ebx, dword [esp + 0xc]
test ebx, ebx
jle 0x44b125
cmp ebx, dword [0x49e494]
jg 0x44b125
push esi
push edi
mov edi, dword [esp + 0x10]
nop
movzx eax, word [edi]
test eax, 0x800
movsx eax, ax
je 0x44b0c0
mov ecx, dword [0x497c90]
and eax, 0xfffff7ff
lea esi, [ecx + eax*8]
movzx eax, word [esi]
add edi, 2
test ax, ax
je 0x44b0cc
movsx edx, ax
push edx
call fcn.00401249
movzx eax, word [esi + 2]
add esi, 2
add esp, 4
test ax, ax
jne 0x44b0a6
jmp 0x44b0cc
push eax
call fcn.00401249
add esp, 4
add edi, 2
add dword [0x49e59c], 1
sub ebx, 1
jne 0x44b080
mov eax, dword [0x49e59c]
cmp eax, dword [0x49e494]
pop edi
pop esi
jl 0x44b0fa
add dword [0x49a3dc], 1
mov dword [0x49e59c], ebx
pop ebx
jmp 0x401217
mov ecx, dword [0x49e59c]
cmp ecx, dword [0x48b0d4]
jl 0x44b125
call fcn.00401384
pop ebx
mov dword [esp + 8], 0
mov edx, dword [0x49e59c]
mov dword [esp + 4], edx
jmp fcn.00401ac8
pop ebx
ret
Function at 0x401235
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x4472b0
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push 0x3a
push ebx
call fcn.0044c710
mov ecx, eax
sub ecx, ebx
add esp, 8
test eax, eax
mov dword [esp + 4], ecx
je 0x4473a6
cmp ecx, 1
jbe 0x4473a6
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
add ecx, 2
push ecx
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov eax, dword [esp + 0xc]
push ebx
add eax, 2
push eax
push esi
call fcn.0046fa7a
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
push esi
push 0x80000000
mov byte [esi + ecx], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
push esi
push 0
je 0x44733d
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push str.URL_Protocol
push eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x24], 2
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x44738f
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xc
ret
xor eax, eax
pop ebx
add esp, 0xc
ret

Function at 0x401294
Capabilities:
Create pipe
Create thread

Disassembly:
jmp 0x44a4d0
sub esp, 0x18
cmp dword [0x4aa00c], 0
je 0x44a4e3
or eax, 0xffffffff
add esp, 0x18
ret
push 0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x1c], 0xc
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x44a51b
call fcn.0044d22b
mov ecx, dword [esp]
mov edx, dword [0x4a9a9c]
lea eax, [esp + 8]
push eax
push 0
push ecx
push 0x401870
push edx
push 0
mov dword [0x4aa00c], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x48b0d8], eax
mov eax, dword [esp + 4]
add esp, 0x18
ret

Function at 0x40129e
Capabilities:
Get session user name

Disassembly:
jmp 0x444e80
sub esp, 0xc
cmp dword [0x48a344], 0
mov dword [esp + 4], 0x14
mov dword [esp + 8], 0
jne 0x444f15
lea eax, [esp + 4]
push eax
push 0x48a330
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
push str.HOME
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 8]
push edx
call fcn.0044c057
add esp, 0xc
test eax, eax
jne 0x444ef0
mov eax, dword [esp]
push eax
push 0x105
push 0x48a228
call fcn.0046fa7a
mov ecx, dword [esp]
push ecx
mov dword [0x48a358], 0x48a228
call fcn.00451a88
add esp, 4
mov edx, dword [str.tcsh]
mov eax, 0x4a9d14
mov dword [0x48a344], 0x48a330
mov dword [0x48a35c], edx
mov dword [0x48a354], eax
mov dword [0x48a348], eax
mov eax, 0x48a344
add esp, 0xc
ret
Function at 0x4012ad
Capabilities:
Get session user name

Disassembly:
jmp 0x444da0
sub esp, 0xc
cmp dword [0x48a344], 0
mov dword [esp + 4], 0x14
mov dword [esp + 8], 0
jne 0x444e35
lea eax, [esp + 4]
push eax
push 0x48a330
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
push str.HOME
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 8]
push edx
call fcn.0044c057
add esp, 0xc
test eax, eax
jne 0x444e10
mov eax, dword [esp]
push eax
push 0x105
push 0x48a228
call fcn.0046fa7a
mov ecx, dword [esp]
push ecx
mov dword [0x48a358], 0x48a228
call fcn.00451a88
add esp, 4
mov edx, dword [str.tcsh]
mov eax, 0x4a9d14
mov dword [0x48a344], 0x48a330
mov dword [0x48a35c], edx
mov dword [0x48a354], eax
mov dword [0x48a348], eax
mov eax, dword [esp + 0x10]
push eax
push 0x48a330
call fcn.0044fa65
neg eax
sbb eax, eax
not eax
and eax, 0x48a344
add esp, 0x14
ret