joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1014fa10
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x102690f8
push eax
mov dword fs:[0], esp
sub esp, 0x84
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x10b
ja 0x1014fbe8
je case.0x1014fa5e.123
lea eax, [esi - 2]
cmp eax, 0xcc
ja case.0x1014fa5e.4
movzx eax, byte [eax + 0x1014fc84]
jmp dword [eax*4 + 0x1014fc48]
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.1013f770
push 0x10300f90
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.1013f650
push 0x10301068
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.1013f720
push 0x10300f48
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.1013f340
push 0x103010b0
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.1013f410
push 0x10301188
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.1013ff90
push 0x103010f8
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.1013fd50
push 0x10301140
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.sharing_violation
lea ecx, [ebp - 0x24]
call fcn.1004b980
mov dword [ebp - 4], 0
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x64]
call fcn.1013f6a0
push 0x10300f04
lea eax, [ebp - 0x64]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.lock_violation
lea ecx, [ebp - 0x24]
call fcn.1004b980
mov dword [ebp - 4], 1
jmp 0x1014fb2f
push str.EOF_reached
lea ecx, [ebp - 0x24]
call fcn.1004b980
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x64]
call fcn.1013fd20
push 0x10301140
jmp 0x1014fb44
push str.disk_is_full
lea ecx, [ebp - 0x24]
call fcn.1004b980
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 3
push eax
lea ecx, [ebp - 0x64]
call fcn.1013ff60
push 0x103010f8
jmp 0x1014fb44
push str.negative_seek
lea ecx, [ebp - 0x24]
call fcn.1004b980
mov dword [ebp - 4], 4
jmp 0x1014fb2f
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x64]
call fcn.1013fc60
push 0x10300e98
jmp 0x1014fb44
cmp esi, 0x781
je case.0x1014fa5e.3
cmp esi, 0x1779
je 0x1014fc17
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x90]
call fcn.1013f6d0
push 0x10300f04
lea eax, [ebp - 0x90]
jmp 0x1014fb47
push 0x1779
push dword [ebp + 8]
lea ecx, [ebp - 0x64]
call fcn.1013f7c0
push 0x10301020
jmp 0x1014fb44
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x64]
call fcn.1013fc10
push 0x10300fd8
jmp 0x1014fb44
Function at 0x1017c790
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1026bbfe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
lea eax, [esi + 4]
push eax
lea ecx, [edi + 4]
mov dword [edi], vtable.Poco::Data::MetaColumn.0
call fcn.1004d130
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [edi + 0x20], eax
mov eax, dword [esi + 0x24]
mov dword [edi + 0x24], eax
mov eax, dword [esi + 0x28]
mov dword [edi + 0x28], eax
mov al, byte [esi + 0x2c]
mov byte [edi + 0x2c], al
push dword [ebp + 0xc]
lea ecx, [edi + 0x30]
mov dword [ebp - 4], 0
call fcn.1017d360
lea ebx, [edi + 0x38]
mov byte [ebp - 4], 1
push 8
mov dword [ebp + 8], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
call fcn.101afade
mov dword [ebx], eax
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebx]
mov dword [eax], ebx
mov edx, dword [edi + 0x34]
mov byte [ebp - 4], 2
test edx, edx
jne 0x1017c86a
push 0xc8
push str.e:xhsundcode_remote_trunk_rhinopcinfrastructure_thirdpartypoco_srcdataincludepocodatacolumn.h
push str._pData
call fcn.1013ef60
mov edx, dword [edi + 0x34]
add esp, 0xc
test edx, edx
je 0x1017c8b8
mov ecx, dword [edx + 0xc]
mov esi, dword [edx]
test ecx, ecx
jns 0x1017c88b
mov eax, ecx
neg eax
je 0x1017c88b
mov eax, ecx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub esi, eax
jmp 0x1017c893
mov eax, ecx
shr eax, 5
lea esi, [esi + eax*4]
and ecx, 0x1f
push ecx
push esi
push 0
push dword [edx]
mov ecx, ebx
call fcn.10170f60
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push 0
lea ecx, [ebp - 0x40]
call fcn.1013fbd0
push 0x10309274
lea eax, [ebp - 0x40]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1017d3e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1026bf44
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
mov ebx, ecx
push edi
push 0
mov dword [ebp - 0x14], ebx
lea eax, [ebx + 0xc]
mov dword [ebp - 0x10], 0
push 0xffffffffffffffff
push eax
mov dword [ebx], vtable.Poco::Data::StatementImpl.0
mov dword [ebx + 8], 0
call fcn.1017b7d0
add esp, 0xc
mov dword [ebx + 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov eax, dword [ebp + 8]
lea edi, [ebx + 0x30]
mov dword [ebx + 0x24], eax
lea ecx, [edi + 0x50]
mov dword [ebx + 0x28], 3
mov dword [ebp + 8], edi
mov byte [ebp - 4], 1
mov dword [edi], 0x102e1138
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea esi, [edi + 4]
mov byte [ebp - 4], 2
push esi
mov ecx, edi
mov dword [ebp - 0x10], 1
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov eax, dword [edi]
mov dword [ebp - 4], 3
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [esi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 4
mov dword [ebx + 0xc8], 0
mov dword [ebx + 0xcc], 0
mov dword [ebx + 0xd0], 0
lea esi, [ebx + 0xd4]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea edi, [ebx + 0xec]
mov dword [ebx + 0xe0], 0
mov dword [ebx + 0xe4], 0
mov dword [ebx + 0xe8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov ecx, dword [ebx + 0x24]
mov byte [ebp - 4], 7
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x1017d595
push esi
push 1
mov ecx, esi
call fcn.1016bcd0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
lea ecx, [ebx + 0x18]
push ecx
push 1
call fcn.1016b9f0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push edi
push 1
mov ecx, edi
call fcn.10138d80
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebx + 0x24]
push 0
call fcn.10163ec0
push eax
lea ecx, [ebp - 0x44]
call fcn.10168a80
push 0x10303740
lea eax, [ebp - 0x44]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x101a0900
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10269ed8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
mov edi, dword [esi + 8]
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [ebp - 4], 0
test edi, edi
je 0x101a0962
push dword [esi + 0x10]
mov eax, dword [edi]
mov ecx, edi
push dword [esi + 0xc]
call dword [eax + 0x30]
lea ecx, [ebp - 0x14]
call fcn.10148dc0
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0x40]
call fcn.1013fbd0
push 0x10309274
lea eax, [ebp - 0x40]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x401650
Capabilities:
Delete directory
Get common file path
Set current directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x422d87
push eax
mov dword fs:[0], esp
sub esp, 0x130
push esi
mov esi, dword [esp + 0x144]
test esi, esi
push edi
je 0x401887
cmp byte [esi], 0
je 0x401887
mov edi, 0x42f320
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x42f320
push esi
call fcn.00416f60
add esp, 0xc
test eax, eax
je 0x4016cd
mov edi, 0x42f424
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x42f424
push esi
call fcn.00416f60
add esp, 0xc
test eax, eax
jne 0x401887
lea eax, [esp + 0x34]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x401887
lea ecx, [esp + 0x18]
call fcn.00402947
push 0
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x148], 0
call fcn.00402a0a
test eax, eax
je 0x401858
mov ecx, dword [0x42d2dc]
push ebx
push ebp
mov dword [esp + 0x10], ecx
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov bl, 1
mov byte [esp + 0x148], bl
lea ecx, [esp + 0x20]
call fcn.00402c2a
lea ecx, [esp + 0x20]
mov ebp, eax
call fcn.00402bf1
test eax, eax
jne 0x40183d
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x20]
push edx
call fcn.00402e22
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x14c], 2
call fcn.0041b9b1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], bl
call fcn.0041b8bc
mov eax, dword [esp + 0x20]
push 0x10
lea ecx, [esp + 0x24]
call dword [eax + 0x38]
test eax, eax
je 0x4017fd
mov ecx, dword [0x42d2dc]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push esi
push str._s_s
push eax
mov byte [esp + 0x158], 3
call fcn.00417359
add esp, 0x10
lea ecx, [esp + 0x10]
call fcn.0041bbca
mov ecx, dword [esp + 0x10]
push str.SAVE
push ecx
call fcn.00409f81
add esp, 8
test eax, eax
jne 0x4017e3
mov byte [esp + 0x148], bl
lea ecx, [esp + 0x14]
jmp 0x401838
mov edx, dword [esp + 0x14]
push edx
call fcn.00401650
add esp, 4
mov byte [esp + 0x148], bl
lea ecx, [esp + 0x14]
jmp 0x401838
mov eax, dword [0x42d2dc]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push esi
push str._s_s
push edx
mov byte [esp + 0x158], 4
call fcn.00417359
mov eax, dword [esp + 0x28]
add esp, 0x10
push eax
call edi
mov byte [esp + 0x148], bl
lea ecx, [esp + 0x18]
call fcn.0041b8bc
test ebp, ebp
jne 0x401730
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], 0
call fcn.0041b8bc
pop ebp
pop ebx
lea ecx, [esp + 0x18]
call fcn.004029c0
push 0x42d0f8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x18]
mov dword [esp + 0x140], 0xffffffff
call fcn.00402984
mov ecx, dword [esp + 0x138]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x13c
ret

Function at 0x4018c0
Capabilities:
Delete file

Disassembly:
mov al, byte [0x42f320]
test al, al
je 0x4018d6
push 0x42f320
call fcn.00401650
add esp, 4
mov al, byte [0x42f21c]
test al, al
je 0x4018ea
push 0x42f21c
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
ret
Function at 0x4018f0
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value
Set current directory

Disassembly:
sub esp, 0x214
mov ecx, 0x41
xor eax, eax
push edi
mov edi, 0x42f424
rep stosd dword es:[edi], eax
mov ecx, 0x41
mov edi, 0x42f320
rep stosd dword es:[edi], eax
mov ecx, 0x41
mov edi, 0x42f21c
rep stosd dword es:[edi], eax
mov ecx, 0x41
mov edi, 0x42f118
push 0x42f424
push 0x104
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x114]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4019c9
lea ecx, [esp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x118]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push str.Programs
push ecx
mov dword [esp + 0x24], 0x104
call esi
lea edx, [esp + 0xc]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push str.Desktop
push edx
call esi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xf], 0x5c
jne 0x4019ea
lea ecx, [esp + 0x10]
push ecx
push str._dragon.lnk
jmp 0x4019f4
lea edx, [esp + 0x10]
push edx
push str._sdragon.lnk
push 0x42f21c
call fcn.0040a0f1
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x113], 0x5c
jne 0x401a2b
lea eax, [esp + 0x114]
push eax
push str._dragon
jmp 0x401a38
lea ecx, [esp + 0x114]
push ecx
push str._sdragon
push 0x42f320
call fcn.0040a0f1
add esp, 0xc
push 0x42d10c
push 0x42f21c
call fcn.0040a0de
add esp, 8
test eax, eax
jne 0x401a69
mov ecx, 0x41
mov edi, 0x42f21c
rep stosd dword es:[edi], eax
jmp 0x401a72
push eax
call fcn.0040a030
add esp, 4
push 0x42f320
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x401a8d
mov ecx, 0x41
mov edi, 0x42f320
rep stosd dword es:[edi], eax
pop edi
add esp, 0x214
ret
Function at 0x40e579
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42e648
cmp edx, dword [eax]
je 0x40e59b
add eax, 8
inc ecx
cmp eax, 0x42e6d8
jl 0x40e58c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42e648]
jne 0x40e6c9
mov eax, dword [0x431554]
cmp eax, 1
je 0x40e6a3
test eax, eax
jne 0x40e5cc
cmp dword [0x42ded4], 1
je 0x40e6a3
cmp edx, 0xfc
je 0x40e6c9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40e603
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040f7d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040f8c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40e646
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040f8c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x426ec0
push edi
call fcn.004116b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040f7d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040f7e0
lea eax, [ebp - 0xa0]
push 0x426ea0
push eax
call fcn.0040f7e0
push dword [esi + 0x42e64c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040f7e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00411624
add esp, 0x2c
pop edi
jmp 0x40e6c9
lea eax, [ebp + 8]
lea esi, [esi + 0x42e64c]
push 0
push eax
push dword [esi]
call fcn.0040f8c0
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 0x4168b0
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.0040ba90
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41697b
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 0x41697b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41692e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x416939
or bh, 8
and edi, 0x8000000
je 0x416954
mov eax, dword [0x432cfc]
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 0x41697b
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 0x416d50
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 0x416d7b
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 0x416d9f
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 0x416dba
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 0x41a7cd
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 0x41a80f
call fcn.004200bc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41a80f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41a806
xor eax, eax
jmp 0x41a817
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041a81d
pop edi
pop esi
pop ebx
ret 4

Function at 0x420619
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 0x420647
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x420665
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042057f
jmp 0x420665
mov eax, dword [esi + 0x14]
test eax, eax
je 0x420665
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042057f
test edi, edi
mov eax, edi
jne 0x42064f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1004d150
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10298810
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10561040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, 0x108ce8c9
call fcn.10297320
nop
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x3c]
and ecx, 1
je 0x1004d222
mov edx, dword [ebp - 0x10]
add edx, 0x40
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
je 0x1004d1c7
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x30]
mov ecx, dword [ecx]
add ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edx
jmp 0x1004d1e0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x2c]
mov ecx, dword [ecx]
add ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov ecx, dword [ebp - 0x3c]
call fcn.1004d9c0
nop
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
mov dword [ecx], 0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x1c]
mov dword [eax], 0
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x2c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x10]
mov dword [edx], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
mov dword [ecx], 0
xor edx, edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x30]
mov dword [ecx], edx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x38], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x3c]
and ecx, 0xfffffffe
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x3c], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret