joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dff0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x40e000
xor eax, eax
jmp 0x40e19d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x40e15e
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x448f98]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x448f98]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x448f98]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x448f98]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x448f98]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x448f98]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x448f98]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x448f98]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x40e009
cmp dword [ebp + 0x10], 0
je 0x40e197
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x448f98]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x40e164
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x40e1a0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
imul ecx, eax, 0
movsx edx, byte [ebp + 0xc]
mov eax, dword [ebp + 8]
xor edx, dword [eax + ecx]
and edx, 0xff
mov ecx, 4
imul eax, ecx, 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax]
shr eax, 8
xor eax, dword [edx*4 + 0x448f98]
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + edx], eax
mov edx, 4
shl edx, 0
mov eax, 4
imul ecx, eax, 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + ecx]
and ecx, 0xff
mov eax, dword [ebp + 8]
add ecx, dword [eax + edx]
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
mov dword [eax + edx], ecx
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
imul eax, dword [edx + ecx], 0x8088405
add eax, 1
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
mov eax, 4
shl eax, 1
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
mov ecx, dword [edx + ecx]
shr ecx, 0x18
mov edx, dword [ebp + 8]
xor ecx, dword [edx + eax]
and ecx, 0xff
mov eax, 4
shl eax, 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax]
shr eax, 8
xor eax, dword [ecx*4 + 0x448f98]
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
pop ebp
ret

Function at 0x40f290
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
movzx edx, byte [ecx]
test edx, edx
je 0x40f2df
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40f2d5
mov edx, dword [ebp + 0x14]
mov byte [edx + 8], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x40f339
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
cmp ecx, dword [edx + 0x18]
jbe 0x40f2ff
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x18]
sub edx, dword [ecx + 0x1c]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp + 0x14]
add edx, dword [eax + 0x1c]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042d0a0
add esp, 0xc
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 8]
xor edx, edx
div dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x410bf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push edi
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x410c0b
mov ecx, dword [ebp - 8]
cmp dword [ecx + 4], 0xffffffff
je 0x410c15
mov eax, 0x1000000
jmp 0x410d30
mov edx, dword [ebp - 8]
add edx, 0x140
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [ebp - 8]
add eax, 0x140
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0xc]
mov al, byte [edx]
mov byte [ebp - 2], al
add dword [ebp - 0xc], 1
cmp byte [ebp - 2], 0
jne 0x410c3e
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x20]
mov al, byte [edx + 0x13f]
mov byte [ebp - 1], al
movsx ecx, byte [ebp - 1]
cmp ecx, 0x5c
je 0x410ca4
movsx edx, byte [ebp - 1]
cmp edx, 0x2f
je 0x410ca4
mov eax, dword [ebp - 8]
add eax, 0x13f
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dl, byte [ecx + 1]
mov byte [ebp - 3], dl
add dword [ebp - 0x10], 1
cmp byte [ebp - 3], 0
jne 0x410c85
mov edi, dword [ebp - 0x10]
mov ax, word [0x448bec]
mov word [edi], ax
cmp dword [ebp + 0x10], 1
jne 0x410ce8
push 1
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x410ccc
mov dword [ebp - 0x14], 1
jmp 0x410cd3
mov dword [ebp - 0x14], 0
mov dl, byte [ebp - 0x14]
mov byte [ebp - 4], dl
movzx eax, byte [ebp - 4]
test eax, eax
jne 0x410ce8
mov eax, 0x2000000
jmp 0x410d30
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040ef60
add esp, 0x10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x410d0e
mov eax, dword [ebp - 0x28]
jmp 0x410d30
mov edx, dword [ebp - 0x18]
push edx
call fcn.0040f650
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov edx, dword [ebp - 8]
cmp dword [edx], 0
jne 0x410d2e
mov eax, 0x200
jmp 0x410d30
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x413340
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x452550]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x2c]
push ecx
push 0
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x41339b
cmp dword [ebp - 0x30], 0x6f
je 0x41339b
xor eax, eax
jmp 0x413471
mov edx, dword [ebp - 0x2c]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4133b7
xor eax, eax
jmp 0x413471
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
je 0x4133da
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x413471
mov eax, 1
imul ecx, eax, 5
mov edx, dword [ebp - 0x28]
movzx eax, byte [edx + ecx + 0x194]
push eax
mov ecx, 1
shl ecx, 2
mov edx, dword [ebp - 0x28]
movzx eax, byte [edx + ecx + 0x194]
push eax
mov ecx, 1
imul edx, ecx, 3
mov eax, dword [ebp - 0x28]
movzx ecx, byte [eax + edx + 0x194]
push ecx
mov edx, 1
shl edx, 1
mov eax, dword [ebp - 0x28]
movzx ecx, byte [eax + edx + 0x194]
push ecx
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 0x28]
movzx ecx, byte [eax + edx + 0x194]
push ecx
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0x28]
movzx edx, byte [ecx + eax + 0x194]
push edx
push str._02X_02X_02X_02X_02X_02X
mov eax, dword [ebp + 8]
push eax
call fcn.00403970
add esp, 0x20
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004279e7
mov esp, ebp
pop ebp
ret
Function at 0x4134d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
pushal
mov ebx, dword fs:[0x18]
mov eax, dword fs:[0x30]
mov ebx, dword [eax + 0xa8]
mov eax, dword [eax + 0xa4]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], eax
popal
cmp dword [ebp - 8], 5
jne 0x41354c
cmp dword [ebp - 0xc], 0
jne 0x41354c
push str.415623
mov ecx, dword [ebp + 8]
call fcn.004046f0
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
jmp 0x413639
cmp dword [ebp - 8], 5
jne 0x41357b
cmp dword [ebp - 0xc], 1
jne 0x41357b
push 0x44a934
mov ecx, dword [ebp + 8]
call fcn.004046f0
mov ecx, dword [ebp - 4]
or ecx, 1
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
jmp 0x413639
cmp dword [ebp - 8], 5
jne 0x4135a7
cmp dword [ebp - 0xc], 2
jne 0x4135a7
push 0x44a938
mov ecx, dword [ebp + 8]
call fcn.004046f0
mov edx, dword [ebp - 4]
or edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
jmp 0x413639
cmp dword [ebp - 8], 6
jne 0x4135d0
cmp dword [ebp - 0xc], 0
jne 0x4135d0
push 0x44a93c
mov ecx, dword [ebp + 8]
call fcn.004046f0
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
jmp 0x413639
cmp dword [ebp - 8], 6
jne 0x4135f9
cmp dword [ebp - 0xc], 1
jne 0x4135f9
push 0x44a940
mov ecx, dword [ebp + 8]
call fcn.004046f0
mov ecx, dword [ebp - 4]
or ecx, 1
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
jmp 0x413639
cmp dword [ebp - 8], 6
jne 0x413620
cmp dword [ebp - 0xc], 2
jne 0x413620
push 0x44a944
mov ecx, dword [ebp + 8]
call fcn.004046f0
mov edx, dword [ebp - 4]
or edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
jmp 0x413639
push 0x44a948
mov ecx, dword [ebp + 8]
call fcn.004046f0
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413860
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d326
mov eax, dword fs:[0]
push eax
mov eax, 0x1138
call fcn.0042c040
mov eax, dword [0x452550]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1118]
call fcn.004046f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1118]
call fcn.00414550
lea ecx, [ebp - 0x112c]
push ecx
push 0x1000
lea edx, [ebp - 0x1114]
push edx
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x4138f4
mov dword [ebp - 0x1140], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1118]
call fcn.00403d40
mov eax, dword [ebp - 0x1140]
jmp 0x413aa8
mov eax, dword [ebp - 0x112c]
shr eax, 2
mov dword [ebp - 0x113c], eax
mov cl, byte [0x447fdf]
mov byte [ebp - 0x114], cl
push 0x103
push 0
lea edx, [ebp - 0x113]
push edx
call fcn.00429610
add esp, 0xc
lea ecx, [ebp - 0x111c]
call fcn.00403ba0
mov byte [ebp - 4], 1
mov dword [ebp - 0x1128], 0
mov dword [ebp - 0x1124], 0
jmp 0x413959
mov eax, dword [ebp - 0x1124]
add eax, 1
mov dword [ebp - 0x1124], eax
mov ecx, dword [ebp - 0x1124]
cmp ecx, dword [ebp - 0x113c]
jae 0x413a75
mov edx, dword [ebp - 0x1124]
mov eax, dword [ebp + edx*4 - 0x1114]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1120], eax
cmp dword [ebp - 0x1120], 0
je 0x413a70
lea ecx, [ebp - 0x1144]
push ecx
push 4
lea edx, [ebp - 0x1134]
push edx
mov eax, dword [ebp - 0x1120]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x413a63
push 0x104
lea ecx, [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x1134]
push edx
mov eax, dword [ebp - 0x1120]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x111c]
call fcn.004046d0
lea ecx, [ebp - 0x111c]
call fcn.00414550
push 0
lea ecx, [ebp - 0x111c]
call fcn.004031a0
push eax
lea ecx, [ebp - 0x1118]
call fcn.00402b40
cmp eax, 0xffffffff
je 0x413a63
mov dword [ebp - 0x1128], 1
mov edx, dword [ebp - 0x1120]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1138], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x111c]
call fcn.00403d40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1118]
call fcn.00403d40
mov eax, dword [ebp - 0x1138]
jmp 0x413aa8
mov eax, dword [ebp - 0x1120]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41394a
mov ecx, dword [ebp - 0x1128]
mov dword [ebp - 0x1130], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x111c]
call fcn.00403d40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1118]
call fcn.00403d40
mov eax, dword [ebp - 0x1130]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004279e7
mov esp, ebp
pop ebp
ret
Function at 0x413ad0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d371
mov eax, dword fs:[0]
push eax
mov eax, 0x113c
call fcn.0042c040
mov eax, dword [0x452550]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1128], 0
push 0x44a960
lea ecx, [ebp - 0x111c]
call fcn.004046f0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1134]
push eax
push 0x1000
lea ecx, [ebp - 0x1114]
push ecx
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x413b73
push 0x447fe9
mov ecx, dword [ebp + 8]
call fcn.004046f0
mov edx, dword [ebp - 0x1128]
or edx, 1
mov dword [ebp - 0x1128], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x111c]
call fcn.00403d40
mov eax, dword [ebp + 8]
jmp 0x413d20
mov eax, dword [ebp - 0x1134]
shr eax, 2
mov dword [ebp - 0x1140], eax
mov cl, byte [0x447fea]
mov byte [ebp - 0x114], cl
push 0x103
push 0
lea edx, [ebp - 0x113]
push edx
call fcn.00429610
add esp, 0xc
lea ecx, [ebp - 0x1118]
call fcn.00403ba0
mov byte [ebp - 4], 1
mov dword [ebp - 0x1144], 0
mov dword [ebp - 0x1120], 0
jmp 0x413bd8
mov eax, dword [ebp - 0x1120]
add eax, 1
mov dword [ebp - 0x1120], eax
mov ecx, dword [ebp - 0x1120]
cmp ecx, dword [ebp - 0x1140]
jae 0x413cde
mov edx, dword [ebp - 0x1120]
mov eax, dword [ebp + edx*4 - 0x1114]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1124], eax
cmp dword [ebp - 0x1124], 0
je 0x413cd9
lea ecx, [ebp - 0x1148]
push ecx
push 4
lea edx, [ebp - 0x112c]
push edx
mov eax, dword [ebp - 0x1124]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x413ccc
push 0x104
lea ecx, [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x112c]
push edx
mov eax, dword [ebp - 0x1124]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x1118]
call fcn.004046d0
lea ecx, [ebp - 0x1118]
call fcn.00414550
push 0x44a964
lea edx, [ebp - 0x1118]
push edx
lea eax, [ebp - 0x1130]
push eax
call fcn.00403740
add esp, 0xc
mov dword [ebp - 0x1138], eax
mov ecx, dword [ebp - 0x1138]
mov dword [ebp - 0x113c], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x113c]
push edx
lea ecx, [ebp - 0x111c]
call fcn.00403b80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1130]
call fcn.00403d40
mov eax, dword [ebp - 0x1124]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x413bc9
lea ecx, [ebp - 0x111c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004039e0
mov edx, dword [ebp - 0x1128]
or edx, 1
mov dword [ebp - 0x1128], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1118]
call fcn.00403d40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x111c]
call fcn.00403d40
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004279e7
mov esp, ebp
pop ebp
ret
Function at 0x413d40
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d3b3
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x452550]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x138], 0x128
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 0x140]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x413dc8
mov dword [ebp - 0x148], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00403d40
mov eax, dword [ebp - 0x148]
jmp 0x413ede
lea ecx, [ebp + 8]
call fcn.00414550
lea edx, [ebp - 0x138]
push edx
mov eax, dword [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x413eb5
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x13c]
call fcn.004046f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call fcn.00414550
lea ecx, [ebp + 8]
call fcn.004031a0
push eax
lea ecx, [ebp - 0x13c]
call fcn.00403510
test eax, eax
jne 0x413e94
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x154], edx
mov eax, dword [ebp - 0x154]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x144], eax
push 0
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 0x144]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x150], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x13c]
call fcn.00403d40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00403d40
mov eax, dword [ebp - 0x150]
jmp 0x413ede
push 0xffffffffffffffff
lea ecx, [ebp - 0x13c]
call fcn.004037f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x13c]
call fcn.00403d40
jmp 0x413dd0
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call fcn.004037f0
mov dword [ebp - 0x14c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00403d40
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004279e7
mov esp, ebp
pop ebp
ret

Function at 0x413f00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea ecx, [ebp + 8]
call fcn.004031a0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x413f2f
mov eax, dword [ebp - 4]
and eax, 0x10
je 0x413f2f
mov dword [ebp - 8], 1
jmp 0x413f36
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
lea ecx, [ebp + 8]
call fcn.00403d40
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x414240
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d430
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x452550]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x2c]
push eax
call fcn.00402680
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
push edx
mov ecx, 0x638fe8
call fcn.00403d20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403d40
push 0x44a9a4
lea ecx, [ebp - 0x18]
call fcn.004046f0
mov dword [ebp - 4], 1
mov dword [ebp - 0x34], 0x34
push 0
mov ecx, 0x638fe8
call fcn.004031a0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x414378
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
call fcn.0041533a
add esp, 4
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0
mov ecx, 0x638fe8
call fcn.004031a0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x414366
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0x44a9a8
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x414366
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0xc]
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 8]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
push eax
push str._d_d
lea ecx, [ebp - 0x18]
push ecx
call fcn.00403970
add esp, 0x10
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.00415343
add esp, 4
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004039e0
mov edx, dword [ebp - 0x20]
or edx, 1
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00403d40
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret