joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b169
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x40b182
or eax, 0xffffffff
jmp 0x40b1e3
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x40b1df
push 0x3d
push esi
call fcn.0040b515
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x40b1df
cmp esi, eax
je 0x40b1df
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x40ee34]
sete cl
cmp eax, dword [0x40ee38]
mov dword [ebp - 8], ecx
jne 0x40b1c5
mov edi, eax
call fcn.0040b108
mov dword [0x40ee34], eax
cmp eax, ebx
jne 0x40b21e
cmp dword [ebp + 0xc], ebx
je 0x40b1e7
cmp dword [0x40ee3c], ebx
je 0x40b1e7
call fcn.0040ab32
test eax, eax
je 0x40b21e
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x40b1f0
xor eax, eax
jmp 0x40b1e2
push 4
call fcn.004022a3
cmp eax, ebx
pop ecx
mov dword [0x40ee34], eax
je 0x40b1df
mov dword [eax], ebx
cmp dword [0x40ee3c], ebx
jne 0x40b21e
push 4
call fcn.004022a3
cmp eax, ebx
pop ecx
mov dword [0x40ee3c], eax
je 0x40b1df
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x40ee34]
call fcn.0040b0bb
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x40b27f
cmp dword [esi], ebx
je 0x40b27f
lea esi, [esi + edi*4]
push dword [esi]
call fcn.004022b5
cmp dword [ebp - 8], ebx
pop ecx
jne 0x40b262
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x40b2c0
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x40b259
mov eax, edi
shl eax, 2
push eax
push dword [0x40ee34]
call fcn.004040ac
cmp eax, ebx
pop ecx
pop ecx
je 0x40b2c0
jmp 0x40b2bb
cmp dword [ebp - 8], ebx
jne 0x40b32b
cmp edi, ebx
jge 0x40b28e
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x40ee34]
call fcn.004040ac
cmp eax, ebx
pop ecx
pop ecx
je 0x40b1df
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x40ee34], eax
cmp dword [ebp + 0xc], ebx
je 0x40b315
push dword [ebp - 4]
call fcn.00406f90
inc eax
inc eax
push eax
call fcn.004022a3
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x40b315
push dword [ebp - 4]
push esi
call fcn.004057c0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x40b30e
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.004022b5
pop ecx
cmp dword [ebp - 8], ebx
je 0x40b323
push dword [ebp - 4]
call fcn.004022b5
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x40b1e2
push dword [ebp - 4]
call fcn.004022b5
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x40b1ec
Function at 0x40b664
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x40b692
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x40b697
cmp eax, 1
je 0x40b697
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40b69b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x40e090]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x40b713
push ebx
call fcn.0040b664
test eax, eax
pop ecx
jne 0x40b6e2
call fcn.0040562f
mov dword [eax], 0xf
call fcn.00405626
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0040267e
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x40b725
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40b6d5
inc eax
cmp eax, 0x104
ja 0x40b6d5
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x40b75d
cmp eax, dword [ebp + 0x10]
jg 0x40b740
mov eax, dword [ebp + 0x10]
push eax
call fcn.004022a3
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x40b772
call fcn.00405626
mov dword [eax], 0xc
jmp 0x40b6d5
cmp eax, dword [ebp + 0x10]
jle 0x40b772
call fcn.00405626
mov dword [eax], 0x22
jmp 0x40b6d5
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.004057c0
pop ecx
pop ecx
jmp 0x40b6d7
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.00414db0
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.00414d40
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.00414d40
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.00414d40
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.004150c0
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.00414db0
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.00414d40
add esp, 4
lea esi, [ebp + 1]
push esi
call fcn.00414db0
mov edi, eax
add esp, 4
test edi, edi
mov dword [0x42e594], edi
jne 0x40f5d4
push ebx
call fcn.00414d40
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.00414d40
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.00416160
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.00416300
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.00416300
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.004150c0
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 0x411c80
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
cmp dword [esi + 8], 0x65
jne 0x411ccf
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 0x411ccf
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 0x411ccf
cmp dword [esp + 0xc], edi
jne 0x411ccf
mov ax, 1
pop edi
pop esi
ret
pop edi
xor ax, ax
pop esi
ret

Function at 0x412010
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 0x412042
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 0x41202c
pop esi
mov byte [edi + ebp], 0
mov eax, ebp
pop edi
pop ebp
ret
Function at 0x415860
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.00415920
mov eax, dword [0x42eca0]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x415884
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 [0x42ec9c], 1
mov byte [0x42ec98], bl
jne 0x4158de
mov ecx, dword [0x4313b8]
test ecx, ecx
je 0x4158cc
mov esi, dword [0x4313b4]
sub esi, 4
cmp esi, ecx
jb 0x4158cc
mov eax, dword [esi]
test eax, eax
je 0x4158c5
call eax
mov ecx, dword [0x4313b8]
sub esi, 4
cmp esi, ecx
jae 0x4158b7
push 0x429020
push 0x429018
call fcn.00415940
add esp, 8
push 0x429028
push 0x429024
call fcn.00415940
add esp, 8
test ebx, ebx
je 0x4158fd
call fcn.00415930
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x42eca0], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x416860
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428028
push 0x416fd0
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 [0x42ec70], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x42ec6c], ecx
shl ecx, 8
add ecx, edx
mov dword [0x42ec68], ecx
shr eax, 0x10
mov dword [0x42ec64], eax
call fcn.004170b0
test eax, eax
jne 0x4168ca
push 0x1c
call fcn.00416a10
add esp, 4
call fcn.004194b0
test eax, eax
jne 0x4168dd
push 0x10
call fcn.00416a10
add esp, 4
mov dword [ebp - 4], 0
call fcn.0041abf0
call fcn.0041a6f0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4313b0], eax
call fcn.0041b7d0
mov dword [0x42ecc4], eax
test eax, eax
je 0x416910
mov eax, dword [0x4313b0]
test eax, eax
jne 0x41691a
push 0xffffffffffffffff
call fcn.00415820
add esp, 4
call fcn.0041b520
call fcn.0041b430
call fcn.004157f0
mov esi, dword [0x4313b0]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x4169f9
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x416961
test al, al
je 0x416961
and eax, 0xff
push eax
call fcn.0041b3d0
add esp, 4
test eax, eax
je 0x41693b
inc esi
mov dword [ebp - 0x64], esi
jmp 0x41693b
cmp byte [esi], 0x22
jne 0x41696a
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x41697a
cmp al, 0x20
ja 0x41697a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x41696a
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x41699b
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4169a0
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.00415820
jmp 0x4169de
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 0x41696a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4169f9
Function at 0x418b70
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x418b9c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x430280]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x418bd7
push 2
push ebp
push ecx
call fcn.004190c0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x418d39
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x418c81
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x418c32
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x418c1f
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x418c02
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x418d2a
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x418c7d
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x418bfe
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x418d19
mov eax, dword [esp + 0x18]
test eax, eax
je 0x418cd5
cmp eax, 5
jne 0x418cbe
call fcn.00419020
mov dword [eax], 9
call fcn.00419030
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00418fa0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x418cf5
cmp byte [ebp], 0x1a
jne 0x418cf5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.00419020
mov dword [eax], 0x1c
call fcn.00419030
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x418c7d
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x418d6a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x418c81
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x418c81
Function at 0x4194b0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.004170f0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x42d4d8], eax
je 0x419508
push 0x74
push 1
call fcn.0041d0f0
mov esi, eax
add esp, 8
test esi, esi
je 0x419508
mov eax, dword [0x42d4d8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x419508
push esi
call fcn.00419510
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x419530
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x42d4d8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x41959e
push 0x74
push 1
call fcn.0041d0f0
mov esi, eax
add esp, 8
test esi, esi
je 0x419594
mov ecx, dword [0x42d4d8]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x419594
push esi
call fcn.00419510
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.00416a10
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x41ae00
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.004159a0
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
push esi
push edi
xor ebp, ebp
push 1
push ebp
push ebx
call fcn.004190c0
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x41af40
push 2
push ebp
push ebx
call fcn.004190c0
add esp, 0xc
cmp eax, 0xffffffff
je 0x41af40
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x41aee1
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.0041d8c0
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x41ae86
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00418b70
add esp, 0xc
cmp eax, 0xffffffff
je 0x41aea2
sub esi, eax
test esi, esi
jle 0x41aeba
jmp 0x41ae77
call fcn.00419030
cmp dword [eax], 5
jne 0x41aeb7
call fcn.00419020
mov dword [eax], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.0041d8c0
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.004190c0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x41af27
push 0
push ecx
push ebx
call fcn.004190c0
add esp, 0xc
push ebx
call fcn.0041ab00
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x41af27
call fcn.00419020
mov dword [eax], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00419030
mov dword [eax], esi
push 0
push edi
push ebx
call fcn.004190c0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret