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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x12000]
push edi
jmp 0x42171a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x421721
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x421710
mov eax, 1
add ebx, ebx
jne 0x421733
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x421728
jne 0x421744
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421728
xor ecx, ecx
sub eax, 3
jb 0x421758
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4217ca
mov ebp, eax
add ebx, ebx
jne 0x421763
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x421770
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x421794
inc ecx
add ebx, ebx
jne 0x421780
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x421775
jne 0x421791
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421775
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4217b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4217a5
jmp 0x421716
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4217b4
add edi, ecx
jmp 0x421716
pop esi
mov edi, esi
mov ecx, 0xfde
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4217d2
cmp byte [edi], 5
jne 0x4217d2
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 0x4217d7
lea edi, [esi + 0x1f000]
mov eax, dword [edi]
or eax, eax
je 0x421846
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x21000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x21028]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x421804
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2102c]
or eax, eax
je 0x421840
mov dword [ebx], eax
add ebx, 4
jmp 0x421821
call dword [esi + 0x2103c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x421877
cmp al, 0xef
ja 0x42186a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x42184c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x421859
mov ebp, dword [esi + 0x21030]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x4218ab
sub esp, 0xffffff80
jmp 0x409c2a

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x414f34
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x415009
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x415024
push ebx
push 0x415034
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00405370
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403270
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404f58
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x414fb4
mov al, 0x69
call fcn.00414bac
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00414f08
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x414fbd
call fcn.00414f08
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415010
lea eax, [ebp - 4]
call fcn.00404ebc
ret

Function at 0x415124
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x4151ef
jmp 0x4151e3
cmp dword [esi + 0x10], 0x1000
jne 0x4151cf
test byte [esi + 0x15], 1
jne 0x4151cf
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x415180
cmp ebp, 2
je 0x415180
cmp ebp, 0x10
je 0x415180
cmp ebp, 0x20
jne 0x41519c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x41519c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4151ad
mov eax, dword [esi]
add eax, ebx
call fcn.0041511c
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4151a0
cmp byte [esp + 4], 0
je 0x4151cf
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x4151ef
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x415155
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x405970
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004066f0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004066f0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4059d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x41049c]
test esi, esi
jle 0x405ad0
mov eax, dword [0x4104a0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x405a00
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x405a7f
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4059f0
mov dword [esp], ebx
call fcn.00406340
mov edi, eax
test eax, eax
je 0x405af7
mov eax, dword [0x4104a0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00406450
mov edx, dword [0x4104a0]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x405ad7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x405a78
sub eax, 4
and eax, 0xfffffffb
jne 0x405a86
add dword [0x41049c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x4104a0]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x405a78
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00405970
xor esi, esi
jmp 0x405a0a
mov eax, dword [0x4104a0]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00405970
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00405970
lea esi, [esi]
nop
Function at 0x405fb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4104b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4104b0]
sub esp, 4
test ebx, ebx
je 0x406005
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x405ffe
test esi, esi
je 0x405ffe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x405fe0
mov dword [esp], 0x4104b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402461
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 4, 0
mov esi, eax
lea edx, [eax - 1]
mov ebx, eax
and edx, dword [0x404050]
mov eax, 0x404054
call fcn.0040238b
lea edx, [ebp - 4]
push edx
mov edx, esi
or dl, 0x40
mov edi, 0x402f8b
push edx
sub edi, fcn.00402735
push edi
xor eax, eax
push fcn.00402735
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp - 4], 0
je 0x4024cc
mov eax, fcn.00402735
mov ebx, esi
mov edx, edi
call fcn.0040238b
mov edx, 0x1c000
mov eax, 0x404054
mov ebx, esi
call fcn.004024ff
leave
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x8de208
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8de20e
pop ebp
sub ebp, 6
sub ebp, 0x4de208
jmp 0x8de26c
jmp 0x8de275
mov eax, 0x4de208
add eax, ebp
add eax, 0x93
mov ecx, 0x624
mov edx, 0x79aa3d54
xor byte [eax], dl
inc eax
dec ecx
jne 0x8de28c
jmp 0x8de29f
adc al, 0x3c
push esp
inc esp
push esp
push esp
cmp al, 0x54
cwde
js 0x8de2ff
aad 0xa4
push eax
fidiv dword [edi + 0x502ea4d5]
fidiv dword [edi - 0x54fb6b99]
shr dword [eax + 0x75], 0x10
push esp
add al, 0xdf
cdq
invalid
mov ebp, 0x5454547e
add ecx, ebx
cmp byte [eax + 0x54], dh
invalid
Function at 0x413bc4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x413bd3
pop dword [ebp - 0x1c]
mov eax, 0xa36394a
add eax, 0xf60b0289
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x51efe
push 0
mov eax, 0x11657f00
sub eax, 0x1120cc50
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x9f4f5405
sub ecx, 0x9f4f04b8
xor edx, edx
add edx, eax
mov ebx, 0xd0703e9c
sub ebx, 0xd027b09c
add ebx, dword [ebp - 0x1c]
mov edi, 0x765720d0
sub edi, 0x723c6dbe
xor dword [ebp - 4], 0x2f92eff2
mov esi, dword [ebx]
sub dword [ebp - 0xc], 0xaa1eeb7f
sub esi, edi
mov dword [edx], esi
xor dword [ebp - 0x18], 0x5661de0
add edx, 4
add ebx, 4
loop 0x413c34
add eax, 0x2efa508f
sub eax, 0x2ef92088
xor ebx, ebx
add ebx, eax
add eax, 0x9dcfd3ee
sub eax, 0x9dcfd3e9
mov ecx, 0x99e2f69c
sub ecx, 0x99a2f69c
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x1000bd40
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x100281e0]
cmp ax, 0xcb
je 0x1000be4c
cmp ax, 0xcc
je 0x1000be4c
lea esi, [esi]
mov edx, dword [0x10034090]
test edx, edx
je 0x1000bd75
mov eax, dword [0x10033f40]
call edx
mov ebx, eax
jmp 0x1000bd7a
mov ebx, 0x10033f44
cmp word [0x10033f30], 0
jle 0x1000bda0
mov eax, 0x10033f10
call fcn.1000bfb0
mov eax, ebx
call fcn.1000b900
mov eax, ebx
call fcn.1000b970
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x1000bdc2
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x1000bdbd
mov edx, edi
mov eax, ebx
call fcn.1000ad70
jmp 0x1000bdc0
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x1000bda8
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x10033f30], 0
jle 0x1000be4c
mov edx, 0x10033e50
mov eax, ebx
call fcn.1000aeb0
mov edi, eax
test edi, edi
je 0x1000be1c
mov eax, dword [0x10033ee4]
mov dword [edi + 0xc], eax
cmp dword [0x10033ee4], 0
je 0x1000be10
mov eax, dword [0x10033ee4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x10033ee4], eax
nop
sub word [0x10033f30], 1
cmp word [0x10033f30], 0
sete bl
mov eax, 0x10033f10
call fcn.1000bfd0
test bl, bl
je 0x1000be4c
mov eax, 0x10033f10
call fcn.1000bfa0
lea esi, [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4042e8
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x5f89969
xor edx, 0x5d83f217
mov esi, edx
xor esi, 0xffffffff
and esi, 0x587b6b24
and edx, 0xa78494db
or edx, esi
mov esi, 0x1ad53ee5
mov ebx, 0x1ad536c5
xor ebx, esi
mov esi, 0x7f6d145c
mov ecx, 0x7f6d1658
xor ecx, esi
xor ebx, ecx
xor edx, ebx
mov eax, 0x356bd86a
xor eax, 0xd86ef081
imul esi, dword [0xe389c429], 0x53
push ebx
pop eax
add esp, 0xfffffffc
mov dword [esp], eax
pop ebx
jmp 0x403f26

Function at 0x4051fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405235
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40523e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405248
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405269
mov al, byte [esp]
jmp 0x40526b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4069dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406a24
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406978
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a2b
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406c2c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406cba
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406c77
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x406ca4
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406c8b
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x406c9a
lea edx, [ebp - 4]
call fcn.00406af0
test ebx, ebx
je 0x406c9a
dec ebx
jmp 0x406c7c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cc1
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406cc8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404dd0
add esp, 0x104
pop ebx
ret
Function at 0x413eea
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00422a90
mov eax, dword [0x424014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00416d32
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x413f2c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x414088
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004229e0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x425310]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041851b
mov ecx, dword [esi*4 + 0x425310]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x414081
cmp eax, dword [ecx + edi + 0x24]
jne 0x414081
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414081
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041851b
add esp, 0x14
test edx, edx
jl 0x414081
jg 0x413ff7
test eax, eax
jb 0x414081
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x414081
jl 0x414011
cmp dword [ebp - 0x1008], eax
ja 0x414081
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41402f
test ebx, ebx
je 0x414068
cmp ecx, edi
jae 0x414068
mov al, byte [ecx]
cmp al, 0xd
jne 0x414049
lea eax, [edi - 1]
cmp ecx, eax
jae 0x414055
cmp byte [ecx + 1], 0xa
jne 0x414055
inc ecx
jmp 0x414055
movzx eax, al
movsx eax, byte [eax + 0x424208]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41402f
cmp edx, ebx
jne 0x41402f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x414086
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040ae78
leave
ret
Function at 0x4186f1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x3f
sar ecx, 6
push ebx
imul ebx, eax, 0x38
push esi
mov eax, dword [ecx*4 + 0x425310]
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], 0xa
mov edx, dword [ebx + eax + 0x18]
mov dword [ebp - 0x20], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x41873b
push 0xa
pop edi
cmp word [esi], di
jne 0x41873b
or byte [ebx + eax + 0x28], 4
jmp 0x418740
and byte [ebx + eax + 0x28], 0xfb
lea edx, [esi + edx*2]
mov eax, esi
mov dword [ebp - 0x14], edx
mov edi, esi
mov dword [ebp - 8], eax
cmp esi, edx
jae 0x4188a6
mov dword [ebp - 0x18], 0xd
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0x1c], ecx
push 0x1a
pop ecx
cmp dx, cx
mov ecx, dword [ebp - 0xc]
je 0x418886
add eax, 2
cmp dx, word [ebp - 0x18]
je 0x41878a
mov word [edi], dx
add edi, 2
mov dword [ebp - 8], eax
jmp 0x41887b
cmp eax, dword [ebp - 0x14]
jae 0x4187c0
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x10]
mov edx, eax
mov esi, dword [ebp + 0xc]
sete cl
xor eax, eax
push 0xa
lea ecx, [ecx*2 + 2]
add dword [ebp - 8], ecx
pop ecx
cmp dx, cx
sete al
dec eax
and eax, 3
add eax, ecx
jmp 0x418872
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x24]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41886f
cmp dword [ebp - 0x24], 0
je 0x41886f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x425310]
test byte [ebx + eax + 0x28], 0x48
je 0x418848
mov dx, word [ebp - 4]
lea eax, [edi + 2]
mov dword [ebp - 0x1c], eax
cmp dx, word [ebp - 0x10]
jne 0x418813
push 0xa
pop edx
mov word [edi], dx
jmp 0x418844
push 0xd
pop eax
mov word [edi], ax
mov eax, dword [ecx*4 + 0x425310]
push 0xa
mov byte [ebx + eax + 0x2a], dl
mov eax, dword [ecx*4 + 0x425310]
shr dx, 8
mov byte [ebx + eax + 0x2b], dl
mov eax, dword [ecx*4 + 0x425310]
pop edx
mov byte [ebx + eax + 0x2c], dl
mov eax, dword [ebp - 0x1c]
mov edi, eax
jmp 0x418878
push 0xa
pop eax
cmp word [ebp - 4], ax
jne 0x418855
cmp edi, esi
je 0x418872
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00418539
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x418878
push 0xd
pop eax
mov word [edi], ax
add edi, 2
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jb 0x41875c
jmp 0x4188a6
mov ecx, dword [ecx*4 + 0x425310]
mov al, byte [ecx + ebx + 0x28]
test al, 0x40
jne 0x41889d
or al, 2
mov byte [ecx + ebx + 0x28], al
jmp 0x4188a6
push 0x1a
pop eax
mov word [edi], ax
add edi, 2
sub edi, esi
and edi, 0xfffffffe
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4190c5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418f37