joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10059c34
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x1007c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x10059c7f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.10059f91
test al, al
jne 0x10059c79
sub edx, 2
cmp edx, edi
jne 0x10059c5f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x10059ca1
lea eax, [edi + 2]
cmp edx, eax
je 0x10059ca1
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.100598fb
add esp, 0x10
jmp 0x10059d9b
push esi
lea ecx, [ebp - 0x255]
call fcn.10059f91
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10059ce4
push dword [ebp - 0x25c]
jmp 0x10059c91
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x10059d21
cmp word [ebp - 0x226], 0
je 0x10059d42
cmp word [ebp - 0x226], ax
jne 0x10059d21
cmp word [ebp - 0x224], 0
je 0x10059d42
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.100598fb
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x10059d8e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x10059cfb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x10059d76
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x10059d9b
push 0x100594fd
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.10021b70
add esp, 0x10
jmp 0x10059d6b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10015563
leave
ret
Function at 0x1005afd9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1005b076
push ebx
push esi
call fcn.1005af95
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10050a31
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1005b023
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005b075
push edi
push eax
call fcn.1004bc96
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1005b043
call fcn.1004bc5c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005b074
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10050a31
add esp, 0x20
test eax, eax
jne 0x1005b062
push edi
call fcn.1004bc5c
jmp 0x1005b06a
push ebx
call fcn.1004bc5c
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1005b079
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1005b08a
pop esi
ret
push ebx
push edi
push esi
call fcn.1005af95
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1004bc96
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1005b0b2
push ebx
push esi
push edi
call fcn.1001f780
add esp, 0xc
push 0
call fcn.1004bc5c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1005b956
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1005b327

Function at 0x1005eefe
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1004c7f3
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1005ef6d
cmp esi, dword [ebp - 4]
je 0x1005ef68
cmp dword [ebp + 0xc], 0
je 0x1005ef68
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1005ef45
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1005ea50
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1005ef6f
xor eax, eax
inc eax
jmp 0x1005ef6f
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1005efd4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1007c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1004c7f3
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1004c7f3
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1005f04b
cmp word [ecx], dx
je 0x1005f04b
mov eax, dword [0x100741fc]
push edi
dec eax
push eax
push 0x100740e8
call fcn.1005ef73
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1005f0be
cmp word [eax], dx
je 0x1005f0be
mov eax, dword [edi]
test eax, eax
je 0x1005f06f
cmp word [eax], dx
je 0x1005f06f
lea eax, [ebp - 0x10]
push eax
call fcn.1005e956
jmp 0x1005f078
lea eax, [ebp - 0x10]
push eax
call fcn.1005e9f1
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1005f0e8
mov eax, dword [0x100740e4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10073dd8
call fcn.1005ef73
add esp, 0xc
test al, al
je 0x1005f0e8
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1005f0b3
cmp word [eax], di
je 0x1005f0b3
lea eax, [ebp - 0x10]
push eax
call fcn.1005e956
pop ecx
jmp 0x1005f0ea
lea eax, [ebp - 0x10]
push eax
call fcn.1005e9f1
jmp 0x1005f0b0
mov eax, dword [edi]
test eax, eax
je 0x1005f0d5
cmp word [eax], dx
je 0x1005f0d5
lea eax, [ebp - 0x10]
push eax
call fcn.1005e8ed
pop ecx
jmp 0x1005f0e8
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1005f1b3
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1005edf8
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1005f1b3
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1005f1b3
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1005f1b3
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1005f140
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1004d7e8
test ebx, ebx
je 0x1005f1ae
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1004d7e8
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1005f1b3
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1005f1b3
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100555ce
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1005f1b5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10015563
leave
ret
Function at 0x1005f61f
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1007c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x1005f662
call fcn.10041e78
mov dword [eax], 0xf
call fcn.10041e8b
mov dword [eax], 0xd
call fcn.1004b2c3
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10015563
leave
ret
test eax, eax
jne 0x1005f669
inc eax
jmp 0x1005f656
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x1005f654
xor eax, eax
cmp ecx, 1
setne al
jmp 0x1005f656

Function at 0x1006a050
Capabilities:
Parse pe header

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

Function at 0x408945
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
dec edx
add edi, 0x6686e172
call fcn.00408966
mov edx, edx
xor dword [ebx], esi
push edi
pop edi
inc ebx
and edi, edi
cmp ebx, ecx
jne fcn.00408945
ret
Function at 0x4e3bd7
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0x1505
jmp 0x4e3bfb
mov eax, dword [ebp - 4]
shl eax, 5
mov edx, eax
mov eax, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 8]
add eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov dword [ebp + 8], edx
movzx eax, word [eax]
movzx eax, ax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4e3be6
mov eax, dword [ebp - 4]
leave
ret

Function at 0x4e3c18
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0x1505
jmp 0x4e3c3c
mov eax, dword [ebp - 4]
shl eax, 5
mov edx, eax
mov eax, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 8]
add eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov dword [ebp + 8], edx
movzx eax, byte [eax]
movsx eax, al
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4e3c27
mov eax, dword [ebp - 4]
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x78]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x24]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 8], 0
jmp 0x4e3e4b
mov eax, dword [ebp - 8]
lea edx, [eax*4]
mov eax, dword [ebp - 0x20]
add eax, edx
mov edx, dword [eax]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [esp], eax
call fcn.004e3c18
cmp dword [ebp + 0xc], eax
jne 0x4e3e47
mov eax, dword [ebp - 8]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x24]
add eax, edx
movzx eax, word [eax]
movzx eax, ax
lea edx, [eax*4]
mov eax, dword [ebp - 0x1c]
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 4], eax
jmp 0x4e3e56
add dword [ebp - 8], 1
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x18]
cmp dword [ebp - 8], eax
jb 0x4e3e00
cmp dword [ebp - 4], 0
je 0x4e3e72
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
jmp 0x4e3e75
mov eax, dword [ebp - 4]
leave
ret
Function at 0x40a130
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5befdc]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x108], ecx
lea eax, [ecx - 1]
cmp eax, 0xa
ja 0x40a15d
mov edx, dword [ecx*4 + 0x5bdf78]
lea eax, [ebp - 0x108]
mov eax, dword [eax - 4]
test eax, eax
je 0x40a19b
push esi
mov esi, 0xc483
cmp si, word [eax]
pop esi
jne 0x40a19b
cmp byte [eax + 2], 0xc
jl 0x40a19b
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push dword [ebp + 0xc]
push edx
push ecx
push 0x5720dc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp 0x40a1b2
push edx
push ecx
lea eax, [ebp - 0x104]
push str.program_internal_error_number_is__d.__r_n_s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, dword [0x5c33ec]
test eax, eax
je 0x40a1eb
cmp dword [0x5c3400], 0
jne 0x40a1eb
lea ecx, [ebp - 0x104]
mov dword [0x5c3400], 1
push ecx
push dword [ebp - 0x108]
call eax
mov dword [0x5c3400], 0
test eax, eax
jne 0x40a201
push 0x10
push str.error
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.00409d90
cmp dword [0x5c3318], 0
jne 0x40a217
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, 0
mov ebp, dword [0x5c331c]
mov esp, dword [0x5c3318]
sub esp, 4
ret

Function at 0x40fa4f
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x40faa2
push esi
push dword [ebp + 8]
call fcn.0040fc3b
mov edi, eax
test edi, edi
je 0x40fa9d
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40fa9d
mov eax, dword [ebp - 8]
jmp 0x40fab4
mov eax, dword [ebp + 0x10]
jmp 0x40fab4
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
leave
ret 0xc
Function at 0x40faba
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5614a1
mov eax, dword fs:[0]
push eax
mov eax, 0x1018
call fcn.00543b30
mov eax, dword [0x5befdc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ecx + 0x58], 0
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x101c], edi
mov dword [ebp - 0x1024], eax
je 0x40fbee
push 0
push edx
call fcn.0040fc3b
mov ebx, eax
test ebx, ebx
jne 0x40fb22
push esi
jmp 0x40fc16
call fcn.0041ad3a
push eax
lea ecx, [ebp - 0x1014]
call fcn.0040d32d
xor ecx, ecx
lea eax, [ebp - 0x1018]
push eax
push ecx
lea eax, [ebp - 0x1020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x1024]
mov dword [ebp - 0x1020], ecx
push ebx
mov dword [ebp - 0x1018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x101c], eax
test eax, eax
jne 0x40fbad
push dword [ebp - 0x1018]
lea ecx, [ebp - 0x1014]
call fcn.0040e7ab
lea ecx, [ebp - 0x1018]
push ecx
push eax
lea eax, [ebp - 0x1020]
push eax
push 0
push dword [ebp - 0x1024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1014]
mov dword [ebp - 0x101c], eax
call fcn.0040fd77
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x101c], 0
jne 0x40fbdb
mov esi, dword [ebp - 0x1014]
add esi, 0xfffffff0
push esi
call fcn.0040dd8d
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.0040ec0b
jmp 0x40fc1d
push esi
mov ecx, edi
call fcn.0040d3d6
mov ecx, dword [ebp - 0x1014]
lea ecx, [ecx - 0x10]
jmp 0x40fbd4
test esi, esi
jne 0x40fbf7
mov esi, 0x5724f1
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x1010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1010]
push eax
mov ecx, edi
call fcn.0040d3d6
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005436cb
leave
ret 0x10

Function at 0x413739
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x413778
call fcn.004114f8
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x413778
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x413780
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.00423ac1
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4141b6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x414242
cmp dword [esi + 0x20], 0
je 0x414242
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x414242
cmp dword [ebp + 8], 0
je 0x414242
xor edi, edi
mov ebx, edi
call fcn.004114f8
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
test eax, eax
je 0x414226
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x414242
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.004245c5
mov edi, eax
add esp, 0xc
test edi, edi
je 0x41423e
mov ecx, esi
call fcn.00413f58
mov eax, edi
jmp 0x414244
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4187d9
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5613fb
call fcn.0054395e
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x4187ff
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41885f
call fcn.0041ad3a
push eax
lea ecx, [ebp - 0x10]
call fcn.0040d32d
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x56f9e0]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0054c994
push eax
call fcn.0040da57
add esp, 0x14
test esi, esi
je 0x418852
push esi
call fcn.0054c4d0
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040ec0b
mov eax, ebx
call fcn.00543927
ret 8
Function at 0x419a93
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x56196a
call fcn.005439c9
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [esi + 0x1c]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 8]
test ebx, ebx
jle 0x419b9d
cmp ebx, dword [esi + 0xc]
jge 0x419b9d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x419aea
cmp ebx, dword [edi + 8]
jl 0x419b8b
cmp dword [ebp + 0xc], 0
je 0x419b8b
xor ebx, ebx
jmp 0x419b24
xor ebx, ebx
push 0x10
mov dword [ebp - 4], ebx
call fcn.0041954b
mov edi, eax
test edi, edi
je 0x419b04
mov dword [edi], vtable.CThreadData.0
jmp 0x419b06
mov edi, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x14]
push edi
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
call fcn.004199bf
mov ecx, dword [esi + 0x14]
mov dword [eax], ecx
mov dword [esi + 0x14], edi
mov esi, dword [ebp - 0x14]
cmp dword [edi + 0xc], ebx
jne 0x419b3f
push 4
push dword [esi + 0xc]
call fcn.00419413
pop ecx
pop ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x419b57
push 2
push 4
push dword [esi + 0xc]
call fcn.00419413
pop ecx
pop ecx
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x419bc4
mov ecx, dword [edi + 8]
mov dword [edi + 0xc], edx
mov eax, dword [esi + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push ebx
push eax
call fcn.00544e70
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [edi + 8], eax
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x419b9d
cmp ebx, dword [edi + 8]
jge 0x419b9d
mov eax, dword [ebp + 0xc]
mov dword [ecx + ebx*4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00543927
ret 8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00410d9c
int3
Function at 0x424ccb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x84], ebx
test ebx, 0xffff0000
jne 0x424cf6
cmp dword [edi + 0x80], 0
jne 0x424cf6
movzx eax, bx
mov dword [edi + 0x80], eax
call fcn.004114f8
push 5
push ebx
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.00424f6a
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x424d23
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call fcn.004114f8
push 5
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x424d56
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push edi
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.00424d69
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x426ea3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x426ef9
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x426ed2
call fcn.0041fa76
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x426ee7
call fcn.0041fa76
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x426ef9
call fcn.0041fa76
call fcn.004114f8
cmp dword [eax + 0x3c], 0
je 0x426f0e
push edi
mov ecx, ebx
call fcn.004265d3
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004270e2
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x426f37
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x426f43
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8