joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ecb9
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44d0e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov ebx, ecx
mov dword [0x44f320], edi
mov esi, edi
mov dword [ebp - 0x1c], eax
mov edi, ebx
mov ecx, edi
call fcn.0040eecc
cmp eax, 0xffffffff
je 0x40ecfb
add esi, eax
add edi, eax
cmp esi, 5
jb 0x40ece6
cmp esi, 5
mov dword [ebp - 0x10], esi
push 0
sbb esi, esi
not esi
pop edi
and esi, dword [ebp - 0x10]
je 0x40edf3
lea edx, [esi + 0x26]
push ebx
call fcn.0040e26a
mov dword [ebp - 0x10], eax
pop ecx
test eax, eax
je 0x40edf3
lea ecx, [esi + 0x26]
push ecx
mov ecx, eax
call fcn.0040e115
mov eax, dword [ebp - 0x10]
mov edx, ebx
push esi
lea ecx, [eax + 0x1c]
mov dword [eax], ebx
mov dword [ebp - 0xc], ecx
mov dword [eax + 4], 0x40da50
mov dword [eax + 0xc], esi
mov dword [eax + 8], ecx
call fcn.0040e13b
add esp, 8
test esi, esi
je 0x40ed63
cmp byte [edi + ecx], 0x90
jne 0x40ed63
inc edi
cmp edi, esi
jb 0x40ed58
lea eax, [edi + 5]
cmp eax, esi
ja 0x40ed7d
mov al, byte [edi + ecx]
cmp al, 0xe8
je 0x40ed75
cmp al, 0xe9
jne 0x40ed7d
mov eax, ebx
sub eax, ecx
add dword [edi + ecx + 1], eax
mov eax, 0x25ff
mov word [ecx + esi], ax
add ecx, 6
add ecx, esi
lea eax, [ebx + esi]
push 5
pop edi
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
mov byte [ebp - 0xc], 0xe9
mov dword [eax + esi + 2], ecx
mov eax, 0x40da50
sub eax, ebx
sub eax, edi
mov dword [ebp - 0xb], eax
lea eax, [ebp - 0x20]
push eax
push 0x20
lea eax, [esi + 0x26]
mov esi, dword [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
push eax
push 0x40
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40edf3
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [ebx], eax
mov al, byte [ebp - 8]
mov byte [ebx + 4], al
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], edi
xor eax, eax
mov dword [0x44f320], esi
inc eax
jmp 0x40edf5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e61b
leave
ret
Function at 0x40ee04
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x44d0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x44f320]
mov eax, dword [esi]
cmp byte [eax], 0xe9
jne 0x40eebd
lea ecx, [ebp - 0xa0]
push ecx
push 0x40
push dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40eebd
push ebx
mov ebx, dword [esi + 8]
lea ecx, [ebp - 0x9c]
push edi
mov edi, dword [esi + 0xc]
mov edx, ebx
push edi
call fcn.0040e13b
add esp, 4
xor ecx, ecx
test edi, edi
je 0x40ee6e
cmp byte [ebp + ecx - 0x9c], 0x90
jne 0x40ee6e
inc ecx
cmp ecx, edi
jb 0x40ee5f
lea eax, [ecx + 5]
cmp eax, edi
ja 0x40ee8d
mov al, byte [ebp + ecx - 0x9c]
cmp al, 0xe8
je 0x40ee84
cmp al, 0xe9
jne 0x40ee8d
sub ebx, dword [esi]
add dword [ebp + ecx - 0x9b], ebx
mov ecx, dword [esi]
lea edx, [ebp - 0x9c]
push edi
call fcn.0040e13b
add esp, 4
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
push dword [esi + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
pop edi
inc eax
pop ebx
jmp 0x40eebf
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041e61b
leave
ret
Function at 0x410f73
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439552
mov eax, dword fs:[0]
push eax
push ebx
push edi
mov eax, dword [0x44d0e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov byte [edx + 0xb], 0xb
lea ecx, [edx + 0x4c]
xor ebx, ebx
mov edi, ecx
mov byte [edx], bl
xor eax, eax
mov dword [edx + 0x18], ebx
mov dword [edx + 0xc], ebx
mov dword [edx + 0x10], ebx
mov dword [edx + 0x14], ebx
mov dword [edx + 0x28], ebx
mov dword [edx + 0x1c], ebx
mov dword [edx + 0x20], ebx
mov dword [edx + 0x24], ebx
mov dword [edx + 0x38], ebx
mov dword [edx + 0x2c], ebx
mov dword [edx + 0x30], ebx
mov dword [edx + 0x34], ebx
mov dword [edx + 0x48], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, edx
mov dword [edx + 0x3c], ecx
mov dword [edx + 0x40], ebx
mov dword [edx + 0x44], 0xf
mov byte [ecx], bl
mov dword [edx + 0x5c], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
leave
ret

Function at 0x41131c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push str.NtSuspendProcess
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtResumeProcess
push dword [ebp + 8]
mov dword [0x451c30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationProcess
push dword [ebp + 8]
mov dword [0x451c34], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetInformationProcess
push dword [ebp + 8]
mov dword [0x451c38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationThread
push dword [ebp + 8]
mov dword [0x451c3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetInformationThread
push dword [ebp + 8]
mov dword [0x451c40], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtCompareTokens
push dword [ebp + 8]
mov dword [0x451c44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryObject
push dword [ebp + 8]
mov dword [0x451c48], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationFile
push dword [ebp + 8]
mov dword [0x451c4c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetInformationFile
push dword [ebp + 8]
mov dword [0x451c50], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlNtStatusToDosError
push dword [ebp + 8]
mov dword [0x451c54], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlCaptureStackBackTrace
push dword [ebp + 8]
mov dword [0x451c58], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x451c5c], eax
mov eax, 0x451c30
pop ebp
ret 4
Function at 0x411bef
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x44d0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x28], 0x33323130
mov ecx, dword [edx]
mov dword [ebp - 0x24], 0x37363534
mov dword [ebp - 0x20], 0x42413938
mov eax, dword [esi]
mov dword [ebp - 0x1c], 0x46454443
mov dword [ebp - 0x18], 0x4a494847
mov dword [ebp - 0x14], 0x4e4d4c4b
movzx eax, byte [eax]
shr eax, 4
mov dword [ebp - 0x10], 0x5251504f
mov dword [ebp - 0xc], 0x56555453
mov dword [ebp - 8], 0x5a595857
mov al, byte [ebp + eax - 0x28]
mov byte [ecx], al
inc dword [edx]
mov eax, dword [esi]
mov ecx, dword [edx]
mov dword [ebp - 0x28], 0x33323130
mov dword [ebp - 0x24], 0x37363534
movzx eax, byte [eax]
and eax, 0xf
mov dword [ebp - 0x20], 0x42413938
mov dword [ebp - 0x1c], 0x46454443
mov dword [ebp - 0x18], 0x4a494847
mov dword [ebp - 0x14], 0x4e4d4c4b
mov dword [ebp - 0x10], 0x5251504f
mov dword [ebp - 0xc], 0x56555453
mov dword [ebp - 8], 0x5a595857
mov al, byte [ebp + eax - 0x28]
mov byte [ecx], al
inc dword [edx]
mov ecx, dword [ebp - 4]
inc dword [esi]
xor ecx, ebp
pop esi
call fcn.0041e61b
leave
ret
Function at 0x411dfc
Capabilities:
Parse pe header

Disassembly:
push 0x74
mov eax, 0x4395d1
call fcn.0041efaf
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x34]
push eax
push edx
push 6
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
test eax, eax
jne 0x411e36
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00414a25
jmp 0x411f95
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x14]
and dword [edi + 0x44], 0
mov ebx, 0x104
push edi
push ebx
mov edx, eax
mov dword [ebp - 0x40], eax
mov dword [edi + 0x40], eax
call fcn.004117fa
pop ecx
pop ecx
jmp 0x411e69
mov edx, dword [ebp - 0x40]
lea ecx, [ebp - 0x14]
add ebx, ebx
push edi
push ebx
call fcn.004117fa
pop ecx
pop ecx
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.00414a25
or dword [ebp - 4], 0xffffffff
cmp eax, 0x7a
je 0x411e58
test esi, esi
je 0x411e84
mov ecx, esi
jmp 0x411e2c
mov edx, dword [ebp - 0x34]
mov eax, 0x5a4d
cmp word [edx], ax
jne 0x411f90
mov ecx, dword [edx + 0x3c]
add ecx, edx
cmp dword [ecx], 0x4550
jne 0x411f90
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x411f90
mov eax, dword [ecx + 0x50]
and dword [edi + 0x4c], 0
mov dword [edi + 0x48], eax
cmp dword [ecx + 0x74], 6
jbe 0x411f85
cmp dword [ecx + 0xac], 0x1c
jb 0x411f89
mov eax, dword [ecx + 0xa8]
cmp dword [eax + edx + 0x10], 0x1c
jb 0x411f89
mov ebx, dword [eax + edx + 0x14]
add ebx, edx
cmp dword [ebx], 0x53445352
jne 0x411f90
and dword [ebp - 0x54], 0
lea eax, [edi + 0x20]
or dword [ebp - 0x4c], 0xffffffff
lea esi, [ebp - 0x58]
push 7
pop ecx
mov dword [ebp - 0x58], eax
lea edi, [ebp - 0x30]
mov dword [ebp - 0x50], 0xa
lea edx, [ebx + 4]
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], 0x20
mov byte [ebp - 0x40], 0
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x4c]
call fcn.00411d85
mov edx, eax
lea ecx, [ebp - 0x80]
call fcn.00411cb3
push 0x24
pop edx
movzx ecx, byte [eax + 0x24]
sub edx, ecx
mov ecx, dword [ebp - 0x24]
test ecx, ecx
js 0x411f56
cmp edx, ecx
jb 0x411f56
mov edx, ecx
mov ecx, dword [ebp - 0x30]
push 0
push 0
push edx
push eax
lea edx, [ebp - 0x2c]
call fcn.00411b32
lea ecx, [ebp - 0x30]
call fcn.0041192b
add esp, 8
mov ecx, dword [eax]
lea edx, [eax + 4]
push dword [edx + 4]
push dword [ebx + 0x14]
call fcn.00411892
add esp, 0x10
xor eax, eax
jmp 0x411f95
mov eax, 0x8000005c
jmp 0x411f95
mov eax, 0x8000005a
call fcn.0041ef5e
ret

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

Disassembly:
push esi
push edi
push dword [ecx]
mov esi, edx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x414c44
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00414a25
mov edi, eax
mov eax, edi
pop edi
pop esi
ret
Function at 0x41770e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x44d0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 0xc], ecx
mov esi, dword [edi]
test esi, esi
je 0x41776d
and dword [edi], 0
mov eax, 0x400000
cmp esi, 0x400000
ja 0x417741
mov eax, esi
and dword [ebp - 8], 0
lea edx, [ebp - 8]
push 0
push edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x41777e
test ecx, ecx
je 0x41776d
mov ecx, dword [ebp - 0xc]
test esi, esi
jne 0x417732
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e61b
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41776f

Function at 0x41786c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov edx, ecx
pop esi
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x417874
mov dword [ecx*4 + 0x44f760], edx
inc ecx
cmp ecx, 0x100
jb 0x41786f
mov edx, 0x400
pop esi
mov ecx, dword [edx + 0x44f360]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x44f760]
mov dword [edx + 0x44f760], ecx
add edx, 4
cmp edx, 0x2000
jb 0x41789f
mov dword [0x451760], 0x418a90
call fcn.00418ce8
test eax, eax
jne 0x4178e0
mov dword [0x451760], 0x418b30
ret
Function at 0x41b546
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
and edx, 0xfffffffe
mov esi, edi
lea ebx, [edi - 4]
add ebx, edx
cmp esi, ebx
ja 0x41b5b8
movzx edx, byte [esi + 1]
movzx eax, byte [esi + 3]
xor edx, 8
and eax, edx
add esi, 2
cmp eax, 0xf8
jb 0x41b555
movzx ecx, byte [esi - 2]
movzx eax, byte [esi + 1]
and eax, 7
shl edx, 8
add ecx, edx
lea ecx, [eax + ecx*8]
movzx eax, byte [esi]
add esi, 2
shl ecx, 8
add ecx, eax
mov eax, esi
sub eax, edi
shr eax, 1
sub ecx, eax
mov eax, ecx
mov byte [esi - 2], cl
shr eax, 0xb
mov byte [esi - 4], al
mov eax, ecx
shr eax, 0x13
and al, 7
shr ecx, 8
or al, 0xf0
or cl, 0xf8
mov byte [esi - 3], al
mov byte [esi - 1], cl
jmp 0x41b555
sub esi, edi
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x41b667
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 4], eax
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x41b689
xor eax, eax
jmp UuidCreateSequential
add edx, 0xfffffffc
add edx, eax
mov dword [ebp - 8], edx
push edi
lea edi, [ebx + eax]
cmp edi, edx
jae 0x41b6a9
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41b6a6
inc edi
cmp edi, edx
jb 0x41b699
mov eax, dword [ebp - 4]
mov ecx, edi
sub ecx, ebx
mov ebx, edi
sub ecx, eax
sub ebx, eax
cmp edi, edx
jae 0x41b775
cmp ecx, 2
jbe 0x41b734
xor esi, esi
movzx edx, byte [edi + 4]
lea eax, [edx + 1]
test al, 0xfe
jne 0x41b764
movzx eax, byte [edi + 3]
add ebx, 5
shl edx, 8
or edx, eax
movzx eax, byte [edi + 2]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 1]
shl edx, 8
or edx, eax
sub edx, ebx
test esi, esi
je 0x41b714
and esi, 6
mov eax, edx
shl esi, 2
mov ecx, esi
shr eax, cl
inc eax
test al, 0xfe
jne 0x41b712
mov eax, 0x100
shl eax, cl
dec eax
xor edx, eax
sub edx, ebx
xor esi, esi
mov eax, edx
mov byte [edi + 1], dl
shr eax, 8
mov byte [edi + 2], al
mov eax, edx
shr edx, 0x18
shr eax, 0x10
and dl, 1
neg dl
mov byte [edi + 3], al
mov byte [edi + 4], dl
jmp 0x41b76a
shr esi, cl
test esi, esi
je 0x41b6c2
cmp esi, 4
ja 0x41b759
cmp esi, 3
je 0x41b759
mov eax, esi
shr eax, 1
movzx eax, byte [eax + edi + 1]
inc eax
test al, 0xfe
jne 0x41b6c2
mov eax, dword [ebp - 4]
or esi, 8
shr esi, 1
inc ebx
jmp 0x41b692
or esi, 8
shr esi, 1
inc ebx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
jmp 0x41b692
push 2
shr esi, cl
pop eax
cmp eax, ecx
mov eax, dword [ebp + 0xc]
pop edi
sbb ecx, ecx
not ecx
and ecx, esi
mov dword [eax], ecx
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x401fe0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x481208
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0042ec10
mov ecx, dword [esi + 0x60]
lea eax, [esp + 4]
push eax
push ecx
mov ecx, 0x49e660
mov dword [esp + 0x1c], 0
call fcn.00421690
lea ecx, [esp + 4]
call fcn.004303b0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0042edb0
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x405b60
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4814d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x18]
call fcn.0042ec10
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0
call fcn.0042ec10
mov edi, dword [esp + 0x38]
mov byte [esp + 0x30], 1
lea esi, [ebp + 0xa0]
mov ebx, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [edi]
lea eax, [esp + 0x28]
push edx
push eax
push ecx
mov ecx, ebp
call fcn.00405cb0
cmp dword [esp + 0x14], 1
jle 0x405c26
lea ecx, [esp + 0x18]
call fcn.004303b0
mov ecx, dword [esi]
push eax
call fcn.00430880
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x405c26
lea ecx, [esp + 0x18]
call fcn.004303b0
mov ecx, dword [esi]
push eax
call fcn.00430820
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x405c2c
mov ecx, dword [esi]
push 0
call fcn.004306a0
mov ecx, dword [esi]
push 0
push 3
push 0x49d768
call fcn.00430640
mov ecx, dword [esi]
call fcn.00430920
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x405c62
mov ecx, dword [esi + 0x30]
call fcn.00430600
test al, al
jne 0x405c62
mov ecx, dword [esi]
push 0
call fcn.004306a0
mov ecx, dword [esi]
push 0
push 2
push 0x49d7e0
call fcn.00430640
mov ecx, dword [esi]
call fcn.00430920
mov ecx, dword [esi + 0x30]
call fcn.00430920
add edi, 4
add esi, 4
dec ebx
jne 0x405bac
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 0
call fcn.0042edb0
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.0042edb0
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x4222d9
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x483030
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x54]
call fcn.004353c0
mov ecx, dword [esi + 0x54]
mov ebp, eax
push ebp
call fcn.00435fc0
mov ecx, dword [esi + 0x54]
push ebp
mov edi, eax
call fcn.00435fe0
mov ecx, dword [esi + 0x54]
push eax
push ebp
call fcn.00435fa0
push eax
push edi
mov ecx, 0x49e6b8
call fcn.00409bf0
lea ecx, [esp + 0xc]
call fcn.0042ec10
lea eax, [esp + 0xc]
mov dword [esp + 0x24], 0
push eax
push edi
call fcn.004215b0
add esp, 8
lea ecx, [esp + 0xc]
call fcn.004303b0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
call fcn.0042ec10
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
push edi
mov byte [esp + 0x30], 1
call fcn.00421620
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.004303b0
push eax
lea ecx, [esp + 0x10]
call fcn.004303b0
push eax
mov ecx, esi
call fcn.004223e0
mov ecx, dword [esi + 0x50]
push edi
call fcn.00421c40
mov ecx, dword [esi + 0x54]
push ebp
call fcn.00435de0
mov ecx, dword [esi + 0x50]
cmp edi, dword [ecx + 0xc]
jne 0x42239d
push 0
call fcn.00421e10
mov ecx, dword [esi + 0x50]
call fcn.00421ab0
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call fcn.0042edb0
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.0042edb0
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x4223e0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48304b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
push esi
lea ecx, [esp + 4]
call fcn.0042ec10
mov ecx, dword [esp + 0x15c]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x15c], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42243c
lea ecx, [esp + 4]
mov dword [esp + 0x154], eax
call fcn.0042edb0
jmp 0x4224a0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push edi
mov edi, dword [esp + 0x16c]
push edi
lea ecx, [esp + 0x14]
call fcn.0042ef50
lea edx, [esp + 0x44]
lea ecx, [esp + 0x10]
push edx
call fcn.0042f260
lea ecx, [esp + 0x10]
call fcn.004303b0
push eax
call ebx
lea eax, [esp + 0x18]
push eax
push esi
call ebp
test eax, eax
jne 0x422452
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
mov dword [esp + 0x160], 0xffffffff
call fcn.0042edb0
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14c]
pop esi
mov dword fs:[0], ecx
add esp, 0x154
ret 8
Function at 0x426e1e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x493da8
cmp edx, dword [eax]
je 0x426e40
add eax, 8
inc ecx
cmp eax, 0x493e38
jl 0x426e31
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x493da8]
jne 0x426f6e
mov eax, dword [0x4a00f0]
cmp eax, 1
je 0x426f48
test eax, eax
jne 0x426e71
cmp dword [0x493be4], 1
je 0x426f48
cmp edx, 0xfc
je 0x426f6e
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x426ea8
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00428820
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00428b10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x426eeb
lea eax, [ebp - 0x1a4]
push eax
call fcn.00428b10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x489554
push edi
call fcn.00429800
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00428820
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00428830
lea eax, [ebp - 0xa0]
push 0x489534
push eax
call fcn.00428830
push dword [esi + 0x493dac]
lea eax, [ebp - 0xa0]
push eax
call fcn.00428830
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0042976f
add esp, 0x2c
pop edi
jmp 0x426f6e
lea eax, [ebp + 8]
lea esi, [esi + 0x493dac]
push 0
push eax
push dword [esi]
call fcn.00428b10
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 0x42fd80
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x234
push esi
push edi
mov edi, ecx
lea eax, [esp + 0x13c]
mov ecx, dword [esp + 0x240]
push 0xa
push eax
push ecx
call fcn.0047c5e0
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
add esp, 0xc
lea edx, [esp + 0x3c]
mov dword [esp + 0xc], 0
push 0x100
push edx
push 0x10
push 0x800
mov dword [esp + 0x20], 0
call esi
lea eax, [esp + 8]
push 0xa
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.0042938f
add esp, 0xc
lea edx, [esp + 0x30]
mov dword [esp + 0x14], eax
push 0xa
push edx
push 0xe
push 0x800
call esi
lea ecx, [esp + 0x24]
push 0xa
push ecx
lea eax, [esp + 0x38]
push 0xf
push 0x800
mov dword [esp + 0x28], eax
call esi
lea eax, [esp + 0x3c]
push 0x100
push eax
lea edx, [esp + 0x2c]
push 0x1010
push 0x800
mov dword [esp + 0x2c], edx
call esi
lea ecx, [esp + 8]
push 0xa
lea edx, [esp + 0x40]
push ecx
push edx
call fcn.0042938f
add esp, 0xc
mov dword [esp + 0x20], eax
lea eax, [esp + 0x3c]
lea ecx, [esp + 0xc]
push 0x100
push eax
lea edx, [esp + 0x144]
push ecx
push edx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea eax, [esp + 0x3c]
mov ecx, edi
push eax
call fcn.0042ef50
pop edi
pop esi
add esp, 0x234
ret 4