joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100271c0
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
sub esp, 0x15c
mov eax, dword [0x100778dc]
push ebx
push ebp
mov ebp, dword [esp + 0x16c]
test ebp, ebp
push esi
mov dword [esp + 0x164], eax
push edi
je 0x100271f8
lea eax, [esp + 0x64]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push ebp
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x170]
xor esi, esi
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push esi
mov dword [esp + 0x48], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x10027243
mov ecx, dword [esp + 0x14]
push ecx
call edi
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x180]
test eax, eax
je 0x10027250
mov dword [eax], esi
test esi, esi
je 0x1002728d
mov al, byte [esp + 0x178]
test al, al
mov bl, 1
je 0x10027284
mov eax, dword [esp + 0x17c]
test eax, eax
jne 0x1002726f
or eax, 0xffffffff
mov edx, dword [esp + 0x10]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10027284
xor bl, bl
mov eax, dword [esp + 0x10]
push eax
call edi
jmp 0x1002728f
xor bl, bl
test ebp, ebp
je 0x1002729e
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x168]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
call fcn.1004189e
add esp, 0x15c
ret
Function at 0x1002a030
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100513b0
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x1002a068
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetClipboardData]
push 0xd
call edi
mov esi, eax
cmp esi, ebx
je 0x1002a136
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
cmp edi, ebx
je 0x1002a177
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea ecx, [esp + 0x1c]
push ecx
push eax
push edi
mov dword [esp + 0x40], ebx
call fcn.1003dcf0
add esp, 0xc
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
mov byte [esp + 0x34], 1
jne 0x1002a0d2
xor eax, eax
jmp 0x1002a0db
mov eax, dword [esp + 0x24]
sub eax, ecx
sar eax, 2
lea edx, [esp + 0xc]
push edx
push eax
push ecx
call fcn.1003d6f0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x48]
add esp, 0xc
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x1002a117
push eax
call fcn.1004119d
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
je 0x1002a1a9
push eax
call fcn.1004119d
add esp, 4
jmp 0x1002a1a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
call edi
mov esi, eax
cmp esi, ebx
jne 0x1002a16c
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [esp + 0x40], ebx
jle 0x1002a158
mov eax, dword [esp + 0x3c]
mov byte [eax], bl
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
jne 0x1002a191
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp byte [esp + 0x44], bl
je 0x1002a1b5
call dword [sym.imp.USER32.dll_EmptyClipboard]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x1002b810
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x100778dc]
mov dword [esp + 0x104], eax
push esi
lea eax, [esp + 4]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [esp + 0x110]
push esi
push 0
push str.zkAgEaKUBu
call fcn.100254b0
add esp, 4
push eax
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
pop esi
jne 0x1002b871
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x104]
call fcn.1004189e
add esp, 0x108
ret 4

Function at 0x1002b890
Capabilities:
Set environment variable

Disassembly:
sub esp, 0x128
mov eax, dword [0x100778dc]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x12c], eax
push edi
mov byte [esi + 0x1a5], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x10]
push 0x100543f8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push str.zkAgEaKUVNKCdJ70UV6
call fcn.100254b0
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add esp, 4
push eax
call edi
mov ebx, dword [esp + 0x138]
push str.upgrade.exe
push ebx
push str._s_s
lea edx, [esp + 0x38]
push 0x104
push edx
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
push 0
push 0x927c0
push 1
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.100271c0
add esp, 0x28
push 0
push str.zkAgEaKUVNKCdJ70UV6
call fcn.100254b0
add esp, 4
push eax
call edi
push ebx
call fcn.10012170
mov ecx, dword [esp + 0x134]
add esp, 4
pop edi
mov byte [esi + 0x1a5], 0
pop esi
pop ebx
call fcn.1004189e
add esp, 0x128
ret 4
Function at 0x10030060
Capabilities:
Delete file
Read data from internet
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x10051746
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push ebx
push esi
push 0
call fcn.10041868
push 0x8000
call fcn.1003fb26
mov esi, eax
add esp, 8
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0x8000
mov ebx, dword [esp + 0xbc]
push 1
push 0x1b6
push 0x22
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0xc0], 0
call fcn.1002f850
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x1c]
test al, 6
mov byte [esp + 0xb0], 1
je 0x1003010d
lea ecx, [esp + 0x74]
mov byte [esp + 0xb0], 0
call fcn.1002f990
lea ecx, [esp + 0x74]
mov dword [esp + 0x74], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
call fcn.10040323
push esi
call fcn.10041868
add esp, 4
xor al, al
jmp 0x1003019a
push ebp
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
push edi
mov edi, dword [esp + 0xc0]
lea esp, [esp]
lea edx, [esp + 0x10]
push edx
push 0x8000
push esi
push edi
call ebp
test eax, eax
je 0x100301b3
mov eax, dword [esp + 0x10]
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.1002d140
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
test byte [edx + eax + 8], 6
jne 0x100301b9
mov eax, dword [esp + 0x10]
test eax, eax
ja 0x10030120
lea ecx, [esp + 0x1c]
call fcn.100064b0
lea ecx, [esp + 0x1c]
call fcn.1002edc0
lea ecx, [esp + 0x7c]
mov byte [esp + 0xb8], 0
call fcn.1002f990
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
call fcn.10040323
push esi
call fcn.10041868
add esp, 4
mov al, 1
pop edi
pop ebp
mov ecx, dword [esp + 0xa8]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xac
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x1c]
call fcn.1002edc0
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x7c]
mov byte [esp + 0xb8], 0
call fcn.1002f990
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
call fcn.10040323
push esi
call fcn.10041868
add esp, 4
xor al, al
jmp 0x10030198
Function at 0x10031070
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1005188f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esp + 0x34], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x4c], 0xf
mov dword [esi + 0x48], ebx
mov byte [esi + 0x38], bl
lea edi, [esi + 0x54]
mov ecx, edi
mov byte [esp + 0x34], 2
mov byte [esi + 0x50], 0xff
call fcn.10006510
mov dword [edi], 0x10055430
mov dword [edi + 0x3c], ebx
mov byte [edi + 0x40], bl
mov dword [edi + 0x44], 3
mov byte [esi + 0xa0], bl
mov edx, dword [esp + 0x3c]
cmp edx, ebx
mov byte [esp + 0x34], 4
je 0x1003114c
mov eax, edx
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10031113
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.10001410
lea eax, [esp + 0x10]
push eax
mov ecx, esi
mov byte [esp + 0x38], 5
call fcn.10030bd0
cmp dword [esp + 0x28], 0x10
jb 0x1003114c
mov ecx, dword [esp + 0x14]
push ecx
call fcn.1004119d
add esp, 4
mov ecx, dword [esp + 0x2c]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4

Function at 0x10032030
Capabilities:
Parse url

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x3c
test edx, edx
push esi
mov esi, ecx
jne 0x10032049
mov byte [esi], dl
xor al, al
pop esi
add esp, 0x3c
ret 4
cmp byte [edx], 0x20
jne 0x10032058
mov edi, edi
mov al, byte [edx + 1]
inc edx
cmp al, 0x20
je 0x10032050
push ebx
push edi
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esi + 0x130]
mov dword [esp + 0x28], eax
mov eax, 0x81
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
lea eax, [esi + 0x232]
mov dword [esp + 0x38], eax
mov eax, 0x801
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0xc]
push eax
push 0x10000000
lea ecx, [esi + 0x1b1]
mov dword [esp + 0x38], ecx
push 0
lea ecx, [esi + 0xa33]
lea edi, [esi + 1]
lea ebx, [esi + 0x28]
push edx
mov dword [esp + 0x1c], 0x3c
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 0x21
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], 0x101
mov dword [esp + 0x50], ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
cmp eax, 1
jne 0x100320f9
mov ecx, edi
call fcn.10031fe0
test al, al
je 0x100320f9
mov eax, 1
jmp 0x100320fb
xor eax, eax
test al, al
mov byte [esi], al
je 0x10032113
movzx edx, word [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x12c], edx
push 0x10054a2c
push ebx
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
mov al, byte [esi]
pop edi
pop ebx
pop esi
add esp, 0x3c
ret 4
Function at 0x10032180
Capabilities:
Enumerate network shares

Disassembly:
mov eax, 0x4030
call fcn.10041d60
mov edx, dword [esp + 0x4034]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov ebp, ecx
xor ecx, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x38], eax
mov eax, 2
push eax
push 1
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], eax
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
je 0x100321fc
xor al, al
pop ebp
add esp, 0x4030
ret 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x10]
push edx
push eax
mov byte [esp + 0x17], 0
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x20], 0x4000
call sub.MPR.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x100322bf
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push esi
push edi
mov edi, edi
test eax, eax
jne 0x100322bc
mov eax, dword [esp + 0x14]
xor edi, edi
test eax, eax
jbe 0x1003227b
lea esi, [esp + 0x54]
mov al, byte [ebp + 0x11c]
test al, al
jne 0x100322bc
cmp dword [esi - 0xc], 2
jne 0x1003226f
mov ecx, dword [esi]
push ecx
lea edx, [ebp + 0x18]
push edx
call ebx
test eax, eax
je 0x100322b7
mov eax, dword [esp + 0x14]
inc edi
add esi, 0x20
cmp edi, eax
jb 0x10032252
mov al, byte [ebp + 0x11c]
test al, al
jne 0x100322bc
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x2c], 0x4000
call sub.MPR.dll_WNetEnumResourceA
cmp eax, 0x103
jne 0x10032240
jmp 0x100322bc
mov byte [esp + 0x13], 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
push ecx
call sub.MPR.dll_WNetCloseEnum
mov al, byte [esp + 7]
pop ebp
add esp, 0x4030
ret 4

Function at 0x100325c0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [0x1007ae54]
test eax, eax
jne 0x100325fc
mov eax, dword [0x1007ae50]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [0x1007ae54], eax
je 0x100325ed
push edi
mov edi, eax
call fcn.100324e0
pop edi
jmp 0x100325f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x1007ae54]
test eax, eax
je 0x10032665
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10032665
mov ecx, dword [esp + 8]
cmp ecx, 0x20
jl 0x10032617
mov ecx, 0x20
xor eax, eax
test ecx, ecx
mov dword [0x1007d258], ecx
jbe 0x10032644
mov edx, dword [esp + 4]
sub edx, 0x1007d1d8
push esi
mov edi, edi
mov esi, dword [edx + eax*4 + 0x1007d1d8]
mov dword [eax*4 + 0x1007d1d8], esi
inc eax
cmp eax, ecx
jb 0x10032630
pop esi
mov ecx, dword [0x1007d25c]
mov edx, dword [0x1007ae54]
inc ecx
mov dword [0x1007d25c], ecx
push edx
mov byte [0x1007d260], 1
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
ret
Function at 0x10032670
Capabilities:
Enumerate network shares

Disassembly:
sub esp, 0xc8c
push edi
lea eax, [esp + 8]
push eax
mov edi, ecx
mov ecx, dword [esp + 0xc98]
push ecx
push 2
push 1
push 2
mov dword [esp + 0x1c], 0
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
je 0x100326a9
xor al, al
pop edi
add esp, 0xc8c
ret 4
push ebx
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push ecx
push edx
xor bl, bl
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x20], 0xc80
call sub.MPR.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x10032783
push ebp
push esi
test eax, eax
jne 0x10032781
mov eax, dword [esp + 0x10]
xor ebp, ebp
test eax, eax
jbe 0x10032743
lea esi, [esp + 0x30]
jmp 0x10032700
mov al, byte [edi + 0x11c]
test al, al
jne 0x1003273f
cmp dword [esi - 0xc], 1
jne 0x1003271c
mov eax, dword [esi]
push eax
mov ecx, edi
call fcn.10032180
jmp 0x1003272d
test byte [esi - 8], 2
je 0x10032733
lea ecx, [esi - 0x14]
push ecx
mov ecx, edi
call fcn.10032670
mov bl, al
test bl, bl
jne 0x10032781
mov eax, dword [esp + 0x10]
inc ebp
add esi, 0x20
cmp ebp, eax
jb 0x10032700
test bl, bl
jne 0x10032781
mov al, byte [edi + 0x11c]
test al, al
jne 0x10032781
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x28], 0xc80
call sub.MPR.dll_WNetEnumResourceA
cmp eax, 0x103
jne 0x100326e2
pop esi
pop ebp
mov eax, dword [esp + 0xc]
push eax
call sub.MPR.dll_WNetCloseEnum
mov al, bl
pop ebx
pop edi
add esp, 0xc8c
ret 4
Function at 0x10033560
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10051a96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov al, byte [0x1007ae70]
push ebx
push esi
xor ebx, ebx
test al, 1
push edi
jne 0x100335dc
or dword [0x1007ae70], 1
mov ecx, 0x1007ae64
mov dword [esp + 0x34], ebx
call fcn.100102c0
mov dword [0x1007ae68], eax
mov byte [eax + 0x11], 1
mov eax, dword [0x1007ae68]
mov dword [eax + 4], eax
mov eax, dword [0x1007ae68]
mov dword [eax], eax
mov eax, dword [0x1007ae68]
mov dword [eax + 8], eax
push 0x10052880
mov dword [0x1007ae6c], ebx
call fcn.10041e7d
add esp, 4
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [0x1007d25c]
cmp byte [0x1007ae60], bl
mov cl, byte [0x1007d260]
jne 0x10033664
cmp byte [0x1007d260], bl
jne 0x10033664
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x38], 1
call fcn.10005310
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
add esp, 4
cmp esi, edi
je 0x10033643
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
mov ecx, 0x1007ae64
mov dword [esp + 0x14], eax
call fcn.100111b0
add esi, 4
jmp 0x10033620
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov byte [0x1007ae60], 1
je 0x10033712
push eax
call fcn.1004119d
add esp, 4
jmp 0x10033712
mov eax, dword [0x1007ae5c]
cmp eax, dword [0x1007d25c]
je 0x10033712
mov eax, dword [0x1007ae58]
cmp eax, ebx
jne 0x100336b4
mov ecx, dword [0x1007ae50]
push ecx
push ebx
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
cmp eax, ebx
mov dword [0x1007ae58], eax
jne 0x100336b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1003370c
mov eax, dword [0x1007d258]
xor esi, esi
cmp eax, ebx
jbe 0x100336f1
mov edi, 0x1007d1d8
push edi
lea edx, [esp + 0x14]
push edx
mov ecx, 0x1007ae64
call fcn.100111b0
mov eax, dword [0x1007d258]
inc esi
add edi, 4
cmp esi, eax
jb 0x100336d4
mov edx, dword [0x1007ae5c]
mov eax, dword [0x1007ae58]
inc edx
push eax
mov dword [0x1007ae5c], edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x10033712
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
mov ecx, 0x1007ae64
call fcn.10032d30
mov edx, dword [eax]
mov eax, dword [0x1007ae68]
xor ecx, ecx
cmp edx, eax
setne cl
pop edi
mov al, cl
mov ecx, dword [esp + 0x28]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100342d0
Capabilities:
Get common file path
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x10051b2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x170
mov eax, dword [0x100778dc]
mov dword [esp + 0x16c], eax
call fcn.10026ca0
test al, al
je 0x100344b6
lea ecx, [esp + 4]
call fcn.100018b0
mov eax, dword [esp + 4]
test eax, eax
mov dword [esp + 0x178], 0
jne 0x1003433b
lea ecx, [esp + 4]
mov dword [esp + 0x178], 0xffffffff
call fcn.100018a0
xor al, al
jmp 0x100344d2
mov byte [esp + 3], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0xc]
push ecx
push 0xf01ff
push eax
lea ecx, [esp + 0x10]
call fcn.100018f0
test eax, eax
jne 0x10034369
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1003449c
mov eax, dword [esp + 0xc]
push ebp
lea edx, [esp + 0xc]
push edx
push 1
push 2
push 0
push 0x2000000
push eax
lea ecx, [esp + 0x20]
call fcn.10001910
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x1003439d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10034494
call fcn.10034240
mov edx, dword [esp + 0xc]
push 4
lea ecx, [esp + 0x18]
push ecx
push 0xc
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], eax
call fcn.10001930
test eax, eax
jne 0x100343cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1003448d
push edi
mov edi, dword [esp + 0x188]
test edi, edi
je 0x100343ef
lea eax, [esp + 0x70]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
push eax
push eax
push eax
push 1
push eax
push eax
push esi
push eax
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x58], 0x44
mov dword [esp + 0x60], str.WinSta0Default
call fcn.10001950
test eax, eax
pop edi
jne 0x1003443a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10034477
mov ecx, dword [esp + 0x1c]
push ecx
mov byte [esp + 0xb], 1
call ebp
test bl, bl
je 0x10034470
mov eax, dword [esp + 0x188]
test eax, eax
jne 0x10034458
or eax, 0xffffffff
mov edx, dword [esp + 0x18]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10034470
mov byte [esp + 7], 0
mov eax, dword [esp + 0x18]
push eax
call ebp
mov eax, dword [esp + 0x184]
test eax, eax
je 0x1003448d
lea ecx, [esp + 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edx, dword [esp + 0xc]
push edx
call ebp
mov eax, dword [esp + 0x10]
push eax
call ebp
pop ebp
lea ecx, [esp + 4]
mov dword [esp + 0x178], 0xffffffff
call fcn.100018a0
mov al, byte [esp + 3]
jmp 0x100344d2
mov ecx, dword [esp + 0x184]
mov edx, dword [esp + 0x180]
push 0
push ecx
push ebx
push edx
push esi
call fcn.100271c0
add esp, 0x14
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x16c]
call fcn.1004189e
add esp, 0x17c
ret
Function at 0x10034500
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x100778dc]
push 0
mov dword [esp + 0x108], eax
push 0x1a
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x1003453c
xor al, al
mov ecx, dword [esp + 0x104]
call fcn.1004189e
add esp, 0x108
ret
push str.MozillaFirefoxProfiles
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
mov ecx, dword [esp + 0x104]
neg eax
sbb eax, eax
neg eax
call fcn.1004189e
add esp, 0x108
ret

Function at 0x10034570
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x100778dc]
push 0
mov dword [esp + 0x20c], eax
push 0x1a
lea eax, [esp + 0x10c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x1003460e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
lea ecx, [esp + 0x10c]
push ecx
lea edx, [esp + 0xc]
push edx
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push str.MozillaFirefoxProfiles_foo_none
lea eax, [esp + 0xc]
push eax
call edi
lea ecx, [esp + 8]
push ecx
call fcn.10012070
add esp, 4
lea edx, [esp + 0x10c]
push edx
lea eax, [esp + 0xc]
push eax
call esi
push str.MozillaFirefoxprofiles.ini
lea ecx, [esp + 0xc]
push ecx
call edi
mov edx, dword [str._General__r_nStartWithLastProfile1_r_n_r_n_Profile0__r_nNamedefault_r_nIsRelative1_r_nPathProfiles_foo_r_n]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [str._General__r_nStartWithLastProfile1_r_n_r_n_Profile0__r_nNamedefault_r_nIsRelative1_r_nPathProfiles_foo_r_n]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.10012120
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0x208]
call fcn.1004189e
add esp, 0x20c
ret

Function at 0x10034630
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x100778dc]
push 0
mov dword [esp + 0x108], eax
push 0x1a
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x10034673
push str.MozillaFirefox
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp]
push edx
call fcn.10012170
add esp, 4
mov ecx, dword [esp + 0x104]
call fcn.1004189e
add esp, 0x108
ret