joyce8/EMBER2024-capa huggingface dataset:
Function at 0x12e3f3a0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x20c
mov edx, dword [esp + 0x210]
push ebx
push ebp
push esi
xor esi, esi
mov dword [esp + 0xc], ecx
cmp edx, esi
je 0x12e3f4c2
mov ebx, dword [esp + 0x220]
cmp ebx, esi
je 0x12e3f4c2
mov ebp, dword [esp + 0x224]
cmp ebp, esi
je 0x12e3f4c2
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], si
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x18]
push eax
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x14]
push ecx
call fcn.12f5c44d
add esp, 4
test eax, eax
jbe 0x12e3f48c
mov eax, dword [esp + 0x220]
push esi
push ebp
lea edx, [esp + 0x1c]
push ebx
push edx
push eax
mov ecx, 0x131bc988
call fcn.12e84160
mov esi, eax
test esi, esi
jne 0x12e3f48c
mov ecx, 0x82
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x22c]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.12e3f070
mov edi, eax
test edi, edi
je 0x12e3f48c
lea edx, [esp + 0x14]
push 0x103
push edx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x14]
push eax
call fcn.12f5c44d
add esp, 4
test eax, eax
jbe 0x12e3f48c
push esi
push ebp
lea ecx, [esp + 0x1c]
push ebx
push ecx
push edi
mov ecx, 0x131bc988
call fcn.12e84160
mov esi, eax
mov eax, dword [0x13198f68]
pop edi
test eax, eax
je 0x12e3f4b4
mov edx, dword [esp + 0x21c]
push ebx
push edx
push esi
push str.CHotKeyGetBrowserUrl::GetUrlSpecialBrowserUrl__bRet_:__d___hwnd_:__08x___lpszUrl_:__s_
push str.updown
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x18
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret 0x10
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20c
ret 0x10

Function at 0x12e3f850
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x410
push ebx
push esi
mov esi, dword [esp + 0x41c]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x12e3f935
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push 0x104
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [0x13198f68], ebx
je 0x12e3f8b1
lea ecx, [esp + 0xc]
push ecx
push esi
push str.CHotKeyGetBrowserUrl::IsDownloadWnd_hWnd__x__wszTitle__s_
push str.IaccUrl
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x14
lea edx, [esp + 0xc]
push 0x1310d2c8
push edx
call fcn.12f5e1d4
add esp, 8
test eax, eax
jne 0x12e3f935
mov ecx, 0x81
lea edi, [esp + 0x216]
mov word [esp + 0x214], bx
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x218]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [0x13198f68], ebx
je 0x12e3f917
lea ecx, [esp + 0x214]
push ecx
push str.CHotKeyGetBrowserUrl::IsDownloadWnd_wszClass__s_
push str.IaccUrl
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x10
lea edx, [esp + 0x214]
push str.Chrome_WidgetWin_2
push edx
call fcn.12f5e1d4
add esp, 8
test eax, eax
mov eax, 1
je 0x12e3f937
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x410
ret 4
Function at 0x12e3f960
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x61c
push ebx
mov ebx, dword [esp + 0x624]
push esi
mov esi, ecx
test ebx, ebx
push edi
mov dword [esp + 0xc], esi
je 0x12e3fb12
push ebx
call fcn.12e3f850
test eax, eax
je 0x12e3fb12
mov eax, dword [0x13198f68]
test eax, eax
je 0x12e3f9a9
push str.CHotKeyGetBrowserUrl::GetDLUrlByIacc_____
push str.updown
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x131b5a50]
test ecx, ecx
je 0x12e3f9cb
cmp ecx, eax
ja 0x12e3f9cb
add ecx, 0xc8
cmp eax, ecx
jbe 0x12e3fb12
mov dword [0x131b5a50], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
mov word [esp + 0x218], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21a]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x21c]
lea ecx, [esp + 0x14]
push eax
push 0x104
push ecx
push ebx
mov ecx, 0x131979b8
call fcn.12d95a80
mov eax, dword [0x13198f68]
test eax, eax
je 0x12e3fa4f
lea edx, [esp + 0x218]
lea eax, [esp + 0x10]
push edx
push eax
push ebx
push str.CHotKeyGetBrowserUrl::GetDLUrlByIacc_hWnd__x__wszUrl__s__wszFile__s_
push str.updown
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x18
lea ecx, [esp + 0x218]
lea edx, [esp + 0x10]
push ecx
push edx
push ebx
mov ecx, esi
call fcn.12e3fb30
mov eax, dword [esp + 0x630]
test eax, eax
je 0x12e3fb12
lea eax, [esp + 0x10]
push eax
call fcn.12f5c44d
add esp, 4
test eax, eax
jne 0x12e3fb12
push ebx
call fcn.12e32f20
mov esi, eax
add esp, 4
test esi, esi
je 0x12e3fb12
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x422]
mov word [esp + 0x420], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x420]
push 0x103
push ecx
push esi
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [esp + 0x420]
push edx
call fcn.12f5c44d
add esp, 4
test eax, eax
jbe 0x12e3fb12
push 0
lea eax, [esp + 0x14]
push 0x104
lea ecx, [esp + 0x428]
push eax
push ecx
push esi
mov ecx, 0x131bc988
call fcn.12e84160
test eax, eax
je 0x12e3fb12
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push str.unknown
push edx
push ebx
call fcn.12e3fb30
pop edi
pop esi
pop ebx
add esp, 0x61c
ret 8
Function at 0x12e47130
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x1305e6ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov dword [esp + 8], ecx
mov dword [ecx], 0x13078588
lea esi, [ecx + 8]
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 8], esi
lea ecx, [esi + 0x60]
mov dword [esp + 0x18], 0xd
call fcn.12f41ea0
lea edi, [esi + 0x40]
mov byte [esp + 0x18], 0xc
mov dword [esp + 0xc], edi
lea ecx, [edi + 4]
mov byte [esp + 0x18], 0xf
call fcn.12f41ea0
mov ecx, edi
mov byte [esp + 0x18], 0xc
call fcn.12f41ea0
lea ecx, [esi + 0x3c]
mov byte [esp + 0x18], 0xb
call fcn.12f41ea0
lea ecx, [esi + 0x38]
mov byte [esp + 0x18], 0xa
call fcn.12f41ea0
lea ecx, [esi + 0x34]
mov byte [esp + 0x18], 9
call fcn.12f41ea0
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 8
call fcn.12f41ea0
lea ecx, [esi + 0x2c]
mov byte [esp + 0x18], 7
call fcn.12f41ea0
lea ecx, [esi + 0x28]
mov byte [esp + 0x18], 6
call fcn.12f41ea0
lea ecx, [esi + 0x24]
mov byte [esp + 0x18], 5
call fcn.12f41ea0
lea ecx, [esi + 0x20]
mov byte [esp + 0x18], 4
call fcn.12f41ea0
lea ecx, [esi + 0x1c]
mov byte [esp + 0x18], 3
call fcn.12f41ea0
lea ecx, [esi + 0x18]
mov byte [esp + 0x18], 2
call fcn.12f41ea0
lea edi, [esi + 0xc]
mov byte [esp + 0x18], 1
mov dword [esp + 0xc], edi
lea ecx, [edi + 8]
mov byte [esp + 0x18], 0x11
call fcn.12f41ea0
mov ecx, edi
mov byte [esp + 0x18], 1
call fcn.12f41ea0
mov dword [esp + 0x18], 0x13
lea ecx, [esi + 8]
call fcn.12f41ea0
lea ecx, [esi + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.12f41ea0
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x12e48e50
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1305e9d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
lea ecx, [esp + 0xc]
call fcn.12e9bef0
mov eax, dword [esp + 0x44]
push 1
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
mov dword [esp + 0x48], 0
call fcn.12f46a80
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 0
call fcn.12e9c100
mov ecx, dword [0x1307d25c]
mov dword [esp + 4], ecx
lea edx, [esp + 4]
lea ecx, [esp + 0xc]
push edx
mov byte [esp + 0x3c], 2
call fcn.12e9c5c0
mov eax, dword [esp + 4]
mov esi, dword [esp + 0x40]
push eax
mov ecx, esi
call fcn.12f421e0
mov ecx, dword [esi]
xor edx, edx
mov byte [esp + 0x38], 0
mov eax, dword [ecx - 8]
lea ecx, [esp + 4]
test eax, eax
setne dl
mov esi, edx
call fcn.12f47220
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.12e9c060
mov ecx, dword [esp + 0x30]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x38
ret 8
Function at 0x12e49a90
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x104
push ebx
push esi
mov ebx, ecx
call fcn.12f9c620
test eax, eax
je 0x12e49b94
mov eax, dword [ebx + 0x20]
test eax, eax
jne 0x12e49b94
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x1307866c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebx + 0x24], eax
pop edi
je 0x12e49b94
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IFOSimulateW
push eax
call esi
mov edx, dword [ebx + 0x24]
push str.IFOSimulate2W
push edx
mov dword [ebx + 4], eax
call esi
mov dword [ebx + 8], eax
mov eax, dword [ebx + 0x24]
push str.IFORefresh
push eax
call esi
mov ecx, dword [ebx + 0x24]
push 0x131110b4
push ecx
mov dword [ebx + 0xc], eax
call esi
mov edx, dword [ebx + 0x24]
push 0x131110a0
push edx
mov dword [ebx + 0x10], eax
call esi
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 0x24]
push 0x1311108c
push eax
call esi
mov ecx, dword [ebx + 0x24]
push 0x13111078
push ecx
mov dword [ebx + 0x18], eax
call esi
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x12e49b86
mov eax, dword [ebx + 8]
test eax, eax
je 0x12e49b86
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x12e49b86
mov dword [ebx + 0x20], 1
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x12e49b94
mov ecx, ebx
call fcn.12e49c30
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x12e4d0d0
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x138
mov ecx, 0x10
xor eax, eax
push ebx
push ebp
mov ebx, dword [esp + 0x144]
push esi
mov esi, dword [esp + 0x14c]
push edi
mov ebp, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push eax
lea eax, [esp + 0x14]
push 0x40
push eax
push esi
push ebx
call ebp
test eax, eax
jne 0x12e4d11e
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x138
ret
cmp word [esp + 0x10], 0x5a4d
je 0x12e4d134
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x138
ret
mov edx, dword [esp + 0x4c]
mov ecx, 0x3e
xor eax, eax
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
push eax
lea ecx, [esp + 0x54]
push 0xf8
add edx, esi
push ecx
push edx
push ebx
call ebp
test eax, eax
jne 0x12e4d16d
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x138
ret
cmp dword [esp + 0x50], 0x4550
je 0x12e4d184
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x138
ret
mov eax, dword [esp + 0x66]
pop edi
not eax
shr eax, 0xd
pop esi
pop ebp
and eax, 1
pop ebx
add esp, 0x138
ret
Function at 0x12e4d1a0
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x148
mov ecx, 0x10
xor eax, eax
push ebx
push ebp
mov ebx, dword [esp + 0x154]
push esi
mov esi, dword [esp + 0x15c]
push edi
mov ebp, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push eax
lea eax, [esp + 0x14]
push 0x40
push eax
push esi
push ebx
call ebp
test eax, eax
jne 0x12e4d1ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x148
ret
cmp word [esp + 0x10], 0x5a4d
je 0x12e4d204
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x148
ret
mov edx, dword [esp + 0x4c]
mov ecx, 0x42
xor eax, eax
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
push eax
lea ecx, [esp + 0x54]
push pe_nt_image_headers32
add edx, esi
push ecx
push edx
push ebx
call ebp
test eax, eax
jne 0x12e4d23d
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x148
ret
cmp dword [esp + 0x50], 0x4550
je 0x12e4d254
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x148
ret
mov eax, dword [esp + 0x66]
pop edi
not eax
shr eax, 0xd
pop esi
pop ebp
and eax, 1
pop ebx
add esp, 0x148
ret

Function at 0x12e4d270
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x148
xor eax, eax
mov ecx, 0x10
push ebx
push ebp
mov ebx, dword [esp + 0x158]
push esi
mov esi, dword [esp + 0x160]
mov ebp, dword [esp + 0x158]
push edi
lea edi, [esp + 0x10]
push eax
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push 0x40
push eax
push esi
push ebx
push ebp
call fcn.12f21ed0
add esp, 0x1c
test eax, eax
je 0x12e4d2c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x148
ret
cmp word [esp + 0x10], 0x5a4d
je 0x12e4d2dd
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x148
ret
xor eax, eax
mov ecx, 0x42
lea edi, [esp + 0x50]
push eax
rep stosd dword es:[edi], eax
push eax
mov eax, dword [esp + 0x54]
cdq
add eax, ebx
lea ecx, [esp + 0x58]
push pe_nt_image_headers32
push ecx
adc edx, esi
push edx
push eax
push ebp
call fcn.12f21ed0
add esp, 0x1c
test eax, eax
je 0x12e4d321
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x148
ret
cmp dword [esp + 0x50], 0x4550
je 0x12e4d338
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x148
ret
mov eax, dword [esp + 0x66]
pop edi
not eax
shr eax, 0xd
pop esi
pop ebp
and eax, 1
pop ebx
add esp, 0x148
ret
Function at 0x12e50180
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x1305f398
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebp
push esi
push edi
mov edi, dword [esp + 0x48]
mov dword [esp + 0xc], ecx
xor esi, esi
push 0xffffffffffffffff
push esi
mov ecx, edi
call fcn.12f4cc10
lea ecx, [esp + 0x28]
call fcn.12f545a0
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], esi
call fcn.12f4cba0
mov eax, dword [0x130d5510]
mov ecx, dword [0x130d5514]
mov byte [esp + 0x40], 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x10]
lea edx, [esi + 0x41]
push eax
mov word [esp + 0x14], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebp, eax
cmp ebp, 3
je 0x12e50200
cmp ebp, 2
jne 0x12e50299
mov ecx, dword [esp + 0x2c]
push esi
push ecx
lea ecx, [esp + 0x30]
call fcn.12f547e0
mov edx, dword [0x1307d25c]
mov dword [esp + 0x48], edx
lea eax, [esi + 0x41]
lea ecx, [esp + 0x48]
push eax
push 0x131137dc
push ecx
mov byte [esp + 0x4c], 2
call fcn.12f4a1a0
mov eax, dword [esp + 0x28]
add esp, 0xc
lea edx, [esp + 0x48]
lea ecx, [esp + 0x18]
push edx
push eax
call fcn.12f4d1b0
push 0x130c4ed0
lea ecx, [esp + 0x4c]
call fcn.12f47e70
mov eax, dword [edi + 4]
lea ecx, [esp + 0x48]
push ecx
push eax
mov ecx, edi
call fcn.12f4d1b0
mov eax, dword [0x13198f68]
test eax, eax
je 0x12e5028b
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push ebp
push edx
add eax, 0x50
push 0x1311376c
push eax
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x14
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], 1
call fcn.12f47220
inc esi
cmp esi, 0x1a
jl 0x12e501dd
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 0
call fcn.12f4cbb0
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 0xffffffff
call fcn.12f545b0
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x12e50b70
Capabilities:
Get disk size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1305f470
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push edi
mov edi, dword [esp + 0x28]
xor ebx, ebx
mov ebp, ecx
cmp edi, ebx
jne 0x12e50bad
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
push esi
push edi
lea ecx, [esp + 0x30]
xor esi, esi
call fcn.12f46a80
push 0x5c
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], ebx
call fcn.12f483d0
cmp eax, 0xffffffff
je 0x12e50c38
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
call fcn.12f49960
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 1
call fcn.12f473b0
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], bl
call fcn.12f47220
mov edx, dword [esp + 0x2c]
push ebx
lea ecx, [esp + 0x18]
push ebx
push ecx
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x12e50c38
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x1c]
cmp eax, ecx
ja 0x12e50c36
jb 0x12e50c2f
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 0x18]
cmp ecx, eax
jae 0x12e50c36
mov esi, 1
jmp 0x12e50c38
xor esi, esi
cmp dword [0x13198f68], ebx
je 0x12e50c55
push edi
push esi
add ebp, 0x50
push 0x13113b74
push ebp
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x14
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.12f47220
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4

Function at 0x12e52790
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1305f6d8
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
je 0x12e527e2
mov edi, dword [esp + 0x20]
cmp edi, ebx
je 0x12e527e2
push eax
lea ecx, [esp + 0x20]
call fcn.12f41740
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], ebx
cmp dword [eax - 8], ebx
jne 0x12e527f6
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.12f41ea0
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x12e5282e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x12e52825
mov ebx, 1
jmp 0x12e52827
mov dword [edi], ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.12f41ea0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret
Function at 0x12e562a0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1305fc00
push eax
mov eax, dword [0x131b6070]
mov dword fs:[0], esp
sub esp, 0x28
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
je 0x12e562db
mov eax, dword [0x131b606c]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop esi
pop ebx
add esp, 0x34
ret
mov esi, 1
lea ecx, [esp + 0xc]
mov dword [0x131b6070], esi
mov dword [0x131b606c], ebx
call fcn.12e9bef0
push esi
push ebx
push ecx
mov dword [esp + 0x44], ebx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.hookapi_sslmail_ctrl
call fcn.12f46a80
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], bl
call fcn.12e9c100
lea ecx, [esp + 0xc]
call fcn.12e9c170
test eax, eax
je 0x12e56346
lea ecx, [esp + 0xc]
call fcn.12e9c660
cmp eax, esi
jne 0x12e5633b
mov dword [0x131b606c], esi
jmp 0x12e56346
cmp eax, 2
jne 0x12e56346
mov dword [0x131b606c], ebx
mov eax, dword [0x13198f68]
cmp eax, ebx
je 0x12e56369
mov eax, dword [0x131b606c]
push eax
push 0x131148b0
push 0x131148a0
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x10
mov esi, dword [0x131b606c]
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.12e9c060
mov ecx, dword [esp + 0x30]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x34
ret

Function at 0x12e57290
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
xor eax, eax
push ebp
mov dword [esp + 0xc], eax
push esi
test ebx, ebx
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
je 0x12e572be
push ebx
call fcn.12f5c44d
add esp, 4
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x12e572d3
push ebp
call fcn.12f5c44d
add esp, 4
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add edx, ecx
lea edi, [edx + edx + 0x10]
push edi
call fcn.12f5bf8b
mov esi, eax
add esp, 4
test esi, esi
jne 0x12e572f8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x10]
mov eax, esi
mov dword [eax], ecx
mov edx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x12e5733a
mov edx, dword [esi]
lea eax, [esi + 0xc]
push edx
push ebx
push eax
call fcn.12f5c4ab
add esp, 0xc
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x12e57356
mov edx, dword [esi]
mov ecx, dword [esi + 4]
push ecx
push ebp
lea eax, [esi + edx*2 + 0xe]
push eax
call fcn.12f5c4ab
add esp, 0xc
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x20]
push edx
push 0
push esi
push 0x12e57260
push 0
mov dword [esi + 8], ecx
push 0
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x12e5738a
mov edx, dword [esp + 0x20]
mov dword [ecx], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x12e57ba0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov eax, dword [ecx + 4]
sub esp, 0x40c
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
je 0x12e57cdc
mov eax, dword [esp + 0x418]
cmp eax, ebx
je 0x12e57cdc
mov esi, dword [esp + 0x41c]
cmp esi, ebx
je 0x12e57cdc
push eax
call fcn.12e57b10
test eax, eax
je 0x12e57cdc
push edi
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x12e57cce
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
cmp edx, ebx
mov dword [esp + 0x14], edx
jbe 0x12e57cc7
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebp
xor ebp, ebp
cmp edx, ebx
stosb byte es:[edi], al
jbe 0x12e57cbd
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push ebx
push eax
lea ecx, [esp + 0x24]
push 0x400
push ecx
push esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x12e57cb9
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
jbe 0x12e57cb9
xor eax, eax
cmp ecx, ebx
jbe 0x12e57c79
mov dl, byte [esp + eax + 0x1c]
inc eax
not dl
mov byte [esp + eax + 0x1b], dl
cmp eax, ecx
jb 0x12e57c6a
push ebx
push ebx
push ebp
push esi
call edi
cmp eax, 0xffffffff
je 0x12e57cb9
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push ebx
push eax
lea edx, [esp + 0x24]
push ecx
push edx
push esi
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x12e57cb9
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jne 0x12e57cb9
add ebp, eax
mov eax, dword [esp + 0x18]
cmp ebp, eax
jb 0x12e57c3d
mov edx, dword [esp + 0x18]
xor eax, eax
cmp ebp, edx
sete al
mov edi, eax
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x40c
ret 8
pop esi
xor eax, eax
pop ebx
add esp, 0x40c
ret 8