joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e2e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x468568
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.00409630
lea ecx, [esp + 0xc]
mov dword [esp + 0x54], 0
mov dword [esi + 0x1c], 0
mov dword [esp + 8], 0
call fcn.00409950
push 0
mov ecx, eax
mov dword [esi + 0x30], eax
call fcn.00409d20
mov ecx, dword [esi + 0xc]
call fcn.0040f7a0
mov eax, dword [esi + 0x28]
test eax, eax
je 0x40e426
mov eax, dword [esi + 0x24]
xor edi, edi
test eax, eax
jle 0x40e426
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + edi*4]
lea edx, [eax + edi*4]
test ecx, ecx
je 0x40e41a
fld dword [ecx + 4]
fcomp qword [0x46f258]
fnstsw ax
test ah, 0x40
jne 0x40e41a
fld dword [ecx + 4]
fadd dword [esi + 0x1c]
fstp dword [esi + 0x1c]
mov ecx, dword [edx]
mov edx, dword [ecx + 8]
mov ecx, dword [esi + 0xac]
push edx
call fcn.00409650
mov eax, dword [esi + 0x28]
mov edx, dword [esi + 0xac]
push edx
mov ecx, dword [eax + edi*4]
mov eax, dword [ecx + 8]
lea ecx, [esp + 0x10]
push eax
push eax
call fcn.004096a0
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + edi*4]
push ecx
fld dword [ecx + 4]
mov ecx, dword [esi + 0xac]
fchs
fstp dword [esp]
call fcn.00409d20
mov edx, dword [esi + 0xac]
mov ecx, dword [esi + 0x30]
push edx
call fcn.00409cc0
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx]
mov ecx, dword [esi + 0x8c]
push edx
call fcn.0040f5a0
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx + 4]
mov ecx, dword [esi + 0x8c]
push edx
call fcn.0040f570
fld dword [esp + 8]
fadd dword [0x46f24c]
mov eax, dword [esi + 0x8c]
mov ecx, dword [esi + 0xc]
push eax
fstp dword [esp + 0xc]
call fcn.0040f5e0
mov eax, dword [esi + 0x24]
inc edi
cmp edi, eax
jl 0x40e351
mov ecx, dword [esi + 0x30]
push 0x3f800000
call fcn.00409ed0
fld dword [esp + 8]
fmul dword [esi + 0x1c]
fcom dword [0x46f23c]
fnstsw ax
test ah, 0x40
jne 0x40e45f
fld dword [0x46f24c]
fdiv st(1)
push ecx
mov ecx, dword [esi + 0xc]
fstp dword [esp]
fstp st(0)
call fcn.0040f570
jmp 0x40e469
mov ecx, dword [esi + 0xc]
fstp st(0)
call fcn.0040f7a0
fld dword [esi + 0x1c]
fcomp dword [0x46f23c]
fnstsw ax
test ah, 0x40
jne 0x40e487
fld dword [0x46f24c]
fdiv dword [esi + 0x1c]
fstp dword [esi + 0x20]
jmp 0x40e48e
mov dword [esi + 0x20], 0
mov ecx, esi
call fcn.0040d750
lea ecx, [esp + 0xc]
mov dword [esp + 0x54], 0xffffffff
call fcn.004542a0
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x50
ret
Function at 0x41c489
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x469807
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 8], esi
mov dword [esi + 0x10], ebx
mov dword [esp + 0x18], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x60], ebx
push 0xc
mov byte [esp + 0x1c], 3
mov dword [esi], ebx
mov byte [esi + 4], bl
mov byte [esi + 5], bl
mov byte [esi + 6], bl
mov byte [esi + 7], bl
mov byte [esi + 8], bl
mov byte [esi + 9], bl
mov dword [esi + 0xc], ebx
call fcn.0045cff5
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebx
mov byte [esp + 0x18], 4
je 0x41c4e0
push 0xd
mov ecx, eax
call fcn.0044edf0
jmp 0x41c4e2
xor eax, eax
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x5c], 0xffffffff
mov byte [esi + 0x64], bl
mov byte [esi + 0x65], bl
mov byte [esi + 0x70], bl
mov dword [esi + 0xc], ebx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x42f240
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46ab9c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [esi + 0x98]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x14], 3
je 0x42f278
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x94]
mov byte [esp + 0x14], 2
cmp eax, ebx
je 0x42f28d
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esi + 0x3c]
cmp eax, ebx
je 0x42f2b1
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x42f2a8
cmp al, 0xff
je 0x42f2a8
dec al
mov byte [ecx], al
jmp 0x42f2b1
push ecx
call fcn.0045c5a9
add esp, 4
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov eax, dword [esi + 0x2c]
cmp eax, ebx
je 0x42f2de
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x42f2d5
cmp al, 0xff
je 0x42f2d5
dec al
mov byte [ecx], al
jmp 0x42f2de
push ecx
call fcn.0045c5a9
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi], 0x46f244
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4420e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
push ebx
push esi
lea eax, [esp + 0x14]
push edi
push eax
push 1
push 0
push ecx
push 0x80000002
mov dword [esp + 0x20], 0x103
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xc]
mov edi, eax
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov eax, dword [esp + 0xc]
cmp byte [eax + esi], 0
je 0x442142
mov byte [eax + esi], 0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x442163
test ebx, ebx
jne 0x442163
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0xc

Function at 0x442170
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push ebx
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov edi, dword [esp + 0x68]
lea ecx, [esp + 0x1c]
mov ebx, dword [esp + 0x64]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push ebx
mov dword [esp + 0x44], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, 1
jne 0x4421d8
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x54
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push str.Error
push str.Process_failed_to_create.
push 0
call esi
push 0
push edi
push ebx
push 0
call esi
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x54
ret 8
Function at 0x44a0f9
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46cd36
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 8], esi
mov dword [esi + 0x24], ebx
push 0x10
mov dword [esp + 0x1c], ebx
mov dword [esi], 0x46f994
call fcn.0045cff5
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebx
mov byte [esp + 0x18], 1
je 0x44a12f
mov ecx, eax
call fcn.0044cfb0
jmp 0x44a131
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x34], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x1c], ebx
mov byte [esi + 0x20], bl
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x455b50
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x455b5f
xor eax, eax
pop esi
ret 8
mov edx, dword [esp + 0xc]
xor eax, eax
xor ecx, ecx
test edx, edx
jle 0x455b7b
push edi
movsx edi, byte [ecx + esi]
shl eax, 2
xor eax, edi
inc ecx
cmp ecx, edx
jl 0x455b6c
pop edi
and eax, 0x7fffffff
pop esi
ret 8

Function at 0x455b90
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
lea eax, [edi + 1]
push eax
call fcn.0045cff5
add esp, 4
xor edx, edx
test edi, edi
mov dword [esp + 0x10], eax
jle 0x455bd7
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x14]
mov ecx, eax
sub esi, eax
mov al, byte [esi + ecx]
xor al, byte [edx + ebx]
mov byte [ecx], al
lea eax, [edx + 1]
cdq
idiv ebp
inc ecx
dec edi
jne 0x455bbe
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
pop ebx
pop edi
ret 0x10

Function at 0x456140
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
lea edx, [esp + 4]
mov dword [esp + 4], 0x3c
push edx
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x24], 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
pop edi
je 0x4561b4
mov eax, dword [esp + 0x48]
cmp eax, 1
mov eax, dword [esp + 0x38]
jne 0x4561b6
push eax
call fcn.004561c0
add esp, 4
test eax, eax
je 0x4561b4
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004561c0
add esp, 4
test eax, eax
jne 0x4561a3
xor eax, eax
add esp, 0x3c
ret
Function at 0x458f30
Capabilities:
Link many functions at runtime
Query or enumerate registry value

Disassembly:
sub esp, 0x218
push ebx
push ebp
lea eax, [esp + 8]
push esi
push eax
push 0x20019
push 0
push str.SOFTWAREWildTangent
mov ebx, ecx
push 0x80000002
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x45900c
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x11c]
push ecx
push edx
push 0
push 0
push str.Apps
push eax
mov dword [esp + 0x28], 0x105
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0xc]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x45900c
push edi
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.DRM0302.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov dword [ebx + 0x208], eax
pop edi
mov eax, dword [ebx + 0x208]
test eax, eax
jne 0x45902b
push str.DRM0302.dll
call ebp
test eax, eax
mov dword [ebx + 0x208], eax
je 0x459165
mov ecx, dword [ebx + 0x208]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DRM3_Function1
push ecx
call esi
test eax, eax
mov dword [ebx + 0x20c], eax
je 0x459165
mov edx, dword [ebx + 0x208]
push str.DRM3_Function2
push edx
call esi
test eax, eax
mov dword [ebx + 0x210], eax
je 0x459165
mov eax, dword [ebx + 0x208]
push str.DRM3_Function3
push eax
call esi
test eax, eax
mov dword [ebx + 0x214], eax
je 0x459165
mov ecx, dword [ebx + 0x208]
push str.DRM3_Function4
push ecx
call esi
test eax, eax
mov dword [ebx + 0x218], eax
je 0x459165
mov edx, dword [ebx + 0x208]
push str.DRM3_Function5
push edx
call esi
test eax, eax
mov dword [ebx + 0x21c], eax
je 0x459165
mov eax, dword [ebx + 0x208]
push str.DRM3_Function7
push eax
call esi
test eax, eax
mov dword [ebx + 0x220], eax
je 0x459165
mov ecx, dword [ebx + 0x208]
push str.DRM3_Function8
push ecx
call esi
test eax, eax
mov dword [ebx + 0x224], eax
je 0x459165
mov edx, dword [ebx + 0x208]
push str.DRM3_Function9
push edx
call esi
test eax, eax
mov dword [ebx + 0x228], eax
je 0x459165
mov eax, dword [ebx + 0x208]
push str.DRM3_Function10
push eax
call esi
test eax, eax
mov dword [ebx + 0x22c], eax
je 0x459165
mov ecx, dword [ebx + 0x208]
push str.DRM3_Function11
push ecx
call esi
test eax, eax
mov dword [ebx + 0x230], eax
je 0x459165
mov edx, dword [ebx + 0x208]
push str.DRM3_Function12
push edx
call esi
test eax, eax
mov dword [ebx + 0x234], eax
je 0x459165
push 0
call fcn.0045da3f
push eax
call fcn.0045d31c
add esp, 8
mov byte [ebx + 4], 1
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
Function at 0x462a7c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x47ee88
cmp edx, dword [eax]
je 0x462a9e
add eax, 8
inc ecx
cmp eax, 0x47ef18
jl 0x462a8f
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x47ee88]
jne 0x462bcc
mov eax, dword [0x47fd0c]
cmp eax, 1
je 0x462ba6
test eax, eax
jne 0x462acf
cmp dword [0x47e870], 1
je 0x462ba6
cmp edx, 0xfc
je 0x462bcc
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x462b06
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004610e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0045e1a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x462b49
lea eax, [ebp - 0x1a4]
push eax
call fcn.0045e1a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x470b5c
push edi
call fcn.00466570
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004610e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004610f0
lea eax, [ebp - 0xa0]
push 0x470b3c
push eax
call fcn.004610f0
push dword [esi + 0x47ee8c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004610f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004664df
add esp, 0x2c
pop edi
jmp 0x462bcc
lea eax, [ebp + 8]
lea esi, [esi + 0x47ee8c]
push 0
push eax
push dword [esi]
call fcn.0045e1a0
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 0x402519
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp + 0xc]
push esi
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x402572
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x40269f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ecx
push ebx
push ebx
push dword [ebp + 8]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
mov dword [ebp - 4], eax
ja 0x40278c
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x210]
push eax
mov edi, 0x80000000
push str..htm
push edi
call fcn.00402519
test eax, eax
jne 0x40278c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x210]
push str._shellopencommand
push eax
call esi
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
call fcn.00402519
test eax, eax
jne 0x40278c
lea eax, [ebp - 0x210]
push str.__1_
push eax
call fcn.00406840
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
jne 0x402769
lea eax, [ebp - 0x210]
push 0x4253bc
push eax
call fcn.004067c0
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
jne 0x402769
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [ebp + eax - 0x211]
jmp 0x40276b
mov byte [edi], bl
push 0x4253b8
push edi
call esi
push dword [ebp + 8]
push edi
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40a22d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x426280
cmp edx, dword [eax]
je 0x40a24f
add eax, 8
inc ecx
cmp eax, 0x426310
jl 0x40a240
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x426280]
jne 0x40a37d
mov eax, dword [0x428b9c]
cmp eax, 1
je 0x40a357
test eax, eax
jne 0x40a280
cmp dword [0x425d14], 1
je 0x40a357
cmp edx, 0xfc
je 0x40a37d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a2b7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00406c80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406d70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40a2fa
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406d70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41fef0
push edi
call fcn.0040c780
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00406c80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00406c90
lea eax, [ebp - 0xa0]
push 0x41fed0
push eax
call fcn.00406c90
push dword [esi + 0x426284]
lea eax, [ebp - 0xa0]
push eax
call fcn.00406c90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040c6e9
add esp, 0x2c
pop edi
jmp 0x40a37d
lea eax, [ebp + 8]
lea esi, [esi + 0x426284]
push 0
push eax
push dword [esi]
call fcn.00406d70
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 0x410dd0
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.00406f90
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x410e9b
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 0x410e9b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x410e4e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x410e59
or bh, 8
and edi, 0x8000000
je 0x410e74
mov eax, dword [0x42a31c]
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 0x410e9b
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 0x411270
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 0x41129b
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 0x4112bf
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 0x4112da
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 0x413fd7
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41400f
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.004169d9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004169b1
jmp 0x41401b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x41555a
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 0x41559c
call fcn.0041a4c5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41559c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x415593
xor eax, eax
jmp 0x4155a4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004155aa
pop edi
pop esi
pop ebx
ret 4

Function at 0x41b229
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 0x41b257
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41b275
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041b18f
jmp 0x41b275
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41b275
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041b18f
test edi, edi
mov eax, edi
jne 0x41b25f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8