joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ced8
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x45e080]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x43cf23
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0043d073
test al, al
jne 0x43cf1d
sub edx, 2
cmp edx, edi
jne 0x43cf03
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x43cf45
lea eax, [edi + 2]
cmp edx, eax
je 0x43cf45
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0043ce24
add esp, 0x10
jmp 0x43d03f
push esi
lea ecx, [ebp - 0x255]
call fcn.0043d073
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43cf88
push dword [ebp - 0x25c]
jmp 0x43cf35
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x43cfc5
cmp word [ebp - 0x226], 0
je 0x43cfe6
cmp word [ebp - 0x226], ax
jne 0x43cfc5
cmp word [ebp - 0x224], 0
je 0x43cfe6
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0043ce24
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x43d032
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x43cf9f
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x43d01a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x43d03f
push 0x43cc54
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00443570
add esp, 0x10
jmp 0x43d00f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004264a8
leave
ret

Function at 0x43ff2d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004363f0
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43ff9c
cmp esi, dword [ebp - 4]
je 0x43ff97
cmp dword [ebp + 0xc], 0
je 0x43ff97
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x43ff74
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0043fa7f
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x43ff9e
xor eax, eax
inc eax
jmp 0x43ff9e
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x440003
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x45e080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004363f0
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004363f0
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x44007a
cmp word [ecx], dx
je 0x44007a
mov eax, dword [0x44d93c]
push edi
dec eax
push eax
push 0x44d828
call fcn.0043ffa2
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4400ed
cmp word [eax], dx
je 0x4400ed
mov eax, dword [edi]
test eax, eax
je 0x44009e
cmp word [eax], dx
je 0x44009e
lea eax, [ebp - 0x10]
push eax
call fcn.0043f985
jmp 0x4400a7
lea eax, [ebp - 0x10]
push eax
call fcn.0043fa20
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x440117
mov eax, dword [0x44d824]
push dword [ebp - 0x14]
dec eax
push eax
push 0x44d518
call fcn.0043ffa2
add esp, 0xc
test al, al
je 0x440117
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4400e2
cmp word [eax], di
je 0x4400e2
lea eax, [ebp - 0x10]
push eax
call fcn.0043f985
pop ecx
jmp 0x440119
lea eax, [ebp - 0x10]
push eax
call fcn.0043fa20
jmp 0x4400df
mov eax, dword [edi]
test eax, eax
je 0x440104
cmp word [eax], dx
je 0x440104
lea eax, [ebp - 0x10]
push eax
call fcn.0043f93a
pop ecx
jmp 0x440117
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4401e2
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0043fe27
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4401e2
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4401e2
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4401e2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x44016f
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00436d8c
test ebx, ebx
je 0x4401dd
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00436d8c
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4401e2
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4401e2
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00443c10
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4401e4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004264a8
leave
ret
Function at 0x444355
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004442d1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4444c4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4444c4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x444479
jg 0x4443b1
test eax, eax
je 0x44446f
push 1
push 0x1000
call fcn.004366db
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4443d4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x444466
push 0x8000
push ebx
call fcn.004346d4
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4443fd
jg 0x4443f8
cmp ecx, 0x1000
jb 0x4443fd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00437e29
add esp, 0x10
cmp eax, 0xffffffff
je 0x444442
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4443f8
jl 0x444429
test ecx, ecx
jne 0x4443ea
push dword [ebp - 0xc]
push ebx
call fcn.004346d4
push esi
call fcn.00436738
add esp, 0xc
xor ebx, ebx
jmp 0x4444d2
cmp byte [edi + 0x24], 0
je 0x444459
cmp dword [edi + 0x20], 5
jne 0x444459
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x444464
mov ebx, dword [edi + 0x18]
jmp 0x444466
xor ebx, ebx
push esi
call fcn.00436738
pop ecx
jmp 0x4444d2
test ecx, ecx
jg 0x44443b
jl 0x444479
test eax, eax
jae 0x44443b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00439975
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x444499
cmp byte [edi + 0x1c], 0
je 0x44443b
jmp 0x4444ca
push ebx
call fcn.0043defd
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x44443b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4444d2
cmp byte [edi + 0x1c], 0
je 0x4444cf
mov ebx, dword [edi + 0x18]
jmp 0x4444d2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00439975
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x445550
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44557d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44557d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x40520c
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
test eax, eax
jle 0x405245
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40524e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405258
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
test eax, eax
jle 0x405279
mov al, byte [esp]
jmp 0x40527b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4062da
Capabilities:
Encode data using xor

Disassembly:
mov esi, 4
sub esp, esi
mov esi, esp
push esi
pop eax
mov dword [eax], ecx
push 0x7e0773c1
mov esi, 0x7e0773c1
pop edi
xor esi, edi
xor esi, edx
mov edi, 0
mov eax, 4
xor edi, eax
sub esp, edi
mov dword [esp], esi
xor ecx, ecx
mov cl, byte [ebx]
add edx, ecx
mov cl, byte [edx]
mov esi, 0x27dad8c3
xor esi, 0x145c2617
mov edi, 0x5a8e20a7
xor esi, edi
xor esi, 0x6a48ddff
mov edi, 0x58aa924d
mov eax, 0x5cb8c26d
xor eax, edi
xor esi, eax
add esp, 0xfffffffc
mov eax, esp
mov dword [eax], edx
pop edi
xor edi, 0
je 0x4062a7
pop edx
mov byte [ebx], cl
mov edi, 0x1a251931
mov esi, 0xe5dae6ce
xor esi, edi
add ebx, esi
pop ecx
push 0x7fb34c9b
mov esi, 0x58992abc
pop edi
xor esi, edi
mov edi, esi
xor edi, 0xffffffff
and edi, 0x272a6626
and esi, 0xd8d599d9
or esi, edi
sub ecx, esi
mov eax, 0x70e413af
mov edi, 0x70e413af
xor edi, eax
xor edi, ecx
mov eax, 0x3722636
mov esi, 0x3722636
xor esi, eax
xor esi, edi
and esi, esi
jne 0x4062a7
mov esi, 0x7886ec39
xor esi, 0x45268eff
push esi
push 0x1d7c33cb
mov ebx, 0x38c715aa
pop esi
xor ebx, esi
mov edx, 0x1051080d
mov esi, 0x80a1130
xor edx, esi
xor edx, ebx
pop ecx
xor edx, ecx
call edx
pop eax
pop eax
ret

Function at 0x4069dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406a24
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406978
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a2b
lea eax, [ebp - 4]
call fcn.00403198
ret
Function at 0x409b78
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
jmp 0x409c21
cmp dword [esi + 0x10], 0x1000
jne 0x409c0d
test byte [esi + 0x15], 1
jne 0x409c0d
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409bcc
cmp eax, 2
je 0x409bcc
cmp eax, 0x10
je 0x409bcc
cmp eax, 0x20
jne 0x409be1
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409be1
mov bl, 1
xor ebp, ebp
jmp 0x409bf2
mov eax, dword [esi]
add eax, ebp
call fcn.00409b70
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409be5
test bl, bl
je 0x409c0d
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409ba4
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x20e3770
Capabilities:
Encode data using xor

Disassembly:
jmp 0x20e377a
pushal
call 0x20e3780
pop ebp
sub ebp, 0x10
sub ebp, 0x1ce3770
jmp 0x20e3796
mov eax, 0x1ce3770
add eax, ebp
add eax, 0x4c
mov ecx, 0x5ce
mov edx, 0x5c3cd1e8
xor byte [eax], dl
inc eax
dec ecx
jne 0x20e37ad
jmp 0x20e37c0
arpl word [0xe8d46163], sp
call 0x1237a1b3
call 0x27fa20b8
push eax
out dx, al
call 0xc26120bf
call 0xc2e20c4
jmp 0x20e37fe
invalid
call 0xeaf6f804
call 0x65c3f4c5
insd dword es:[edi], dx
loopne 0x20e37f3
call 0xe68b9bf8
call 0x677220fd
clc
call 0x3382103
ljmp 0xa1ec
Function at 0x4013e3
Capabilities:
Encode data using xor

Disassembly:
jmp 0x40ca40
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40cc6f
mov edi, dword [esp + 0x14]
xor ebx, ebx
mov ebp, dword [sym.imp.USER32.dll_ReleaseDC]
nop dword [eax]
push str.dHJdvghcgyhushgjdshgj
push 0x5d9528
call fcn.00402ee6
add esp, 8
push eax
call fcn.0040658c
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xeb
push str.dHJdvghcgyhushgjdshgj
push 0x5d9528
call fcn.00402ee6
add esp, 8
push eax
call fcn.0040658c
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x5d
push str.dHJdvghcgyhushgjdshgj
push 0x5d9528
call fcn.00402ee6
add esp, 8
push eax
call fcn.0040658c
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x23
push str.dHJdvghcgyhushgjdshgj
push 0x5d9528
call fcn.00402ee6
add esp, 8
push eax
call fcn.0040658c
add esp, 4
push 0
push 0
call ebp
xor byte [edi + ebx], 0xe9
push str.dHJdvghcgyhushgjdshgj
push 0x5d9528
call fcn.00402ee6
add esp, 8
push eax
call fcn.0040658c
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xbf
push str.dHJdvghcgyhushgjdshgj
push 0x5d9528
call fcn.00402ee6
add esp, 8
push eax
call fcn.0040658c
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x31
push str.dHJdvghcgyhushgjdshgj
push 0x5d9528
call fcn.00402ee6
add esp, 8
push eax
call fcn.0040658c
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xe9
push str.dHJdvghcgyhushgjdshgj
push 0x5d9528
call fcn.00402ee6
add esp, 8
push eax
call fcn.0040658c
add esp, 4
push 0
push 0
call ebp
xor byte [edi + ebx], 0x9f
push str.dHJdvghcgyhushgjdshgj
push 0x5d9528
call fcn.00402ee6
add esp, 8
push eax
call fcn.0040658c
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x4b
push str.dHJdvghcgyhushgjdshgj
push 0x5d9528
call fcn.00402ee6
add esp, 8
push eax
call fcn.0040658c
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xf
push str.dHJdvghcgyhushgjdshgj
push 0x5d9528
call fcn.00402ee6
add esp, 8
push eax
call fcn.0040658c
add esp, 4
push 0
push 0
call ebp
xor byte [edi + ebx], 0x7a
push str.dHJdvghcgyhushgjdshgj
push 0x5d9528
call fcn.00402ee6
add esp, 8
push eax
call fcn.0040658c
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xa8
push str.dHJdvghcgyhushgjdshgj
push 0x5d9528
call fcn.00402ee6
add esp, 8
push eax
call fcn.0040658c
add esp, 4
push 0
push 0
call ebp
xor byte [edi + ebx], 0xb1
push str.dHJdvghcgyhushgjdshgj
push 0x5d9528
call fcn.00402ee6
add esp, 8
push eax
call fcn.0040658c
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x88
inc ebx
cmp esi, ebx
jne 0x40ca60
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402e46
Capabilities:
Encode data using xor

Disassembly:
jmp 0x40cc80
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x10]
cmp dword [eax + 0x14], 0x10
mov ebp, eax
jb 0x40cc98
mov ebp, dword [eax]
mov esi, dword [esp + 0x20]
xor esi, edi
cmp edi, 4
jae 0x40cca7
mov ecx, edi
jmp 0x40cd03
mov dword [esp], edi
shr edi, 2
cmp edi, 2
mov eax, 1
cmovae eax, edi
mov dword [esp + 4], eax
xor ebx, ebx
nop
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov ecx, 0x5d9528
push edi
call fcn.00403fe4
imul eax, dword [ebp + ebx*4], 0x5bd1e991
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul eax, ecx, 0x5bd1e991
imul esi, esi, 0x5bd1e991
xor esi, eax
inc ebx
cmp dword [esp + 4], ebx
jne 0x40ccc0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x10]
mov edi, dword [esp]
and edi, 0xfffffffc
and ecx, 3
xor eax, eax
cmp ecx, 1
je 0x40cd2c
cmp ecx, 2
je 0x40cd22
cmp ecx, 3
jne 0x40cd3b
movsx eax, byte [ebp + edi + 2]
shl eax, 0x10
movsx ecx, byte [ebp + edi + 1]
shl ecx, 8
xor eax, ecx
movsx ecx, byte [ebp + edi]
xor ecx, eax
imul eax, ecx, 0x5bd1e991
xor esi, eax
mov eax, esi
shr eax, 0xd
xor eax, esi
imul ecx, eax, 0x5bd1e991
mov eax, ecx
shr eax, 0xf
xor eax, ecx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40379c
Capabilities:
Terminate process

Disassembly:
jmp 0x461473
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x461484
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405ce5
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4038eb
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a1417
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a1428
pop esi
ret
push ebx
push edi
push esi
call fcn.004a12fe
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00404255
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a1450
push ebx
push esi
push edi
call fcn.00405abf
add esp, 0xc
push 0
call fcn.004066ef
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405b87
Capabilities:
Parse pe header

Disassembly:
jmp 0x4230c9
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x423108
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x423108
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x423108
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x423108
cmp dword [ecx + 0x74], 0xe
jbe 0x423108
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x49f529
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5d3384]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49f574
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049f9eb
test al, al
jne 0x49f56e
sub edx, 2
cmp edx, edi
jne 0x49f554
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49f596
lea eax, [edi + 2]
cmp edx, eax
je 0x49f596
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049f122
add esp, 0x10
jmp 0x49f690
push esi
lea ecx, [ebp - 0x255]
call fcn.0049f9eb
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49f5d9
push dword [ebp - 0x25c]
jmp 0x49f586
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49f616
cmp word [ebp - 0x226], 0
je 0x49f637
cmp word [ebp - 0x226], ax
jne 0x49f616
cmp word [ebp - 0x224], 0
je 0x49f637
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049f122
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49f683
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49f5f0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49f66b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49f690
push 0x49eb0a
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004058f3
add esp, 0x10
jmp 0x49f660
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004031ca
leave
ret
Function at 0x4aab1c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401e2e
mov eax, dword [0x5d3384]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004062b2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4aab5e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4aacba
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0040641f
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x5da980]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004033e6
mov ecx, dword [esi*4 + 0x5da980]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4aacb3
cmp eax, dword [edi + ecx + 0x24]
jne 0x4aacb3
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4aacb3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004033e6
add esp, 0x14
test edx, edx
jl 0x4aacb3
jg 0x4aac29
test eax, eax
jb 0x4aacb3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4aacb3
jl 0x4aac43
cmp dword [ebp - 0x1008], eax
ja 0x4aacb3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4aac61
test ebx, ebx
je 0x4aac9a
cmp ecx, edi
jae 0x4aac9a
mov al, byte [ecx]
cmp al, 0xd
jne 0x4aac7b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4aac87
cmp byte [ecx + 1], 0xa
jne 0x4aac87
inc ecx
jmp 0x4aac87
movzx eax, al
movsx eax, byte [eax + 0x5d70f0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4aac61
cmp edx, ebx
jne 0x4aac61
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4aacb8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004031ca
leave
ret