joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d8c5
Capabilities:
Encode data using xor

Disassembly:
or edx, edx
je 0x44d7d5
cmp esi, ecx
je 0x44d7d5
lodsb al, byte [esi]
cmp al, 0x25
je 0x44d7df
stosb byte es:[edi], al
dec edx
jne 0x44d7c8
mov eax, edi
sub eax, dword [ebp - 8]
jmp 0x44db02
cmp esi, ecx
je 0x44d7d5
lodsb al, byte [esi]
cmp al, 0x25
je 0x44d7d1
lea ebx, [esi - 2]
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x19], al
cmp al, 0x2d
jne 0x44d7fa
cmp esi, ecx
je 0x44d7d5
lodsb al, byte [esi]
call fcn.0044d87d
cmp al, 0x3a
jne 0x44d80d
mov dword [ebp - 0xc], ebx
cmp esi, ecx
je 0x44d7d5
lodsb al, byte [esi]
jmp 0x44d7ee
mov dword [ebp - 0x20], ebx
mov ebx, 0xffffffff
cmp al, 0x2e
jne 0x44d823
cmp esi, ecx
je 0x44d7d5
lodsb al, byte [esi]
call fcn.0044d87d
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], esi
push ecx
push edx
call 0x44d8c5
pop edx
mov ebx, dword [ebp - 0x20]
sub ebx, ecx
jae 0x44d83a
xor ebx, ebx
cmp byte [ebp - 0x19], 0x2d
jne 0x44d84a
sub edx, ecx
jae 0x44d848
add ecx, edx
xor edx, edx
rep movsb byte es:[edi], byte [esi]
xchg ecx, ebx
sub edx, ecx
jae 0x44d854
add ecx, edx
xor edx, edx
mov al, 0x20
rep stosb byte es:[edi], al
xchg ecx, ebx
sub edx, ecx
jae 0x44d862
add ecx, edx
xor edx, edx
rep movsb byte es:[edi], byte [esi]
cmp dword [ebp - 0x10], 0
je 0x44d874
push edx
lea eax, [ebp - 0x10]
call fcn.0044d787
pop edx
inc ebp
invalid
pop ecx
mov esi, dword [ebp - 0x28]
jmp 0x44d7c4
xor ebx, ebx
cmp al, 0x2a
je 0x44d8a5
cmp al, 0x30
jb 0x44d8c4
cmp al, 0x39
ja 0x44d8c4
imul ebx, ebx, 0xa
sub al, 0x30
movzx eax, al
add ebx, eax
cmp esi, ecx
je 0x44d89f
lodsb al, byte [esi]
jmp 0x44d883
pop eax
inc edx
cmpsd dword [esi], dword es:[edi]
pop edx
push ebx
jp 0x44d84c
cmpsb byte [esi], byte es:[edi]
sbb eax, 0x35c76bf0
cmc
and edi, eax
aad 0xef
inc edi
and ebp, edx
cmp eax, 0x40ba07c5
movsb byte es:[edi], byte [esi]
arpl word [edx + 0x75ff8b03], ax
clc
mov ebx, 0x954840d5
xchg ebp, eax
psubq mm6, qword [esi - 0x49a10ff]
sub ebx, ecx
imul ecx, dword [edi + 0x146a2775], 0x50456fad
mov edx, 0x2c907d67
je 0x44d864
jge 0x44d86c
sub al, 0x74
test esi, esp
cmc
out 0xf5, al
scasd eax, dword es:[edi]
push 0xffffffffffffffbb
popal
lea esi, [ebx + ebp*2 + 0x58]
jae 0x44d8da
jl 0x44d903
xchg ebp, eax
sub esi, esp
inc esp
sbb ch, dl
pop es
and al, 0x1b
not edi
cmp dword [edi - 0x6e], 0x255287d6
invalid
push edi
test dword [si + 0x4b], edx
fistp qword [edx - 0x410ad2cb]
hlt
mov al, 0xe6
js 0x44db5c
xor byte [ebx - 0xf9a6919], al
push 0x57
pop esp
into
mov dh, cl
mov dword [0xf222c197], eax
adc bl, ch
mov ah, 0xb6
ret
and eax, 0x53587326
mov ebx, 0x7817b7f0
push ecx
dec ebx
add eax, 0x54b0146f
sal dl, 0x5b
or eax, 0xad87158d
push edx
cmc
push ss
cdq
push esp
not dword [esi + 0x487f7503]
inc edi
push ecx
push 0xf676d777
test edi, edx
sbb eax, 0x755b70c6
add cl, al
cmp ebx, dword [edi]
sub esp, dword [0x8c0af2f7]
xor edx, dword [eax]
xor esp, ebp
xor edi, esp
pop edi
in eax, 0x54
xchg ecx, eax
imul esp, dword [edi + eax], 0xe23d95a4
adc eax, 0x34f56def
invalid
Function at 0x6275d5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x62e3c8
cmp edx, dword [eax]
je 0x6275f7
add eax, 8
inc ecx
cmp eax, 0x62e458
jl 0x6275e8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x62e3c8]
jne 0x627725
mov eax, dword [0x633d60]
cmp eax, 1
je 0x6276ff
test eax, eax
jne 0x627628
cmp dword [0x62e2f4], 1
je 0x6276ff
cmp edx, 0xfc
je 0x627725
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62765f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00627fc0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00628450
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x6276a2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00628450
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62c634
push edi
call fcn.0062a320
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00627fc0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00627fd0
lea eax, [ebp - 0xa0]
push 0x62c614
push eax
call fcn.00627fd0
push dword [esi + 0x62e3cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00627fd0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062a294
add esp, 0x2c
pop edi
jmp 0x627725
lea eax, [ebp + 8]
lea esi, [esi + 0x62e3cc]
push 0
push eax
push dword [esi]
call fcn.00628450
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6a
nop
nop
sub eax, 0x403d10
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x402c10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402c69
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402aac
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402aac
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402c53
inc ebx
jmp 0x402c3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402c70
lea eax, [ebp - 8]
call fcn.0040450c
ret

Function at 0x402c78
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040450c
test esi, esi
jne 0x402caf
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004045fc
jmp 0x402cd0
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402aac
mov dword [esp], eax
test esi, esi
je 0x402cd0
cmp dword [ebx], 0
je 0x402cd0
dec esi
jmp 0x402cb7
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403a24
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40c014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403abc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403a9c
xor eax, eax
push ebp
push 0x403a95
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403ad8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403a9c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40c014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40c014], ax
mov esp, ebp
pop ebp
ret

Function at 0x404388
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40d044], 0
je 0x4043e9
cmp word [0x40d218], 0xd7b2
jne 0x4043b1
cmp dword [0x40d220], 0
jbe 0x4043b1
mov eax, 0x40d214
call dword [0x40d230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40c0ac
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404410
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40c020], 0
jne 0x404405
push 0
push 0x40c0a4
push 0x40c0ac
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405488
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4054ee
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404754
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004033a8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4054d8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4054f5
lea eax, [ebp - 0x10]
call fcn.0040450c
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404980
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4069a9
test al, 0x10
jne 0x4069ad
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x406af4
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404980
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x406b16
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x407ac4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x407afd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004045fc
jmp 0x407b06
mov eax, ebx
mov edx, esi
call fcn.00404560
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x407b10
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x407b31
mov al, byte [esp]
jmp 0x407b33
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4081c8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x408030
mov eax, dword [0x40c454]
cmp byte [eax], 0
je 0x408244
mov eax, dword [0x40c3a8]
call fcn.0040302c
call fcn.004029a8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00406ef8
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40828c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40827a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x40c388]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40d660]
call fcn.00404e58
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x408e54
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x408eb8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404754
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00406960
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408ebf
lea eax, [ebp - 0xc]
call fcn.0040450c
ret

Function at 0x409cac
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x110], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409d6b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00404754
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 0x10c]
call fcn.00408c50
push dword [ebp - 0x10c]
push 0x409d80
call sub.kernel32.dll_GetCurrentProcessId
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x114]
mov eax, 8
call fcn.00406930
push dword [ebp - 0x114]
push 0x409d90
mov eax, ebx
mov edx, 4
call fcn.00404840
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409d72
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.00404530
ret
Function at 0x404640
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4972b5
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x4bd0c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 4]
mov ebx, dword [ebp + 0xc]
cmp edi, dword [esi + 8]
je 0x40472d
push dword [ebp + 0x10]
cmp ebx, edi
jne 0x4046b9
mov ecx, edi
mov dword [ebp - 0x10], edi
call fcn.00403aa0
push dword [ebp + 0x14]
lea ecx, [edi + 0x18]
mov dword [ebp - 4], 1
call fcn.00403aa0
mov eax, dword [ebp + 8]
add dword [esi + 4], 0x30
mov dword [eax], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x40]
mov dword [ebp - 0x44], esi
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.00403aa0
push dword [ebp + 0x14]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 3
call fcn.00403aa0
lea edx, [edi - 0x30]
mov ecx, edi
push edx
call fcn.00405310
add dword [esi + 4], 0x30
mov ecx, ebx
push edi
call fcn.00404f20
add esp, 4
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call fcn.00403880
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebx + 0x18]
call fcn.00403880
lea ecx, [ebp - 0x40]
call fcn.004029d0
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call fcn.004044a0
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x409c20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4971d0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4bd0c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [edi], eax
mov dword [edi + 4], edx
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
movups xmm0, xmmword [esi + 0xc]
movups xmmword [edi + 0xc], xmm0
movq xmm0, qword [esi + 0x1c]
movq qword [edi + 0x1c], xmm0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0xf
mov byte [esi + 0xc], 0
mov eax, dword [esi + 0x24]
mov dword [edi + 0x24], eax
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], ecx
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40a0c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4bd0c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x10]
push esi
mov esi, edx
test eax, eax
je 0x40a151
cmp eax, 0x104
ja 0x40a151
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40a0ee
mov eax, dword [esi]
xor edx, edx
mov dword [esi + 0x10], 0
mov word [eax], dx
cmp dword [ecx + 0x14], 8
jb 0x40a102
mov ecx, dword [ecx]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x40a151
lea edx, [ebp - 0x20c]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40a122
sub edx, ecx
lea eax, [ebp - 0x20c]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.00403bf0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e338
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0046e338
mov esp, ebp
pop ebp
ret
Function at 0x40a170
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49779d
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x4bd0c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
cmp dword [ecx + 0x14], 8
jb 0x40a1a7
mov ecx, dword [ecx]
lea eax, [ebp - 0x278]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40a1d0
xor al, al
jmp 0x40a2ce
cmp word [ebp - 0x24c], 0x2e
je 0x40a2af
test byte [ebp - 0x278], 0x10
jne 0x40a2af
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x14], 7
lea edx, [eax + 2]
mov dword [ebp - 4], 0xffffffff
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a216
sub eax, edx
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.00403bf0
mov dword [ebp - 4], 1
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x40a266
movups xmm0, xmmword [ebp - 0x28]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov edx, 7
add dword [esi + 4], 0x18
mov word [ebp - 0x28], ax
jmp 0x40a275
lea ecx, [ebp - 0x28]
push ecx
push eax
mov ecx, esi
call fcn.0040a630
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x40a2af
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a2a5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a2e9
push edx
push ecx
call fcn.0046e37b
add esp, 8
lea eax, [ebp - 0x278]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40a1d0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046e338
mov esp, ebp
pop ebp
ret
call fcn.00473144
int3
Function at 0x40dd80
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4bd0c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40dda0
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
push ecx
push ecx
push 0x801a
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40de60
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ddd2
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00403bf0
push 0x5c
mov ecx, esi
call fcn.0040de80
push 0xd
push str.EasyAntiCheat
mov ecx, esi
call fcn.00409eb0
push 0x5c
mov ecx, esi
call fcn.0040de80
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40de1a
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40de3b
test al, 0x10
je 0x40de3b
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e338
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x40de43
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
pop esi
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e338
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0046e338
mov esp, ebp
pop ebp
ret
Function at 0x410ff0
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4bd0c8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x4bfe94], 0
je 0x41101c
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e338
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push ecx
mov edx, 0x4b2218
lea ecx, [ebp - 0x20c]
call fcn.0040e0b0
push str.wintrust.dll
lea eax, [ebp - 0x20c]
push eax
push str._s_s
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0040e130
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
lea eax, [ebp - 0x20c]
push str.crypt32.dll
push eax
push str._s_s
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0040e130
add esp, 0x14
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test edi, edi
je 0x4111dd
test esi, esi
je 0x4111dd
push str.WinVerifyTrust
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4bfe84], eax
test eax, eax
je 0x4111dd
push str.CryptDecodeObject
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4bfe88], eax
test eax, eax
je 0x4111dd
push 0x4b2674
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4bfe98], eax
test eax, eax
je 0x4111dd
push str.CryptMsgGetParam
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4bfe74], eax
test eax, eax
je 0x4111dd
push 0x4b269c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4bfea0], eax
test eax, eax
je 0x4111dd
push 0x4b26b8
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4bfe8c], eax
test eax, eax
je 0x4111dd
push 0x4b26d4
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4bfe78], eax
test eax, eax
je 0x4111dd
push 0x4b26e8
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4bfe9c], eax
test eax, eax
je 0x4111dd
push str.CertOpenSystemStoreW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4bfe90], eax
test eax, eax
je 0x4111dd
push 0x4b271c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4bfe7c], eax
test eax, eax
je 0x4111dd
push str.CryptMsgClose
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
movzx ecx, byte [0x4bfe94]
test eax, eax
mov edx, 1
mov dword [0x4bfe80], eax
cmovne ecx, edx
pop edi
mov byte [0x4bfe94], cl
mov al, cl
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e338
mov esp, ebp
pop ebp
ret
mov cl, byte [0x4bfe94]
mov al, cl
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0046e338
mov esp, ebp
pop ebp
ret
Function at 0x411570
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497ec6
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4bd0c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x18], ecx
push eax
mov dword [ebp - 4], 0
call fcn.0040ba00
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
push esi
call fcn.0040ba00
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x10]
push edi
lea ecx, [esi + 0x30]
call fcn.0040ba00
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 3
push ebx
call fcn.0040ba00
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 4
push eax
lea ecx, [esi + 0x60]
call fcn.0040ba00
mov eax, dword [ebp + 0x30]
mov edx, dword [ebp + 0x2c]
mov dword [esi + 0x78], eax
mov al, byte [ebp + 0x34]
mov byte [esi + 0x7c], al
mov eax, dword [ebp + 0x38]
mov dword [esi + 0x80], eax
cmp edx, 8
jb 0x411642
mov ecx, dword [ebp + 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411638
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411658
push edx
push ecx
call fcn.0046e37b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
call fcn.00473144
int3