joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52a980
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x30]
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], 8
mov eax, fcn.00529020
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.00412aa0
mov dword [ebp - 0x20], eax
mov eax, str.MAINICON
push eax
push dword [0x5c12d0]
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x52a9d8
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x1c], eax
mov esi, esi
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov eax, str.Window
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassW
test ax, ax
setne byte [ebp - 8]
cmp byte [ebp - 8], 0
je 0x52aa54
or dword [ebp - 0x30], 0x800
cmp dword [0x56e500], 6
jb 0x52aa2c
or dword [ebp - 0x30], 0x20000
mov esi, esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov eax, str.HintWindow
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassW
test ax, ax
setne byte [ebp - 8]
mov esi, esi
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x52bb50
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov byte [ebp - 0xc], 0
mov eax, dword [ebp - 8]
push dword [eax - 8]
call sub.user32.dll_GetClipboardData
mov edx, dword [ebp - 8]
mov dword [edx - 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax - 0x14], 0
je 0x52bbe8
mov eax, dword [ebp - 8]
push dword [eax - 0x14]
call sub.kernel32.dll_GlobalSize
mov edx, dword [ebp - 8]
mov dword [edx - 0x1c], eax
mov eax, dword [ebp - 8]
cmp dword [eax - 0x1c], 0
jle 0x52bbe8
mov eax, dword [ebp - 8]
push dword [eax - 0x14]
call sub.kernel32.dll_GlobalLock
mov edx, dword [ebp - 8]
mov dword [edx - 0x18], eax
xor eax, eax
push fcn.0052bb30
push ebp
push 0x413bf0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax - 0x18]
mov eax, dword [ebp - 8]
mov ecx, dword [eax - 0x1c]
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
call dword [ebx + 0x84]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0052bb30
mov byte [ebp - 0xc], 1
mov al, byte [ebp - 0xc]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x52c2b0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x2c]
push ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
xor eax, eax
push fcn.0052c290
push ebp
push 0x413bf0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
push eax
push 2
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x52c37c
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
call fcn.0049efe0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x2c]
call fcn.0049ef30
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
call fcn.0049f6f0
mov ebx, eax
mov eax, str._DataSize
push eax
push dword [ebp - 0x18]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x24]
mov edx, str.TWin32WidgetSet.ClipboardGetOwnerShip_DataHandle
mov eax, ebx
call fcn.004a0900
mov eax, dword [ebp - 0xc]
mov byte [eax - 0x10], 0
jmp 0x52c3d3
push dword [ebp - 0x10]
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x14], eax
xor eax, eax
push fcn.0052c270
push ebp
push 0x413bf0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
mov ecx, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
call dword [ebx + pe_nt_image_headers32]
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.0052c270
push dword [ebp - 0x10]
push dword [ebp - 4]
call sub.user32.dll_SetClipboardData
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.0052c290
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x53e7f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
xor eax, eax
push fcn.0053e7d0
push ebp
push 0x413bf0
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x5b7e10]
lea eax, [ebp - 0x10]
call fcn.0040a2a0
push dword [ebp - 4]
call sub.user32.dll_GetWindowTextLengthW
mov dword [ebp - 0xc], eax
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.0040a5a0
cmp dword [ebp - 0xc], 0
jle 0x53e868
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x53e85a
mov eax, 0x5c12f0
push eax
push dword [ebp - 4]
call sub.user32.dll_GetWindowTextW
mov dword [ebp - 0xc], eax
mov esi, esi
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
call fcn.0040a5a0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
call fcn.0040ad10
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x53e891
mov edx, dword [edx - 4]
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x53e89d
mov eax, 0x5c12f0
call fcn.0049cf00
mov eax, dword [ebp - 8]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0053e7d0
mov esp, ebp
pop ebp
ret
Function at 0x53fcb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov eax, ecx
mov edx, 0x5b8508
call fcn.0040e2e0
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.0053fca0
push ebp
push 0x413bf0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], 0
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0xc]
add eax, 0x34
xor edx, edx
call fcn.004087f0
mov eax, dword [ebp - 0xc]
mov edx, fcn.00529020
mov dword [eax + 0x2c], edx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [edx + 0x24], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [edx + 0x28], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
xor dx, dx
call fcn.00409150
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add eax, 0x30
call fcn.004087f0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov dword [edx + 0x10], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
mov dword [edx + 0x18], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0xc]
lea ecx, [eax + 0x10]
mov eax, dword [ebp - 0xc]
lea edx, [eax + 0xc]
mov eax, dword [ebp - 4]
call fcn.0053de70
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00540340
mov eax, dword [ebp - 4]
test dword [eax + 0x28], 0x10
jne 0x53fdcc
mov eax, dword [ebp - 4]
call fcn.00482cd0
test al, al
jne 0x53fdcc
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
or eax, 0x8000000
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x24], eax
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0053fca0
mov esp, ebp
pop ebp
ret
Function at 0x5ebd40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1e6000]
push edi
jmp 0x5ebd5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5ebd61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5ebd50
mov eax, 1
add ebx, ebx
jne 0x5ebd73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5ebd84
jne 0x5ebda3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5ebda3
dec eax
add ebx, ebx
jne 0x5ebd90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5ebd68
add ebx, ebx
jne 0x5ebd9f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5ebdf5
xor ecx, ecx
sub eax, 3
jb 0x5ebdbb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5ebe2a
sar eax, 1
mov ebp, eax
jmp 0x5ebdc6
add ebx, ebx
jne 0x5ebdc6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5ebd94
inc ecx
add ebx, ebx
jne 0x5ebdd4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5ebd94
add ebx, ebx
jne 0x5ebde1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5ebdd6
jne 0x5ebdf2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5ebdd6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5ebe14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5ebe06
jmp 0x5ebd56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5ebe14
add edi, ecx
jmp 0x5ebd56
pop esi
mov edi, esi
mov ecx, 0x255
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5ebe32
cmp byte [edi], 1
jne 0x5ebe32
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 0x5ebe37
lea edi, [esi + 0x1e9000]
mov eax, dword [edi]
or eax, eax
je 0x5ebeaf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x20e71c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x20e7d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5ebe64
mov ecx, edi
jns 0x5ebe93
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 + 0x20e7d4]
or eax, eax
je 0x5ebea9
mov dword [ebx], eax
add ebx, 4
jmp 0x5ebe81
call dword [esi + 0x20e7e4]
mov ebp, dword [esi + 0x20e7d8]
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 0x5ebee3
sub esp, 0xffffff80
jmp 0x40354b
Function at 0x100043c0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006534f
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x1009a8a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, esi
and eax, 0xe0000000
cmp eax, 0x20000000
jg 0x1000449c
je 0x10004497
cmp eax, 0x80000000
je 0x10004497
test eax, eax
jne 0x100044a3
lea ecx, [ebp - 0x2c]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::constructor_void_]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Heap::constructor_void_]
mov eax, dword [0x1009bddc]
mov dword [ebp - 0x10], 0xa
mov ecx, dword [eax]
test ecx, ecx
je 0x1000444b
add ecx, 0x28
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Lock::acquire_void_]
mov ecx, dword [edi]
push esi
mov byte [ebp - 4], 1
call fcn.10045d50
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.ScCore.dll_public:_class_ScCore::Variant____thiscall_ScCore::Variant::operator_unsigned_short_int_const__]
mov eax, dword [0x1009bddc]
mov byte [ebp - 4], 2
mov ecx, dword [eax]
test ecx, ecx
je 0x1000447c
mov eax, dword [ebp - 0x10]
lea ecx, [ecx + eax*4]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Lock::release_void_]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call dword [sym.imp.ScCore.dll_public:_double___thiscall_ScCore::Variant::getDouble_void_const]
lea ecx, [ebp - 0x2c]
fstp qword [ebp - 0x14]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::destructor_void_]
jmp 0x100044bf
xorps xmm0, xmm0
jmp 0x100044ba
cmp eax, 0x40000000
je 0x100044af
and esi, 0x1fffffff
movd xmm0, esi
jmp 0x100044b6
movzx eax, si
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [ebp - 0x14], xmm0
fld qword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x402f70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
lea edi, [ebp + 8]
cmp byte [ecx + 0xb], 0
js 0x402f86
mov eax, esi
jne 0x402f8e
jmp 0x402fb4
cmp dword [esi + 4], 0
je 0x402fb4
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [esi + 0xb], 0
js 0x402fa6
mov word [esi], 0
mov byte [esi + 0xb], 0
jmp 0x402fb4
mov eax, dword [esi]
mov word [eax], 0
mov dword [esi + 4], 0
cmp esi, edi
je 0x402fe2
cmp byte [esi + 0xb], 0
movzx eax, byte [edi + 0xb]
js 0x402ff8
test al, al
jns 0x402fd4
mov ecx, esi
push dword [edi + 4]
push dword [edi]
call fcn.0040bac0
jmp 0x402fe2
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
movsd xmm0, qword [edi]
movsd qword [esi], xmm0
cmp byte [edi + 0xb], 0
jns 0x402ff2
push dword [edi]
call fcn.0040d7e0
add esp, 4
pop esi
pop edi
pop ebp
ret 0xc
test al, al
jns 0x403003
mov eax, dword [edi + 4]
mov edx, dword [edi]
jmp 0x403008
and eax, 0x7f
mov edx, edi
mov ecx, esi
push eax
push edx
call fcn.0040b9f0
jmp 0x402fe2
Function at 0x422ba4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44a434
push 0x44a42c
push 0x44a434
push 0x1e
call fcn.00423057
mov esi, eax
add esp, 0x10
test esi, esi
je 0x422bd8
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x422bde
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x422c22
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44a458
push 0x44a450
push 0x44a458
push 0x20
call fcn.00423057
mov esi, eax
add esp, 0x10
test esi, esi
je 0x422c59
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x427e79
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x455014]
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 0x427ec4
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00427fef
test al, al
jne 0x427ebe
sub edx, 2
cmp edx, edi
jne 0x427ea4
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x427ee6
lea eax, [edi + 2]
cmp edx, eax
je 0x427ee6
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00427dc5
add esp, 0x10
jmp 0x427fe0
push esi
lea ecx, [ebp - 0x255]
call fcn.00427fef
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 0x427f29
push dword [ebp - 0x25c]
jmp 0x427ed6
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 0x427f66
cmp word [ebp - 0x226], 0
je 0x427f87
cmp word [ebp - 0x226], ax
jne 0x427f66
cmp word [ebp - 0x224], 0
je 0x427f87
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00427dc5
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x427fd3
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x427f40
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x427fbb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x427fe0
push 0x428013
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0042f0f0
add esp, 0x10
jmp 0x427fb0
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.0040e119
leave
ret
Function at 0x428673
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x428684
pop esi
ret
push ebx
push edi
push esi
call fcn.004286c1
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00424574
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4286ac
push ebx
push esi
push edi
call fcn.004105a0
add esp, 0xc
push 0
call fcn.00421d74
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4286f8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00428703
Function at 0x42b71e
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 + 0x457478]
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 0x42b75e
cmp byte [ebx], 0xa
jne 0x42b75e
or byte [eax + edi + 0x28], 4
jmp 0x42b763
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x42b861
mov al, byte [edx]
cmp al, 0x1a
je 0x42b843
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x42b792
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x42b7b7
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x42b7c1
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 0x42b774
jmp 0x42b861
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 0x42b83e
cmp dword [ebp - 0xc], 0
je 0x42b83e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x457478]
test byte [eax + edi + 0x28], 0x48
je 0x42b818
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42b803
mov byte [esi], dl
jmp 0x42b814
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x457478]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42b861
cmp byte [ebp - 1], 0xa
jne 0x42b827
cmp esi, ebx
jne 0x42b827
mov byte [esi], 0xa
jmp 0x42b860
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042bbd2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42b861
mov byte [esi], 0xd
jmp 0x42b860
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x457478]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42b85d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42b861
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42b86a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x457478]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42b8ad
cmp word [esi], dx
jne 0x42b8ad
or byte [edi + eax + 0x28], 4
jmp 0x42b8b2
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x42b9eb
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x42b9cb
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x42b8f4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42b92a
cmp eax, edx
jae 0x42b936
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x42b8cc
jmp 0x42b9eb
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42b9c7
cmp dword [ebp - 0x14], 0
je 0x42b9c7
mov eax, dword [ebx*4 + 0x457478]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x42b99f
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x42b9e5
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x457478]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x457478]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x457478]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x42b9e8
pop ebx
cmp word [ebp - 4], bx
jne 0x42b9b0
cmp esi, dword [ebp + 0xc]
jne 0x42b9b0
mov word [esi], bx
jmp 0x42b9e8
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042bbd2
add esp, 0x10
cmp word [ebp - 4], bx
je 0x42b9eb
push 0xd
jmp 0x42b9e4
mov ecx, dword [ebx*4 + 0x457478]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42b9e2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42b9eb
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x42b9f8
Capabilities:
Read file on windows

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