joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e5b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x41b014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x40e5e0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410a23
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x40e610
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x40e610
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410a23
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x40e6e6
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x40e639
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40e645
movsx eax, bl
jmp 0x40e67d
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x40e6a7
sub eax, 1
je 0x40e6a7
sub eax, 2
jne 0x40e6e6
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410a23
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40e6c5
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x40e6e6
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x40e6e6
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410a23
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410a23
mov esp, ebp
pop ebp
ret 4
Function at 0x40eca0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x41b014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40ed5c
cmp byte [esi + 0x3d], 0
je 0x40ed5c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40ed4a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x40ed11
sub eax, 1
je 0x40ed15
sub eax, 2
jne 0x40ed4a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410a23
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40ed33
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x40ed4a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410a23
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410a23
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00410a23
mov esp, ebp
pop ebp
ret
Function at 0x5366e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd9000]
push edi
jmp 0x5366fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x536701
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5366f0
mov eax, 1
add ebx, ebx
jne 0x536713
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x536724
jne 0x536743
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x536743
dec eax
add ebx, ebx
jne 0x536730
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x536708
add ebx, ebx
jne 0x53673f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x536795
xor ecx, ecx
sub eax, 3
jb 0x53675b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5367ca
sar eax, 1
mov ebp, eax
jmp 0x536766
add ebx, ebx
jne 0x536766
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x536734
inc ecx
add ebx, ebx
jne 0x536774
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x536734
add ebx, ebx
jne 0x536781
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x536776
jne 0x536792
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x536776
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5367b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5367a6
jmp 0x5366f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5367b4
add edi, ecx
jmp 0x5366f6
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5367d2
cmp byte [edi], 0x11
jne 0x5367d2
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 0x5367d7
lea edi, [esi + 0x12f000]
mov eax, dword [edi]
or eax, eax
je 0x53684f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1878e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x187a60]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x536804
mov ecx, edi
jns 0x536833
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 + 0x187a64]
or eax, eax
je 0x536849
mov dword [ebx], eax
add ebx, 4
jmp 0x536821
call dword [esi + 0x187a74]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x536880
cmp al, 0xef
ja 0x536873
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x536855
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x536862
mov ebp, dword [esi + 0x187a68]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x5368b4
sub esp, 0xffffff80
jmp 0x420577
Function at 0x408939
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
mov esi, dword [esp]
add esp, 4
mov edx, ecx
add edx, 0x12cbb623
call fcn.00408974
add ecx, edx
xor dword [eax], esi
or ecx, edx
dec ecx
inc eax
cmp eax, edi
jne fcn.00408939
push 0xe5cb833c
mov edx, dword [esp]
add esp, 4
ret
Function at 0x1014254f
Capabilities:
Check for peb beingdebugged flag

Disassembly:
call fcn.1013df10
mov eax, dword [eax + 0xc]
jmp 0x10142514
lea esp, [esp + 2]
mov dword [esp + 0x6c], edi
lea esp, [esp + 0x6c]
mov eax, dword fs:[0x30]
jmp 0x101424d4
push eax
jmp 0x1013df0b
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
jmp 0x101424fe
mov dword [esp + 1], esp
mov dword [esp + 0x50], esi
pushal
push bx
jmp 0x101424ea
Function at 0x4168c7
Capabilities:
Accept command line arguments

Disassembly:
in al, 0xd9
or al, byte [eax - 0x5fcb529c]
cmp dl, cl
pop eax
mov dword [0xeb25934c], eax
insb byte es:[edi], dx
pop esi
fcomp dword [edi]
xchg ecx, eax
adc ch, byte [edi - 0x23b243e0]
add eax, dword [esi + ebx - 0x731a9f1f]
adc byte [eax + ecx + 0x55f276f3], bl
mov ebp, esp
add esp, 0xfffffdc4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0x7f
lea ecx, [ebp - 0x23c]
mov dword [ecx], SysReAllocStringLen
add ecx, 4
dec dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0
jge 0x4168e9
xor eax, eax
mov dword [ebp - 0x18], eax
mov edx, dword [ebp + 0xc]
mov eax, edx
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp + 0x10]
jge 0x416a36
mov ecx, dword [ebp - 0x3c]
xor eax, eax
mov al, byte [ecx]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [edx + 0x84]
mov eax, dword [edx]
movzx eax, byte [eax + ecx]
push eax
mov eax, dword [ebp - 8]
pop ecx
sub eax, ecx
mov ecx, eax
imul ecx, eax
mov dword [ebp - 0x24], ecx
mov ecx, dword [edx + 4]
mov ebx, dword [ebp - 0x1c]
shl eax, 4
movzx ecx, byte [ecx + ebx]
mov ebx, dword [ebp - 0xc]
add eax, 0x40
sub ebx, ecx
lea ecx, [ebx + ebx*2]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x34]
imul ecx, dword [ebp - 0x34]
add dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [edx + 8]
movzx edx, byte [edx + ecx]
mov ecx, dword [ebp + 0x14]
dec ebp
adc al, 0x2b
retf 0xc903
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
imul edx, dword [ebp - 0x38]
add dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x34]
shl edx, 3
lea edx, [edx + edx*2]
add edx, 0x90
mov dword [ebp - 0x34], edx
mov ecx, dword [ebp - 0x38]
shl ecx, 5
add ecx, 0x100
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x23c]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x10], 3
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], 7
mov esi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x38]
mov eax, 3
cmp esi, dword [ecx]
jge 0x4169e5
mov dword [ecx], esi
mov bl, byte [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
mov byte [edi], bl
add esi, edx
add edx, 0x200
add ecx, 4
inc dword [ebp - 0x20]
dec eax
test eax, eax
jge 0x4169d7
mov eax, dword [ebp - 0x30]
add dword [ebp - 0x28], eax
add dword [ebp - 0x34], 0xcccccccc
int3
dec ebx
add bh, bh
salc

Function at 0x46d7bf
Capabilities:
Encode data using xor

Disassembly:
mov dword [esi], esp
sub eax, 0x27311ea0
add ah, byte [eax - 0x6f]
push edx
out 0x82, eax
adc byte [eax], bh
clc
pop es
cmp dword [esi + esi*2 + 0x7f04798c], esi
or dword [ebx - 0x4d], esp
mov edx, 0x3edcf5be
mov eax, dword [0x37fe5fcf]
pop edx
clc
pushal
scasd eax, dword es:[edi]
aas
inc edx
pop ds
mov bl, 0x5a
push cs
push ecx
xor esp, dword [0x15e14828]
in al, dx
sub al, byte [ebp + 0x54]
jl 0x46d7d5
invalid
test al, 0x51
pop ecx
jmp 0x56d5569a
Function at 0x483f3f
Capabilities:
Encode data using xor

Disassembly:
js 0x483f6b
inc edx
add byte [edi + 0x272d5663], 0x78
imul edi, dword [edx - 0x120417f5], 0xd9aca699
push esp
jne 0x483eb0
ret
xchg esp, eax
xchg esp, eax
sub ecx, dword [edx + eax]
xor eax, 0x5b47c16d
popal
movsd dword es:[edi], dword [esi]
push edx
jns 0x483f40
push edx
xchg dword [edx], ebx
and ebx, dword [edi]
sub esp, dword [ebp + 0x66]
mov edi, 0x2371a3ea
pop ds
int 0x71
wait
loopne 0x483f16
mov dl, 0xba
out 0, al
ja 0x483f41
cmp eax, 0x2fde923d
fisubr word [edi]
and byte [ebp - 0x42], 0x89
add eax, 0xb88b1fc
sub dword [eax], esi
in al, dx
xor ch, 0x6d
aas
inc ebx
sbb cl, byte [ecx]
nop
mov dword [0xfd2d3754], eax
cmp al, 0x7e
in eax, dx
fsub qword [ecx]
cwde
and dl, byte [ebx]
push cs
cli
lodsb al, byte [esi]
lds esp, [eax + 0x52]
cmc
pop edi
cmp ah, cl
add eax, 0xe1abf802
pop eax
test al, 0xc6
int3
Function at 0x401820
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.tier0.dll_Plat_IsInDebugSession]
movzx eax, al
test eax, eax
je 0x401833
int3
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.tier0.dll_WriteMiniDump]
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop ebp
ret

Function at 0x402130
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x438004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x401f40
mov esi, ecx
call dword [sym.imp.tier0.dll_SpewOutputFunc]
add esp, 4
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
xor bl, bl
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40217d
cmp dword [ebp - 0x94], 6
setae bl
call dword [sym.imp.tier0.dll_CommandLine_Tier0]
push 0
push str._shaderdll
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x24]
test eax, eax
mov edi, str.shaderapidx10.dll
cmovne edi, eax
test bl, bl
jne 0x4021b7
mov edx, str.shaderapidx10.dll
mov ecx, edi
call fcn.0040b630
test eax, eax
mov ecx, str.shaderapidx9.dll
cmovne ecx, edi
mov edi, ecx
push edi
mov ecx, esi
call fcn.004046f0
cmp eax, 0xffffffff
jne 0x4021f9
push str.shaderapidx9.dll
mov ecx, esi
call fcn.004046f0
cmp eax, 0xffffffff
jne 0x4021f9
push str.shaderapiempty.dll
mov ecx, esi
call fcn.004046f0
cmp eax, 0xffffffff
jne 0x4021f9
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040de3d
mov esp, ebp
pop ebp
ret
push str.ShaderDeviceMgr001
push eax
mov ecx, esi
call fcn.00404930
push 0x40c380
mov ecx, esi
mov dword [0x43abc4], eax
call fcn.00404860
push str.VShaderUtil001
push eax
mov ecx, esi
call fcn.00404930
cmp dword [0x43abc4], 0
mov ecx, dword [ebp - 4]
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.0040de3d
mov esp, ebp
pop ebp
ret
Function at 0x40e83f
Capabilities:
Parse pe header

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

Function at 0x41463c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00429140
mov eax, dword [0x438004]
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.0041c506
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41467e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4147da
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00429090
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 + 0x43a6a8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041ea49
mov ecx, dword [esi*4 + 0x43a6a8]
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 0x4147d3
cmp eax, dword [ecx + edi + 0x24]
jne 0x4147d3
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 0x4147d3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041ea49
add esp, 0x14
test edx, edx
jl 0x4147d3
jg 0x414749
test eax, eax
jb 0x4147d3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4147d3
jl 0x414763
cmp dword [ebp - 0x1008], eax
ja 0x4147d3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x414781
test ebx, ebx
je 0x4147ba
cmp ecx, edi
jae 0x4147ba
mov al, byte [ecx]
cmp al, 0xd
jne 0x41479b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4147a7
cmp byte [ecx + 1], 0xa
jne 0x4147a7
inc ecx
jmp 0x4147a7
movzx eax, al
movsx eax, byte [eax + 0x438220]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x414781
cmp edx, ebx
jne 0x414781
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4147d8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040de3d
leave
ret
Function at 0x415e9f
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x438004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x415ee2
call fcn.0041a84e
mov dword [eax], 0xf
call fcn.0041a861
mov dword [eax], 0xd
call fcn.00412316
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040de3d
leave
ret
test eax, eax
jne 0x415ee9
inc eax
jmp 0x415ed6
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x415ed4
xor eax, eax
cmp ecx, 1
setne al
jmp 0x415ed6

Function at 0x416d1a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x416d59
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x416d59
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x416d59
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x416d59
cmp dword [ecx + 0x74], 0xe
jbe 0x416d59
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41eac5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x43a6a8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41eb05
cmp byte [ebx], 0xa
jne 0x41eb05
or byte [edi + eax + 0x28], 4
jmp 0x41eb0a
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41ec09
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41ebec
inc eax
cmp dl, 0xd
je 0x41eb36
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41eb5c
cmp eax, ecx
jae 0x41eb6a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41eb1e
jmp 0x41ec09
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ebe7
cmp dword [ebp - 0x10], 0
je 0x41ebe7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x43a6a8]
test byte [eax + edi + 0x28], 0x48
je 0x41ebc1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ebac
mov byte [esi], dl
jmp 0x41ebbd
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x43a6a8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ec09
cmp byte [ebp - 1], 0xa
jne 0x41ebd0
cmp esi, ebx
jne 0x41ebd0
mov byte [esi], 0xa
jmp 0x41ec08
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041ea67
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ec09
mov byte [esi], 0xd
jmp 0x41ec08
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x43a6a8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ec06
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ec09
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ec12
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x43a6a8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ec58
cmp word [ebx], dx
jne 0x41ec58
or byte [eax + edi + 0x28], 4
jmp 0x41ec5d
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x41edc0
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41eda0
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41ec9e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ecd4
cmp eax, edx
jae 0x41ece2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41ec79
jmp 0x41edc0
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ed9b
cmp dword [ebp - 0x18], 0
je 0x41ed9b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x43a6a8]
test byte [eax + edi + 0x28], 0x48
je 0x41ed71
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x41ed35
mov word [esi], cx
jmp 0x41ed6c
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x43a6a8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x43a6a8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x43a6a8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41edc0
pop eax
cmp word [ebp - 4], ax
jne 0x41ed81
cmp esi, ebx
jne 0x41ed81
mov word [esi], ax
jmp 0x41edbd
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041ea67
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41edc0
push 0xd
pop eax
jmp 0x41ed7c
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x43a6a8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41edba
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41edc0
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x420284
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041fd9f

Function at 0x420503
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42e200
push 0x42e1f8
push str.FlsAlloc
push 0x1f
call fcn.004203c2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x420537
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b1c4]
call esi
jmp 0x42053d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x420581
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42e210
push 0x42e208
push str.FlsGetValue
push 0x21
call fcn.004203c2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4205b8
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b1c4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4205c0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42e218
push 0x42e210
push str.FlsSetValue
push 0x22
call fcn.004203c2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4205fa
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42b1c4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]