joyce8/EMBER2024-capa huggingface dataset:
Function at 0x65a88c48
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_connect]
sub esp, 0xc
test eax, eax
jns 0x65a88c7a
mov dword [ebp - 0xc], eax
call sym.___assuan_socket.part.0
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x65a88d11
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
sub esp, 0x10
leave
ret

Function at 0x65a893d0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x65a89430
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x65a8e498]
test esi, esi
jle 0x65a89530
mov eax, dword [0x65a8e49c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x65a89460
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x65a894df
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x65a89450
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x65a89557
mov eax, dword [0x65a8e49c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x65a8e49c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x65a89537
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x65a894d8
sub eax, 4
and eax, 0xfffffffb
jne 0x65a894e6
add dword [0x65a8e498], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x65a8e49c]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x65a894d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
xor esi, esi
jmp 0x65a8946a
mov eax, dword [0x65a8e49c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop

Function at 0x65a897f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x65a8e4a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x65a8e4a0]
sub esp, 4
test ebx, ebx
je 0x65a89845
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x65a8983e
test esi, esi
je 0x65a8983e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x65a89820
mov dword [esp], 0x65a8e4a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x580770
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x123000]
push edi
jmp 0x58078a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x580791
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x580780
mov eax, 1
add ebx, ebx
jne 0x5807a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5807b4
jne 0x5807d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5807d3
dec eax
add ebx, ebx
jne 0x5807c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x580798
add ebx, ebx
jne 0x5807cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x580825
xor ecx, ecx
sub eax, 3
jb 0x5807eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x58085a
sar eax, 1
mov ebp, eax
jmp 0x5807f6
add ebx, ebx
jne 0x5807f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5807c4
inc ecx
add ebx, ebx
jne 0x580804
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5807c4
add ebx, ebx
jne 0x580811
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x580806
jne 0x580822
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x580806
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x580844
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x580836
jmp 0x580786
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x580844
add edi, ecx
jmp 0x580786
pop esi
mov edi, esi
mov ecx, 0x40d6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x580862
cmp byte [edi], 0x11
jne 0x580862
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x580867
lea edi, [esi + 0x179000]
mov eax, dword [edi]
or eax, eax
je 0x5808df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x21b2fc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x21b478]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x580894
mov ecx, edi
jns 0x5808c3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x21b47c]
or eax, eax
je 0x5808d9
mov dword [ebx], eax
add ebx, 4
jmp 0x5808b1
call dword [esi + 0x21b48c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x580910
cmp al, 0xef
ja 0x580903
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5808e5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5808f2
mov ebp, dword [esi + 0x21b480]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x580944
sub esp, 0xffffff80
jmp 0x4204f7
Function at 0x402de0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x425008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x9c
push 0
lea eax, [ebp - 0xa0]
push eax
call fcn.0040ae60
add esp, 0xc
mov dword [ebp - 0xa0], 0x9c
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x402e28
xor eax, eax
jmp 0x402e43
cmp dword [ebp - 0x90], 2
jne 0x402e41
cmp dword [ebp - 0x9c], 6
jb 0x402e41
mov eax, 1
jmp 0x402e43
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409e94
mov esp, ebp
pop ebp
ret
Function at 0x4030e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x425008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00403660
add esp, 4
mov ecx, dword [ebp + 8]
call fcn.00404820
test eax, eax
ja 0x403206
mov ecx, dword [ebp + 8]
push ecx
call fcn.00403270
add esp, 4
mov edx, dword [ebp + 8]
push edx
call fcn.00403770
add esp, 4
push 0x422648
mov ecx, dword [ebp + 8]
call fcn.004047d0
push 0
mov ecx, dword [ebp + 8]
call fcn.004062e0
push eax
call fcn.0040ce05
add esp, 8
test eax, eax
je 0x403204
push 0
mov ecx, dword [ebp + 8]
call fcn.004062e0
push eax
call fcn.0040ce05
add esp, 8
test eax, eax
je 0x403182
push 0x4264e8
mov ecx, dword [ebp + 8]
call fcn.004062e0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x403182
mov al, 1
jmp 0x403260
push 0x4225bd
mov ecx, dword [ebp + 8]
call fcn.004047b0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004033e0
add esp, 8
lea ecx, [ebp - 0x1c]
call fcn.00406430
mov edx, dword [ebp + 8]
push edx
call fcn.00403770
add esp, 4
push str.GoogleChromeApplicationPlugins_
mov ecx, dword [ebp + 8]
call fcn.004047d0
push 0
mov ecx, dword [ebp + 8]
call fcn.004062e0
push eax
call fcn.0040ce05
add esp, 8
test eax, eax
je 0x403204
push 0x4264e8
mov ecx, dword [ebp + 8]
call fcn.004062e0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4031f3
mov al, 1
jmp 0x403260
push 0x4225be
mov ecx, dword [ebp + 8]
call fcn.004047b0
xor al, al
jmp 0x403260
jmp 0x40325e
mov eax, dword [ebp + 8]
push eax
call fcn.00403770
add esp, 4
push str.Plugins_
mov ecx, dword [ebp + 8]
call fcn.004047d0
push 0
mov ecx, dword [ebp + 8]
call fcn.004062e0
push eax
call fcn.0040ce05
add esp, 8
test eax, eax
je 0x40325a
push 0x4264e8
mov ecx, dword [ebp + 8]
call fcn.004062e0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x403254
mov al, 1
jmp 0x403260
xor al, al
jmp 0x403260
mov al, 1
jmp 0x403260
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409e94
mov esp, ebp
pop ebp
ret
Function at 0x403270
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x425008]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x108], 0
push 0x103
push 0
lea eax, [ebp - 0x107]
push eax
call fcn.0040ae60
add esp, 0xc
mov dword [ebp - 0x110], 0
push 0x104
push str.c:_temp
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [ebp - 0x110]
push edx
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x403394
cmp dword [ebp - 0x110], 0
je 0x403394
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x403394
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
movsx eax, byte [ebp + eax - 0x109]
cmp eax, 0x5c
jne 0x403354
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, 1
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0x104
jae 0x403341
jmp 0x403346
call fcn.0040cf9d
mov edx, dword [ebp - 0x114]
mov byte [ebp + edx - 0x108], 0
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x403394
mov ecx, dword [ebp - 0x110]
push ecx
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10c]
push ecx
mov edx, dword [eax + 0x14]
call edx
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10c]
push edx
mov eax, dword [ecx + 8]
call eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x4033b4
push 0
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp + 8]
call fcn.004047b0
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409e94
mov esp, ebp
pop ebp
ret
Function at 0x4033e0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x425008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x118], 0
mov byte [ebp - 0x108], 0
push 0x103
push 0
lea eax, [ebp - 0x107]
push eax
call fcn.0040ae60
add esp, 0xc
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
push 0x104
push str.c:program_files
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [ebp - 0x110]
push edx
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x403518
cmp dword [ebp - 0x110], 0
je 0x403518
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x403518
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
movsx eax, byte [ebp + eax - 0x109]
cmp eax, 0x5c
jne 0x4034d8
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, 1
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0x104
jae 0x4034c5
jmp 0x4034ca
call fcn.0040cf9d
mov edx, dword [ebp - 0x114]
mov byte [ebp + edx - 0x108], 0
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x403518
mov ecx, dword [ebp - 0x110]
push ecx
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10c]
push ecx
mov edx, dword [eax + 0x14]
call edx
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10c]
push edx
mov eax, dword [ecx + 8]
call eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x403538
lea edx, [ebp - 0x108]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.004047b0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406c50
mov ecx, dword [ebp - 0x118]
or ecx, 1
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409e94
mov esp, ebp
pop ebp
ret
Function at 0x403570
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2814
call fcn.0040fad0
mov eax, dword [0x425008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x280c], 0
mov dword [ebp - 0x2814], 0x2800
mov byte [ebp - 0x2804], 0
push 0x27ff
push 0
lea eax, [ebp - 0x2803]
push eax
call fcn.0040ae60
add esp, 0xc
lea ecx, [ebp - 0x280c]
push ecx
push 1
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x2810], eax
mov byte [ebp - 0x2805], 0
cmp dword [ebp - 0x2810], 0
jne 0x403630
lea ecx, [ebp - 0x2814]
push ecx
lea edx, [ebp - 0x2804]
push edx
push 0
push 0
push str.InstallLocation
mov eax, dword [ebp - 0x280c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x2810], eax
cmp dword [ebp - 0x2810], 0
jne 0x403630
lea ecx, [ebp - 0x2804]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.004047b0
mov byte [ebp - 0x2805], 1
cmp dword [ebp - 0x280c], 0
je 0x403646
mov edx, dword [ebp - 0x280c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x2805]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409e94
mov esp, ebp
pop ebp
ret
Function at 0x4038d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c3f8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x425008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00402de0
test eax, eax
je 0x403990
push 0x4225bf
lea ecx, [ebp - 0x28]
call fcn.00406280
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.00403270
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x40397c
lea edx, [ebp - 0x28]
push edx
call fcn.00403770
add esp, 4
push str.Temp_
lea ecx, [ebp - 0x28]
call fcn.004047d0
lea ecx, [ebp - 0x28]
call fcn.00404820
cmp dword [ebp + 0xc], eax
jae 0x40395a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x64], eax
jmp 0x403965
lea ecx, [ebp - 0x28]
call fcn.00404820
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004062e0
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406430
jmp 0x403aa8
lea eax, [ebp - 0x60]
push eax
push 0x20
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x4039e7
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x60]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x4039e7
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4039e2
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [eax + 0x14]
call edx
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ecx + 8]
call eax
jmp 0x403aa8
push 0x4226e8
call fcn.0040d100
add esp, 4
test eax, eax
je 0x403a3f
push 0x4226f0
call fcn.0040d100
add esp, 4
push eax
lea ecx, [ebp - 0x58]
call fcn.00406280
lea ecx, [ebp - 0x58]
call fcn.00404820
cmp dword [ebp + 0xc], eax
jbe 0x403a35
push str.TEMP
call fcn.0040d100
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040d180
add esp, 8
lea ecx, [ebp - 0x58]
call fcn.00406430
jmp 0x403aa8
push 0x422700
call fcn.0040d100
add esp, 4
test eax, eax
je 0x403a97
push 0x422704
call fcn.0040d100
add esp, 4
push eax
lea ecx, [ebp - 0x40]
call fcn.00406280
lea ecx, [ebp - 0x40]
call fcn.00404820
cmp dword [ebp + 0xc], eax
jbe 0x403a8d
push 0x422708
call fcn.0040d100
add esp, 4
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0040d180
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.00406430
jmp 0x403aa8
push 0x42270c
mov eax, dword [ebp + 8]
push eax
call fcn.0040d180
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409e94
mov esp, ebp
pop ebp
ret
Function at 0x403ad0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x425008]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x108], 0
push 0x103
push 0
lea eax, [ebp - 0x107]
push eax
call fcn.0040ae60
add esp, 0xc
mov dword [ebp - 0x110], 0
lea ecx, [ebp - 0x110]
push ecx
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x403bdd
cmp dword [ebp - 0x110], 0
je 0x403bdd
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x403bdd
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
movsx edx, byte [ebp + eax - 0x109]
cmp edx, 0x5c
jne 0x403b9d
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, 1
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0x104
jae 0x403b8a
jmp 0x403b8f
call fcn.0040cf9d
mov ecx, dword [ebp - 0x114]
mov byte [ebp + ecx - 0x108], 0
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x403bdd
mov eax, dword [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x10c]
push eax
mov ecx, dword [edx + 0x14]
call ecx
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10c]
push ecx
mov edx, dword [eax + 8]
call edx
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp + 8]
call fcn.004047b0
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409e94
mov esp, ebp
pop ebp
ret

Function at 0x403c00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x425008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x4225df
mov ecx, dword [ebp + 0x14]
call fcn.004047b0
cmp dword [ebp + 8], 0
je 0x403c32
cmp dword [ebp + 0x10], 0
je 0x403c32
cmp dword [ebp + 0xc], 0
jne 0x403c36
xor eax, eax
jmp 0x403cb2
mov byte [ebp - 0x404], 0
push 0x3ff
push 0
lea eax, [ebp - 0x403]
push eax
call fcn.0040ae60
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x400
lea edx, [ebp - 0x404]
push edx
push 0x42260e
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x404]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.004047b0
mov ecx, dword [ebp + 0x14]
call fcn.00404820
test eax, eax
jbe 0x403ca9
push 0x42260f
mov eax, dword [ebp + 0x14]
push eax
call fcn.00405110
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x403cad
xor eax, eax
jmp 0x403cb2
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409e94
mov esp, ebp
pop ebp
ret
Function at 0x403de0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c470
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x425008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x42262f
lea ecx, [ebp - 0x28]
call fcn.00406280
mov dword [ebp - 4], 0
push 0x422637
lea ecx, [ebp - 0x40]
call fcn.00406280
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
push eax
call fcn.00403ad0
add esp, 4
lea ecx, [ebp - 0x28]
push ecx
call fcn.00403770
add esp, 4
push str.Mozilla_
lea ecx, [ebp - 0x28]
call fcn.004047d0
push 0
lea ecx, [ebp - 0x28]
call fcn.004062e0
push eax
call fcn.0040ce05
add esp, 8
test eax, eax
je 0x403ed9
movzx edx, byte [ebp + 0xc]
test edx, edx
je 0x403eb2
push 0x4264e8
lea ecx, [ebp - 0x28]
call fcn.004062e0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x403eb0
mov byte [ebp - 0x44], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00406430
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406430
mov al, byte [ebp - 0x44]
jmp 0x40400c
jmp 0x403ed9
mov byte [ebp - 0x45], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00406430
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406430
mov al, byte [ebp - 0x45]
jmp 0x40400c
lea eax, [ebp - 0x28]
push eax
call fcn.00403770
add esp, 4
push 0x422740
lea ecx, [ebp - 0x28]
call fcn.004047d0
push 0
lea ecx, [ebp - 0x28]
call fcn.004062e0
push eax
call fcn.0040ce05
add esp, 8
test eax, eax
je 0x403f7f
push 0x4264e8
lea ecx, [ebp - 0x28]
call fcn.004062e0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x403f56
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004063b0
mov byte [ebp - 0x47], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00406430
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406430
mov al, byte [ebp - 0x47]
jmp 0x40400c
mov byte [ebp - 0x46], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00406430
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406430
mov al, byte [ebp - 0x46]
jmp 0x40400c
lea ecx, [ebp - 0x28]
call fcn.004062e0
push eax
call fcn.00408390
add esp, 4
test eax, eax
je 0x403fc6
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp + 8]
call fcn.004063b0
mov byte [ebp - 0x41], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00406430
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406430
mov al, byte [ebp - 0x41]
jmp 0x40400c
mov byte [ebp - 0x42], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00406430
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406430
mov al, byte [ebp - 0x42]
jmp 0x40400c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409e94
mov esp, ebp
pop ebp
ret