joyce8/EMBER2024-capa huggingface dataset:
Function at 0x8b9090
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x363000]
push edi
jmp 0x8b90aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8b90b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8b90a0
mov eax, 1
add ebx, ebx
jne 0x8b90c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8b90d4
jne 0x8b90f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8b90f3
dec eax
add ebx, ebx
jne 0x8b90e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8b90b8
add ebx, ebx
jne 0x8b90ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8b9145
xor ecx, ecx
sub eax, 3
jb 0x8b910b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8b917a
sar eax, 1
mov ebp, eax
jmp 0x8b9116
add ebx, ebx
jne 0x8b9116
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8b90e4
inc ecx
add ebx, ebx
jne 0x8b9124
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8b90e4
add ebx, ebx
jne 0x8b9131
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8b9126
jne 0x8b9142
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8b9126
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8b9164
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8b9156
jmp 0x8b90a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8b9164
add edi, ecx
jmp 0x8b90a6
pop esi
mov edi, esi
mov ecx, 0x8de0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8b9182
cmp byte [edi], 0x29
jne 0x8b9182
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x8b9187
lea edi, [esi + 0x4b5000]
mov eax, dword [edi]
or eax, eax
je 0x8b91ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4cb0bc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4cb1fc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8b91b4
mov ecx, edi
jns 0x8b91e3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4cb200]
or eax, eax
je 0x8b91f9
mov dword [ebx], eax
add ebx, 4
jmp 0x8b91d1
call dword [esi + 0x4cb210]
mov ebp, dword [esi + 0x4cb204]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x8b9233
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x410200
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
mov word [ebp - 8], 0
mov ecx, 0xa
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
mov edx, dword [sym.imp.USER32.dll_DefWindowProcA]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0xc
mov dword [ebp - 0x28], 0xc
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
mov word [ebp - 0xc], ax
mov ecx, dword [ebp - 0xc]
and ecx, 0xffff
test ecx, ecx
je 0x4102c7
push 0
mov edx, dword [ebp + 8]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4102c7
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov word [ebp - 8], 1
mov ax, word [ebp - 8]
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x411180
Capabilities:
Get disk information

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push edi
mov edi, dword [esp + 0x38]
xor ebx, ebx
lea eax, [ebx + 0x41]
lea ecx, [esp + 0x38]
push eax
push 0x42a890
push ecx
call fcn.00417fe0
add esp, 0xc
lea edx, [esp + 0x38]
push edx
call esi
cmp eax, 5
jne 0x4111d6
push edi
lea eax, [esp + 0x14]
push 0
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.00412740
mov eax, dword [esp + 0x24]
add esp, 0x10
cmp eax, ebp
je 0x4111e7
inc ebx
cmp ebx, 0x1a
jb 0x411197
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4111f4
add bl, 0x41
mov byte [eax], bl
mov ax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x411780
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 0x411796
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 0x4117ad
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 0x4117de
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp esi, 0x8000
jbe 0x4117ef
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push esi
call fcn.00417f10
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x411807
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 [0x42f794]
test eax, eax
je 0x41183a
push eax
call fcn.00417ea0
add esp, 4
lea esi, [ebp + 1]
push esi
call fcn.00417f10
mov edi, eax
add esp, 4
test edi, edi
mov dword [0x42f794], edi
jne 0x411864
push ebx
call fcn.00417ea0
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 0x4118c7
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 [0x42f794]
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, 0x42b6e4
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.00417ea0
add esp, 4
mov ax, si
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4119b0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x4119f4
mov edx, dword [esp + 0x108]
lea eax, [esp]
push edx
push eax
call fcn.00411cb0
add esp, 8
add esp, 0x104
ret
mov ecx, dword [esp + 0x108]
lea edx, [esp]
push ecx
push edx
call fcn.00411a10
add esp, 8
add esp, 0x104
ret

Function at 0x411a10
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.004195a0
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.00419a80
add esp, 0x14
lea eax, [esp + 0x10]
push eax
call fcn.00411be0
add esp, 4
test ax, ax
je 0x411a9e
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 [0x42b6f0]
mov dword [esp + 0x10], eax
call fcn.00410420
push eax
call fcn.004102d0
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00411180
add esp, 0xc
cmp ax, 1
jne 0x411b0c
lea edx, [esp + 0x10]
push edx
call fcn.00411be0
add esp, 4
test ax, ax
je 0x411b0c
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 0x411bcc
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea edi, [esp + esi + 0x114]
push edi
call ebx
cmp eax, 5
jne 0x411b6e
push 0
push 0
push 0x42a18c
lea edx, [esp + 0x1c]
push edi
push edx
call fcn.00419a80
add esp, 0x14
lea eax, [esp + 0x10]
push eax
call fcn.00411be0
add esp, 4
test ax, ax
jne 0x411b98
cmp byte [edi], 0
je 0x411b7f
mov al, byte [esp + esi + 0x115]
inc esi
test al, al
jne 0x411b73
mov al, byte [esp + esi + 0x115]
inc esi
test al, al
jne 0x411b36
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 0x412740
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x108
push ebx
push esi
xor esi, esi
push edi
cmp eax, esi
jne 0x4127b2
mov edi, dword [esp + 0x11c]
mov dword [0x42f80c], esi
mov dword [0x42f810], esi
mov dword [0x42f814], esi
mov ecx, 7
mov esi, 0x42f808
mov dword [0x42f808], 2
mov dword [0x42f818], 1
mov dword [0x42f81c], 0x2d
mov dword [0x42f820], 0xb
rep movsd dword es:[edi], dword [esi]
mov esi, 1
mov ax, si
pop edi
pop esi
pop ebx
add esp, 0x108
ret
cmp word [esp + 0x120], si
je 0x4127ce
push str.00000001.LT1
push eax
lea eax, [esp + 0x18]
push str._s_s
push eax
jmp 0x4127de
push str.00000001.TMP
push eax
lea ecx, [esp + 0x18]
push str._s_s
push ecx
call fcn.00417fe0
add esp, 0x10
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4128a2
push esi
push 0x80
push 3
push esi
push esi
lea eax, [esp + 0x24]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, esi
je 0x4128a2
mov ecx, 7
xor eax, eax
mov edi, 0x42f808
push esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push ecx
push 0x1c
push 0x42f808
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41289b
mov eax, dword [esp + 0xc]
cmp eax, 0x14
jne 0x412862
mov edi, dword [esp + 0x11c]
mov ecx, 7
mov esi, 0x42f808
rep movsd dword es:[edi], dword [esi]
jmp 0x412896
cmp eax, 0x1c
jne 0x41289b
mov eax, dword [esp + 0x11c]
mov ecx, 7
mov esi, 0x42f808
mov edi, eax
rep movsd dword es:[edi], dword [esi]
cmp dword [0x42f808], 1
jbe 0x412896
mov edx, dword [esp + 0x124]
push eax
push edx
call fcn.004128d0
add esp, 8
mov esi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, si
pop edi
pop esi
pop ebx
add esp, 0x108
ret

Function at 0x412d50
Capabilities:
Read file on windows

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

Function at 0x412db0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
cmp dword [esi + 8], 0x65
jne 0x412dff
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 0x412dff
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 0x412dff
cmp dword [esp + 0xc], edi
jne 0x412dff
mov ax, 1
pop edi
pop esi
ret
pop edi
xor ax, ax
pop esi
ret
Function at 0x413160
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 0x413192
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 0x41317c
pop esi
mov byte [edi + ebp], 0
mov eax, ebp
pop edi
pop ebp
ret

Function at 0x4169b5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
jmp 0x4169c5
mov ecx, ecx
jo 0x4169c8
nop
jno 0x4169c8
jmp 0x4169be
jae 0x4169d5
je 0x4169d3
xchg ebp, ebp
ja 0x4169d3
xchg ebp, ebp
nop
jmp 0x4169d8
jae 0x4169ca
ror dword [ebx - 0xdaf7bb], 1
add byte [eax], al
add byte [ebx - 0x1e7ef3b3], cl
inc dword [eax]
add byte [eax], al
mov eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 0xc]
and ecx, 0xff
xor eax, ecx
mov byte [ebp - 4], al
jne 0x4169fa
mov edx, edx
nop
nop
je 0x4169f8
xchg ecx, ecx
jmp 0x416a02
ja 0x4169fd
nop
jne 0x4169f0
xchg ebp, ebp
ror dword [edx + 0x5e5ffc45], 0x5b
mov al, byte [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x418aa0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.00418b60
mov eax, dword [0x42fee8]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x418ac4
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 [0x42fee4], 1
mov byte [0x42fee0], bl
jne 0x418b1e
mov ecx, dword [0x432958]
test ecx, ecx
je 0x418b0c
mov esi, dword [0x432954]
sub esi, 4
cmp esi, ecx
jb 0x418b0c
mov eax, dword [esi]
test eax, eax
je 0x418b05
call eax
mov ecx, dword [0x432958]
sub esi, 4
cmp esi, ecx
jae 0x418af7
push 0x42a01c
push 0x42a014
call fcn.00418b80
add esp, 8
push 0x42a024
push 0x42a020
call fcn.00418b80
add esp, 8
test ebx, ebx
je 0x418b3d
call fcn.00418b70
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x42fee8], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x419fe0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428208
push 0x41a790
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 [0x42feb8], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x42feb4], ecx
shl ecx, 8
add ecx, edx
mov dword [0x42feb0], ecx
shr eax, 0x10
mov dword [0x42feac], eax
call fcn.0041a870
test eax, eax
jne 0x41a04a
push 0x1c
call fcn.0041a1c0
add esp, 4
call fcn.0041cb80
test eax, eax
jne 0x41a05d
push 0x10
call fcn.0041a1c0
add esp, 4
mov dword [ebp - 4], 0
call fcn.0041e4d0
call fcn.0041dfd0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x432950], eax
call fcn.0041f0b0
mov dword [0x42ff0c], eax
test eax, eax
je 0x41a090
mov eax, dword [0x432950]
test eax, eax
jne 0x41a09a
push 0xffffffffffffffff
call fcn.00418a60
add esp, 4
call fcn.0041ee00
call fcn.0041ed10
call fcn.00418a30
mov esi, dword [0x432950]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x41a179
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x41a0e1
test al, al
je 0x41a0e1
and eax, 0xff
push eax
call fcn.0041ecb0
add esp, 4
test eax, eax
je 0x41a0bb
inc esi
mov dword [ebp - 0x64], esi
jmp 0x41a0bb
cmp byte [esi], 0x22
jne 0x41a0ea
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x41a0fa
cmp al, 0x20
ja 0x41a0fa
inc esi
mov dword [ebp - 0x64], esi
jmp 0x41a0ea
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x41a11b
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x41a120
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.00418a60
jmp 0x41a15e
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 0x41a0ea
inc esi
mov dword [ebp - 0x64], esi
jmp 0x41a179

Function at 0x41a1c0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x42ff14], 1
jne 0x41a1ce
call fcn.0041f210
mov eax, dword [esp + 4]
push eax
call fcn.0041f250
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x41c240
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 0x41c26c
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 + 0x431820]
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 0x41c2a7
push 2
push ebp
push ecx
call fcn.0041c790
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x41c409
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x41c351
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x41c302
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x41c2ef
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 0x41c2d2
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 0x41c3fa
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x41c34d
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x41c2ce
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x41c3e9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41c3a5
cmp eax, 5
jne 0x41c38e
call fcn.0041c6f0
mov dword [eax], 9
call fcn.0041c700
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.0041c670
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 0x41c3c5
cmp byte [ebp], 0x1a
jne 0x41c3c5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.0041c6f0
mov dword [eax], 0x1c
call fcn.0041c700
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 0x41c34d
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 0x41c43a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x41c351
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x41c351
Function at 0x41cb80
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.0041a8b0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x42e758], eax
je 0x41cbd8
push 0x74
push 1
call fcn.00420780
mov esi, eax
add esp, 8
test esi, esi
je 0x41cbd8
mov eax, dword [0x42e758]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41cbd8
push esi
call fcn.0041cbe0
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 0x41cc00
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 [0x42e758]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x41cc6e
push 0x74
push 1
call fcn.00420780
mov esi, eax
add esp, 8
test esi, esi
je 0x41cc64
mov ecx, dword [0x42e758]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41cc64
push esi
call fcn.0041cbe0
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.0041a190
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x41e6e0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00418be0
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
push esi
push edi
xor ebp, ebp
push 1
push ebp
push ebx
call fcn.0041c790
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x41e820
push 2
push ebp
push ebx
call fcn.0041c790
add esp, 0xc
cmp eax, 0xffffffff
je 0x41e820
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x41e7c1
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.00420c10
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x41e766
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.0041c240
add esp, 0xc
cmp eax, 0xffffffff
je 0x41e782
sub esi, eax
test esi, esi
jle 0x41e79a
jmp 0x41e757
call fcn.0041c700
cmp dword [eax], 5
jne 0x41e797
call fcn.0041c6f0
mov dword [eax], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.00420c10
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.0041c790
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x41e807
push 0
push ecx
push ebx
call fcn.0041c790
add esp, 0xc
push ebx
call fcn.0041e3e0
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 0x41e807
call fcn.0041c6f0
mov dword [eax], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.0041c700
mov dword [eax], esi
push 0
push edi
push ebx
call fcn.0041c790
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