joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4269c9
Capabilities:
Parse pe header

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

Function at 0x438db0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x438ddd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x438ddd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x7aee44
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7aee4e
pushal
call 0x7aee54
pop ebp
sub ebp, 0x10
sub ebp, 0x3aee44
mov al, byte [esp + 0x28]
cmp al, 1
je 0x7aee78
popal
xor eax, eax
inc eax
ret 0xc
add cl, ch
add al, 0
add byte [eax], al
ret
jmp 0x7aee81
mov eax, 0x3aee44
add eax, ebp
add eax, 0x63
mov ecx, 0x5e7
mov edx, 0x9d84a329
xor byte [eax], dl
inc eax
dec ecx
jne 0x7aee98
jmp 0x7aeeab
mov byte [0x15a0a2e4], al
sub dword [ecx], ebp
sub dword [eax + 0x2929d1e8], ebp
sub dword [edx], ebp
in al, 0x91
sub eax, 0x93292929
add dword [ecx], ebp
sub dword [ecx], ebp
fmulp st(3)
sub ah, cl
mov byte [0x292925a8], al
sub dword [edx], ebp
in al, dx
jns 0x7aee77
dec ebp
or eax, 0xd2da0d5
inc ecx
cmc
push edx
daa
sub dword [ecx + 0x4f], eax
pop ebx
add eax, 0xd052829
inc ecx
invalid
Function at 0x4015f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x42832e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
push edi
mov edx, dword [esp + 0x160]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x154], 0
jne 0x401648
lea ecx, [esp + 0x15c]
mov dword [esp + 0x154], 0xffffffff
call fcn.0041e016
jmp 0x4017bd
push ebx
push esi
mov esi, dword [esp + 0x170]
mov dword [esi], 0
mov eax, dword [0x4368ec]
mov dword [esp + 0xc], eax
push edx
lea ecx, [esp + 0x168]
lea edx, [esp + 0x14]
push ecx
push edx
mov byte [esp + 0x168], 1
call fcn.0041e25f
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x160], 2
call fcn.0041e103
lea ecx, [esp + 0x10]
mov byte [esp + 0x15c], 1
call fcn.0041e016
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401784
mov al, byte [esp + 0x40]
push ebp
mov ebp, dword [esp + 0x170]
cmp al, 0x2e
je 0x40170f
test byte [esp + 0x18], 0x10
jne 0x40170f
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.setup.exe
push edx
call fcn.004147d0
add esp, 0xc
test eax, eax
je 0x40170f
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x44]
push ecx
push eax
mov ecx, ebp
call fcn.004194e7
mov edx, dword [esp + 0x38]
mov eax, dword [esi]
add eax, edx
mov dword [esi], eax
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40177c
cmp byte [esp + 0x44], 0x2e
je 0x40176c
test byte [esp + 0x18], 0x10
jne 0x40176c
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x48]
push str.setup.exe
push ecx
call fcn.004147d0
add esp, 0xc
test eax, eax
je 0x40176c
mov eax, dword [ebp + 8]
lea edx, [esp + 0x44]
push edx
push eax
mov ecx, ebp
call fcn.004194e7
mov eax, dword [esp + 0x38]
mov ecx, dword [esi]
add ecx, eax
mov dword [esi], ecx
lea ecx, [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40171f
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
mov eax, dword [esi]
shr eax, 0xa
mov dword [esi], eax
jne 0x401793
mov dword [esi], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], 0
call fcn.0041e016
lea ecx, [esp + 0x164]
mov dword [esp + 0x15c], 0xffffffff
call fcn.0041e016
pop esi
pop ebx
mov ecx, dword [esp + 0x14c]
pop edi
mov dword fs:[0], ecx
add esp, 0x154
ret 0x10
Function at 0x4029a0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x194
lea eax, [esp + 4]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x402a11
mov ecx, dword [esp + 0x1a0]
push ecx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x402a0c
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
push esi
mov eax, ecx
push edi
mov esi, dword [edx]
lea edi, [esp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 8]
push ecx
call sub.WSOCK32.dll_inet_ntoa
mov edx, dword [esp + 0x1a4]
push eax
mov eax, dword [esp + 0x1a4]
push edx
push eax
call fcn.00402310
add esp, 0xc
pop edi
pop esi
call sub.WSOCK32.dll_WSACleanup
add esp, 0x194
ret

Function at 0x405560
Capabilities:
Get disk size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4288f0
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
push 0x3a
lea edi, [esi + 0xe4]
mov dword [esi + 0x60], ebx
mov ecx, edi
call fcn.0041e408
cmp eax, 1
jne 0x405632
lea eax, [esp + 0x18]
push 2
push eax
mov ecx, edi
call fcn.004189df
mov cl, byte [0x436250]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov dword [esp + 0x40], ebx
call fcn.00418862
mov eax, dword [eax]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x24]
push ecx
push edx
lea ecx, [esp + 0x28]
lea edx, [esp + 0x24]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.0041e016
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], 0xffffffff
call fcn.0041e016
cmp edi, ebx
je 0x405639
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
imul eax, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebx
fild qword [esp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
fild qword [esp + 0xc]
fmulp st(1)
fmul qword [0x42af30]
call fcn.0040bd50
mov dword [esi + 0x60], eax
jmp 0x405639
mov dword [esi + 0x60], 0x1869f
mov edx, dword [0x4368ec]
mov dword [esp + 0xc], edx
mov eax, dword [esi + 0x60]
lea ecx, [esp + 0xc]
push eax
push str._lu_KB
push ecx
mov dword [esp + 0x40], 1
call fcn.00418dba
add esp, 0xc
mov ecx, esi
push 0x272b
call fcn.0041d507
pop edi
pop esi
cmp eax, ebx
pop ebx
je 0x405680
mov edx, dword [esp]
mov ecx, eax
push edx
call fcn.0041d5f7
lea ecx, [esp]
mov dword [esp + 0x28], 0xffffffff
call fcn.0041e016
mov ecx, dword [esp + 0x20]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x405579
Capabilities:
Get disk size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4288f0
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
push 0x3a
lea edi, [esi + 0xe4]
mov dword [esi + 0x60], ebx
mov ecx, edi
call fcn.0041e408
cmp eax, 1
jne 0x405632
lea eax, [esp + 0x18]
push 2
push eax
mov ecx, edi
call fcn.004189df
mov cl, byte [0x436250]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov dword [esp + 0x40], ebx
call fcn.00418862
mov eax, dword [eax]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x24]
push ecx
push edx
lea ecx, [esp + 0x28]
lea edx, [esp + 0x24]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.0041e016
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], 0xffffffff
call fcn.0041e016
cmp edi, ebx
je 0x405639
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
imul eax, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebx
fild qword [esp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
fild qword [esp + 0xc]
fmulp st(1)
fmul qword [0x42af30]
call fcn.0040bd50
mov dword [esi + 0x60], eax
jmp 0x405639
mov dword [esi + 0x60], 0x1869f
mov edx, dword [0x4368ec]
mov dword [esp + 0xc], edx
mov eax, dword [esi + 0x60]
lea ecx, [esp + 0xc]
push eax
push str._lu_KB
push ecx
mov dword [esp + 0x40], 1
call fcn.00418dba
add esp, 0xc
mov ecx, esi
push 0x272b
call fcn.0041d507
pop edi
pop esi
cmp eax, ebx
pop ebx
je 0x405680
mov edx, dword [esp]
mov ecx, eax
push edx
call fcn.0041d5f7
lea ecx, [esp]
mov dword [esp + 0x28], 0xffffffff
call fcn.0041e016
mov ecx, dword [esp + 0x20]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x406400
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x428b08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x18]
add ecx, 0x60
push eax
push ecx
lea ecx, [esp + 8]
push ecx
call fcn.0041e25f
mov eax, dword [esp]
lea edx, [esp + 0x18]
push edx
push 1
push 0
push eax
push 0x80000002
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4064e5
push ebx
mov ebx, dword [esp + 0x20]
push ebp
lea ecx, [esp + 0x24]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
push ecx
lea edx, [esp + 0x14]
push eax
push edx
push eax
mov eax, dword [esp + 0x34]
push ebx
push eax
call ebp
mov esi, eax
test esi, esi
jne 0x4064ac
mov edx, dword [esp + 0x28]
push edi
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0x2c]
push ecx
push edx
mov ecx, edi
call fcn.0041e371
mov ecx, dword [esp + 0x2c]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
push ebx
push ecx
call ebp
push 0xffffffffffffffff
mov ecx, edi
mov esi, eax
call fcn.0041e3c0
pop edi
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
pop ebp
pop ebx
jne 0x4064e5
lea ecx, [esp]
mov dword [esp + 0x10], 0xffffffff
call fcn.0041e016
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
lea ecx, [esp]
mov dword [esp + 0x10], 0xffffffff
call fcn.0041e016
mov ecx, dword [esp + 8]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
Function at 0x408bf0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x429268
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push str.SOFTWAREStartForward2.0Chinese
lea ecx, [esp + 8]
call fcn.0041e084
push 0x43601c
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0
call fcn.0041e332
mov eax, dword [esp + 0x20]
lea ecx, [esp + 4]
push eax
call fcn.0041e332
mov eax, dword [esp + 4]
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, dword [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 8]
inc eax
push eax
push esi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [esp + 0x18], 0xffffffff
test esi, esi
sete cl
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0041e016
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc

Function at 0x408cc0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x429288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push str.SOFTWAREStartForward2.0Chinese
lea ecx, [esp + 8]
call fcn.0041e084
push 0x43601c
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0
call fcn.0041e332
mov eax, dword [esp + 0x20]
lea ecx, [esp + 4]
push eax
call fcn.0041e332
mov eax, dword [esp + 4]
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 8]
lea ecx, [esp + 0x28]
push 4
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
lea ecx, [esp + 4]
test esi, esi
sete dl
mov esi, edx
mov dword [esp + 0x18], 0xffffffff
call fcn.0041e016
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
Function at 0x409800
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x4293b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
lea eax, [esp + 4]
xor ebx, ebx
push eax
push 0x42e920
push 1
push ebx
push 0x42e910
mov dword [esp + 0x230], 1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x409885
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x224]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp + 4]
push 0x438180
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push 0x42e930
mov edx, dword [eax]
push eax
call dword [edx]
cmp eax, ebx
jge 0x4098b3
lea ecx, [esp + 0x224]
mov byte [esp + 0x21c], bl
call fcn.0041e016
lea ecx, [esp + 0x228]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0041e016
xor eax, eax
jmp 0x409924
mov eax, dword [esp + 0x228]
push esi
lea edx, [esp + 0x10]
push 0x104
push edx
push 0xffffffffffffffff
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push 2
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
lea ecx, [esp + 0x228]
mov byte [esp + 0x220], bl
call fcn.0041e016
lea ecx, [esp + 0x22c]
mov dword [esp + 0x220], 0xffffffff
call fcn.0041e016
mov eax, esi
pop esi
mov ecx, dword [esp + 0x214]
pop ebx
mov dword fs:[0], ecx
add esp, 0x21c
ret 8
Function at 0x409e80
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4294b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x4368ec]
push ebp
push esi
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0xc], eax
push str.SOFTWAREClassesLicenses
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 1
call fcn.0041e084
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edx
push 0x80000002
mov byte [esp + 0x4c], 2
call esi
push str.Licensing:_Copying_the_keys_may_be_a_violation_of_established_copyrights.
lea ecx, [esp + 0x10]
call fcn.0041e153
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
mov eax, dword [eax - 8]
inc eax
push eax
push 0xff
call fcn.0041e371
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
push 1
push 0
push 0
push ecx
call edi
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebp
push str.SOFTWAREClassesLicensesDB4C0D00_400B_101B_A3C9_08002B2F49FB
lea ecx, [esp + 0x18]
call fcn.0041e153
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edx
push 0x80000002
call esi
push str.mgkgtgnnmnmninigthkgogggvmkhinjggnvm
lea ecx, [esp + 0x10]
call fcn.0041e153
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
mov eax, dword [eax - 8]
inc eax
push eax
push 0xff
call fcn.0041e371
push eax
push 1
push 0
push 0
mov ecx, dword [esp + 0x24]
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
call ebp
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 1
call fcn.0041e016
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.0041e016
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], 0xffffffff
call fcn.0041e016
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x411115
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x437790
cmp edx, dword [eax]
je 0x411137
add eax, 8
inc ecx
cmp eax, 0x437820
jl 0x411128
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x437790]
jne 0x411265
mov eax, dword [0x43a628]
cmp eax, 1
je 0x41123f
test eax, eax
jne 0x411168
cmp dword [0x437028], 1
je 0x41123f
cmp edx, 0xfc
je 0x411265
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41119f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00412910
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040f4e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4111e2
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040f4e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42e77c
push edi
call fcn.0040bbb0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00412910
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00412920
lea eax, [ebp - 0xa0]
push 0x42e75c
push eax
call fcn.00412920
push dword [esi + 0x437794]
lea eax, [ebp - 0xa0]
push eax
call fcn.00412920
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00413b4e
add esp, 0x2c
pop edi
jmp 0x411265
lea eax, [ebp + 8]
lea esi, [esi + 0x437794]
push 0
push eax
push dword [esi]
call fcn.0040f4e0
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 0x4181c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040b830
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41828b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41828b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41823e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x418249
or bh, 8
and edi, 0x8000000
je 0x418264
mov eax, dword [0x43bddc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41828b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418660
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41868b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4186af
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4186ca
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x419ff9
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 0x41a01b
cmp dword [edi + 0x3c], 0
jne 0x41a01b
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00425fd9
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.0041a048
pop edi
pop esi
pop ebx
ret 8

Function at 0x41b635
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41b66d
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.0041e3e8
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041e3c0
jmp 0x41b679
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x41ce2b
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 0x41ce6d
call fcn.00425fd9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41ce6d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41ce64
xor eax, eax
jmp 0x41ce75
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041ce7b
pop edi
pop esi
pop ebx
ret 4

Function at 0x426eac
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 0x426eda
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x426ef8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00426e12
jmp 0x426ef8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x426ef8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00426e12
test edi, edi
mov eax, edi
jne 0x426ee2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8