joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4025d0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x46bcf8]
cmp eax, 0x1c00
jle 0x402607
push 0
lea eax, [esp + 4]
push eax
push 0x467c98
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x10]
push eax
push 0x467c98
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
mov dword [0x46bcf8], eax
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push ecx
lea edx, [eax*2 + 0x467c98]
push edx
call dword [sym.imp.USER32.dll_wvsprintfW]
add dword [0x46bcf8], eax
pop ecx
ret

Function at 0x402630
Capabilities:
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44bcb0
push 0x4216f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa24
mov eax, dword [0x4668f4]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa28], eax
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp esi, ebx
jne 0x4026c3
mov dword [ebp - 4], ebx
push str.raising_exception_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ebx
push ebx
push ebx
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.KERNEL32.dll_RaiseException]
push str.writing_minidump_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0xa34], eax
mov dword [ebp - 0xa30], esi
mov dword [ebp - 0xa2c], ebx
push 0x104
lea eax, [ebp - 0x224]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.dbghelp.dll
lea edx, [ebp - 0x224]
push edx
call fcn.0042158d
add esp, 8
lea eax, [ebp - 0x224]
push eax
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call edi
mov esi, eax
cmp esi, ebx
jne 0x4027b4
lea ecx, [ebp - 0x224]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.TMPlaying
lea edx, [ebp - 0x224]
push edx
call fcn.0042158d
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x44bc24
lea eax, [ebp - 0xa24]
push eax
call fcn.004215d3
lea ecx, [ebp - 0xa24]
push ecx
lea edx, [ebp - 0x224]
push edx
call fcn.0042158d
push str.dbghelp.dll
lea eax, [ebp - 0x224]
push eax
call fcn.0042158d
add esp, 0x1c
lea ecx, [ebp - 0x224]
push ecx
call edi
mov esi, eax
cmp esi, ebx
jne 0x4027b4
push 0x44bc0c
call edi
mov esi, eax
cmp esi, ebx
je 0x4027f3
push str.MiniDumpWriteDump
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x4027ec
push ebx
push ebx
lea edx, [ebp - 0xa34]
push edx
mov eax, dword [0x4600c4]
push eax
mov ecx, dword [ebp - 0xa28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004205fd
mov esp, ebp
pop ebp
ret
Function at 0x402890
Capabilities:
Get file size
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44be38
push 0x4216f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x500
mov eax, dword [0x4668f4]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov ebx, ecx
mov esi, edx
mov byte [ebp - 0x4f5], 0
mov ecx, 0x104
xor eax, eax
lea edi, [ebp - 0x4f4]
rep stosd dword es:[edi], eax
mov dword [ebp - 4], eax
push 0x40e
lea eax, [ebp - 0x4f4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jbe 0x402a35
mov dword [ebp - 0x50c], esi
cmp word [esi], 0x5a4d
jne 0x40291c
mov ecx, dword [esi + 0x3c]
lea edi, [esi + ecx*2]
mov dword [ebp - 0x510], edi
cmp dword [edi], 0x4550
je 0x40292a
mov dword [ebp - 4], 0xffffffff
xor al, al
jmp 0x402a42
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea edx, [ebp - 0x4f4]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x500], esi
xor eax, eax
mov word [ebp - 0xe4], ax
mov dword [ebp - 0x4fc], eax
cmp esi, 0xffffffff
je 0x4029b2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x4fc], eax
lea eax, [ebp - 0x508]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4029ab
mov ecx, dword [ebp - 0x504]
push ecx
mov edx, dword [ebp - 0x508]
push edx
lea esi, [ebp - 0xe4]
call fcn.00402810
add esp, 8
mov esi, dword [ebp - 0x500]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
push eax
push str.Module__d_r_n
push ebx
call fcn.004025d0
lea ecx, [ebp - 0x4f4]
push ecx
push str._s_r_n
push ebx
call fcn.004025d0
mov edx, dword [edi + 0x50]
push edx
mov eax, dword [edi + 0x34]
push eax
push str.Image_Base:_0x_08x__Image_Size:_0x_08x_r_n
push ebx
call fcn.004025d0
mov ecx, dword [edi + 8]
push ecx
mov edx, dword [edi + 0x58]
push edx
push str.Checksum:___0x_08x__Time_Stamp:_0x_08x_r_n
push ebx
call fcn.004025d0
lea eax, [ebp - 0xe4]
push eax
mov ecx, dword [ebp - 0x4fc]
push ecx
push str.File_Size:____10d__File_Time:___s_r_n
push ebx
call fcn.004025d0
add esp, 0x48
push str.Version_Information:_r_n
push ebx
call fcn.004025d0
add esp, 8
mov byte [ebp - 0x4f5], 1
jmp 0x402a35
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x4f5]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004205fd
mov esp, ebp
pop ebp
ret
Function at 0x402a60
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [esp + 0x34]
xor edx, edx
mov eax, 0x40000000
div edi
xor esi, esi
xor ebp, ebp
mov dword [esp + 0x10], 1
mov ebx, eax
shl ebx, 2
test ebx, ebx
jbe 0x402af5
mov edx, esi
imul edx, edi
push 0x1c
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
xor edx, edx
test eax, eax
je 0x402ae8
mov eax, dword [esp + 0x20]
test eax, eax
jbe 0x402ae8
div edi
add esi, eax
cmp dword [esp + 0x24], 0x1000
jne 0x402af1
mov edx, dword [esp + 0x18]
cmp edx, ebp
jbe 0x402af1
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x58]
push eax
mov ebp, edx
call fcn.00402890
add esp, 4
test al, al
je 0x402af1
inc dword [esp + 0x10]
jmp 0x402af1
mov eax, 0x10000
div edi
add esi, eax
cmp esi, ebx
jb 0x402a94
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret

Function at 0x402d00
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x104
mov eax, dword [0x4668f4]
xor eax, esp
mov dword [esp + 0x100], eax
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
call sub.WS2_32.dll_gethostname
cmp eax, 0xffffffff
jne 0x402d3f
xor al, al
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.004205fd
add esp, 0x104
ret
lea ecx, [esp]
push ecx
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x402d28
mov edx, dword [eax]
push esi
mov esi, 0x467a38
mov cl, byte [edx]
inc edx
mov byte [esi], cl
inc esi
test cl, cl
jne 0x402d54
mov eax, dword [eax + 0xc]
test eax, eax
pop esi
je 0x402d8a
mov eax, dword [eax]
test eax, eax
je 0x402d8a
mov edx, dword [eax]
push edx
call sub.WS2_32.dll_inet_ntoa
test eax, eax
je 0x402d8a
mov edx, 0x46bc98
sub edx, eax
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402d80
mov ecx, dword [esp + 0x100]
xor ecx, esp
mov al, 1
call fcn.004205fd
add esp, 0x104
ret
Function at 0x402db0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x5c
mov eax, dword [0x4668f4]
xor eax, esp
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
mov dword [esp + 0x64], eax
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str.SoftwareMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jne 0x402eb3
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0
push str.Build
push eax
mov dword [esp + 0x28], 0x50
call ebx
test eax, eax
je 0x402e36
mov ecx, dword [str.Not_found]
mov edx, dword [0x44bf04]
mov ax, word [0x44bf08]
mov dword [0x467c78], ecx
mov dword [0x467c7c], edx
mov word [0x467c80], ax
jmp 0x402e49
push 0x20
push 0x467c78
lea edi, [esp + 0x1c]
call fcn.00402530
add esp, 8
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0
push str.Version
push eax
mov dword [esp + 0x28], 0x50
call ebx
test eax, eax
je 0x402e95
mov ecx, dword [str.Not_found]
mov edx, dword [0x44bf04]
mov ax, word [0x44bf08]
mov dword [0x467c38], ecx
mov dword [0x467c3c], edx
mov word [0x467c40], ax
jmp 0x402ea8
push 0x20
push 0x467c38
lea edi, [esp + 0x1c]
call fcn.00402530
add esp, 8
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0xc]
push edx
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x402f36
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push str.MinorVersion
push edx
mov dword [esp + 0x28], 0x50
call ebx
test eax, eax
je 0x402f18
mov eax, dword [str.Not_Found]
mov ecx, dword [0x44be50]
mov dx, word [0x44be54]
mov dword [0x46bcd8], eax
mov dword [0x46bcdc], ecx
mov word [0x46bce0], dx
jmp 0x402f2b
push 0x20
push 0x46bcd8
lea edi, [esp + 0x1c]
call fcn.00402530
add esp, 8
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.004205fd
add esp, 0x5c
ret
Function at 0x404cf0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x82c
mov eax, dword [0x4668f4]
xor eax, ebp
mov dword [esp + 0x828], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [esp + 4], eax
mov al, byte [0x4600e4]
test al, al
push esi
push edi
je 0x404e0c
xor eax, eax
mov ecx, 0x104
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push 0x206
lea ecx, [esp + 0x14]
push ecx
push eax
mov byte [0x4600e4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
ja 0x404d5c
push str.Unknown
lea edx, [esp + 0x14]
push edx
call esi
lea eax, [esp + 0x10]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404d60
jmp 0x404d70
sub eax, 2
lea edx, [esp + 0x10]
cmp eax, edx
je 0x404d86
cmp word [eax], 0x5c
jne 0x404d70
lea ebx, [eax + 2]
jmp 0x404d95
cmp word [eax], 0x5c
jne 0x404d91
lea ebx, [eax + 2]
jmp 0x404d95
lea ebx, [esp + 0x10]
push ebx
lea eax, [esp + 0x424]
push eax
call esi
lea eax, [esp + 0x420]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404da7
sub eax, 2
lea edx, [esp + 0x420]
cmp eax, edx
je 0x404dc8
cmp word [eax], 0x2e
jne 0x404db2
jmp 0x404dce
cmp word [eax], 0x2e
jne 0x404dd3
mov word [eax], 0
push str.ERRORLOG.TXT
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80000080
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x404e23
push str.Error_creating_exception_report_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x828]
xor ecx, ebp
call fcn.004205fd
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call fcn.00402a60
push str.ERRORLOG.TXT
push str._r_n__end_of__s___r_n
push esi
call fcn.004025d0
push esi
call fcn.00402590
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.CRASH.DMP
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
push 0x80000080
push 2
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x28]
push ecx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x404e97
mov edx, dword [esp + 0xc]
push edx
push esi
call fcn.00402630
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x404e0c
cmp dword [0x4600c4], 0x51
jne 0x404eb3
call fcn.00403b00
mov ecx, dword [esp + 0x834]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004205fd
mov esp, ebp
pop ebp
ret
Function at 0x405200
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x100c
call fcn.004213b0
mov eax, dword [0x4668f4]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor eax, ebp
push edi
mov dword [esp + 0x1014], eax
mov eax, dword [ebp + 0xc]
push 0x2e
push ebx
mov dword [esp + 0x14], eax
call fcn.00422240
add esp, 8
test eax, eax
je 0x405291
sub eax, ebx
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov esi, ebx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x10], 0
lea eax, [esp + 0x10]
push eax
call fcn.004216ca
add esp, 4
test eax, eax
je 0x405291
mov edx, dword [esp + 0xc]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x405270
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1008]
xor ecx, ebp
call fcn.004205fd
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4052d3
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x4052d3
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, dword [esp + 0xc]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x4052b2
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1008]
xor ecx, ebp
call fcn.004205fd
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.004205fd
mov esp, ebp
pop ebp
ret

Function at 0x405730
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x84
mov eax, dword [0x4668f4]
xor eax, esp
push esi
mov esi, dword [esp + 0x8c]
push 2
mov dword [esp + 0x88], eax
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push 0
push 0x80
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x84]
pop esi
xor ecx, esp
call fcn.004205fd
add esp, 0x84
ret
Function at 0x405ae0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x128
mov eax, dword [0x4668f4]
xor eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push edi
mov dword [esp + 0x12c], eax
xor eax, eax
mov ecx, 0x47
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x11c
call esi
test eax, eax
jne 0x405b35
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x114
call esi
test eax, eax
je 0x405b59
cmp dword [esp + 0x18], 2
jne 0x405b59
cmp dword [esp + 0xc], 5
jbe 0x405b59
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, ebp
call fcn.004205fd
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
pop edi
xor ecx, ebp
xor al, al
pop esi
call fcn.004205fd
mov esp, ebp
pop ebp
ret

Function at 0x405d00
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x630
mov eax, dword [0x4668f4]
xor eax, esp
push ebx
push esi
push 0x200
lea ecx, [esp + 0x238]
push ecx
push 0xffffffffffffffff
mov dword [esp + 0x640], eax
mov eax, dword [esp + 0x648]
push eax
push 0
push 0xfde9
xor bl, bl
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x405d97
lea edx, [esp + 8]
push edx
push esi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x405d97
lea eax, [esp + 0x234]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.00422861
add esp, 8
test eax, eax
je 0x405d95
lea edx, [esp + 8]
push edx
push esi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x405d63
jmp 0x405d97
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x634]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.004205fd
add esp, 0x630
ret
Function at 0x409100
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x448e58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [0x4668f4]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x40]
push ebp
push esi
mov esi, dword [esp + 0x4c]
xor ebp, ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x1c], 0
mov eax, dword [esi + 0x14]
cmp eax, ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0xc], eax
jbe 0x4092b6
push edi
lea edi, [esi + 4]
mov ecx, dword [esi + 0x18]
cmp ecx, 0x10
jb 0x409170
mov eax, dword [edi]
jmp 0x409172
mov eax, edi
cmp byte [eax + ebp], 0x61
jl 0x40918d
cmp ecx, 0x10
jb 0x409181
mov eax, dword [edi]
jmp 0x409183
mov eax, edi
cmp byte [eax + ebp], 0x7a
jle 0x40928b
cmp ecx, 0x10
jb 0x409196
mov eax, dword [edi]
jmp 0x409198
mov eax, edi
cmp byte [eax + ebp], 0x41
jl 0x4091b3
cmp ecx, 0x10
jb 0x4091a7
mov eax, dword [edi]
jmp 0x4091a9
mov eax, edi
cmp byte [eax + ebp], 0x5a
jle 0x40928b
cmp ecx, 0x10
jb 0x4091bc
mov eax, dword [edi]
jmp 0x4091be
mov eax, edi
cmp byte [eax + ebp], 0x30
jl 0x4091d9
cmp ecx, 0x10
jb 0x4091cd
mov eax, dword [edi]
jmp 0x4091cf
mov eax, edi
cmp byte [eax + ebp], 0x39
jle 0x40928b
cmp ecx, 0x10
jb 0x4091e2
mov eax, dword [edi]
jmp 0x4091e4
mov eax, edi
cmp byte [eax + ebp], 0x2d
je 0x40928b
cmp ecx, 0x10
jb 0x4091f7
mov eax, dword [edi]
jmp 0x4091f9
mov eax, edi
cmp byte [eax + ebp], 0x5f
je 0x40928b
cmp ecx, 0x10
jb 0x40920c
mov eax, dword [edi]
jmp 0x40920e
mov eax, edi
cmp byte [eax + ebp], 0x2e
je 0x40928b
cmp ecx, 0x10
jb 0x40921d
mov eax, dword [edi]
jmp 0x40921f
mov eax, edi
cmp byte [eax + ebp], 0x20
jne 0x409229
push 0x2b
jmp 0x40929b
cmp ecx, 0x10
jb 0x409232
mov eax, dword [edi]
jmp 0x409234
mov eax, edi
mov bl, byte [eax + ebp]
push 0x25
push 1
lea ecx, [esp + 0x24]
call fcn.00408130
movzx esi, bl
mov eax, esi
xor ecx, ecx
shr eax, 4
mov cl, byte [eax + str.0123456789ABCDEF]
push ecx
push 1
lea ecx, [esp + 0x24]
call fcn.00408130
and esi, 0x8000000f
jns 0x40926d
dec esi
or esi, 0xfffffff0
inc esi
xor edx, edx
mov dl, byte [esi + str.0123456789ABCDEF]
lea ecx, [esp + 0x1c]
push edx
push 1
call fcn.00408130
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
jmp 0x4092a6
cmp ecx, 0x10
jb 0x409294
mov eax, dword [edi]
jmp 0x409296
mov eax, edi
movsx eax, byte [eax + ebp]
push eax
lea ecx, [esp + 0x20]
push 1
call fcn.00408130
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jb 0x409164
xor ebp, ebp
pop edi
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x20]
push ecx
mov dword [ebx + 0x18], 0xf
mov dword [ebx + 0x14], ebp
mov ecx, ebx
mov byte [ebx + 4], 0
call fcn.00401416
cmp dword [esp + 0x30], 0x10
jb 0x4092e7
mov edx, dword [esp + 0x1c]
push edx
call fcn.0043beef
add esp, 4
mov ecx, dword [esp + 0x38]
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x2c]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004205fd
add esp, 0x38
ret
Function at 0x4169ba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4169cf
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4169e1
xor eax, eax
jmp 0x416a13
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x416a05
cmp esi, eax
jae 0x4169dd
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4169f7
cmp esi, eax
jae 0x4169dd
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x417afe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x417b51
call fcn.00445441
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x417b51
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x417b47
xor eax, eax
jmp 0x417c6a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x417b81
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x417b81
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x417c67
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x417bae
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00416c8c
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x417c67
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x417bf7
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x417bf7
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x417bf1
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00416c8c
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x417c57
and dword [ebp + 0xc], 0
jmp 0x417c57
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x417c57
push 0xc
call fcn.0043bebf
mov esi, eax
test esi, esi
pop ecx
je 0x417c39
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x417c3b
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x417c52
push dword [ebp - 8]
call fcn.0043b755
jmp 0x417c57
call fcn.0043b72c
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x417bbc
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc