joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404b40
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1004
call fcn.0041c290
push ebp
push esi
push edi
call fcn.0043629f
mov eax, dword [eax + 0xc]
push 0x43c2ec
push 0x8b
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x404c6c
call fcn.0043629f
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404c6c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
call fcn.0043629f
mov eax, dword [eax + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push str.updater.exe
mov edi, eax
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404c5f
push 0
lea eax, [esp + 0x10]
push eax
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, dword [esp + 0xc]
jne 0x404c4b
push str._APP__Run_external_updater
call fcn.00402f00
mov byte [esp + 0x14], 0
xor eax, eax
mov ecx, 0x3ff
lea edi, [esp + 0x15]
rep stosd dword es:[edi], eax
push str.updater.exe
stosw word es:[edi], ax
lea ecx, [esp + 0x18]
push str.._s
push ecx
stosb byte es:[edi], al
call fcn.0041b463
add esp, 0x10
push 5
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret
push str._APP__Invalid_updater_file
call fcn.00402f00
add esp, 4
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret
push str._APP__Cannot_create_updater_file
call fcn.00402f00
add esp, 4
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret
Function at 0x4055e0
Capabilities:
Get file version info
Identify system language via api

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4391c0
push eax
mov eax, dword [str.unknown]
mov dword fs:[0], esp
sub esp, 0x10
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov edi, dword [esp + 0x2c]
lea edx, [esp + 0x10]
mov dword [ebp], eax
mov ecx, dword [0x43c454]
push edx
push edi
mov dword [ebp + 4], ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x405759
push ebx
push esi
call fcn.0042a81e
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x14]
push ebx
push esi
push eax
push edi
mov dword [esp + 0x38], 0
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40574f
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x38]
push edx
push str.VarFileInfoTranslation
push ebx
mov dword [esp + 0x44], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40574f
call fcn.0042a828
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x30], eax
cmp dword [esp + 0x10], 4
mov byte [esp + 0x28], 1
jne 0x4056d4
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
push ecx
mov edx, eax
shr edx, 0x18
push edx
mov ecx, eax
movzx edx, ah
and ecx, 0xff
push ecx
push edx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x40]
push str.StringFileInfo_02X_02X_02X_02XProductVersion
push eax
call fcn.00405260
add esp, 0x18
jmp 0x4056f0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx ecx, ax
push ecx
lea edx, [esp + 0x34]
push str.StringFileInfo_04X04B0ProductVersion
push edx
call fcn.00405260
add esp, 0xc
mov esi, dword [esp + 0x30]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x38]
push ecx
push esi
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40571f
mov byte [esp + 0x28], al
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x405745
mov eax, dword [esp + 0x34]
mov edx, ebp
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x405727
lea eax, [esi - 0x10]
mov byte [esp + 0x28], cl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40574f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push ebx
call fcn.0042a823
add esp, 4
pop ebx
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x4069c1
Capabilities:
Create process on windows
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov al, byte [esi + 0x790]
mov ebx, 1
cmp al, bl
je 0x406a97
cmp byte [esi + 0x98c], bl
je 0x406a97
mov al, byte [esi + 0x14c0]
test al, al
jne 0x406a1f
mov al, byte [esi + 0x791]
test al, al
push 0x43bb83
lea ecx, [esi + 0xb6c]
push 0x43bb83
je 0x406a0e
push str.Gunzweb_Gunzupdate_UpdateTest
jmp 0x406a13
push str.Gunzweb_Gunzupdate_
push 0x50
push str.61.14.209.22
call fcn.0040c660
mov al, byte [esi + 0x17dc]
push ebp
push edi
xor edi, edi
cmp al, bl
jne 0x406a47
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0xa
jg 0x406a7f
push 0x64
call ebp
mov al, byte [esi + 0x17dc]
inc edi
cmp al, bl
je 0x406a33
push 0
push 0
push 0
push 0
push esi
push 0x405390
mov byte [esi + 0x17dc], bl
call fcn.0042ff6e
mov dword [esi + 0x17d8], eax
mov eax, dword [eax + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop ebp
lea ecx, [esi + 0x794]
pop esi
pop ebx
jmp fcn.0042e9f6
push str._APP__ERROR___The_thread_is_not_terminating.
call fcn.00402f00
add esp, 4
pop edi
mov dword [esi + 0xb68], ebx
pop ebp
pop esi
pop ebx
ret
mov ecx, esi
call fcn.00406470
test al, al
je 0x406a94
mov dword [esi + 0xb68], 8
pop esi
pop ebx
jmp fcn.00404a60

Function at 0x406c80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x439302
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [esp + 0x58]
push ebx
push ebp
push esi
push eax
mov ebp, ecx
push 0x69
mov dword [esp + 0x14], ebp
call fcn.00409c10
lea esi, [ebp + 0x758]
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x5c], ebx
mov dword [ebp], method.CDialog.virtual_0
call fcn.0042bedc
mov dword [esi], vtable.CStatic.0
lea esi, [ebp + 0x7a8]
mov ecx, esi
mov byte [esp + 0x5c], 1
call fcn.0042bedc
mov dword [esi], vtable.CListBox.0
lea ecx, [ebp + 0x7f8]
mov byte [esp + 0x5c], 2
call fcn.00409240
lea ecx, [ebp + 0x8e4]
mov byte [esp + 0x5c], 3
call fcn.00409240
call fcn.0042a828
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0x9d0], eax
call fcn.0042a828
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0x9d8], eax
cmp byte [ebp + 0x560], bl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x10], 0x258
mov dword [esp + 0x14], 0x1ae
mov dword [esp + 0x18], 0x84
mov dword [esp + 0x24], 0x1e1e1e
mov dword [esp + 0x28], 0xb7bac4
jne 0x406da2
push edi
lea edi, [ebp + 0x49c]
mov ecx, 0x11
lea esi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
pop edi
mov ecx, dword [esp + 0x54]
mov dword [ebp + 0x9e0], ebx
mov dword [ebp + 0x9dc], ebx
pop esi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 4
Function at 0x4071c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x439354
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [esp + 0x58]
push ebx
push ebp
push esi
push eax
mov ebp, ecx
push 0x67
mov dword [esp + 0x14], ebp
call fcn.00409c10
lea esi, [ebp + 0x758]
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x5c], ebx
mov dword [ebp], method.CDialog.virtual_0
call fcn.0042bedc
mov dword [esi], vtable.CStatic.0
lea ecx, [ebp + 0x7a8]
mov byte [esp + 0x5c], 1
call fcn.00409240
lea ecx, [ebp + 0x894]
mov byte [esp + 0x5c], 2
call fcn.00409240
call fcn.0042a828
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0x980], eax
call fcn.0042a828
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0x984], eax
cmp byte [ebp + 0x560], bl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x10], 0x14a
mov dword [esp + 0x14], 0x96
mov dword [esp + 0x18], 0x84
mov dword [esp + 0x24], 0x1e1e1e
mov dword [esp + 0x28], 0x999ca6
mov dword [ebp + 0x98c], ebx
mov eax, ebp
jne 0x4072d2
push edi
lea edi, [ebp + 0x49c]
mov ecx, 0x11
lea esi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
pop edi
mov ecx, dword [esp + 0x54]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 4
Function at 0x407b80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4393d2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [esp + 0x58]
push ebx
push ebp
push esi
push eax
mov ebp, ecx
push 0x6a
mov dword [esp + 0x14], ebp
call fcn.00409c10
lea esi, [ebp + 0x758]
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x5c], ebx
mov dword [ebp], method.CDialog.virtual_0
call fcn.0042bedc
mov dword [esi], vtable.CStatic.0
lea esi, [ebp + 0x7a8]
mov ecx, esi
mov byte [esp + 0x5c], 1
call fcn.0042bedc
mov dword [esi], vtable.CButton.0
lea ecx, [ebp + 0x7f8]
mov byte [esp + 0x5c], 2
call fcn.00409240
lea ecx, [ebp + 0x8e4]
mov byte [esp + 0x5c], 3
call fcn.00409240
call fcn.0042a828
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0x9d0], eax
call fcn.0042a828
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0x9d4], eax
cmp byte [ebp + 0x560], bl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x10], 0x17c
mov dword [esp + 0x14], 0xe6
mov dword [esp + 0x18], 0x84
mov dword [esp + 0x24], 0x1e1e78
mov dword [esp + 0x28], 0x999ca6
mov byte [ebp + 0x9dc], bl
mov eax, ebp
jne 0x407caa
push edi
lea edi, [ebp + 0x49c]
mov ecx, 0x11
lea esi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
pop edi
mov ecx, dword [esp + 0x54]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 4
Function at 0x407ff0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x439448
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
push edi
mov edi, dword [esp + 0x38]
test edi, edi
mov esi, ecx
jne 0x408018
xor eax, eax
jmp 0x40801b
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.004320fb
test eax, eax
je 0x408085
mov dword [esi + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], vtable.CBitmap.0
mov dword [esp + 0x30], 0
call fcn.0043629f
movzx ecx, word [esp + 0x3c]
mov eax, dword [eax + 0xc]
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0xc]
call fcn.004323f8
test eax, eax
jne 0x40809a
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 8], vtable.CGdiObject.0
call fcn.0043244f
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
mov edx, dword [esp + 0xc]
mov eax, dword [esi + 4]
push edx
push eax
call fcn.00432481
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [esi + 0x18], ecx
push 1
mov ecx, esi
mov dword [esi + 0x14], eax
call fcn.00431c13
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 8], vtable.CGdiObject.0
call fcn.0043244f
mov ecx, dword [esp + 0x28]
pop edi
mov al, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
Function at 0x408290
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x439470
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
call fcn.00431d17
test edi, edi
mov dword [esp + 0x3c], 0
jne 0x4082c4
xor eax, eax
jmp 0x4082c7
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x10]
call fcn.004320fb
mov dword [esp + 8], 0
mov dword [esp + 4], vtable.CBitmap.0
mov byte [esp + 0x3c], 1
call fcn.0043629f
movzx ecx, word [esp + 0x4c]
mov eax, dword [eax + 0xc]
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 8]
call fcn.004323f8
test eax, eax
jne 0x40834a
lea ecx, [esp + 4]
mov byte [esp + 0x3c], al
mov dword [esp + 4], vtable.CGdiObject.0
call fcn.0043244f
lea ecx, [esp + 0xc]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00432179
xor al, al
pop edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x2c
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x10]
push ebx
push esi
push edx
push eax
call fcn.00432481
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push ecx
push 0x18
push edx
mov esi, eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
push eax
mov eax, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x6c]
lea edx, [esp + 0x34]
push edx
push eax
push ecx
mov ecx, edi
call fcn.00408190
test esi, esi
mov bl, al
je 0x4083b6
mov esi, dword [esi + 4]
mov edx, dword [esp + 0x18]
push esi
push edx
call fcn.00432481
lea ecx, [esp + 0xc]
mov byte [esp + 0x44], 0
mov dword [esp + 0xc], vtable.CGdiObject.0
call fcn.0043244f
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0xffffffff
call fcn.00432179
mov ecx, dword [esp + 0x3c]
pop esi
mov al, bl
pop ebx
pop edi
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x2c
Function at 0x40ac60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
call fcn.0043629f
movzx ecx, word [esp + 8]
mov eax, dword [eax + 0xc]
push 0x43d39c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40aca5
call fcn.0043629f
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40aca5
push 7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call dword [sym.imp.WINMM.dll_sndPlaySoundA]
pop esi
ret 4
Function at 0x40b8a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x510
lea eax, [esp + 0x104]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x204]
push ecx
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 0x51c]
lea eax, [esp + 0x310]
push eax
lea ecx, [esp + 0x418]
push ecx
push edx
call fcn.0041c9c4
lea eax, [esp + 0x218]
push eax
mov eax, dword [esp + 0x530]
lea ecx, [esp + 0x18]
push ecx
push str.PATCH
lea edx, [esp + 0x124]
push edx
push 0x43d914
push eax
call fcn.0041b463
add esp, 0x53c
ret

Function at 0x40c1a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4398fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x104
push esi
mov esi, dword [esp + 0x11c]
push esi
lea ecx, [esp + 8]
mov dword [esp + 8], 0
call fcn.004057b0
lea eax, [esp + 8]
push eax
push 0x100
mov dword [esp + 0x118], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c1f7
sub eax, edx
push eax
lea ecx, [esp + 0xc]
push ecx
push esi
call fcn.0041cc50
add esp, 0xc
test eax, eax
jne 0x40c264
push 1
push 0x43c59c
lea ecx, [esp + 0xc]
call fcn.00401b80
lea eax, [esp + 8]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c230
sub eax, edx
lea edx, [eax + esi]
test edx, edx
jne 0x40c244
xor eax, eax
jmp 0x40c259
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c250
sub eax, esi
push eax
push edx
lea ecx, [esp + 0xc]
call fcn.00405160
mov eax, dword [esp + 4]
add eax, 0xfffffff0
push eax
call fcn.00403480
mov esi, dword [esp + 0x11c]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x110], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c2a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x108]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x110
ret
Function at 0x40dbd0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x3c
push esi
push 0
push 0x10000000
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x40dc6c
cmp esi, 0xffffffff
je 0x40dc6c
push ebx
push edi
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [esp + 0x38]
push 0
lea edx, [esp + 0x14]
push edx
push 4
lea eax, [esp + 0x18]
push eax
push esi
mov dword [esp + 0x20], 0
call ebx
test eax, eax
je 0x40dc5c
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
add edi, ecx
test eax, eax
je 0x40dc5c
push 0
lea ecx, [esp + 0x14]
push ecx
push 4
lea edx, [esp + 0x18]
push edx
push esi
mov dword [esp + 0x20], 0
call ebx
test eax, eax
jne 0x40dc31
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebx
pop esi
add esp, 0x3c
ret
xor eax, eax
pop esi
add esp, 0x3c
ret

Function at 0x40dce0
Capabilities:
Create directory

Disassembly:
sub esp, 0x208
mov eax, dword [0x450448]
push esi
mov esi, dword [esp + 0x210]
lea edx, [esp + 8]
mov dword [esp + 0x208], eax
push edi
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40dd03
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
lea eax, [esp + 0xc]
push eax
call edi
test eax, eax
jne 0x40dd2b
lea ecx, [esp + 0xc]
push ecx
call fcn.0040dc80
add esp, 4
lea eax, [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40dd32
sub eax, edx
mov dword [esp + 8], eax
jne 0x40dd58
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x204]
call fcn.0041ced8
add esp, 0x208
ret
lea edx, [esp + 0xc]
push edx
call edi
test eax, eax
je 0x40dd7a
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x204]
call fcn.0041ced8
add esp, 0x208
ret
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
lea eax, [esp + 0x10]
push eax
call edi
test eax, eax
jne 0x40dd63
lea edx, [esp + 0x10c]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40dd98
lea ecx, [esp + 0x10c]
push ecx
call fcn.0040dc80
lea edx, [esp + 0x110]
push edx
call fcn.0040dce0
add esp, 8
push 0
lea eax, [esp + 0x10]
push eax
call edi
mov ecx, dword [esp + 0x20c]
test eax, eax
pop edi
setne al
pop esi
call fcn.0041ced8
add esp, 0x208
ret
Function at 0x411360
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x1c]
mov ebx, eax
mov eax, dword [ebp + 0x38]
lea ecx, [eax + edx]
cmp ecx, 0x10
mov dword [esi], ecx
mov esi, dword [esp + 0x14]
push edi
jae 0x4113b0
lea edi, [eax + ebp + 0x28]
mov ecx, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x38]
mov ecx, dword [esp + 0x20]
pop edi
add eax, edx
mov dword [ebp + 0x38], eax
pop esi
pop ebp
mov dword [ecx], 0
xor eax, eax
pop ebx
ret
cmp esi, ebx
jne 0x4113be
pop edi
pop esi
pop ebp
mov eax, 0x1001
pop ebx
ret
mov ecx, 0x10
sub ecx, eax
mov dword [esp + 0x14], ecx
mov edx, ecx
shr ecx, 2
lea edi, [eax + ebp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
mov edx, dword [esp + 0x18]
add edx, ecx
mov ecx, dword [ebp + 0x28]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x1c]
lea edi, [edx + eax - 0x10]
mov eax, dword [ebp + 0x18]
xor eax, ecx
mov dword [ebx], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x2c]
xor ecx, eax
mov dword [ebx + 4], ecx
mov edx, dword [ebp + 0x30]
xor edx, dword [ebp + 0x20]
mov dword [ebx + 8], edx
mov eax, dword [ebp + 0x34]
xor eax, dword [ebp + 0x24]
mov dword [ebx + 0xc], eax
lea eax, [ebp + 0x3c]
push ebx
push eax
mov dword [esp + 0x24], edi
call fcn.004100f0
add esp, 8
add ebx, 0x10
cmp edi, 0x10
jb 0x411495
mov eax, edi
shr eax, 4
mov dword [esp + 0x1c], eax
jmp 0x411440
mov ecx, dword [ebx - 0x10]
mov esi, dword [esp + 0x18]
xor ecx, dword [esi]
mov dword [ebx], ecx
mov eax, dword [ebx - 0xc]
mov edx, dword [esi + 4]
xor edx, eax
mov dword [ebx + 4], edx
mov ecx, dword [ebx - 8]
mov eax, dword [esi + 8]
xor eax, ecx
mov dword [ebx + 8], eax
mov ecx, dword [esi + 0xc]
mov edx, dword [ebx - 4]
lea eax, [ebp + 0x3c]
xor ecx, edx
push ebx
push eax
mov dword [ebx + 0xc], ecx
call fcn.004100f0
mov eax, dword [esp + 0x24]
add esi, 0x10
add esp, 8
add ebx, 0x10
sub edi, 0x10
dec eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
jne 0x411440
mov dword [esp + 0x1c], edi
mov edx, dword [ebx - 0x10]
mov esi, dword [esp + 0x18]
mov dword [ebp + 0x18], edx
mov eax, dword [ebx - 0xc]
mov dword [ebp + 0x1c], eax
mov ecx, dword [ebx - 8]
mov dword [ebp + 0x20], ecx
mov edx, dword [ebx - 4]
mov ecx, edi
mov eax, ecx
mov dword [ebp + 0x24], edx
shr ecx, 2
lea edi, [ebp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
mov dword [ebp + 0x38], eax
mov edx, dword [ecx]
pop edi
pop esi
sub edx, eax
pop ebp
mov dword [ecx], edx
xor eax, eax
pop ebx
ret