joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c828
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407067
mov dword [ebp - 0x14], eax
cmp dword [0x814534], esi
jne 0x40c91b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c8a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c9fb
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c9fb
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c9fb
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x814534], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x814538], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x81453c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x814544], eax
test eax, eax
je 0x40c918
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x814540], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c940
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c933
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c955
push 4
pop eax
jmp 0x40c9fd
cmp dword [ebp - 0x14], esi
je 0x40c955
push dword [0x814534]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c93a
mov eax, dword [0x814540]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c9b3
cmp dword [0x814544], edi
je 0x40c9b3
push eax
call ebx
push dword [0x814544]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c9b3
test eax, eax
je 0x40c9b3
call ecx
test eax, eax
je 0x40c9a8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c9a8
test byte [ebp - 8], 1
jne 0x40c9b3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c9e3
mov eax, dword [0x814538]
cmp eax, edi
je 0x40c9e0
push eax
call ebx
test eax, eax
je 0x40c9e0
call eax
mov esi, eax
test esi, esi
je 0x40c9e0
mov eax, dword [0x81453c]
cmp eax, edi
je 0x40c9e0
push eax
call ebx
test eax, eax
je 0x40c9e0
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x814534]
call ebx
test eax, eax
je 0x40c9fb
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c9fd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403f7b
mov esp, ebp
pop ebp
ret
Function at 0x426540
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x18000]
push edi
or ebp, 0xffffffff
jmp 0x426562
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x426569
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x426558
mov eax, 1
add ebx, ebx
jne 0x42657b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x426570
jne 0x42658c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x426570
xor ecx, ecx
sub eax, 3
jb 0x4265a0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x426612
mov ebp, eax
add ebx, ebx
jne 0x4265ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4265b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4265dc
inc ecx
add ebx, ebx
jne 0x4265c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4265bd
jne 0x4265d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4265bd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4265fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4265ed
jmp 0x42655e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4265fc
add edi, ecx
jmp 0x42655e
pop esi
mov edi, esi
mov ecx, 7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42661a
cmp byte [edi], 3
jne 0x42661a
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 0x42661f
lea edi, [esi + 0x24000]
mov eax, dword [edi]
or eax, eax
je 0x426697
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28b88]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x28bc4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42664c
mov ecx, edi
jns 0x42667b
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 + 0x28bc8]
or eax, eax
je 0x426691
mov dword [ebx], eax
add ebx, 4
jmp 0x426669
call dword [esi + 0x28bd8]
mov ebp, dword [esi + 0x28bcc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0x4266cb
sub esp, 0xffffff80
jmp 0x40118c

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

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 0x40610d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x40611c
pop dword [ebp - 0x2c]
mov eax, 0x40611c
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0xdc7f1b3
add dword [ebp - 0x3c], 0x408a5398
mov dword [ebp - 0x38], 0xfaed5444
sub dword [ebp - 0x38], 0xc8ba07ff
mov dword [ebp - 0x34], 0xd4a8180b
sub dword [ebp - 0x34], 0x885bd3dd
mov dword [ebp - 0x30], 0x1ab01793
add dword [ebp - 0x30], 0xe54fe86d
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x5e2f98f
add dword [ebp - 0x3c], 0x6e8f6fc7
mov dword [ebp - 0x38], 0xac154b99
add dword [ebp - 0x38], 0x955715dc
mov dword [ebp - 0x34], 0x344a9f26
add dword [ebp - 0x34], 0x2f24cd46
mov dword [ebp - 0x30], 0x4ed11776
sub dword [ebp - 0x30], 0x4ed11776
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x34499053
sub eax, 0x34091f53
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x39b77
push 0
call eax
mov ecx, 0x546f
xor esi, esi
add esi, eax
mov edi, 0x8651b593
add edi, 0x79ef4a6d
add edi, dword [ebp - 0x2c]
mov ebx, 0xee80d038
add ebx, 0xac40889d
mov edx, dword [edi]
xor dword [ebp - 8], 0x72f7f7f4
sub edx, ebx
sub dword [ebp - 0x1c], edx
mov dword [esi], edx
xor dword [ebp - 0x24], ecx
add esi, 0xcf551992
add esi, 0x30aae672
add edi, 4
loop 0x406230
add eax, 0x22a280ba
sub eax, 0x22a13c2b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x401010
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp esi, eax
je 0x401031
push dword [ebp + 0x10]
push eax
push esi
call fcn.004075f0
add esp, 0xc
mov ecx, dword [ebp + 0x10]
xor eax, eax
shr ecx, 3
mov dword [ebp + 0x10], ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x4010ea
lea edx, [esi + 4]
lea ecx, [edi + 0x44]
mov dword [ebp + 0xc], edx
push ebx
lea edx, [eax*8]
mov dword [ebp - 4], 0x10
mov dword [ebp - 0xc], edx
mov ebx, ecx
mov eax, dword [ebx]
lea ebx, [ebx - 4]
xor eax, dword [edx + esi]
mov dword [edx + esi], eax
mov ecx, eax
shr ecx, 0x10
mov edx, eax
movzx ecx, cl
shr edx, 0x18
mov esi, dword [edi + ecx*4 + 0x448]
mov ecx, eax
add esi, dword [edi + edx*4 + 0x48]
mov edx, dword [ebp - 0xc]
shr ecx, 8
movzx ecx, cl
xor esi, dword [edi + ecx*4 + 0x848]
movzx ecx, al
add esi, dword [edi + ecx*4 + 0xc48]
mov ecx, dword [ebp + 0xc]
xor esi, dword [edx + ecx]
sub dword [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov dword [edx + ecx], esi
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [edx + ecx], eax
jne 0x401064
mov ecx, dword [edx + esi]
mov dword [edx + esi], eax
mov dword [edx + esi + 4], ecx
mov eax, dword [edi + 4]
xor eax, ecx
lea ecx, [edi + 0x44]
mov dword [edx + esi + 4], eax
mov eax, dword [edi]
xor dword [edx + esi], eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebp + 0x10]
jb 0x401051
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x401190
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov ebx, dword [edi + ecx*4]
xor ebx, dword [eax]
mov dword [eax], ebx
mov ecx, ebx
shr ecx, 0x10
mov edx, ebx
movzx ecx, cl
shr edx, 0x18
mov esi, dword [edi + ecx*4 + 0x448]
mov ecx, ebx
add esi, dword [edi + edx*4 + 0x48]
shr ecx, 8
movzx ecx, cl
xor esi, dword [edi + ecx*4 + 0x848]
movzx ecx, bl
mov ebx, dword [ebp + 0xc]
add esi, dword [edi + ecx*4 + 0xc48]
xor dword [ebx], esi
mov ecx, dword [ebx]
mov esi, dword [eax]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
inc ecx
mov dword [ebx], esi
mov dword [ebp - 4], ecx
cmp ecx, 0x10
jl 0x4011a1
mov edx, dword [eax]
mov dword [eax], esi
mov dword [ebx], edx
mov ecx, dword [edi + 0x40]
xor ecx, edx
mov dword [ebx], ecx
mov ecx, dword [edi + 0x44]
xor dword [eax], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401260
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movups xmm0, xmmword [0x450230]
push ebx
push esi
mov esi, ecx
push edi
push 0x1000
push 0x450278
movups xmmword [esi], xmm0
lea eax, [esi + 0x48]
mov dword [ebp - 0x10], esi
movups xmm0, xmmword [0x450240]
push eax
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [0x450250]
movups xmmword [esi + 0x20], xmm0
movups xmm0, xmmword [0x450260]
movups xmmword [esi + 0x30], xmm0
movq xmm0, qword [0x450270]
movq qword [esi + 0x40], xmm0
call fcn.004075f0
mov edi, dword [ebp + 0xc]
add esp, 0xc
mov ecx, edi
mov ebx, 4
and ecx, 0x80000003
jns 0x4012d5
dec ecx
or ecx, 0xfffffffc
add ecx, 1
je 0x4012e4
mov eax, ebx
mov ebx, ecx
cdq
idiv ecx
mov ecx, edx
test ecx, ecx
jne 0x4012d7
mov eax, edi
xor ecx, ecx
cdq
idiv ebx
mov edx, 4
mov dword [ebp - 0xc], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004060ef
mov ebx, eax
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], ebx
test eax, eax
jle 0x401369
mov ebx, dword [ebp + 8]
mov ecx, 2
mov esi, dword [ebp - 8]
mov dword [ebp - 4], eax
nop
lea eax, [ecx - 2]
cdq
idiv edi
movzx eax, byte [edx + ebx]
mov byte [ebp + 0xf], al
lea eax, [ecx - 1]
cdq
idiv edi
movzx eax, byte [edx + ebx]
mov byte [ebp + 0xe], al
mov eax, ecx
cdq
idiv edi
movzx eax, byte [edx + ebx]
mov byte [ebp + 0xd], al
lea eax, [ecx + 1]
cdq
idiv edi
movzx eax, byte [edx + ebx]
mov byte [ebp + 0xc], al
mov eax, dword [ebp + 0xc]
mov dword [ecx + esi - 2], eax
add ecx, 4
sub dword [ebp - 4], 1
jne 0x401320
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
lea ecx, [esi + 8]
mov esi, 2
lea eax, [esi - 2]
cdq
lea ecx, [ecx + 0x18]
idiv edi
mov eax, dword [ebx + edx*4]
xor dword [ecx - 0x20], eax
lea eax, [esi - 1]
cdq
idiv edi
mov eax, dword [ebx + edx*4]
xor dword [ecx - 0x1c], eax
mov eax, esi
cdq
idiv edi
mov eax, dword [ebx + edx*4]
xor dword [ecx - 0x18], eax
lea eax, [esi + 1]
cdq
idiv edi
mov eax, dword [ebx + edx*4]
xor dword [ecx - 0x14], eax
lea eax, [esi + 2]
cdq
idiv edi
mov eax, dword [ebx + edx*4]
xor dword [ecx - 0x10], eax
lea eax, [esi + 3]
cdq
add esi, 6
idiv edi
mov eax, dword [ebx + edx*4]
xor dword [ecx - 0xc], eax
lea eax, [esi - 2]
cmp eax, 0x12
jl 0x401374
push ebx
call fcn.004060f8
mov esi, dword [ebp - 0x10]
add esp, 4
mov dword [ebp + 0xc], 0
xor edi, edi
mov dword [ebp + 8], 0
lea eax, [ebp + 8]
mov ecx, esi
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00401190
mov eax, dword [ebp + 0xc]
mov dword [esi + edi*8], eax
mov eax, dword [ebp + 8]
mov dword [esi + edi*8 + 4], eax
inc edi
cmp edi, 9
jl 0x4013e5
lea edi, [esi + 0x4c]
mov ebx, 0x200
nop
lea eax, [ebp + 8]
mov ecx, esi
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00401190
mov eax, dword [ebp + 0xc]
lea edi, [edi + 8]
mov dword [edi - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [edi - 8], eax
sub ebx, 1
jne 0x401410
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4043b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4043e0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4043e0
mov ecx, dword [eax + 0x3c]
cmp ecx, 0x400
jg 0x4043e0
add eax, ecx
xor ecx, ecx
cmp dword [eax], 0x4550
cmovne eax, ecx
pop ebp
ret 4
xor eax, eax
pop ebp
ret 4

Function at 0x4045d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ecx]
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x40462d
lea edx, [esi + 8]
mov edi, eax
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x4045f0
mov eax, dword [esi]
jmp 0x40470b
cmp eax, 0x4e0
jb 0x40470b
lea edi, [esi + 0x9c4]
mov esi, 0xe3
push ebx
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x634]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x404646
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx - 0xd4c]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x404691
mov esi, dword [ebp - 4]
pop ebx
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407038
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407077
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407077
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407077
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407077
cmp dword [ecx + 0x74], 0xe
jbe 0x407077
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x433d94
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4544ec
push 0x4544e4
push str.FlsAlloc
push 0x1e
call fcn.00433a64
mov esi, eax
add esp, 0x10
test esi, esi
je 0x433dc8
push dword [ebp + 8]
mov ecx, esi
call dword [0x4501c8]
call esi
jmp 0x433dce
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x433e12
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4544fc
push 0x4544f4
push str.FlsGetValue
push 0x20
call fcn.00433a64
mov esi, eax
add esp, 0x10
test esi, esi
je 0x433e49
push dword [ebp + 8]
mov ecx, esi
call dword [0x4501c8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x435248
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x45c180]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x435293
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004356f1
test al, al
jne 0x43528d
sub edx, 2
cmp edx, edi
jne 0x435273
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4352b5
lea eax, [edi + 2]
cmp edx, eax
je 0x4352b5
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00434f0f
add esp, 0x10
jmp 0x4353af
push esi
lea ecx, [ebp - 0x255]
call fcn.004356f1
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4352f8
push dword [ebp - 0x25c]
jmp 0x4352a5
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x435335
cmp word [ebp - 0x226], 0
je 0x435356
cmp word [ebp - 0x226], ax
jne 0x435335
cmp word [ebp - 0x224], 0
je 0x435356
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00434f0f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4353a2
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x43530f
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x43538a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4353af
push 0x43495f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0043fc60
add esp, 0x10
jmp 0x43537f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004064ee
leave
ret
Function at 0x436d4c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x436de9
push ebx
push esi
call fcn.00436d08
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00436bfa
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x436d96
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x436de8
push edi
push eax
call fcn.004345a0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x436db6
call fcn.0043490d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x436de7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00436bfa
add esp, 0x20
test eax, eax
jne 0x436dd5
push edi
call fcn.0043490d
jmp 0x436ddd
push ebx
call fcn.0043490d
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x436dec
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x436dfd
pop esi
ret
push ebx
push edi
push esi
call fcn.00436d08
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004345a0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x436e25
push ebx
push esi
push edi
call fcn.004075f0
add esp, 0xc
push 0
call fcn.0043490d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x437706
Capabilities:
Set environment variable

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

Function at 0x438e16
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00438cea
Function at 0x44850f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x45de40]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x44854f
cmp byte [ebx], 0xa
jne 0x44854f
or byte [eax + edi + 0x28], 4
jmp 0x448554
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x448652
mov al, byte [edx]
cmp al, 0x1a
je 0x448634
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x448583
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4485a8
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4485b2
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x448565
jmp 0x448652
push 0
lea eax, [ebp - 0xc]
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 0x44862f
cmp dword [ebp - 0xc], 0
je 0x44862f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x45de40]
test byte [eax + edi + 0x28], 0x48
je 0x448609
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4485f4
mov byte [esi], dl
jmp 0x448605
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x45de40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x448652
cmp byte [ebp - 1], 0xa
jne 0x448618
cmp esi, ebx
jne 0x448618
mov byte [esi], 0xa
jmp 0x448651
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00448361
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x448652
mov byte [esi], 0xd
jmp 0x448651
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x45de40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44864e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x448652
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret