joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4169f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x402516
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x401818
lea eax, [ebp - 0x2c]
xor ebx, ebx
push eax
push 0x200
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], 2
call dword [sym.imp.MSVBVM60.DLL_rtcStringBstr]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x18]
call edi
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0x200
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
mov esi, eax
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToUnicode]
xor edx, edx
cmp esi, ebx
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x1c]
setg dl
neg edx
mov esi, edx
call ebx
test si, si
je 0x416af5
lea eax, [ebp - 0x18]
push eax
call fcn.00416b50
mov edx, eax
lea ecx, [ebp - 0x18]
call edi
mov ecx, dword [ebp - 0x18]
push 1
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcRightCharBstr]
mov edx, eax
lea ecx, [ebp - 0x1c]
call edi
push eax
push 0x4062f8
call dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
mov esi, eax
lea ecx, [ebp - 0x1c]
neg esi
sbb esi, esi
neg esi
neg esi
call ebx
test si, si
je 0x416b03
mov edx, dword [ebp - 0x18]
push edx
push 0x4062f8
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x18]
call edi
push 0x416b2d
jmp 0x416b2c
mov edx, 0x404d68
lea ecx, [ebp - 0x18]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
push 0x416b2d
jmp 0x416b2c
ret
Function at 0x4254e0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x402516
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xdc
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x402068
mov edx, dword [ebp + 8]
xor esi, esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0xe4], esi
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
sub esp, 0x10
mov ecx, 3
mov ebx, esp
mov eax, 0x80000002
sub esp, 0x10
mov edi, 8
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x50]
mov edx, 0x408838
mov dword [ebp - 0xdc], esi
mov dword [ebx + 4], ecx
mov ecx, esp
sub esp, 0x10
mov dword [ebp - 0xe4], 0x8002
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x48]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x70]
mov dword [ecx], edi
mov dword [ecx + 4], eax
mov eax, 0x4008
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x68]
mov dword [ecx + 0xc], edx
mov edx, dword [ebp - 0x90]
mov ecx, esp
sub esp, 0x10
mov dword [ecx], eax
lea eax, [ebp - 0x14]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0xa0]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x88]
mov dword [ecx + 0xc], eax
mov ecx, esp
mov eax, 3
sub esp, 0x10
mov dword [ecx], eax
mov eax, 1
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0xc0]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x98]
mov dword [ecx + 0xc], eax
mov ecx, esp
mov eax, edi
push 5
mov dword [ecx], eax
mov eax, 0x404d68
push 0x406bc0
mov dword [ecx + 4], edx
lea edx, [ebp - 0x24]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xb8]
mov dword [ecx + 0xc], eax
mov ecx, dword [0x42c068]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaLateMemCallLd]
add esp, 0x60
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaLenVar]
lea ecx, [ebp - 0xe4]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarTstGt]
lea ecx, [ebp - 0x24]
mov edi, eax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
cmp di, si
je 0x425643
mov edx, dword [0x42c068]
push esi
push 0x407db8
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaLateMemCall]
add esp, 0xc
push 0x42566c
jmp 0x425662
lea ecx, [ebp - 0x14]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
ret
Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408e54
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x7d4779ce
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x638c5b0f
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4012c0
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
sub esp, 0x244
push ebx
push ebp
push esi
push edi
mov ecx, 0x50
xor eax, eax
lea edi, [esp + 0x114]
mov byte [esp + 0x10], al
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x258]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
lea eax, [esp + 0x14]
push str._s.
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x114]
lea edx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
test ebx, ebx
je 0x401366
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x114]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x401366
cmp dword [esp + 0x114], 0x10
je 0x401328
lea ecx, [esp + 0x140]
lea edx, [esp + 0x10]
push ecx
push esi
push 0x406024
push edx
call edi
add esp, 0x10
lea eax, [esp + 0x10]
push eax
call ebp
jmp 0x401328
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x244
ret

Function at 0x401380
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ecx
lea eax, [esp]
push esi
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ecx, dword [esp + 4]
push str.SCPacker
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 4]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret

Function at 0x401860
Capabilities:
Delete file
Enumerate files on windows
Move file

Disassembly:
sub esp, 0x244
push ebx
push ebp
push esi
push edi
mov ecx, 0x50
xor eax, eax
lea edi, [esp + 0x114]
mov byte [esp + 0x10], al
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x258]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
lea eax, [esp + 0x14]
push str._s.
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x114]
lea edx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ebx, eax
test ebx, ebx
je 0x40190a
lea eax, [esp + 0x114]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40190a
cmp dword [esp + 0x114], 0x10
je 0x4018c8
lea ecx, [esp + 0x140]
lea edx, [esp + 0x10]
push ecx
push esi
push 0x406024
push edx
call edi
add esp, 0x10
lea eax, [esp + 0x10]
push 4
push 0
push eax
call ebp
jmp 0x4018c8
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 4
push 0
push esi
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x244
ret
Function at 0x4019f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
mov dword [esp + 0xc], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
mov dword [esp + 8], 0x400
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall11EF8E44_2DBB_425A_A853_68AACEBA5949
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop edi
jne 0x401a79
lea ecx, [esp + 4]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.UninstallString
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401a79
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0x40c
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0x40c
ret

Function at 0x401a90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
mov dword [esp + 0xc], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
mov dword [esp + 8], 0x400
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall4B7C78BE_4707_11D6_B061_00EEB10303D7
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop edi
jne 0x401b19
lea ecx, [esp + 4]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.UninstallString
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401b19
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0x40c
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0x40c
ret
Function at 0x4029b2
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
push 0
push 0
push dword [ebp + 0xc]
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
je 0x403b65
lea eax, [ebx + ebx]
push esi
push eax
call fcn.00401ec0
push dword [edi]
mov esi, eax
call fcn.00401e60
push 0
mov dword [edi], esi
call fcn.00401e60
add esp, 0xc
push ebx
push dword [edi]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebx - 1]
pop esi
cmp eax, ecx
je 0x403b65
push dword [edi]
call fcn.00401e60
add esp, 4
mov dword [edi], 0
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4103a3
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x425148]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4103ee
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00410542
test al, al
jne 0x4103e8
sub edx, 2
cmp edx, edi
jne 0x4103ce
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x410410
lea eax, [edi + 2]
cmp edx, eax
je 0x410410
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004102ef
add esp, 0x10
jmp 0x41050a
push esi
lea ecx, [ebp - 0x255]
call fcn.00410542
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x410453
push dword [ebp - 0x25c]
jmp 0x410400
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x410490
cmp word [ebp - 0x226], 0
je 0x4104b1
cmp word [ebp - 0x226], ax
jne 0x410490
cmp word [ebp - 0x224], 0
je 0x4104b1
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004102ef
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4104fd
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41046a
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4104e5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41050a
push 0x41011f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00413a10
add esp, 0x10
jmp 0x4104da
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402096
leave
ret
Function at 0x411edb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41dabc
push 0x41dab4
push str.FlsAlloc
push 0x1e
call fcn.00411e18
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411f0f
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a1fc]
call esi
jmp 0x411f15
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x411f59
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41dacc
push 0x41dac4
push str.FlsGetValue
push 0x20
call fcn.00411e18
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411f90
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a1fc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x419130
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41915d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41915d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4ed130
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x96000]
push edi
or ebp, 0xffffffff
jmp 0x4ed152
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4ed159
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ed148
mov eax, 1
add ebx, ebx
jne 0x4ed16b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4ed17c
jne 0x4ed19b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ed19b
dec eax
add ebx, ebx
jne 0x4ed188
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4ed160
add ebx, ebx
jne 0x4ed197
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4ed1ed
xor ecx, ecx
sub eax, 3
jb 0x4ed1b3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4ed222
sar eax, 1
mov ebp, eax
jmp 0x4ed1be
add ebx, ebx
jne 0x4ed1be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ed18c
inc ecx
add ebx, ebx
jne 0x4ed1cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ed18c
add ebx, ebx
jne 0x4ed1d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4ed1ce
jne 0x4ed1ea
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4ed1ce
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4ed20c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4ed1fe
jmp 0x4ed14e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4ed20c
add edi, ecx
jmp 0x4ed14e
pop esi
mov edi, esi
mov ecx, 0x2761
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4ed22a
cmp byte [edi], 0x13
jne 0x4ed22a
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 0x4ed22f
lea edi, [esi + 0xea000]
mov eax, dword [edi]
or eax, eax
je 0x4ed2a7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xee524]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xee628]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4ed25c
mov ecx, edi
jns 0x4ed28b
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 + 0xee62c]
or eax, eax
je 0x4ed2a1
mov dword [ebx], eax
add ebx, 4
jmp 0x4ed279
call dword [esi + 0xee63c]
mov ebp, dword [esi + 0xee630]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
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 0x4ed2db
sub esp, 0xffffff80
jmp 0x445e06
Function at 0x405030
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405049
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405084
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x405080
lea ebx, [ebx]
cmp esi, eax
jae 0x405084
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x405070
cmp esi, eax
jb 0x40508a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x412980
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bcf68
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push edi
mov eax, dword [0x4ef6a0]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push eax
call edi
push eax
call fcn.0048030c
push eax
lea ecx, [esp + 0x30]
call fcn.0047cede
lea ecx, [esp + 0xc]
mov dword [esp + 0x4c], 0
mov edx, dword [esi + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x1c]
push edx
push eax
call edi
push eax
call fcn.0048030c
mov ecx, eax
call fcn.0047cb91
cmp dword [esi + 0x130], 0
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
jne 0x412aa1
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x12c]
call fcn.0047ce4b
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
lea edi, [esi + 0x13c]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call fcn.0047d112
test edi, edi
je 0x412a5b
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x130]
push edi
push eax
call fcn.0047d197
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0xc]
push 0xcc0020
push edx
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x144], eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
push edx
push eax
mov eax, dword [esi + 0x130]
push ecx
push 0
push 0
push eax
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sub eax, dword [esp + 0x10]
sub ecx, dword [esp + 0xc]
lea edx, [esi + 0x12c]
test edx, edx
je 0x412abe
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
push eax
push ecx
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx + 4]
push 0
push 0
push edx
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], 0xffffffff
call fcn.0047cf32
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x44
ret 4
Function at 0x418370
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4bcf38
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
mov eax, dword [0x4ef6a0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push esi
lea ecx, [esp + 0x18]
call fcn.0047cede
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0
call fcn.0047c71d
mov ecx, dword [esi + 0x54]
mov ebx, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x140]
call edx
push eax
lea ecx, [esp + 0x18]
call fcn.0047d1ea
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [edi], ecx
mov dword [edi + 4], edx
test byte [esi + 0x64], 4
je 0x4183f8
add dword [edi], 0xe
push ebx
lea ecx, [esp + 0x18]
call fcn.0047c74e
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.0047cf32
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x2c
ret 8

Function at 0x41a860
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4bd403
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x4ef6a0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
mov ecx, esi
call fcn.0047c97d
xor ecx, ecx
mov dword [esp + 0x24], ecx
lea ebp, [esi + 0x10]
mov dword [esi], vtable.CMemDC.0
mov dword [ebp + 4], ecx
mov dword [ebp], vtable.CBitmap.0
mov byte [esp + 0x24], 1
xor eax, eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
cmp dword [ebx + 0xc], ecx
sete al
cmp eax, ecx
mov dword [esi + 0x30], eax
je 0x41a92b
mov eax, dword [ebx]
mov edx, dword [eax + 0x50]
lea edi, [esi + 0x20]
push edi
mov ecx, ebx
call edx
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.0047ce4b
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
push eax
mov eax, dword [ebx + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call fcn.0047d112
test ebp, ebp
je 0x41a909
mov ebp, dword [ebp + 4]
mov ecx, dword [esi + 4]
push ebp
push ecx
call fcn.0047d197
mov edx, dword [esi + 0x24]
mov dword [esi + 0x18], eax
mov eax, dword [edi]
push edx
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.0047ca91
jmp 0x41a93d
mov edx, dword [ebx + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov ecx, dword [ebx + 8]
mov dword [esi + 8], ecx
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 4
Function at 0x422dd0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x2c], 0
jne 0x422e25
mov eax, dword [esi + 0x38]
test eax, eax
je 0x422dee
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x38], 0
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov dword [esi + 0x68], ecx
mov ecx, 1
mov dword [esi + 0x64], eax
mov eax, esi
mov byte [esi + 0x2c], cl
mov dword [esi + 0x34], ecx
call fcn.00422ea0
push 0
push 0
push esi
push 0x422dc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x38], eax
pop esi
ret 8