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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x433e51
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043537b
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x433e74
test byte [esp + 8], 2
je 0x433e74
call fcn.004353ee
mov dword [eax], 0xd
call fcn.004353f7
mov dword [eax], 5
jmp 0x433e4d
xor eax, eax
ret

Function at 0x43da59
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x48b450
cmp edx, dword [eax]
je 0x43da7b
add eax, 8
inc ecx
cmp eax, 0x48b4e0
jl 0x43da6c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x48b450]
jne 0x43dba9
mov eax, dword [0x48ecec]
cmp eax, 1
je 0x43db83
test eax, eax
jne 0x43daac
cmp dword [0x48a2a8], 1
je 0x43db83
cmp edx, 0xfc
je 0x43dba9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43dae3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0043aeb0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00439800
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x43db26
lea eax, [ebp - 0x1a4]
push eax
call fcn.00439800
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x475964
push edi
call fcn.004321f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0043aeb0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0043aec0
lea eax, [ebp - 0xa0]
push 0x475944
push eax
call fcn.0043aec0
push dword [esi + 0x48b454]
lea eax, [ebp - 0xa0]
push eax
call fcn.0043aec0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00440f10
add esp, 0x2c
pop edi
jmp 0x43dba9
lea eax, [ebp + 8]
lea esi, [esi + 0x48b454]
push 0
push eax
push dword [esi]
call fcn.00439800
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x453f5a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x453f92
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00456ff9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00456fd1
jmp 0x453f9e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x455a87
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x455ac9
call fcn.004656cd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x455ac9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x455ac0
xor eax, eax
jmp 0x455ad1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00455ad7
pop edi
pop esi
pop ebx
ret 4

Function at 0x4573a6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4573c8
cmp dword [edi + 0x3c], 0
jne 0x4573c8
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004656cd
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004573f5
pop edi
pop esi
pop ebx
ret 8

Function at 0x457443
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004656cd
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x457474
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00457487
pop edi
pop esi
pop ebx
ret 8
Function at 0x457784
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x46d860
call fcn.00435744
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004656cd
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x4577c3
call fcn.004656cd
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4577d1
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4577df
or eax, 0xffffffff
jmp 0x4578c7
mov ecx, esi
call fcn.004576fa
mov dword [ebp - 0x14], eax
call fcn.00453aaa
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x457816
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x457816
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00453a5e
push dword [ebp - 0x14]
call fcn.004535ab
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00457487
cmp eax, edi
je 0x457889
test byte [esi + 0x24], 0x10
je 0x457857
push 4
mov ecx, esi
pop ebx
call fcn.004562eb
test ah, 1
je 0x45784f
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00455cde
cmp dword [esi + 0x1c], edi
je 0x457889
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00456400
jmp 0x457889
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x45789d
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4578b6
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4578b6
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00457734
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4636ca
Capabilities:
Create http request

Disassembly:
mov eax, 0x46d57c
call fcn.00435744
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x463702
call fcn.004656cd
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x463727
push eax
push dword [esi + 4]
call fcn.00464583
jmp 0x463733
push esi
push eax
mov ecx, 0x48e5f0
call fcn.00463744
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x4638ef
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x46d5cb
call fcn.00435744
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00456593
mov eax, dword [0x489cc0]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], vtable.CInternetFile.0
mov ecx, 0x48e5f0
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.00463744
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.00456e04
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.004311c5
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00456db4
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.00456cc7
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x465dc7
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x465df5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x465e13
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00465d2d
jmp 0x465e13
mov eax, dword [esi + 0x14]
test eax, eax
je 0x465e13
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00465d2d
test edi, edi
mov eax, edi
jne 0x465dfd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x438c82
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x438a14
add eax, 0x136f968
call fcn.00438cba
inc eax
add ebx, 1
xor dword [ecx], edx
mov eax, 0x24ae797a
add eax, 0xf915548
and eax, eax
inc ecx
inc eax
cmp ecx, esi
jne fcn.00438c82
and ebx, ebx
dec ebx
sub eax, 0x808e872e
ret
Function at 0x403351
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi]
mov eax, dword [edi + 4]
xor ebx, ebx
cmp dword [0x2420900], 0x594
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], eax
jne 0x40339e
push 0x402df8
push 0x402e04
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push 0x402e18
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov eax, dword [0x4284a8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4284ac]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.00403347
mov eax, dword [0x4284b0]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x2c], eax
mov eax, dword [0x4284b4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x20
jmp 0x4033dc
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, esi
shl eax, 4
cmp dword [0x2420900], 0xc
mov dword [ebp - 4], eax
jne 0x403441
push ebx
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc4c]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x2420900]
cmp eax, 0xfa9
jne 0x40345d
mov dword [0x241fe9c], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40346a
mov dword [0x241f84c], ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
add eax, esi
shr esi, cl
mov dword [ebp - 0x14], eax
mov dword [0x241fe98], 0xf4ea3dee
add esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor esi, dword [ebp - 4]
cmp dword [0x2420900], 0x213
mov dword [ebp - 0x14], esi
jne 0x4034a7
push 0x402e30
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
lea esi, [eax + edx]
mov eax, edx
shr eax, cl
add eax, dword [ebp - 0x30]
xor eax, esi
xor dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x18]
call fcn.0040334e
add dword [ebp - 0x10], 0x61c88647
dec dword [ebp - 0x20]
jne 0x4033d9
cmp dword [0x2420900], 0xa6d
mov eax, dword [ebp - 0x18]
mov dword [edi], eax
jne 0x403513
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov edx, dword [ebp - 8]
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40351d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x2420900]
mov ecx, dword [0x241f850]
sub esp, 0x544
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x403590
mov edi, ecx
mov ebx, eax
cmp dword [0x2420900], 0x959
jne 0x403584
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0x402e44
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
lea eax, [ebp - 0x540]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push edi
call fcn.00403351
add edi, 8
dec ebx
jne 0x403541
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40395f
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x2420900], 0x400
push edi
jne 0x4039b1
push esi
push esi
call fcn.00403c46
push esi
push esi
call fcn.00403c46
push esi
push esi
push esi
call fcn.0040460d
add esp, 0x14
mov dword [esp + 4], esi
mov dword [esp], esi
call fcn.00403322
fstp st(0)
push esi
call fcn.00404692
pop ecx
push esi
call fcn.00404424
pop ecx
mov eax, dword [0x428b34]
mov dword [0x2420900], eax
mov eax, dword [0x428b0c]
mov dword [0x2420904], eax
call fcn.00403664
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esp + 0x10], ebx
jle 0x403a18
cmp dword [esp + 0x18], 0x785074d5
jne 0x403a26
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x4039d3
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x40319c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x4031d8
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, ebx
jle 0x403a55
cmp dword [esp + 0x18], 0x785074d5
jne 0x403a5e
inc edi
cmp edi, 0x11915
jl 0x403a28
mov eax, dword [0x241f850]
mov dword [0x241fe94], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40a0c4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427e24]
jne 0x40a0ce
repz ret
jmp fcn.0040d884
Function at 0x40d431
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405f83
and dword [ebp - 4], 0
cmp dword [0x429458], 0
mov ebx, eax
jne 0x40d4e2
push 0x402ca4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d593
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402c98
push edi
call esi
test eax, eax
je 0x40d593
push eax
call fcn.00405f11
mov dword [esp], 0x402c88
push edi
mov dword [0x429458], eax
call esi
push eax
call fcn.00405f11
mov dword [esp], 0x402c74
push edi
mov dword [0x42945c], eax
call esi
push eax
call fcn.00405f11
mov dword [esp], 0x402c58
push edi
mov dword [0x429460], eax
call esi
push eax
call fcn.00405f11
pop ecx
mov dword [0x429468], eax
test eax, eax
je 0x40d4e2
push 0x402c40
push edi
call esi
push eax
call fcn.00405f11
pop ecx
mov dword [0x429464], eax
mov eax, dword [0x429464]
cmp eax, ebx
je 0x40d53a
cmp dword [0x429468], ebx
je 0x40d53a
push eax
call fcn.00405f8c
push dword [0x429468]
mov esi, eax
call fcn.00405f8c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d53a
test edi, edi
je 0x40d53a
call esi
test eax, eax
je 0x40d531
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d531
test byte [ebp - 0xc], 1
jne 0x40d53a
or dword [ebp + 0x10], 0x200000
jmp 0x40d573
mov eax, dword [0x42945c]
cmp eax, ebx
je 0x40d573
push eax
call fcn.00405f8c
pop ecx
test eax, eax
je 0x40d573
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d573
mov eax, dword [0x429460]
cmp eax, ebx
je 0x40d573
push eax
call fcn.00405f8c
pop ecx
test eax, eax
je 0x40d573
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x429458]
call fcn.00405f8c
pop ecx
test eax, eax
je 0x40d593
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d595
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43100c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x42f001
Capabilities:
Parse pe header

Disassembly:
jmp 0x46e010
push 0
call dword [0x4ad0e8]
test eax, eax
je 0x46e04f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x46e04f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x46e04f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x46e04f
cmp dword [ecx + 0x74], 0xe
jbe 0x46e04f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x42f31c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
jmp 0x444fe0
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x4daf90], eax
pop edi
pop esi
ret
Function at 0x401900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40192c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x401954
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x40195a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x4019c2
jg 0x401971
test esi, esi
je 0x4019c2
test ecx, ecx
jl 0x4019bd
jg 0x40197b
test eax, eax
je 0x4019bd
cmp edi, ecx
jg 0x40198f
jl 0x401985
cmp esi, eax
jae 0x40198f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x4019c5
mov ecx, dword [ebp + 8]
jmp 0x4019cf
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x4019e9
jg 0x4019cf
test esi, esi
je 0x4019e9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x4019e9
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401a00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x401a2c
jl 0x401a20
test ecx, ecx
jne 0x401a2c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x401a45
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x401a93
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x401a99
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x401a99
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x401b06
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x401ac2
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x401af4
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x401b06
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x401ad0
test edi, edi
je 0x401b06
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc