joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e794
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.0042f5bc
test byte [ebp + 0xd], 0xc0
jne 0x42e7b8
mov eax, dword [0x44cd48]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x42e7c5
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x42e7f2
je 0x42e804
sub ecx, 0x100
je 0x42e812
sub ecx, 0x100
je 0x42e819
sub ecx, 0x100
je 0x42e80b
jmp 0x42e820
sub ecx, 0x600
je 0x42e819
sub ecx, 0x100
je 0x42e804
jmp 0x42e820
mov edi, 1
jmp 0x42e825
mov edi, 2
jmp 0x42e825
mov edi, 4
jmp 0x42e825
mov edi, 5
jmp 0x42e825
mov edi, 3
test byte [ebp + 0xd], 1
je 0x42e84c
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x44c7c0]
test al, 0x80
je 0x42e845
mov ebx, 0x80
jmp 0x42e85e
mov ebx, 1
jmp 0x42e85e
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x42e85e
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x42e870
je 0x42e879
dec eax
je 0x42e882
jmp 0x42e88b
mov dword [ebp - 4], SysReAllocString
jmp 0x42e89a
mov dword [ebp - 4], 0x40000000
jmp 0x42e89a
mov dword [ebp - 4], 0xc0000000
jmp 0x42e89a
push 1
call fcn.0042f9b4
pop ecx
mov ebx, eax
jmp 0x42e98a
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x42e8b6
sub eax, 0x10
je 0x42e8bd
sub eax, 0x10
je 0x42e8c6
sub eax, 0x10
je 0x42e8cf
jmp 0x42e8cf
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x42e8d6
mov dword [ebp - 8], 1
jmp 0x42e8d6
mov dword [ebp - 8], 2
jmp 0x42e8d6
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x42e943
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x42e938
test byte [ebp + 0xd], 1
je 0x42e933
mov ebx, 0x50
jmp 0x42e938
mov ebx, 2
push ebx
call fcn.0042f9b4
pop ecx
mov ebx, eax
jmp 0x42e98a
mov edi, esi
push edi
call fcn.0042e6f8
pop ecx
test eax, eax
je 0x42e957
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x42e963
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0042f6dc
add esp, 8
mov ebx, eax
inc eax
jne 0x42e98a
push 4
call fcn.0042f9b4
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.0042f5f0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x432d78
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.0042d2c4
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.0042d354
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.0042d354
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x44da69
lea ecx, [ebp - 0x200]
push ecx
call fcn.0042d2c4
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.0042d354
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.00433f68
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x432e89
push esi
call fcn.0042d354
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.0042d354
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.0042cbe0
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x432e60
xor eax, eax
jmp 0x432f10
push esi
call fcn.0042d354
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.0042d354
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.0042d220
add esp, 0xc
jmp 0x432ec9
mov edi, dword [ebx + 0x24]
push edi
call fcn.0042d354
pop ecx
push eax
push esi
call fcn.0042d354
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.0042d354
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.0042cc00
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x432ec9
xor eax, eax
jmp 0x432f10
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.0042d2c4
add esp, 8
push 0x44da6b
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0042d2c4
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.0042d2c4
add esp, 8
push 0x44da6d
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0042d2c4
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x435e0c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x435e6e
call fcn.00435dbc
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0042d354
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0042d354
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x435eec
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x44e070], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x435fc6
cmp dword [0x44e06c], 0
jne 0x435fc6
cmp dword [0x44e164], 0
je 0x435f80
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00435cbc
add esp, 8
mov ebx, eax
test eax, eax
jne 0x435f66
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00435cbc
add esp, 8
mov ebx, eax
test eax, eax
jne 0x435f66
lea ebx, [ebp - 0x84]
jmp 0x435f67
inc ebx
call fcn.00435ea8
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x436001
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x44e074
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0042d354
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x44e077
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x436001
cmp dword [0x44e06c], 0
je 0x435fe0
cmp dword [0x44e06c], 0xffffffff
je 0x436001
push esi
call dword [0x44e06c]
pop ecx
mov eax, dword [0x44e070]
test eax, eax
je 0x436001
cmp dword [0x44e070], 0xffffffff
je 0x436001
cmp byte [eax], 0
je 0x436001
push esi
push eax
call fcn.00435e0c
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x436a60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 8], 1
mov dword [ebp - 4], esi
cmp edi, 1
jne 0x436ae6
mov eax, dword [0x451590]
inc dword [0x451590]
test eax, eax
jne 0x436ae6
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x45155c], eax
mov edx, dword [ebp + 0x10]
mov dword [0x43c087], edx
mov ecx, dword [esi + 0x44]
push ecx
call fcn.0042efcc
pop ecx
cmp dword [0x44e0ac], 0
je 0x436ad1
call fcn.004368e4
mov ebx, eax
test eax, eax
je 0x436ad1
mov edx, dword [ebx]
cmp dword [ebx + edx*4 + 4], 0xffffffff
je 0x436ad1
mov ecx, dword [ebx]
inc dword [ebx]
mov dword [ebx + ecx*4 + 4], esi
jmp 0x436ae6
xor eax, eax
lea edx, [ebp - 8]
push 0
push edx
mov dword [0x44e0ac], eax
call fcn.004368ec
add esp, 8
mov ecx, dword [ebp + 0x18]
push ecx
push edi
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [esi + 0x18]
push edx
call fcn.00436bf4
mov ebx, eax
test edi, edi
jne 0x436b55
test edi, edi
jne 0x436b26
dec dword [0x451590]
jne 0x436b26
cmp dword [0x45155c], 0
je 0x436b26
mov eax, dword [0x45155c]
push eax
call sub.KERNEL32.DLL_FreeEnvironmentStringsA
xor edx, edx
mov dword [0x45155c], edx
cmp dword [0x451590], 0
jne 0x436b55
cmp dword [0x44e0ac], 0
jne 0x436b55
cmp dword [0x44e09c], 0
je 0x436b47
call dword [0x44e09c]
push 1
lea ecx, [ebp - 8]
push ecx
call fcn.004368ec
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x10008aa2
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x1001b460
call fcn.1000d1f0
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [0x1001a054]
test eax, eax
je 0x10008afd
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x10008af9
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x10008af9
cmp word [eax + 0x14], 0
jne 0x10008aee
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x10008aff
mov eax, ecx
jmp 0x10008ae8
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.1000d22b
ret

Function at 0x10009770
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1001946b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
mov eax, dword [0x100213c0]
xor eax, esp
mov dword [esp + 0x160], eax
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
xor ecx, ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
xor eax, eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x50], ecx
lea edx, [esp]
mov dword [esp + 0x34], eax
mov dword [esp + 0x54], ecx
push edx
lea eax, [esp + 0x64]
mov dword [esp + 0x5c], ecx
push eax
mov dword [esp + 0x174], 0
mov dword [esp + 0x64], ecx
mov dword [esp + 8], 0x100
call dword [0x1001a0c4]
lea eax, [esp + 0x60]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10009817
sub eax, edx
push eax
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x10]
call fcn.10001aa0
push 8
push str.COMSCORE
lea ecx, [esp + 0x10]
call fcn.10004e00
cmp dword [esp + 0x20], 0x10
mov eax, dword [esp + 0xc]
jae 0x1000984e
lea eax, [esp + 0xc]
mov ecx, dword [esp + 0x1c]
push esi
lea edx, [esp + 0x28]
push edx
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.1000a1b1
lea edx, [esp + 0x3c]
push edx
push 0x10
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.1000a1e5
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov esi, eax
cmp dword [esp + 0x24], 0x10
jb 0x10009896
mov ecx, dword [esp + 0x10]
push ecx
call fcn.1000c323
add esp, 4
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x164]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1000bf54
add esp, 0x170
ret

Function at 0x1000a079
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret 4
Function at 0x1001050d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x1001053b
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x10010542
cmp ebx, dword [eax + 4]
jae 0x10010542
xor eax, eax
jmp 0x10010732
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x10010553
xor eax, eax
inc eax
jmp 0x10010731
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x10010569
cmp ecx, edx
jae 0x100106ae
cmp dword [eax + 4], 0
je 0x10010572
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x1001055a
cmp dword [ebp + 8], 0
je 0x10010594
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x100106ae
cmp eax, esi
jae 0x100106ae
mov eax, dword [0x10022640]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x100105b9
cmp dword [esi*4 + 0x10022648], edi
je 0x100106b2
inc esi
cmp esi, eax
jl 0x100105a7
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x1001a054]
test eax, eax
je 0x1001072e
cmp dword [ebp - 8], 0x1000000
jne 0x1001072e
test byte [ebp - 0xc], 0xcc
je 0x10010637
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x1001072e
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1001072e
cmp word [eax + 0x18], 0x10b
jne 0x1001072e
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x1001072e
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x10010637
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x10010637
test byte [ecx + 0x27], 0x80
jne 0x100106ae
push 1
push 0x10022688
call dword [0x1001a08c]
test eax, eax
jne 0x1001054b
mov ecx, dword [0x10022640]
test ecx, ecx
mov edx, ecx
jle 0x1001066b
lea eax, [ecx*4 + 0x10022644]
cmp dword [eax], edi
je 0x1001066b
dec edx
sub eax, 4
test edx, edx
jg 0x1001065f
test edx, edx
jne 0x1001069c
push 0xf
pop ebx
cmp ecx, ebx
jg 0x10010678
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x10010690
lea eax, [edx*4 + 0x10022648]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x1001067e
cmp ecx, 0x10
jge 0x1001069c
inc ecx
mov dword [0x10022640], ecx
push 0
push 0x10022688
call dword [0x1001a08c]
jmp 0x1001054b
xor eax, eax
jmp 0x10010731
test esi, esi
jle 0x1001054b
mov ebx, dword [0x1001a08c]
push 1
push 0x10022688
call ebx
test eax, eax
jne 0x1001054b
cmp dword [esi*4 + 0x10022648], edi
je 0x10010708
mov eax, dword [0x10022640]
lea esi, [eax - 1]
test esi, esi
jl 0x100106f6
cmp dword [esi*4 + 0x10022648], edi
je 0x100106f2
dec esi
jns 0x100106e6
test esi, esi
jge 0x10010706
cmp eax, 0x10
jge 0x10010701
inc eax
mov dword [0x10022640], eax
lea esi, [eax - 1]
jmp 0x10010708
je 0x10010720
xor ecx, ecx
test esi, esi
jl 0x10010720
lea eax, [ecx*4 + 0x10022648]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x1001070e
push 0
push 0x10022688
call ebx
jmp 0x1001054b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401370
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 8], 0
je 0x401397
mov eax, dword [0x410034]
inc dword [0x410034]
test eax, eax
jne 0x4013af
mov eax, dword [esp + 4]
push 0
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
ret
dec dword [0x410034]
jne 0x4013af
mov eax, dword [esp + 4]
push 1
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x4013b0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0xec
lea eax, [esp]
push ebx
mov dword [esp + 4], 0x94
push esi
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x20], 2
jne 0x4013e2
cmp dword [esp + 0x14], 3
jne 0x4013e2
cmp dword [esp + 0x18], 0x33
je 0x4013f7
cmp dword [esp + 0x20], 1
jne 0x401403
cmp dword [esp + 0x14], 4
jne 0x401403
cmp dword [esp + 0x18], 0
jne 0x401403
mov dword [0x4110a4], 1
jmp 0x40140d
mov dword [0x4110a4], 0
mov edi, dword [esp + 0x100]
cmp dword [edi + 0x344], 0
je 0x401535
push 1
push edi
call fcn.00401370
add esp, 8
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
mov ebx, dword [sym.imp.USER32.dll_SetCursor]
call ebx
mov esi, eax
push 0
push 0
mov eax, dword [edi + 8]
push 0x1009
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push eax
call ebp
push 0
mov eax, dword [edi + 8]
push 0
push 0x101c
push eax
call ebp
test eax, eax
jne 0x401459
push edi
call fcn.00401540
add esp, 4
test byte [edi + 0x338], 0x20
je 0x40149b
lea eax, [esp + 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0xdc]
mov dword [0x411098], ecx
jmp 0x4014a5
mov dword [0x411098], 1
lea eax, [esp + 0xa4]
push 0x32
test byte [edi + 0x338], 0x20
push eax
je 0x4014bf
push 0x273a
jmp 0x4014c4
push 0x2739
mov ecx, dword [edi]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 0xa4]
mov ecx, dword [edi + 0xc]
push eax
push 0
push 0x401
push ecx
call ebp
mov ecx, dword [edi + 0x344]
mov ebp, dword [ecx + 0x14]
test ebp, ebp
je 0x4014f6
call fcn.004054e0
jmp 0x4014fa
mov eax, dword [esp + 0x10]
mov dword [0x41109c], 1
mov ecx, ebp
dec ebp
test ecx, ecx
jle 0x401527
push eax
push edi
call fcn.004018d0
add esp, 8
mov ecx, dword [edi + 0x344]
call fcn.004054f0
mov ecx, ebp
dec ebp
test ecx, ecx
jg 0x40150b
push esi
call ebx
push 0
push edi
call fcn.00401370
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xec
ret
Function at 0x403390
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40343b
push eax
mov dword fs:[0], esp
sub esp, 4
push esi
push edi
mov dword [ebp - 0x10], ecx
mov esi, ecx
lea ecx, [ecx + 0x38]
call fcn.00404770
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.004034f0
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x24], eax
test eax, eax
je 0x403422
push str.InitializeProcessForWsWatch
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.GetWsChanges
mov dword [esi], eax
mov eax, dword [esi + 0x24]
push eax
call edi
push str.EmptyWorkingSet
mov dword [esi + 4], eax
mov eax, dword [esi + 0x24]
push eax
call edi
push str.QueryWorkingSet
mov dword [esi + 8], eax
mov eax, dword [esi + 0x24]
push eax
call edi
push str.RecordProcessInfo
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x24]
push eax
call edi
mov dword [esi + 0x10], eax
mov eax, esi
pop edi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4034f0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push esi
push edi
mov esi, ecx
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x24], edi
mov dword [esi + 0x34], ecx
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x74], edi
push 0x8000
mov dword [esi + 0x78], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x18], 0x8000
call fcn.00407a30
add esp, 4
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x20], 0x8000
push ecx
mov dword [esi + 0x14], eax
call fcn.00407a30
add esp, 4
mov dword [esi + 0x1c], eax
mov dword [esi + 0x2c], 0x2800
push 0x2800
call fcn.00407a30
add esp, 4
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], edi
pop edi
pop esi
add esp, 0x24
ret
Function at 0x403ef0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
push ebp
push str.Process
call fcn.00404140
push eax
mov ebx, 0xffff
lea eax, [esp + 0x18]
push str._03lu
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov esi, eax
test esi, esi
jne 0x403f31
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebp, dword [sym.imp.ole32.dll_CoTaskMemRealloc]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], ebx
push eax
push esi
push 0
push 0
push ecx
push CreateStatusWindowA
call edi
cmp eax, 0xea
jne 0x403f78
add ebx, 0x1000
push ebx
push esi
call ebp
mov esi, eax
test esi, esi
jne 0x403f3d
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
test eax, eax
jne 0x403fa5
test ebx, ebx
je 0x403fa5
cmp word [esi], 0x50
jne 0x403fa5
cmp word [esi + 2], 0x45
jne 0x403fa5
cmp word [esi + 4], 0x52
jne 0x403fa5
cmp word [esi + 6], 0x46
jne 0x403fa5
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x404140
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov dword [esp + 4], 0
lea eax, [esp]
push ebx
push esi
push edi
push ebp
xor edi, edi
mov dword [esp + 0x10], edi
push eax
push edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
push edi
push str.Counter_009
push CreateStatusWindowA
call esi
test eax, eax
jne 0x4041e8
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov edi, eax
test edi, edi
je 0x4041f3
lea eax, [esp + 0x10]
push eax
push edi
push 0
push 0
push str.Counter_009
push CreateStatusWindowA
call esi
test eax, eax
jne 0x4041e8
mov esi, edi
push edi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
call ebp
lea ebx, [edi + eax + 1]
cmp byte [ebx], 0
je 0x4041e8
mov eax, dword [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4041d7
push ebx
call ebp
lea esi, [ebx + eax + 1]
push esi
call ebp
lea ebx, [esi + eax + 1]
cmp byte [ebx], 0
jne 0x4041b2
jmp 0x4041e8
push 0xa
push 0
push esi
call fcn.00407d50
mov dword [esp + 0x20], eax
add esp, 0xc
test edi, edi
je 0x4041f3
push edi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 4