joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438e60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push edi
mov edi, dword [0x49cf78]
push 6
call fcn.00437f50
test eax, eax
je 0x438e85
call eax
movzx eax, ax
push eax
push 0x5130c0
call fcn.00437b60
jmp 0x438ee1
xor eax, eax
push eax
push 0x477000
push eax
push str.Control_PanelDesktopResourceLocale
push closesocket
mov dword [0x5130c0], 0x780030
mov word [0x5130c4], ax
call fcn.00437ad0
cmp word [0x477000], 0
jne 0x438ed2
push 0
push 0x477000
push 0x454a9c
push str..DEFAULTControl_PanelInternational
push reloc.WS2_32.dll_closesocket
call fcn.00437ad0
push 0x477000
push 0x5130c0
call fcn.00437c60
call fcn.00438c00
mov ecx, dword [0x49cfa8]
and ecx, 0x20
push 0x5070a8
mov dword [0x49cf40], ecx
call fcn.004384e0
test eax, eax
jne 0x438fa0
mov ecx, dword [edi + 0x30]
test ecx, ecx
je 0x438fa0
mov edx, dword [edi + 0x34]
push eax
mov eax, dword [0x49cf90]
push 0x49dfe0
lea edx, [eax + edx*2]
push edx
lea eax, [eax + ecx*2]
mov ecx, dword [edi + 0x2c]
push eax
push ecx
call fcn.00437ad0
mov ax, word [0x49dfe0]
test ax, ax
je 0x438fa0
push esi
mov esi, 0x49dfe0
cmp ax, 0x22
jne 0x438f5a
push 0x22
mov esi, 0x49dfe2
push esi
call fcn.004378d0
xor edx, edx
mov word [eax], dx
push esi
call fcn.00437c50
lea eax, [esi + eax*2 - 8]
cmp eax, esi
jbe 0x438f8e
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x438f8e
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x438f88
test al, 0x10
jne 0x438f8e
push esi
call fcn.004384a0
push esi
call fcn.00438460
push eax
push 0x5070a8
call fcn.00437c30
pop esi
push 0x5070a8
call fcn.004384e0
test eax, eax
jne 0x438fbc
mov eax, dword [edi + 0x3c]
push eax
push 0x5070a8
call fcn.00438600
xor ebx, ebx
call fcn.00438dd0
neg eax
sbb eax, eax
pop edi
and eax, 8
pop ebx
ret
Function at 0x439210
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x465100]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x49cf70]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
or ecx, 8
push ecx
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4392ee
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push 0x105
lea edx, [ebp - 0x210]
push edx
push eax
mov eax, dword [ebp - 0x214]
push eax
call esi
test eax, eax
jne 0x4392aa
nop
cmp dword [ebp + 0x10], 0
mov edx, dword [ebp - 0x214]
jne 0x4392e2
push 0
lea ecx, [ebp - 0x210]
push ecx
push edx
call fcn.00439210
test eax, eax
jne 0x4392aa
mov ecx, dword [ebp - 0x214]
push 0x105
lea eax, [ebp - 0x210]
push eax
push 0
push ecx
call esi
test eax, eax
je 0x439270
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00437f50
test eax, eax
je 0x439301
mov ecx, dword [0x49cf70]
push 0
push ecx
push ebx
push edi
call eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b634
mov esp, ebp
pop ebp
ret 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b634
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x49cf70], 0
jne 0x4392e9
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4392e9
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b634
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43b430
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x80074
call fcn.0043fbd0
mov eax, dword [0x465100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push 0x80000
lea eax, [ebp - 0x80014]
push 0
push eax
call fcn.0043f7e0
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43b53a
lea ecx, [ebp - 0x80070]
push edi
push ecx
call fcn.0041b710
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 4
push 0
lea edx, [ebp - 0x80074]
push edx
push 0x80000
lea eax, [ebp - 0x80014]
push eax
push esi
call edi
test eax, eax
je 0x43b4fd
jmp 0x43b4c0
mov eax, dword [ebp - 0x80074]
test eax, eax
je 0x43b4fd
push eax
lea ecx, [ebp - 0x80014]
push ecx
lea edx, [ebp - 0x80070]
push edx
call fcn.0041bdd0
add esp, 0xc
push 0
lea eax, [ebp - 0x80074]
push eax
push 0x80000
lea ecx, [ebp - 0x80014]
push ecx
push esi
call edi
test eax, eax
jne 0x43b4c0
lea edx, [ebp - 0x80070]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.0041c120
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x14]
push ebx
push ecx
call fcn.0043b390
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b634
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0043b634
mov esp, ebp
pop ebp
ret

Function at 0x43b634
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x465100]
jne 0x43b63e
repz ret
jmp fcn.0043fcee
Function at 0x448fec
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x465100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0043ff9e
and dword [ebp - 0x14], 0
cmp dword [0x49be10], 0
mov dword [ebp - 0x18], eax
jne 0x44909f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x449147
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x449147
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x49be10], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x49be14], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x49be18], eax
call edi
push eax
call esi
mov dword [0x49be20], eax
test eax, eax
je 0x44909f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x49be1c], eax
mov eax, dword [0x49be1c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4490f8
cmp dword [0x49be20], ecx
je 0x4490f8
push eax
call esi
push dword [0x49be20]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4490f8
test ebx, ebx
je 0x4490f8
call edi
test eax, eax
je 0x4490ef
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4490ef
test byte [ebp - 8], 1
jne 0x4490f8
or dword [ebp + 0x10], 0x200000
jmp 0x44912b
mov eax, dword [0x49be14]
cmp eax, dword [ebp - 0x18]
je 0x44912b
push eax
call esi
test eax, eax
je 0x44912b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x44912b
mov eax, dword [0x49be18]
cmp eax, dword [ebp - 0x18]
je 0x44912b
push eax
call esi
test eax, eax
je 0x44912b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x49be10]
call esi
test eax, eax
je 0x449147
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x449149
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b634
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x660a175a
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x245279d5
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4538b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3c000]
push edi
jmp 0x4538ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4538d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4538c0
mov eax, 1
add ebx, ebx
jne 0x4538e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4538d8
jne 0x4538f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4538d8
xor ecx, ecx
sub eax, 3
jb 0x453908
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45397a
mov ebp, eax
add ebx, ebx
jne 0x453913
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x453920
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x453944
inc ecx
add ebx, ebx
jne 0x453930
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x453925
jne 0x453941
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x453925
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x453964
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x453955
jmp 0x4538c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x453964
add edi, ecx
jmp 0x4538c6
pop esi
mov edi, esi
mov ecx, 0xde4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x453982
cmp byte [edi], 0x11
jne 0x453982
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 0x453987
lea edi, [esi + 0x51000]
mov eax, dword [edi]
or eax, eax
je 0x4539ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x55110]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x551ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4539b4
mov ecx, edi
jns 0x4539e3
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 + 0x551f0]
or eax, eax
je 0x4539f9
mov dword [ebx], eax
add ebx, 4
jmp 0x4539d1
call dword [esi + 0x55200]
mov ebp, dword [esi + 0x551f4]
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 0x453a33
sub esp, 0xffffff80
jmp 0x41ccd8
Function at 0x401f00
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable

Function at 0x401f60
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x405270]
test esi, esi
jle 0x40204d
mov edi, dword [0x405274]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401f94
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x402046
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x401f80
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x40208a
lea ebx, [esi + esi*2]
mov esi, dword [0x405274]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x405274]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40206a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x40203f
sub eax, 0x40
and eax, 0xffffffbf
je 0x40203f
mov eax, dword [esp + 0x20]
add ebx, dword [0x405274]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x402054
add dword [0x405270], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x401f9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x405274]
mov eax, dword [eax + ebx + 4]
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 dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
Function at 0x402550
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x405608
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x405600]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x4025a5
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 0x40259e
test esi, esi
je 0x40259e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402580
mov dword [esp], 0x405608
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4027c0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x4027f8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x4027ee
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4027fa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4027e0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x416600
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x45604c]
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 0x41664b
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041679f
test al, al
jne 0x416645
sub edx, 2
cmp edx, edi
jne 0x41662b
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41666d
lea eax, [edi + 2]
cmp edx, eax
je 0x41666d
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041654c
add esp, 0x10
jmp 0x416767
push esi
lea ecx, [ebp - 0x255]
call fcn.0041679f
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 0x4166b0
push dword [ebp - 0x25c]
jmp 0x41665d
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 0x4166ed
cmp word [ebp - 0x226], 0
je 0x41670e
cmp word [ebp - 0x226], ax
jne 0x4166ed
cmp word [ebp - 0x224], 0
je 0x41670e
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041654c
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41675a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4166c7
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x416742
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x416767
push 0x4162ad
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041d820
add esp, 0x10
jmp 0x416737
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.00408f56
leave
ret

Function at 0x41739f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4173b0
pop esi
ret
push ebx
push edi
push esi
call fcn.00417368
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004147d5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4173d8
push ebx
push esi
push edi
call fcn.0040a880
add esp, 0xc
push 0
call fcn.0041479b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x41779c
Capabilities:
Set environment variable

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

Function at 0x41a792
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4480a0
push 0x448098
push str.FlsAlloc
push 0x1e
call fcn.0041a5ff
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41a7c6
push dword [ebp + 8]
mov ecx, esi
call dword [0x4441fc]
call esi
jmp 0x41a7cc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41a810
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4480b0
push 0x4480a8
push str.FlsGetValue
push 0x20
call fcn.0041a5ff
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41a847
push dword [ebp + 8]
mov ecx, esi
call dword [0x4441fc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0xc26058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xc261a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xc2607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc2606a
add dl, dl
jne 0xc26089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc260dc
xor eax, eax
add dl, dl
jne 0xc26096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc2617d
add dl, dl
jne 0xc260a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc260b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc260bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc260c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xc260d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xc26075
mov eax, 1
add dl, dl
jne 0xc260ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc260f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc260e1
sub eax, ebx
mov ebx, 1
jne 0xc26128
mov ecx, 1
add dl, dl
jne 0xc2610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc26119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc26105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc26075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xc2613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc2614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc26136
cmp eax, 0x7d00
jae 0xc2616d
cmp eax, 0x500
jb 0xc26168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc26075
cmp eax, 0x7f
ja 0xc26170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc26075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xc2619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xc26075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x231a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0231a1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x231a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x231a06a
add dl, dl
jne 0x231a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x231a0dc
xor eax, eax
add dl, dl
jne 0x231a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x231a17d
add dl, dl
jne 0x231a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x231a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x231a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x231a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x231a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x231a075
mov eax, 1
add dl, dl
jne 0x231a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x231a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x231a0e1
sub eax, ebx
mov ebx, 1
jne 0x231a128
mov ecx, 1
add dl, dl
jne 0x231a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x231a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x231a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x231a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x231a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x231a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x231a136
cmp eax, 0x7d00
jae 0x231a16d
cmp eax, 0x500
jb 0x231a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x231a075
cmp eax, 0x7f
ja 0x231a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x231a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x231a19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x231a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x403c10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a6a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x476458]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
xor eax, eax
mov ebx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
push esi
mov eax, 0x105
lea edi, [ebp - 0x2c]
mov dword [ebp - 4], esi
call fcn.0042a330
mov eax, dword [ebp - 0x2c]
mov edi, 8
cmp dword [ebp - 0x18], edi
jae 0x403c70
lea eax, [ebp - 0x2c]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x403c87
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
push ecx
push eax
call fcn.00441639
mov edx, dword [ebp - 0x1c]
mov ecx, eax
add esp, 8
cmp ecx, edx
ja 0x403caa
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.00403110
jmp 0x403cbc
mov eax, ecx
push esi
sub eax, edx
lea edi, [ebp - 0x2c]
call fcn.0042a330
mov edi, 8
mov edx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x403cc7
lea edx, [ebp - 0x2c]
add ebx, 8
test edx, edx
jne 0x403cd2
xor eax, eax
jmp 0x403ce6
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403cd7
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.00406e90
cmp dword [ebp - 0x18], 8
jb 0x403cff
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004410cb
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00440ba3
mov esp, ebp
pop ebp
ret