joyce8/EMBER2024-capa huggingface dataset:
Function at 0x294267
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0x2ab00c], esi
jne 0x2942be
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x292c6f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x2ab00c], eax
cmp eax, esi
je 0x29e4ec
push 0xffffffffffffffff
push dword [0x2ab014]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x2ab014]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [0x2ab018], esi
jl 0x29e50a
pop esi
leave
ret

Function at 0x294441
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x294498
call fcn.00292712
xor eax, eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x294490
cmp ecx, 0xffffffff
je 0x294490
and dword [ebp - 4], eax
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x294489
mov edx, dword [ecx + 0x3c]
test edx, edx
jl 0x294489
cmp edx, 0x10000000
jae 0x294489
lea eax, [edx + ecx]
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x29e892
mov dword [ebp - 4], 0xfffffffe
call fcn.00292757
ret 4

Function at 0x29681f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x2ab004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, ecx
inc eax
cmp dword [esi + 0x2c], 0
jne 0x296933
push edi
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x105
push edi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x420], eax
cmp eax, edi
ja 0x29ed16
lea eax, [ebp - 0x41c]
push eax
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.002921cb
test eax, eax
jl 0x296932
mov ecx, dword [ebp - 0x420]
cmp word [ebp + ecx*2 - 0x210], 0x5c
je 0x2968c3
push 0x296994
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00292436
test eax, eax
jl 0x296932
push 0x296980
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00292436
test eax, eax
jl 0x296932
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x29ed20
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x296970
push eax
call edi
push 0x29695c
push dword [esi + 0x2c]
mov dword [esi + 0x30], eax
call edi
push 0x296948
push dword [esi + 0x2c]
mov dword [esi + 0x34], eax
call edi
cmp dword [esi + 0x30], 0
mov dword [esi + 0x38], eax
je 0x296940
cmp dword [esi + 0x34], 0
je 0x296940
test eax, eax
je 0x296940
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.002920d4
leave
ret
mov eax, 0x8007007f
jmp 0x296932
Function at 0x2971f8
Capabilities:
Identify system language via api

Disassembly:
push 0x2c
mov eax, 0x2a608c
call fcn.002939dd
lea ecx, [ebp - 0x34]
call fcn.00296c55
and dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push 0
call fcn.0029758b
test eax, eax
jl 0x29722c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.002972a7
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
mov eax, 0x409
mov edi, 0x297298
cmp ax, si
jne 0x29e4b4
and esi, 0x3ff
push esi
push edi
lea eax, [ebp - 0x30]
push 8
push eax
call fcn.00291451
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0029758b
mov esi, eax
test esi, esi
jl 0x297280
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.002972a7
mov esi, eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call fcn.0029760b
mov eax, esi
call fcn.00292b9f
ret

Function at 0x29791d
Capabilities:
Identify system language via api

Disassembly:
lea eax, [ebp - 0x30]
push eax
call esi
push 8
pop eax
push dword [ebp + 0x10]
mov word [ebp - 0x30], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x29dc4f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0x82
lea edx, [ebp - 0x30]
push edx
push 0x297900
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call edi
cmp esi, ebx
jl 0x2979a8
push 1
lea ecx, [ebp - 0x20]
call fcn.002979e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x2978ec
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.002971e0
cmp esi, ebx
jl 0x2979a8
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
push 3
movzx eax, ax
pop ecx
mov word [ebp - 0x20], cx
mov dword [ebp - 0x18], eax
jmp 0x297992
push 0x24
mov eax, 0x2a5c85
call fcn.002926dd
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x20]
push eax
call esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
mov dword [ebp - 0x10], ebx
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp + 0xc], ebx
je 0x297854
push 1
lea ecx, [ebp - 0x20]
call fcn.002979e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x293984
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jl 0x2979a6
push 3
pop eax
mov word [ebp - 0x20], ax
mov dword [ebp - 0x18], 0x409
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x20]
push edx
push 0x2979d0
push eax
call dword [ecx + 0x10]
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00297455
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.002971e0
mov eax, esi
call fcn.00291390
ret 0xc
Function at 0x297b05
Capabilities:
Identify system language via api

Disassembly:
push 0x50
mov eax, 0x2a5fc0
call fcn.002939dd
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x5c], ecx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x54], esi
call fcn.00297c2b
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x58]
mov ebx, eax
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x297b34
sub eax, ecx
sar eax, 1
mov edi, eax
je 0x297b63
movzx eax, word [ebx + esi*2]
push eax
call dword [sym.imp.msvcrt.dll_iswxdigit]
pop ecx
test eax, eax
je 0x297b5b
inc esi
cmp esi, edi
jb 0x297b46
cmp esi, edi
jb 0x297c0e
xor eax, eax
mov edx, ebx
test edi, edi
jbe 0x297c0e
cmp word [edx], 0x30
jne 0x297b7c
inc eax
inc edx
inc edx
cmp eax, edi
jb 0x297b6f
cmp eax, edi
jae 0x297c0e
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x297b89
sub eax, esi
sar eax, 1
cmp eax, 3
ja 0x297c0e
push 0x10
push 0
push edx
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
movzx esi, ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp cx, si
jne 0x297c03
movzx eax, ax
movzx eax, ax
push eax
push 0x297c18
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.00291451
mov ecx, dword [ebp - 0x5c]
add esp, 0x10
lea eax, [ebp - 0x50]
push eax
call fcn.00296c60
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.0029760b
mov eax, dword [ebp - 0x54]
call fcn.00292b9f
ret 8
or esi, 0x400
movzx eax, si
jmp 0x297bc6
mov dword [ebp - 0x54], 0x80041001
jmp 0x297be9
Function at 0x297f3e
Capabilities:
Create directory

Disassembly:
push 0x10
mov eax, 0x2a6a7d
call fcn.00291350
mov dword [ebp - 0x1c], ecx
xor esi, esi
mov ebx, 0x8007000e
mov dword [ebp - 0x14], esi
cmp dword [ebp + 8], esi
je 0x298046
push 1
call fcn.0029227c
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x29803c
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea esi, [eax + edi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.002913e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x297fcd
push dword [ebp - 0x18]
inc edi
push edi
push eax
call fcn.002921cb
mov ebx, eax
test ebx, ebx
jl 0x298024
push dword [ebp + 8]
push esi
push dword [ebp - 0x14]
call fcn.00292436
mov ebx, eax
test ebx, ebx
jl 0x298024
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x298024
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x297ff6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x29f33c
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x298024
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x44], eax
cmp eax, 0xffffffff
je 0x29f353
cmp dword [ebp - 0x14], 0
je 0x298033
push dword [ebp - 0x14]
call fcn.002913c0
pop ecx
push dword [ebp - 0x18]
call fcn.002913c0
pop ecx
mov eax, ebx
call fcn.00291390
ret 4
mov ebx, 0x80070057
jmp 0x29803c

Function at 0x2985f1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x2ab004]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
test eax, eax
je 0x298684
cmp eax, 0xffffffff
je 0x298684
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x298684
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
and dword [ebp - 0xc], 0
push ebx
call esi
push ebx
mov dword [ebp - 0x10], eax
call esi
lea esi, [eax + eax + 2]
mov eax, esi
call fcn.002985b5
mov eax, esp
push esi
push ebx
push eax
call fcn.00298692
mov esi, dword [ebp - 0x10]
mov edi, dword [edi + 0x44]
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x29f2da
cmp esi, dword [ebp - 0xc]
jne 0x29f2f6
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.002920d4
leave
ret 4
mov dword [ebp - 8], 0x80070057
jmp 0x29866d
Function at 0x2988ef
Capabilities:
Get geographical location

Disassembly:
push 0x210
mov eax, 0x2a6be9
call fcn.002920e6
xor eax, eax
push 0x1fe
mov word [ebp - 0x214], ax
xor ebx, ebx
lea eax, [ebp - 0x212]
push ebx
push eax
call sub.msvcrt.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
push 0x100
lea eax, [ebp - 0x214]
push eax
push 0x1001
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x214]
and esi, 0x3ff
push eax
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 7
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.002913e0
mov edi, eax
pop ecx
cmp edi, ebx
je 0x298999
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x21c]
push 0x2989a4
push esi
push edi
call fcn.00291451
add esp, 0x14
mov eax, edi
call fcn.00292126
ret 4
Function at 0x2a0d7d
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [ecx + eax + 0x18]
test esi, esi
jbe 0x2a0dba
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x2a0db2
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x2a0dbc
inc edx
add eax, 0x28
cmp edx, esi
jb 0x2a0da2
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0xdb11a8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0xdb1510
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x34]
call fcn.00c31264
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x280]
jne 0xdb11f6
test bl, bl
jne 0xdb1214
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.008b6bb0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xd4]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], eax
jmp 0xdb121c
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x14], edx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.008b6bb0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov byte [eax + 0xc], bl
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xd4]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x10]
add eax, 0x1c
mov edx, dword [ebp - 0x18]
mov ecx, 0x65
call fcn.00408430
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xcc]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xd0]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xec]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xf0]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xf4]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xd4]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x10]
mov eax, dword [0xe3668c]
mov eax, dword [eax]
call fcn.00a144a0
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0xdb12ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x34]
mov edx, dword [ebp - 0xc]
call fcn.00446e8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xdb1306
mov eax, dword [0xe3668c]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
call fcn.00a12704
ret
Function at 0xdb4004
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00408208
lea eax, [ebp - 0x40]
mov edx, dword [0xa10840]
call fcn.00409084
xor eax, eax
push ebp
push 0xdb419f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0xe36c5c]
mov eax, dword [eax]
movzx eax, word [eax + 0x48]
mov word [ebp - 0x4a], ax
mov eax, dword [0xe36c5c]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.005a7da8
xor edx, edx
push ebp
push 0xdb4174
push dword fs:[edx]
mov dword fs:[edx], esp
lea ecx, [ebp - 0x40]
mov eax, dword [0xe3668c]
mov eax, dword [eax]
mov edx, ebx
call fcn.00a14fd8
mov eax, dword [ebp - 0x10]
and eax, 1
dec eax
jne 0xdb409e
push 0
mov eax, dword [ebp - 4]
call fcn.004082ac
push eax
mov eax, dword [ebp - 0x34]
call fcn.004082ac
push eax
call sub.KERNEL32.DLL_CopyFileW
call fcn.00406844
jmp 0xdb417b
mov eax, dword [0xe3668c]
mov eax, dword [eax]
mov edx, ebx
call fcn.00a12874
mov dword [ebp - 0x44], eax
xor eax, eax
push ebp
push 0xdb414f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp + 8], 0
je 0xdb4127
mov dl, 1
mov eax, dword [0x43a0c8]
call fcn.00405b84
mov dword [ebp - 0x48], eax
xor eax, eax
push ebp
push 0xdb4120
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0xe35c9c]
mov edx, dword [edx]
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
call fcn.00a0fbf4
push 0
push 0
mov eax, dword [ebp - 0x48]
call fcn.004461d4
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x48]
call fcn.00d58594
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xdb4132
mov eax, dword [ebp - 0x48]
call fcn.00405bb4
ret
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x44]
call fcn.00d58594
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xdb4156
mov eax, dword [0xe3668c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x44]
call fcn.00a12704
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xdb41a6
lea eax, [ebp - 0x40]
mov edx, dword [0xa10840]
call fcn.0040915c
lea eax, [ebp - 4]
call fcn.00408210
ret
Function at 0xdb4320
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0xdb4438
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0xdb4415
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov eax, ebx
call fcn.006153ac
mov esi, eax
cmp byte [ebp + 8], 0
je 0xdb43ae
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x14]
push eax
lea edx, [ebp - 0x1c]
mov eax, dword [0xe3668c]
mov eax, dword [eax]
call fcn.00a13ca0
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.00419578
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 4]
pop edx
call fcn.00419a78
jmp 0xdb43c7
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 4]
call fcn.008c590c
mov edx, esi
mov eax, dword [ebx + 0x4a0]
call fcn.008c89b0
mov edx, eax
mov eax, ebx
call fcn.006166c0
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0061429c
mov edx, esi
mov eax, ebx
call fcn.00615328
push 0
push 0xd
push pe_nt_image_headers32
mov eax, ebx
call fcn.00581810
push eax
call sub.user32.dll_SendMessageW
inc dword [ebp - 0xc]
dec dword [ebp - 0x10]
jne 0xdb4365
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xdb443f
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00408218
lea eax, [ebp - 4]
call fcn.00408210
ret
Function at 0xdbe7d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor edx, edx
push ebp
push 0xdbe97c
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
xchg edx, eax
call fcn.008b500c
mov esi, eax
test esi, esi
je 0xdbe959
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.008b6bb0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 0xc]
call fcn.00dbdd4c
lea eax, [ebp - 4]
xor edx, edx
call fcn.00408274
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.008b6cec
mov ebx, eax
sub ebx, 2
test ebx, ebx
jl 0xdbe851
inc ebx
lea eax, [ebp - 4]
mov edx, 0xdbe998
call fcn.00408644
dec ebx
jne 0xdbe841
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x80c]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00613a18
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x80c]
call fcn.006153ac
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x80c]
mov eax, dword [eax + 0x4a0]
mov edx, dword [ebp - 8]
call fcn.008c89b0
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x80c]
call fcn.006166c0
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
add eax, 0xd8
call fcn.0041725c
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 0xdbe9b8
call fcn.00408704
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov ecx, 0x65
call fcn.00408430
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x80c]
pop ecx
call fcn.0061429c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x80c]
mov edx, dword [ebp - 8]
call fcn.00615328
push 0
push 0xd
push pe_nt_image_headers32
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x80c]
call fcn.00581810
push eax
call sub.user32.dll_SendMessageW
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.008a0274
test al, al
je 0xdbe942
mov eax, dword [ebp + 8]
push eax
mov eax, esi
call fcn.00dbe7d0
pop ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.008b6310
mov esi, eax
test esi, esi
jne 0xdbe802
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xdbe983
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00408218
lea eax, [ebp - 4]
call fcn.00408210
ret
Function at 0x40eaa7
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestTemplateLib.exe_gMozillaPoisonSize], eax
call fcn.0040ae7c
pop ecx
mov ecx, dword [sym.TestTemplateLib.exe_gMozillaPoisonSize]
mov dword [sym.TestTemplateLib.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40eadf
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestTemplateLib.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x59ad5d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5ad208]
jne 0x59ad67
repz ret
jmp fcn.0059d6ae

Function at 0x59e03f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00599ac6
and dword [ebp - 4], 0
cmp dword [0x5ae5cc], 0
mov ebx, eax
jne 0x59e0f0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x59e1a1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x59e1a1
push eax
call fcn.00599a54
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5ae5cc], eax
call esi
push eax
call fcn.00599a54
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5ae5d0], eax
call esi
push eax
call fcn.00599a54
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5ae5d4], eax
call esi
push eax
call fcn.00599a54
pop ecx
mov dword [0x5ae5dc], eax
test eax, eax
je 0x59e0f0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00599a54
pop ecx
mov dword [0x5ae5d8], eax
mov eax, dword [0x5ae5d8]
cmp eax, ebx
je 0x59e148
cmp dword [0x5ae5dc], ebx
je 0x59e148
push eax
call fcn.00599acf
push dword [0x5ae5dc]
mov esi, eax
call fcn.00599acf
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x59e148
test edi, edi
je 0x59e148
call esi
test eax, eax
je 0x59e13f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x59e13f
test byte [ebp - 0xc], 1
jne 0x59e148
or dword [ebp + 0x10], 0x200000
jmp 0x59e181
mov eax, dword [0x5ae5d0]
cmp eax, ebx
je 0x59e181
push eax
call fcn.00599acf
pop ecx
test eax, eax
je 0x59e181
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x59e181
mov eax, dword [0x5ae5d4]
cmp eax, ebx
je 0x59e181
push eax
call fcn.00599acf
pop ecx
test eax, eax
je 0x59e181
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5ae5cc]
call fcn.00599acf
pop ecx
test eax, eax
je 0x59e1a1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x59e1a3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret