joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43bc14
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x43bc26
add esp, 0xfffffff0
call fcn.00402f40
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004118e8
mov eax, ebx
call fcn.0043bf60
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x40b9f8]
call fcn.00402c28
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x40b9f8]
call fcn.00402c28
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x40b9f8]
call fcn.00402c28
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x40b9f8]
call fcn.00402c28
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x40b9f8]
call fcn.00402c28
mov dword [ebx + 0x70], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x43bbe4
push eax
push 0
push 0
mov eax, dword [0x440ba8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x412db0]
call fcn.0041408c
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x412db0]
call fcn.0041408c
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x412db0]
call fcn.0041408c
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.0043c340
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43c25c
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43c25c
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43c25c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x43bd35
call fcn.00402f98
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x43c040
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43c1eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x43c1cc
mov dl, 1
mov eax, dword [0x40bcf8]
call fcn.00402c28
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.004038c8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x43c1bb
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0042aa8c
test al, al
je 0x43c1ae
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x43c1fc
lea eax, [ebp - 0x254]
call fcn.0040835c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x43c1ae
xor eax, eax
push ebp
push 0x43c1a7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x43c234
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x43c190
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403af8
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x43c190
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403af8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c1ae
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x43c0b1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040e97c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c1f2
lea eax, [ebp - 0x260]
call fcn.004038c8
ret

Function at 0x43ca38
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4417c8]
cmp byte [eax + 0x95], 0
jne 0x43caa9
cmp dword [0x4417e4], 0
jne 0x43ca6a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x43c9f4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4417e4], eax
cmp dword [0x4417e0], 0
jne 0x43ca85
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4417e0], eax
cmp dword [0x4417e8], 0
jne 0x43caa9
push esp
push 0
push 0
push 0x43c998
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4417e8], eax
pop edx
ret
Function at 0x43cba0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x43cbb7
add esp, 0xfffffff0
call fcn.00402f40
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004118e8
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40b9f8]
call fcn.00402c28
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40b9f8]
call fcn.00402c28
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x4134e4]
call fcn.00418ed0
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x43cd2c
mov eax, dword [0x440ae0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004192a0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43e6ac
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x440ae0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.00409658
test eax, eax
je 0x43ccaa
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00407d10
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.00409680
test eax, eax
je 0x43ccbe
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403af8
mov eax, dword [0x440a04]
cmp byte [eax], 0
jne 0x43ccef
mov eax, ebx
call fcn.0043ce18
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x43cd21
call fcn.00402f98
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43d088
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4417c8]
cmp dword [eax + 0x24], 0
je 0x43d12b
cmp dword [ebx + 0x84], 0
jne 0x43d125
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x43d018
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x43d125
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x43d0ee
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x43d125
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.0040d0bc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x43d0fd
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x43db38
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x43db6d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004039b0
jmp 0x43db77
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.0040391c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x43ea20
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x43ea58
mov eax, esi
call fcn.0042698c
test al, al
je 0x43ea58
mov eax, dword [ebx + 0x74]
call fcn.00426690
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43ea58
push 0
mov eax, dword [ebx + 0x74]
call fcn.00426690
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x415a76
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x550
push 0x4771a0
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x415ab1
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x427cc1
Capabilities:
Identify system language via api

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 5
call esi
push 9
call esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
push 5
movzx ebx, ax
call esi
push 9
call esi
push 5
and ebx, 0x3ff
call esi
push 9
call esi
cmp bx, 4
jne 0x427d1c
nop
nop
nop
inc eax
dec ebx
dec eax
inc ebx
push str.Chinese
call fcn.0045c82d
pop ecx
push 5
call esi
push 9
call esi
nop
nop
nop
inc eax
dec ebx
dec eax
inc ebx
pop esi
xor eax, eax
pop ebx
ret
push str.Error
call fcn.0045c82d
pop ecx
nop
nop
nop
inc eax
dec ebx
dec eax
inc ebx
push 1
call fcn.0045c7c5
int3

Function at 0x45aee3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x478240]
jne 0x45aeed
repz ret
jmp fcn.0046030c

Function at 0x46aa47
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x478240]
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.0045fd08
and dword [ebp - 0x14], 0
cmp dword [0x47c8e4], 0
mov dword [ebp - 0x18], eax
jne 0x46aafa
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x46aba2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46f7c4
push ebx
call edi
test eax, eax
je 0x46aba2
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x47c8e4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x47c8e8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x47c8ec], eax
call edi
push eax
call esi
mov dword [0x47c8f4], eax
test eax, eax
je 0x46aafa
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x47c8f0], eax
mov eax, dword [0x47c8f0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x46ab53
cmp dword [0x47c8f4], ecx
je 0x46ab53
push eax
call esi
push dword [0x47c8f4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x46ab53
test ebx, ebx
je 0x46ab53
call edi
test eax, eax
je 0x46ab4a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x46ab4a
test byte [ebp - 8], 1
jne 0x46ab53
or dword [ebp + 0x10], 0x200000
jmp 0x46ab86
mov eax, dword [0x47c8e8]
cmp eax, dword [ebp - 0x18]
je 0x46ab86
push eax
call esi
test eax, eax
je 0x46ab86
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x46ab86
mov eax, dword [0x47c8ec]
cmp eax, dword [ebp - 0x18]
je 0x46ab86
push eax
call esi
test eax, eax
je 0x46ab86
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x47c8e4]
call esi
test eax, eax
je 0x46aba2
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x46aba4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045aee3
leave
ret
Function at 0x6fa53030
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._FindResourceW_12
sub esp, 0xc
mov dword [ebp - 0x14], eax
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._LoadResource_8
mov edx, dword [ebp - 0x14]
sub esp, 8
mov edi, eax
mov dword [esp + 4], edx
mov dword [esp], esi
call sym._SizeofResource_8
sub esp, 8
test edi, edi
je 0x6fa53197
mov ecx, eax
mov eax, dword [ebx]
test eax, eax
je 0x6fa531a3
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov dword [ebp - 0x18], ecx
call sym._MultiByteToWideChar_24
lea edx, [eax + 1]
sub esp, 0x18
lea eax, [edx + edx]
mov dword [ebp - 0x14], edx
mov esi, eax
mov dword [ebp - 0x1c], eax
call sym._GetProcessHeap_0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapAlloc_12
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
sub esp, 0xc
test eax, eax
mov esi, eax
je 0x6fa53190
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call sym._MultiByteToWideChar_24
mov eax, dword [ebp - 0x1c]
xor edx, edx
sub esp, 0x18
mov word [esi + eax - 2], dx
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
test ecx, ecx
mov ecx, dword [eax]
mov dword [esp + 4], esi
mov dword [esp], eax
jne 0x6fa53180
call dword [ecx + 0x28]
mov dword [ebx + 8], eax
sub esp, 8
call sym._GetProcessHeap_0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapFree_12
mov eax, dword [ebx + 8]
sub esp, 0xc
lea esp, [ebp - 0xc]
not eax
pop ebx
pop esi
shr eax, 0x1f
pop edi
pop ebp
ret 0x10
call dword [ecx + 0x24]
sub esp, 8
mov dword [ebx + 8], eax
jmp 0x6fa5314a
mov dword [ebx + 8], 0x8007000e
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov edx, ebx
mov eax, esi
mov dword [ebp - 0x14], ecx
call sym._create_registrar
mov ecx, dword [ebp - 0x14]
test eax, eax
jne 0x6fa53092
xor eax, eax
jmp 0x6fa53199

Function at 0x6fa53e40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea esi, [ebp + 0xc]
sub esp, 0x10
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], 0x6fa5650c
call sym._fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll_vfprintf]
call sym._abort
lea esi, [esi]
Function at 0x405646
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x405655
pop dword [ebp - 0x4c]
mov eax, 0x72d8e16f
add eax, 0x8d6774e6
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x5d5e233b
sub dword [ebp - 0x5c], 0xf0bddf0
mov dword [ebp - 0x58], 0xa393ce3b
sub dword [ebp - 0x58], 0x716081f6
mov dword [ebp - 0x54], 0xcd650fc8
add dword [ebp - 0x54], 0x7ee73466
mov dword [ebp - 0x50], 0xe698ddb8
sub dword [ebp - 0x50], 0xe698ddb8
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x82d1431c
sub dword [ebp - 0x5c], 0xe5ed9c6
mov dword [ebp - 0x58], 0x43cb9bd
sub dword [ebp - 0x58], 0xc2d05848
mov dword [ebp - 0x54], 0x6c9a8ca4
sub dword [ebp - 0x54], 0x92b2038
mov dword [ebp - 0x50], 0xfbd70476
add dword [ebp - 0x50], 0x428fb8a
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x360df
push 0
call eax
mov ecx, 0x448a
xor ebx, ebx
add ebx, eax
mov edx, 0xc0bb8859
add edx, 0x3f87d7a7
add edx, dword [ebp - 0x4c]
mov edi, 0x54fe2be2
add edi, 0xdbba1063
sub dword [ebp - 0x20], 0x72ac6ea8
mov esi, dword [edx]
add esi, edi
add dword [ebp - 0x38], 0x8724d564
mov dword [ebx], esi
xor dword [ebp - 0x2c], ecx
add ebx, 4
add edx, 0x87faa436
sub edx, 0x87faa432
loop 0x405769
add eax, 0x51eb2e4a
sub eax, 0x51ea294f
xor ebx, ebx
add ebx, eax
add eax, 0x2557aecd
sub eax, 0x2557aec8
mov ecx, 0x4d15ad90
add ecx, 0xb32a5270
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x4058f5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421968
push esi
call fcn.00405d21
push esi
call fcn.004058a8
mov edi, eax
test edi, edi
jne 0x405916
xor eax, eax
jmp 0x405968
push edi
call fcn.00405f83
test byte [0x423f78], 0x80
je 0x40592f
mov al, byte [edi]
test al, al
je 0x405912
cmp al, 0x5c
je 0x405912
sub edi, esi
jmp 0x405947
call fcn.0040601c
test eax, eax
je 0x405941
test byte [eax], 0x10
je 0x405912
push esi
call fcn.0040585b
push esi
call sub.kernel32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405933
call fcn.00405814
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4059d9
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4059f5
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
ret 4

Function at 0x4059f8
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileA]
ret 0xc
Function at 0x407701
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x407710
pop dword [ebp - 0x48]
mov eax, 0x855eebb2
add eax, 0x7ae18b5e
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x4a666c41
add dword [ebp - 0x58], 0x3ebd90a
mov dword [ebp - 0x54], 0x9e832c24
sub dword [ebp - 0x54], 0x6c4fdfdf
mov dword [ebp - 0x50], 0x3c7e94c1
add dword [ebp - 0x50], 0xfcdaf6d
mov dword [ebp - 0x4c], 0xa55ddc71
sub dword [ebp - 0x4c], 0xa55ddc71
lea eax, [ebp - 0x58]
push eax
mov eax, 0xfc382c4d
add eax, 0x40853c7
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xc4bfb812
add dword [ebp - 0x58], 0xafb2b144
mov dword [ebp - 0x54], 0xb414dc2e
add dword [ebp - 0x54], 0x8d578547
mov dword [ebp - 0x50], 0x3e6d232c
sub dword [ebp - 0x50], 0xdafdb6c0
mov dword [ebp - 0x4c], 0x63811967
add dword [ebp - 0x4c], 0x9c7ee699
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0xaf05ac0d
sub eax, 0xaec52bfd
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x3a838
push 0
call eax
mov ecx, 0x5569
xor ebx, ebx
add ebx, eax
mov edx, 0x10f8b5ef
sub edx, 0x10b7c9ef
add edx, dword [ebp - 0x48]
mov edi, 0xada98343
sub edi, 0xa7d5a94f
xor dword [ebp - 0x40], ebx
mov esi, dword [edx]
xor dword [ebp - 8], edx
xor esi, edi
sub dword [ebp - 0x30], 0x3af38cef
mov dword [ebx], esi
xor dword [ebp - 0x1c], ecx
add ebx, 0x7b65ae0f
add ebx, 0x849a51f5
add edx, 4
loop 0x40782e
add eax, 0x14877
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x405950
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x405971
jl 0x405968
test edi, edi
jne 0x405971
xor eax, eax
xor edx, edx
jmp 0x405a32
cmp dword [ebx + 0x38], 0
je 0x405986
push eax
push edi
push dword [ebp + 8]
call fcn.00405a40
jmp 0x405a32
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4059cd
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4059cd
cmp eax, edi
jb 0x4059a7
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00406fe0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4059d3
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x405a27
mov ecx, ebx
call fcn.004050c9
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x405a12
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040edb0
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x405a27
jmp 0x4059e5
test edx, edx
je 0x405a27
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040edb0
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x406e10
Capabilities:
Parse pe header

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

Function at 0x41583b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x427808
push 0x427800
push str.FlsAlloc
push 0x1f
call fcn.004156c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41586f
push dword [ebp + 8]
mov ecx, esi
call dword [0x42314c]
call esi
jmp 0x415875
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4158b9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x427818
push 0x427810
push str.FlsGetValue
push 0x21
call fcn.004156c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4158f0
push dword [ebp + 8]
mov ecx, esi
call dword [0x42314c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4158f8
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x427820
push 0x427818
push str.FlsSetValue
push 0x22
call fcn.004156c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415932
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42314c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]