joyce8/EMBER2024-capa huggingface dataset:
Function at 0x797b1a
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, dword [ebx + 4]
mov esi, dword [esi + 0x144]
cmp dword [esi + 0x24], 0xa
jge 0x797b5e
mov eax, dword [esi + 0x24]
inc eax
mov dword [esi + 0x24], eax
call fcn.00797b62
mov eax, dword [esi + 0x24]
dec eax
imul eax, eax, 0x50
add esi, eax
add esi, 0x28
mov edi, dword [esp + 0x24]
or edx, 0xffffffff
call fcn.00489b50
mov eax, dword [ebx]
mov esi, 0xf
call fcn.00453630
popal
ret 4

Function at 0x799148
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov ebp, dword [esp + 0x24]
push 0
mov esi, esp
mov edx, dword [0x6a9ec0]
mov edx, dword [edx + 0x768]
mov esi, esp
call fcn.0041c950
test al, al
je 0x799194
mov esi, dword [esi]
cmp dword [esi + 0x24], ebp
jne 0x79915d
add dword [esi + 0x40], 0x14
add dword [esi + 0x44], 0x14
mov ecx, dword [esi + 0x5c]
sub ecx, 6
cmp ecx, 0x5a
jge 0x79918f
mov ecx, 0x5a
mov dword [esi + 0x5c], ecx
jmp 0x79915d
add esp, 4
popal
ret 4

Function at 0x79919b
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
jne 0x7991b7
mov eax, 9
call fcn.005af400
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
cmp eax, 0xffffffff
jne 0x7991d2
mov eax, 5
call fcn.005af400
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x24]
sub esp, 0x10
mov ebx, esp
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call fcn.0040d2a0
mov eax, dword [esp]
test eax, eax
jne 0x79921f
mov eax, dword [esp + 4]
test eax, eax
jne 0x79921f
mov eax, dword [esp + 8]
test eax, eax
jne 0x79921f
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x79921f
add esp, 0x10
jmp 0x799232
add esp, 0x10
or eax, 0xffffffff
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
jmp 0x79919c
mov eax, dword [esp + 0x30]
cmp eax, 0xffffffff
jne 0x79924d
mov eax, 0x31
call fcn.005af400
mov dword [esp + 0x30], eax
push 0x30
push dword [esp + 0x34]
push dword [esp + 0x34]
push dword [esp + 0x34]
mov eax, dword [esp + 0x34]
call fcn.0040ce20
push eax
push 2
push 4
push dword [eax + 0xc]
push dword [eax + 8]
mov ecx, dword [esp + 0x38]
call fcn.0040cb10
mov eax, dword [esp]
push 2
push 4
push dword [eax + 0xc]
push dword [eax + 8]
mov ecx, dword [esp + 0x38]
call fcn.0040cb10
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x160]
call fcn.0042a530
popal
ret 0x10
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x438c83
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x438a14
mov ebx, edi
add edi, edi
call fcn.00438cb7
push edi
pop ebx
or ebx, edi
xor dword [ecx], eax
mov edi, edi
and edi, ebx
or edi, edi
inc ecx
add edi, 0xf9aaae3f
cmp ecx, edx
jne fcn.00438c83
and ebx, edi
sub ebx, edi
ret
Function at 0x100101e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10240fd8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.1002afbc
xor eax, eax
mov dword [ebp - 0x2c], 0x6f0043
push eax
mov word [ebp - 8], ax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x28], 0x73006e
mov dword [ebp - 0x24], 0x6c006f
mov dword [ebp - 0x20], 0x570065
mov dword [ebp - 0x1c], 0x6e0069
mov dword [ebp - 0x18], 0x6f0064
mov dword [ebp - 0x14], 0x430077
mov dword [ebp - 0x10], 0x61006c
mov dword [ebp - 0xc], 0x730073
call dword [sym.imp.USER32.dll_FindWindowW]
pop edi
pop esi
pop ebx
test eax, eax
je 0x10010258
push 0
push eax
call dword [0x1024c9fc]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.10163bcb
mov esp, ebp
pop ebp
ret
Function at 0x100109e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x10240fd8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
mov dword [ebp - 0x110], 0x2e484e5c
push eax
push 0
mov dword [ebp - 0x10c], 0x747874
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [ebp - 0x110]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x10010a33
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10010a43
mov ecx, edx
lea eax, [ebp - 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
push 0x80
push 3
push 0
push 1
mov ecx, edx
and ecx, 3
push SysReAllocStringLen
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10010abc
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.1002bde0
add esp, 4
mov dword [ebp - 0x10c], 0
mov edi, eax
lea eax, [ebp - 0x10c]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test edi, edi
je 0x10010abc
mov ecx, edi
call fcn.10010270
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10163bcb
mov esp, ebp
pop ebp
ret
Function at 0x10029faa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1002a003
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1002a003
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x10029ff4
cmp esi, ecx
jae 0x1002a003
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x10029fe2
cmp esi, ecx
jae 0x1002a003
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
jmp 0x1002a005
xor eax, eax
pop esi
pop ebp
ret

Function at 0x1002d05a
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x1018a12b
call fcn.10164493
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebx], edi
mov dword [esi], edi
cmp dword [eax + 0x58], edi
je 0x1002d102
push dword [ebp + 8]
call fcn.1002d385
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1002d194
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
push ecx
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push ecx
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x14]
mov dword [esi], ecx
test eax, eax
jne 0x1002d0eb
push ecx
call fcn.1002bde0
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002d0eb
xor edi, edi
inc edi
jmp 0x1002d0f5
push dword [ebx]
call fcn.1003d6ed
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.1002cf21
jmp 0x1002d192
mov eax, dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [eax + 0x84]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call dword [0x10199948]
mov ecx, dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x1002d18a
mov esi, dword [ebp + 0x14]
shr ecx, 1
push ecx
mov dword [esi], ecx
call fcn.1002bde0
mov dword [ebx], eax
pop ecx
cmp dword [esi], edi
jbe 0x1002d184
mov esi, dword [ebp + 0x10]
xor ecx, ecx
inc ecx
mov dword [ebp - 0x18], ecx
push ecx
lea ecx, [ebp - 0x10]
call fcn.1002cefd
lea ecx, [edi + edi]
mov bl, al
push ecx
lea ecx, [ebp - 0x10]
call fcn.1002cefd
mov ecx, dword [esi]
shl bl, 4
sub bl, 0x51
add al, bl
mov byte [edi + ecx], al
inc edi
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x18]
add ecx, 2
mov dword [ebp - 0x18], ecx
cmp edi, dword [eax]
jb 0x1002d14f
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.10029ac1
mov eax, edi
call fcn.10164461
ret 0x10
Function at 0x1002d19c
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 0x1002d1ef
push esi
push dword [ebp + 8]
call fcn.1002d385
mov edi, eax
test edi, edi
je 0x1002d1ea
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_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1002d1ea
mov eax, dword [ebp - 8]
jmp 0x1002d201
mov eax, dword [ebp + 0x10]
jmp 0x1002d201
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018a158
mov eax, dword fs:[0]
push eax
mov eax, 0x201c
call fcn.10164610
mov eax, dword [0x10240fd8]
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
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x201c], edi
mov dword [ebp - 0x2024], eax
cmp dword [ecx + 0x58], ebx
je 0x1002d338
push ebx
push edx
call fcn.1002d385
mov ebx, eax
test ebx, ebx
jne 0x1002d26f
push esi
jmp 0x1002d360
lea ecx, [ebp - 0x2014]
call fcn.10029137
xor ecx, ecx
lea eax, [ebp - 0x2018]
push eax
push ecx
lea eax, [ebp - 0x2020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x2024]
mov dword [ebp - 0x2020], ecx
push ebx
mov dword [ebp - 0x2018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x201c], eax
test eax, eax
jne 0x1002d2f7
mov eax, dword [ebp - 0x2018]
lea ecx, [ebp - 0x2014]
shr eax, 1
push eax
call fcn.100299f1
lea ecx, [ebp - 0x2018]
push ecx
push eax
lea eax, [ebp - 0x2020]
push eax
push 0
push dword [ebp - 0x2024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x2014]
mov dword [ebp - 0x201c], eax
call fcn.1002d4c1
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x201c], 0
jne 0x1002d325
mov esi, dword [ebp - 0x2014]
add esi, 0xfffffff0
push esi
call fcn.1002aaae
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.10029ac1
jmp 0x1002d367
push esi
mov ecx, edi
call fcn.100290da
mov ecx, dword [ebp - 0x2014]
lea ecx, [ecx - 0x10]
jmp 0x1002d31e
test esi, esi
jne 0x1002d341
mov esi, 0x10199c54
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x2010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2010]
push eax
mov ecx, edi
call fcn.100290da
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.10163bcb
leave
ret 0x10
Function at 0x1002e795
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 8], ecx
inc eax
inc ebx
mov dword [ebp - 4], eax
cmp dword [edi + 8], ebx
jle 0x1002e80c
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x1002e7d2
mov eax, dword [ecx + 0x10]
cmp dword [eax + ebx*8 + 4], edx
je 0x1002e7d2
mov eax, dword [edi + 0xc]
cmp dword [eax + ebx*4], 0
je 0x1002e7ff
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x1002e802
mov eax, dword [edi + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1002e7f8
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x10199948]
mov ecx, dword [ebp - 0xc]
call esi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 0xc]
and dword [eax + ebx*4], 0
mov eax, dword [ebp - 4]
inc ebx
cmp ebx, dword [edi + 8]
jl 0x1002e7b5
test eax, eax
je 0x1002e853
lea esi, [ecx + 0x1c]
mov ebx, edi
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
push edi
add ecx, 0x14
call fcn.1002ea84
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x10199948]
mov ecx, edi
call esi
mov eax, dword [ebp - 8]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1002ead7
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x1018a304
call fcn.101644fc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x1002ebce
cmp edi, dword [ebx + 0xc]
jge 0x1002ebce
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x1002eb2e
cmp edi, dword [esi + 8]
jl 0x1002ebbc
cmp dword [ebp + 0xc], 0
je 0x1002ebbc
xor edi, edi
jmp 0x1002eb60
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.1002e533
mov esi, eax
test esi, esi
je 0x1002eb48
mov dword [esi], vtable.CThreadData.0
jmp 0x1002eb4a
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [esi + eax], ecx
mov dword [ebx + 0x14], esi
push 4
push dword [ebx + 0xc]
call fcn.1002e3f2
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x1002eb7c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x1002eb88
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x1002ebf5
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push edi
push eax
call fcn.10165df0
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1002ebce
cmp edi, dword [esi + 8]
jge 0x1002ebce
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.10164461
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.1002a181
int3
Function at 0x100383c6
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 0x10038405
call fcn.1002efbc
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10038405
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1003840d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.10042dd9
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x10038e12
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 0x10038e9e
cmp dword [esi + 0x20], 0
je 0x10038e9e
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10038e9e
cmp dword [ebp + 8], 0
je 0x10038e9e
xor edi, edi
mov ebx, edi
call fcn.1002efbc
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_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x10038e82
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 0x10038e9e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.1004393a
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10038e9a
mov ecx, esi
call fcn.10038bb0
mov eax, edi
jmp 0x10038ea0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1003d338
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x1018a01c
call fcn.10164493
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x1003d35e
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x1003d3b8
lea ecx, [ebp - 0x10]
call fcn.10029137
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 [0x10199948]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.1016953d
push eax
call fcn.10029215
add esp, 0x14
test esi, esi
je 0x1003d3ab
push esi
call fcn.10169548
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.10029ac1
mov eax, ebx
call fcn.10164461
ret 8

Function at 0x1003dd32
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x1003dd5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1003dd62
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
leave
ret
lea ecx, [esi + 0xc]
call fcn.100291e1
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.100403f9
int3
Function at 0x1003e03d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x1003e04e
xor eax, eax
jmp 0x1003e06a
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003e06f
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
lea ecx, [esi + 0xc]
call fcn.100291e1
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.100403f9
int3

Function at 0x1003e10d
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp + 8]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x10199948]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1003e140
pop edi
pop esi
pop ebp
ret 8
lea ecx, [edi + 0xc]
call fcn.100291e1
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.100403f9
int3

Function at 0x1003e219
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x1003e244
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1003e24a
cmp dword [ebp - 4], esi
jne 0x1003e261
pop edi
pop esi
leave
ret 8
lea ecx, [edi + 0xc]
call fcn.100291e1
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.100403f9
lea ecx, [edi + 0xc]
call fcn.100291e1
push eax
push 0xffffffffffffffff
push 0xd
call fcn.1004004f
int3
Function at 0x1004121c
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10240fd8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x230
xor edi, edi
push edi
push esi
call fcn.10165df0
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.1016953d
push eax
call fcn.10029215
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x1019e010]
je 0x1004137a
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x1004138e
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1004138e
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
je 0x100412d8
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x100412cc
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.10040fcd
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x100412d3
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100412da
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.100414cd
test eax, eax
je 0x10041301
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.10040e54
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x10041305
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.100414cd
test eax, eax
je 0x1004132c
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.10040e54
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x10041330
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.100414cd
test eax, eax
je 0x10041358
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.10040e54
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x1004135a
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x1004136c
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x1004137a
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10163bcb
leave
ret 4
xor eax, eax
jmp 0x1004137d