joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4531b8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x463528]
cmp byte [eax + 0xc], 0
je 0x453325
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45331e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4642d0], 0
jne 0x45320c
push 0x45332c
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x453334
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4642d0], eax
cmp dword [0x46003c], 0
jne 0x453307
push 0x453344
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x46003c], eax
cmp dword [0x46003c], 0
je 0x453307
push 0x453350
mov eax, dword [0x46003c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4642d4], eax
push 0x453360
mov eax, dword [0x46003c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4642d8], eax
push 0x453374
mov eax, dword [0x46003c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4642dc], eax
push 0x45338c
mov eax, dword [0x46003c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4642e0], eax
push 0x4533a4
mov eax, dword [0x46003c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4642e4], eax
push 0x4533b8
mov eax, dword [0x46003c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4642e8], eax
push 0x4533d0
mov eax, dword [0x46003c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4642ec], eax
push 0x4533e8
mov eax, dword [0x46003c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4642f0], eax
push 0x453404
mov eax, dword [0x46003c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4642f4], eax
push 0x453410
mov eax, dword [0x46003c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4642f8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453325
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x458470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x4584d2
call fcn.00458420
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00454770
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00454770
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x458550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x461c24], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x45862a
cmp dword [0x461c20], 0
jne 0x45862a
cmp dword [0x461e04], 0
je 0x4585e4
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00458320
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4585ca
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00458320
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4585ca
lea ebx, [ebp - 0x84]
jmp 0x4585cb
inc ebx
call fcn.0045850c
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x458665
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x461c28
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00454770
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x461c2b
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x458665
cmp dword [0x461c20], 0
je 0x458644
cmp dword [0x461c20], 0xffffffff
je 0x458665
push esi
call dword [0x461c20]
pop ecx
mov eax, dword [0x461c24]
test eax, eax
je 0x458665
cmp dword [0x461c24], 0xffffffff
je 0x458665
cmp byte [eax], 0
je 0x458665
push esi
push eax
call fcn.00458470
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x458dfc
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x464b5c], 0
jne 0x458e7d
cmp dword [0x464b7c], 0
jne 0x458e2c
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x464b7c], eax
test eax, eax
jne 0x458e2c
push str.GetEnvironmentStrings_failed
call fcn.0045867c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x464b7c]
jmp 0x458e40
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00454770
pop ecx
mov edi, eax
test eax, eax
jne 0x458e38
lea edi, [ebp + 1]
push edi
call fcn.00454074
pop ecx
mov ebx, eax
mov dword [0x464b60], ebx
test ebx, ebx
jne 0x458e6a
xor eax, eax
jmp 0x458f40
push edi
mov edx, dword [0x464b7c]
push edx
push ebx
call fcn.00454620
add esp, 0xc
jmp 0x458e9d
xor esi, esi
mov ebx, dword [0x464b5c]
jmp 0x458e97
push eax
call fcn.00454770
pop ecx
test eax, eax
jne 0x458e93
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x458e87
lea ebx, [esi + 4]
push 4
mov dword [0x464b64], ebx
inc ebx
push ebx
call fcn.00453b4c
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x458ec0
xor eax, eax
jmp 0x458f40
cmp dword [0x464b5c], 0
jne 0x458ef1
xor esi, esi
mov ebx, dword [0x464b60]
mov eax, dword [esp]
mov ebp, eax
jmp 0x458ee2
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00454770
pop ecx
mov edi, eax
test eax, eax
jne 0x458ed8
jmp 0x458f22
xor esi, esi
mov ebx, dword [0x464b5c]
mov eax, dword [esp]
mov edi, eax
jmp 0x458f1c
push eax
call fcn.00454770
pop ecx
test eax, eax
je 0x458f11
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x458f15
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x458f00
mov eax, dword [0x464b5c]
test eax, eax
je 0x458f32
push eax
call fcn.00454084
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x464b5c], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x8e10a4
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8e10aa
pop ebp
sub ebp, 6
sub ebp, 0x4e10a4
jmp 0x8e1108
jmp 0x8e1111
mov eax, 0x4e10a4
add eax, ebp
add eax, 0x93
mov ecx, 0x62e
mov edx, 0xc462ae36
xor byte [eax], dl
inc eax
dec ecx
jne 0x8e1128
jmp 0x8e113b
pop esp
jbe 0x8e119c
pop esi
cli
sbb dh, byte [esi]
add eax, 0xa3c966f6
or ah, byte [edi + 0x72]
mov bp, 0xbdfb
mov edi, 0x3636360a
mov bh, 0xf7
into
xor eax, 0x36308efb
mov word ss:[esi], ds
rcl esp, 0x35
invalid
mov ebp, 0x36363aa3
mov ebp, 0x363626bb
neg edi
xor al, 7
xor al, 0xb5
hlt
Function at 0x405c8c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422aa4], 0
push esi
jne 0x405cc3
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405c9d
mov dword [ecx*4 + 0x422aa0], eax
inc ecx
cmp ecx, 0x100
jl 0x405c98
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405cf4
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422aa0]
xor eax, esi
inc ecx
dec edx
jne 0x405cd6
pop edi
not eax
pop esi
ret 0xc

Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
mov eax, 1
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
xor ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
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 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
mov ecx, edi
jns 0x41989b
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 + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x4010f0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43c004]
jne 0x4010fa
repz ret
jmp fcn.004013f9

Function at 0x403c9b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43c004]
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.0040253c
and dword [ebp - 0x14], 0
cmp dword [0x43ead0], 0
mov dword [ebp - 0x18], eax
jne 0x403d4e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403df6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x403df6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x43ead0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43ead4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x43ead8], eax
call edi
push eax
call esi
mov dword [0x43eae0], eax
test eax, eax
je 0x403d4e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x43eadc], eax
mov eax, dword [0x43eadc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403da7
cmp dword [0x43eae0], ecx
je 0x403da7
push eax
call esi
push dword [0x43eae0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x403da7
test ebx, ebx
je 0x403da7
call edi
test eax, eax
je 0x403d9e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x403d9e
test byte [ebp - 8], 1
jne 0x403da7
or dword [ebp + 0x10], 0x200000
jmp 0x403dda
mov eax, dword [0x43ead4]
cmp eax, dword [ebp - 0x18]
je 0x403dda
push eax
call esi
test eax, eax
je 0x403dda
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x403dda
mov eax, dword [0x43ead8]
cmp eax, dword [ebp - 0x18]
je 0x403dda
push eax
call esi
test eax, eax
je 0x403dda
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43ead0]
call esi
test eax, eax
je 0x403df6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x403df8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004010f0
leave
ret
Function at 0x42b2f0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x804
mov eax, dword [0x43c004]
xor eax, esp
mov dword [esp + 0x800], eax
push esi
xor esi, esi
test edi, edi
jle 0x42b35b
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
cmp edi, 0x2d
jne 0x42b337
push 0
push 0
call ebp
push str.mipipoyoto_vatelicahujuhasazagupu_zagepidexejexofu_pigilapisitacumayonetaperi_vazaw
push str.wudarureheb_sed_kukexuriyekigobu_jatutuzovaninuguxorepapivi_zaxipatoxo
push str.zabazevafij
push str.vufizu
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
call fcn.0042b270
xor byte [ebx + esi], al
cmp edi, 0xf
jne 0x42b355
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
inc esi
cmp esi, edi
jl 0x42b312
pop ebp
pop esi
cmp edi, 0x2d
jne 0x42b375
mov dword [0x43f7e0], 0xa62e7790
mov dword [0x43f7e4], 0xffffffff
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.004010f0
add esp, 0x804
ret
Function at 0x42b7a0
Capabilities:
Read file on windows
Set file attributes

Disassembly:
sub esp, 0x41c
mov eax, dword [0x43c004]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [0x43f7d4]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
mov ebp, 0x1519a5
mov ebx, 0x8e46a7b8
mov dword [0x43f43c], ebx
cmp eax, 0x3dc
jne 0x42b7f2
push 0
push 0x439c28
call esi
push 0
call edi
mov eax, dword [0x43f7d4]
dec ebp
jne 0x42b7d3
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [sym.imp.KERNEL32.dll_CancelIo]
xor esi, esi
cmp eax, 0x997
jne 0x42b83b
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebp
lea edx, [esp + 0x34]
push edx
push ebp
mov dword [esp + 0x24], ebp
call edi
push ebp
call ebx
mov eax, dword [0x43f7d4]
cmp esi, 0x845f8b
jne 0x42b852
mov eax, dword [0x43d940]
add eax, 0xa231
mov dword [0x43f7d4], eax
cmp eax, 0x141
jne 0x42b86d
mov dword [0x43f010], 0xec58acac
mov dword [0x43f014], 0xffffffff
inc esi
cmp esi, 0x12cca12
jl 0x42b803
call fcn.0042b3d0
mov ecx, dword [esp + 0x428]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004010f0
add esp, 0x41c
ret 0x10
Function at 0x4010f1
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push 0xc
push 0x4184e0
call fcn.0040ec0c
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, 0x400
push edi
push pe_nt_image_headers32
mov esi, dword [sym.imp.kernel32.dll_GlobalAlloc]
call esi
mov dword [ebp - 0x1c], eax
push edi
push pe_nt_image_headers32
call esi
push dword [ebp - 0x1c]
push 0x1ff
mov esi, eax
call dword [sym.imp.kernel32.dll_GetTempPathW]
push esi
push ebx
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
push esi
call dword [sym.imp.kernel32.dll_DeleteFileW]
push ebx
push esi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
mov eax, dword [ebp + 8]
je 0x401150
mov dword [eax], esi
jmp 0x401162
mov dword [eax], ebx
push ebx
push ebx
push ebx
push 0x137
call fcn.00401308
add esp, 0x10
push dword [ebp - 0x1c]
call fcn.00407b85
pop ecx
jmp 0x401183
or dword [ebp - 4], 0xffffffff
call fcn.0040ec47
ret

Function at 0x4013a2
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push 8
push 0x418278
call fcn.0040ec0c
xor esi, esi
mov dword [ebp - 4], esi
call fcn.00408687
push eax
push 1
push esi
call dword [sym.imp.kernel32.dll_CreateMutexW]
cmp eax, esi
je 0x4013e1
push 0xa
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
or eax, eax
je 0x4013e1
push esi
call dword [sym.imp.kernel32.dll_ExitProcess]
or dword [ebp - 4], 0xffffffff
call fcn.0040ec47
ret

Function at 0x40142a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ecx
push esi
push edi
push 9
pop ecx
xor eax, eax
xor esi, esi
mov edi, 0x41be40
mov dword [0x41be1c], esi
rep stosd dword es:[edi], eax
call fcn.00407815
call fcn.004013a2
call fcn.00401f02
test eax, eax
je 0x40149b
call fcn.00401939
call fcn.00407e71
call fcn.004083d4
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
mov edi, dword [sym.imp.kernel32.dll_CreateThread]
lea eax, [esp + 0xc]
push eax
push esi
push esi
push 0x401d94
push esi
push esi
call edi
lea eax, [esp + 0xc]
push eax
push esi
push esi
push 0x4013eb
push esi
push esi
call edi
call fcn.004071bf
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40197f
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x24
push 0x418338
call fcn.0040ec0c
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
call fcn.00401939
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push dword [ebp + 8]
call dword [0x41bec2]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
jne 0x4019c7
or dword [ebp - 4], 0xffffffff
xor eax, eax
jmp 0x401aa8
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x34], edi
cmp edi, ebx
je 0x4019bc
cmp dword [ebp + 0x14], ebx
je 0x401a0a
push 0x1c
push pe_nt_image_headers32
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
mov dword [ebp - 0x24], esi
call fcn.00407d1d
mov eax, esi
push 0x1000
push 0x200
push eax
call dword [eax + 0x18]
mov dword [ebp - 0x20], eax
add esp, 0xc
mov eax, dword [ebp - 0x20]
add eax, edi
cmp eax, ebx
je 0x401a1e
push eax
call fcn.00407b66
mov esi, eax
pop ecx
jmp 0x401a20
xor esi, esi
lea eax, [ebp - 0x30]
push ebx
push eax
push edi
push esi
push dword [ebp - 0x28]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x4019bc
push dword [ebp - 0x28]
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp + 0x14], ebx
je 0x401a78
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x1c], eax
jae 0x401a6a
push 0xff
push ebx
mov eax, dword [ebp - 0x24]
push eax
call dword [eax + 0x18]
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
add ecx, edi
mov byte [ecx + esi], al
inc dword [ebp - 0x1c]
jmp 0x401a45
add edi, eax
mov dword [ebp - 0x34], edi
push dword [ebp - 0x24]
call fcn.00407b73
pop ecx
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov dword [ebp - 0x2c], 1
jmp 0x401aa1
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
call fcn.0040ec47
ret
Function at 0x401f98
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push 0x1c
push 0x4184b0
call fcn.0040ec0c
xor edi, edi
mov dword [ebp - 4], edi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_DeleteFileW]
or eax, eax
jne 0x40210e
mov ebx, 0x400
push ebx
push pe_nt_image_headers32
mov esi, dword [sym.imp.kernel32.dll_GlobalAlloc]
call esi
mov dword [ebp - 0x20], eax
push ebx
push pe_nt_image_headers32
call esi
mov ebx, eax
push dword [ebp - 0x20]
push 0x1fe
call dword [sym.imp.kernel32.dll_GetTempPathW]
push ebx
push edi
push edi
push dword [ebp - 0x20]
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
push ebx
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov ecx, 0x416fcc
call fcn.004073dd
push eax
call fcn.00407491
pop ecx
mov dword [ebp - 0x1c], eax
push ebx
call dword [sym.imp.kernel32.dll_lstrlenW]
lea eax, [ebx + eax*2 - 6]
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyW]
push dword [ebp - 0x1c]
call fcn.00407b85
pop ecx
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push ebx
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x4020e6
mov ecx, 0x416fd8
call fcn.004073dd
push eax
call fcn.00407491
mov dword [ebp - 0x24], eax
mov dword [esp], 0x2800
push pe_nt_image_headers32
call esi
mov dword [ebp - 0x1c], eax
push 0x1400
push pe_nt_image_headers32
call esi
mov esi, eax
push ebx
push dword [ebp + 8]
push dword [ebp + 8]
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
call dword [sym.imp.user32.dll_wsprintfW]
sub esp, 0xffffffec
push edi
push edi
push 0x1400
push esi
push 0xffffffffffffffff
push dword [ebp - 0x1c]
push edi
push 1
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
push edi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.kernel32.dll_lstrlen]
push eax
push esi
push dword [ebp - 0x28]
call dword [sym.imp.kernel32.dll_WriteFile]
push esi
call fcn.00407b85
push dword [ebp - 0x1c]
call fcn.00407b85
push dword [ebp - 0x24]
call fcn.00407b85
sub esp, 0xfffffff4
push dword [ebp - 0x28]
call dword [sym.imp.kernel32.dll_CloseHandle]
push edi
push edi
push edi
push ebx
push edi
push edi
call dword [sym.imp.shell32.dll_ShellExecuteW]
push ebx
call fcn.00407b85
push dword [ebp - 0x20]
call fcn.00407b85
pop ecx
pop ecx
jmp 0x40210e
or dword [ebp - 4], 0xffffffff
call fcn.0040ec47
ret
Function at 0x4025d1
Capabilities:
Delete file

Disassembly:
push 0x14
push 0x4184a0
call fcn.0040ec0c
and dword [ebp - 4], 0
push 0x400
push pe_nt_image_headers32
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
mov ecx, 0x417184
call fcn.004073dd
movzx ecx, byte [ebp + 0xc]
push ecx
push dword [ebp + 8]
push eax
push esi
call dword [sym.imp.user32.dll_wsprintfA]
lea eax, [ebp - 0x1c]
push eax
push esi
push 4
push dword [ebp + 0x10]
call fcn.0040236d
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
call fcn.004083fc
add esp, 0x28
push dword [ebp - 0x20]
call dword [sym.imp.kernel32.dll_DeleteFileW]
push dword [ebp - 0x1c]
call fcn.00407b85
pop ecx
push dword [ebp - 0x20]
call fcn.00407b85
pop ecx
push esi
call fcn.00407b85
pop ecx
jmp 0x402662
or dword [ebp - 4], 0xffffffff
call fcn.0040ec47
ret

Function at 0x4028ad
Capabilities:
Create thread

Disassembly:
push 0x10
push 0x418588
call fcn.0040ec0c
mov edi, ecx
xor ebx, ebx
lea eax, [edi + 5]
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x4028d2
push eax
call fcn.00407b66
pop ecx
mov esi, eax
jmp 0x4028d4
xor esi, esi
mov dword [esi], edi
mov al, byte [ebp + 0xc]
mov byte [esi + 4], al
push edi
lea eax, [esi + 5]
push dword [ebp + 8]
push eax
call fcn.00409fb0
lea eax, [ebp - 0x1c]
add esp, 0xc
push eax
push ebx
push esi
push 0x40266c
push ebx
push ebx
call dword [sym.imp.kernel32.dll_CreateThread]
jmp 0x402917
or dword [ebp - 4], 0xffffffff
call fcn.0040ec47
ret