joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b5b4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46b68c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4a155c], 0
jne 0x46b670
lea eax, [ebp - 4]
mov edx, 0x46b6a4
call fcn.00428af8
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00428f10
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x46b670
mov eax, ebx
call fcn.00426f04
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x46b669
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x46b653
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x46b6b4
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x46b653
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x4a155c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b670
mov eax, dword [ebp - 0xc]
call fcn.00426f24
ret
mov ebx, dword [0x4a155c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b693
lea eax, [ebp - 4]
call fcn.00428a60
ret

Function at 0x48142c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x48148e
call fcn.004813dc
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0047c314
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0047c314
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x48150c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x49ebb4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4815e6
cmp dword [0x49ebb0], 0
jne 0x4815e6
cmp dword [0x49ed94], 0
je 0x4815a0
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004812dc
add esp, 8
mov ebx, eax
test eax, eax
jne 0x481586
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004812dc
add esp, 8
mov ebx, eax
test eax, eax
jne 0x481586
lea ebx, [ebp - 0x84]
jmp 0x481587
inc ebx
call fcn.004814c8
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x481621
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x49ebb8
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0047c314
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x49ebbb
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x481621
cmp dword [0x49ebb0], 0
je 0x481600
cmp dword [0x49ebb0], 0xffffffff
je 0x481621
push esi
call dword [0x49ebb0]
pop ecx
mov eax, dword [0x49ebb4]
test eax, eax
je 0x481621
cmp dword [0x49ebb4], 0xffffffff
je 0x481621
cmp byte [eax], 0
je 0x481621
push esi
push eax
call fcn.0048142c
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410600
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x41060f
pop dword [ebp - 0x10]
mov eax, 0x92edc6ac
sub eax, 0x92acc09d
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x6c57d593
add dword [ebp - 0x20], 0xe1fa6fb8
mov dword [ebp - 0x1c], 0x51026303
add dword [ebp - 0x1c], 0xe130e942
mov dword [ebp - 0x18], 0xad1014ae
add dword [ebp - 0x18], 0x9f3c2f80
mov dword [ebp - 0x14], 0xa9d30a69
add dword [ebp - 0x14], 0x562cf597
lea eax, [ebp - 0x20]
push eax
mov eax, 0xf0c77b0d
add eax, 0xf79d573
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xc5671371
sub dword [ebp - 0x20], 0x50f4aa1b
mov dword [ebp - 0x1c], 0x389fad3d
add dword [ebp - 0x1c], 0x8ccb438
mov dword [ebp - 0x18], 0xfd284cc8
sub dword [ebp - 0x18], 0x99b8e05c
mov dword [ebp - 0x14], 0x9ef9be0b
sub dword [ebp - 0x14], 0x9ef9be0b
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3b0db
push 0
call eax
mov ecx, 0x4af0
xor edx, edx
add edx, eax
mov ebx, 0x6975f859
add ebx, 0x96cbfba7
add ebx, dword [ebp - 0x10]
mov edi, 0x49a6053d
sub edi, 0x35a75ff
xor dword [ebp - 4], 0x3047780d
mov esi, dword [ebx]
add dword [ebp - 8], esi
xor esi, edi
add dword [ebp - 0xc], esi
mov dword [edx], esi
xor dword [ebp - 8], edi
add edx, 4
add ebx, 0x47c74fda
add ebx, 0xb838b02a
loop 0x410728
add eax, 0x11e93
mov ebx, eax
add eax, 0xd2cda3a9
add eax, 0x2d325c5c
mov ecx, 0xab836eef
sub ecx, 0xab436eef
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x410a37
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
je 0x410a76
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x410a76
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x410a76
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x410a76
cmp dword [ecx + 0x74], 0xe
jbe 0x410a76
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

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

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0xbf057c9
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x61004731
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x3005eac9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x3005eae3
test al, 0x10
je 0x3005eae3
xor eax, eax
inc eax
jmp 0x3005eae5
xor eax, eax
pop ebp
ret 4

Function at 0x30060340
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x3002223c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x7ff
push eax
call dword [sym.imp.MSVCR80.dll__vsnprintf]
add esp, 0x10
lea eax, [ebp - 0x804]
push eax
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.3006961b
leave
ret

Function at 0x30063acd
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov esi, ecx
xor ecx, ecx
mov eax, 0x300cd684
inc ecx
lock xadd dword [eax], ecx
inc ecx
cmp ecx, 1
jne 0x30063b1e
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x28]
mov dword [0x300cd688], eax
mov ax, word [ebp - 0x30]
mov word [0x300cd68c], ax
mov eax, dword [ebp - 0x18]
mov dword [0x300cd690], eax
mov eax, dword [ebp - 0x40]
mov dword [0x300cd694], eax
mov eax, esi
pop esi
leave
ret

Function at 0x300667e9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x3002223c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x300cd754], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
jne 0x30066812
mov edi, 0x8ff000ff
jmp 0x30066857
test ebx, ebx
je 0x30066852
call fcn.30066048
mov edi, eax
test edi, edi
jl 0x30066857
push esi
call fcn.30064fbd
mov esi, eax
test esi, esi
je 0x30066852
test byte [esi + 0x1f], 4
jne 0x30066849
push esi
call fcn.30065be5
mov edi, eax
test edi, edi
jge 0x30066849
Function at 0x42ab45
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x456200
cmp edx, dword [eax]
je 0x42ab67
add eax, 8
inc ecx
cmp eax, 0x456290
jl 0x42ab58
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x456200]
jne 0x42ac95
mov eax, dword [0x456a30]
cmp eax, 1
je 0x42ac6f
test eax, eax
jne 0x42ab98
cmp dword [0x456154], 1
je 0x42ac6f
cmp edx, 0xfc
je 0x42ac95
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42abcf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0042b910
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00429ab0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x42ac12
lea eax, [ebp - 0x1a4]
push eax
call fcn.00429ab0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42d490
push edi
call fcn.0042bb00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0042b910
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0042b920
lea eax, [ebp - 0xa0]
push 0x42d470
push eax
call fcn.0042b920
push dword [esi + 0x456204]
lea eax, [ebp - 0xa0]
push eax
call fcn.0042b920
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0042ba74
add esp, 0x2c
pop edi
jmp 0x42ac95
lea eax, [ebp + 8]
lea esi, [esi + 0x456204]
push 0
push eax
push dword [esi]
call fcn.00429ab0
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 0x100082ac
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x100082b6
repz ret
jmp fcn.1000869f
Function at 0x40c510
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
call fcn.0040c4d0
mov edi, eax
call fcn.0040c4f0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40c5ad
push esi
push pe_nt_image_headers32
push 3
push esi
push 1
lea ecx, [ebp - 0x10c]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40c5ad
mov edx, dword [ebp - 8]
push esi
push esi
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call fcn.00414d90
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40c59b
cmp dword [ebp - 4], edi
je 0x40c5a6
push esi
call fcn.00414d20
add esp, 4
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x40c5ca
call fcn.0040c450
push esi
mov edi, eax
call fcn.00414d20
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0040c4b0
add esp, 4
mov edi, eax
push esi
call fcn.00414d20
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ef40
Capabilities:
Get disk information

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
lea eax, [ebx + 0x41]
lea ecx, [esp + 0x1c]
push eax
push 0x4296dc
push ecx
call fcn.004150a0
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
call esi
cmp eax, 5
jne 0x40ef8e
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.004116e0
mov eax, dword [esp + 0x18]
add esp, 8
cmp eax, edi
je 0x40ef9e
inc ebx
cmp ebx, 0x1a
jb 0x40ef52
xor ax, ax
pop edi
pop esi
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40efab
add bl, 0x41
mov byte [eax], bl
mov ax, 1
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x40f4f0
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
test esi, esi
push edi
jne 0x40f506
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x40f51d
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
lea eax, [esp + 0x13]
push 1
push eax
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebp, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [ecx + ebp + 1]
test esi, esi
jne 0x40f54e
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp esi, 0x8000
jbe 0x40f55f
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push esi
call fcn.00414d90
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40f577
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
push ebx
rep stosb byte es:[edi], al
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov eax, dword [0x42e594]
test eax, eax
je 0x40f5aa
push eax
call fcn.00414d20
add esp, 4
lea esi, [ebp + 1]
push esi
call fcn.00414d90
mov edi, eax
add esp, 4
test edi, edi
mov dword [0x42e594], edi
jne 0x40f5d4
push ebx
call fcn.00414d20
add esp, 4
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, esi
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
test ebp, ebp
rep stosb byte es:[edi], al
je 0x40f637
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [0x42e594]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42a544
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.PATH
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
mov esi, eax
call fcn.00414d20
add esp, 4
mov ax, si
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40f780
Capabilities:
Get disk information

Disassembly:
sub esp, 0x308
mov edx, dword [esp + 0x30c]
lea eax, [esp + 0x208]
lea ecx, [esp]
push ebx
push esi
push edi
push 0
push 0
push eax
push ecx
push edx
call fcn.00416140
add esp, 0x14
lea eax, [esp + 0x214]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push 0
push 0
push eax
push ecx
push edx
call fcn.004162e0
add esp, 0x14
lea eax, [esp + 0x10]
push eax
call fcn.0040f950
add esp, 4
test ax, ax
je 0x40f80e
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ax, 1
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x31c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x308
ret
mov eax, dword [0x42a550]
mov dword [esp + 0x10], eax
call fcn.0040ca70
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.0040ef40
add esp, 8
cmp ax, 1
jne 0x40f876
lea edx, [esp + 0x10]
push edx
call fcn.0040f950
add esp, 4
test ax, ax
je 0x40f876
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x31c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov ax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x308
ret
lea ecx, [esp + 0x114]
push ecx
push 0x100
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov al, byte [esp + 0x114]
xor esi, esi
test al, al
je 0x40f936
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea edi, [esp + esi + 0x114]
push edi
call ebx
cmp eax, 5
jne 0x40f8d8
push 0
push 0
push 0x429118
lea edx, [esp + 0x1c]
push edi
push edx
call fcn.004162e0
add esp, 0x14
lea eax, [esp + 0x10]
push eax
call fcn.0040f950
add esp, 4
test ax, ax
jne 0x40f902
cmp byte [edi], 0
je 0x40f8e9
mov al, byte [esp + esi + 0x115]
inc esi
test al, al
jne 0x40f8dd
mov al, byte [esp + esi + 0x115]
inc esi
test al, al
jne 0x40f8a0
xor ax, ax
pop edi
pop esi
pop ebx
add esp, 0x308
ret
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ax, 1
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x31c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x308
ret
pop edi
pop esi
xor ax, ax
pop ebx
add esp, 0x308
ret
Function at 0x4116e0
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x108
push esi
xor esi, esi
cmp eax, esi
push edi
jne 0x411724
mov ecx, dword [esp + 0x118]
mov eax, 1
mov dword [0x42e5e0], eax
mov dword [0x42e5e4], esi
mov dword [ecx], eax
mov eax, dword [0x42e5e4]
mov esi, 1
mov dword [ecx + 4], eax
mov ax, si
pop edi
pop esi
add esp, 0x108
ret
push str.00000001.TMP
push eax
lea ecx, [esp + 0x14]
push str._s_s
push ecx
call fcn.004150a0
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4117af
push esi
push pe_nt_image_headers32
push 3
push esi
push esi
lea eax, [esp + 0x20]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, esi
je 0x4117af
lea ecx, [esp + 8]
push esi
push ecx
push 8
push 0x42e5e0
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4117a8
cmp dword [esp + 8], 8
jne 0x4117a8
mov eax, dword [esp + 0x118]
mov edx, dword [0x42e5e0]
mov esi, 1
mov dword [eax], edx
mov ecx, dword [0x42e5e4]
mov dword [eax + 4], ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, si
pop edi
pop esi
add esp, 0x108
ret

Function at 0x411c60
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
cmp dword [esi + 8], 0x65
jne 0x411caf
mov eax, dword [esp + 0x10]
mov ecx, dword [esi]
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x411caf
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
lea edx, [esp + 0xc]
push 0
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test ax, ax
je 0x411caf
cmp dword [esp + 0xc], edi
jne 0x411caf
mov ax, 1
pop edi
pop esi
ret
pop edi
xor ax, ax
pop esi
ret

Function at 0x411cc0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
cmp dword [esi + 8], 0x65
jne 0x411d0f
mov eax, dword [esp + 0x10]
mov ecx, dword [esi]
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x411d0f
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
lea edx, [esp + 0xc]
push 0
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test ax, ax
je 0x411d0f
cmp dword [esp + 0xc], edi
jne 0x411d0f
mov ax, 1
pop edi
pop esi
ret
pop edi
xor ax, ax
pop esi
ret

Function at 0x411ff0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 8]
push edi
mov al, byte [ecx]
xor edi, edi
mov byte [ebp], al
mov al, byte [ecx]
test al, al
je 0x412022
push esi
mov esi, ebp
sub esi, ecx
mov dl, byte [ecx + 1]
mov al, byte [esi + ecx]
inc edi
inc ecx
dec dl
xor al, dl
mov byte [esi + ecx], al
mov al, byte [ecx]
test al, al
jne 0x41200c
pop esi
mov byte [edi + ebp], 0
mov eax, ebp
pop edi
pop ebp
ret
Function at 0x415840
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.00415900
mov eax, dword [0x42ec78]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x415864
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x42ec74], 1
mov byte [0x42ec70], bl
jne 0x4158be
mov ecx, dword [0x431398]
test ecx, ecx
je 0x4158ac
mov esi, dword [0x431394]
sub esi, 4
cmp esi, ecx
jb 0x4158ac
mov eax, dword [esi]
test eax, eax
je 0x4158a5
call eax
mov ecx, dword [0x431398]
sub esi, 4
cmp esi, ecx
jae 0x415897
push 0x429020
push 0x429018
call fcn.00415920
add esp, 8
push 0x429028
push 0x429024
call fcn.00415920
add esp, 8
test ebx, ebx
je 0x4158dd
call fcn.00415910
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x42ec78], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x416840
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428028
push 0x416fb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x42ec48], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x42ec44], ecx
shl ecx, 8
add ecx, edx
mov dword [0x42ec40], ecx
shr eax, 0x10
mov dword [0x42ec3c], eax
call fcn.00417090
test eax, eax
jne 0x4168aa
push 0x1c
call fcn.004169f0
add esp, 4
call fcn.00419480
test eax, eax
jne 0x4168bd
push 0x10
call fcn.004169f0
add esp, 4
mov dword [ebp - 4], 0
call fcn.0041abc0
call fcn.0041a6c0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x431390], eax
call fcn.0041b7a0
mov dword [0x42ec9c], eax
test eax, eax
je 0x4168f0
mov eax, dword [0x431390]
test eax, eax
jne 0x4168fa
push 0xffffffffffffffff
call fcn.00415800
add esp, 4
call fcn.0041b4f0
call fcn.0041b400
call fcn.004157d0
mov esi, dword [0x431390]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x4169d9
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x416941
test al, al
je 0x416941
and eax, 0xff
push eax
call fcn.0041b3a0
add esp, 4
test eax, eax
je 0x41691b
inc esi
mov dword [ebp - 0x64], esi
jmp 0x41691b
cmp byte [esi], 0x22
jne 0x41694a
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x41695a
cmp al, 0x20
ja 0x41695a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x41694a
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x41697b
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x416980
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00415800
jmp 0x4169be
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x41694a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4169d9