joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b0031
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, ecx
call fcn.0049d577
test eax, eax
jne 0x4b0221
mov edi, dword [edi + 4]
push ebx
mov ecx, esi
call fcn.00479a14
test byte [esi + 0x7c], 0x20
mov dword [ebp - 0x10], eax
mov ebx, 0x201
jne 0x4b0075
cmp edi, ebx
je 0x4b0075
cmp edi, 0x202
jne 0x4b01ce
cmp edi, 0x200
jb 0x4b0085
cmp edi, 0x209
jbe 0x4b009d
cmp edi, 0xa0
jb 0x4b01ce
cmp edi, 0xa9
ja 0x4b01ce
call fcn.004b8d0d
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x1c]
mov dword [ebp - 0x18], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0x30
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.00484370
mov eax, dword [esi]
add esp, 0xc
lea ecx, [ebp - 0x48]
push ecx
push dword [ebp - 0x14]
mov ecx, esi
push dword [ebp - 0x18]
mov dword [ebp - 0x48], 0x28
call dword [eax + 0x6c]
cmp dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 4], eax
je 0x4b00fb
push dword [ebp - 0x24]
call fcn.0048154a
pop ecx
cmp edi, ebx
jne 0x4b010e
test byte [ebp - 0x41], 0x80
je 0x4b010e
mov dword [ebp - 8], 1
jmp 0x4b012c
and dword [ebp - 8], 0
cmp edi, ebx
je 0x4b012c
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x4b012c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x78]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x4b0198
cmp dword [ebp - 8], 0
jne 0x4b0198
cmp edi, 0x202
jne 0x4b0158
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0x160]
push 0xc8
push 0xe001
jmp 0x4b0180
test byte [esi + 0x78], 8
jne 0x4b0189
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x4b0189
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ecx + 0x78]
je 0x4b01c5
push 0x12c
push 0xe000
mov ecx, esi
call fcn.004af6e2
jmp 0x4b01c5
push dword [ebp - 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x160]
jmp 0x4b01c5
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x4b01ab
cmp dword [ebp - 8], 0
je 0x4b01c5
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0x160]
push 0xe001
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x78], eax
mov ecx, esi
call fcn.0049fae7
test eax, eax
pop ebx
je 0x4b01e0
cmp dword [eax + 0x64], 0
jne 0x4b0226
cmp dword [ebp - 0x10], 0
je 0x4b0208
mov edi, dword [ebp - 0x10]
push dword [ebp + 8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x100]
test eax, eax
jne 0x4b0221
mov ecx, edi
call fcn.0049faa8
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x4b01e6
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b0226
push dword [ebp + 8]
mov ecx, esi
call fcn.0049e099
jmp 0x4b0228
xor eax, eax
inc eax
jmp 0x4b0228
xor eax, eax
pop edi
pop esi
leave
ret 4
Function at 0x4b77d4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4e4150]
xor eax, ebp
cmp dword [ebp + 8], 0x800
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0x11c]
jne 0x4b7807
push 0x4ceae0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4b7819
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4b784e
lea eax, [ebp - 0x11c]
push eax
push esi
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0048238c
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b784e
cmp eax, esi
jae 0x4b784e
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x4b7850
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0047f5bc
leave
ret
Function at 0x4b7873
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4e4150]
push ebx
push esi
xor eax, ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4b791d
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x38], eax
call esi
mov dword [ebp - 0x34], eax
push 4
xor ebx, ebx
jmp 0x4b7a1f
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x4b79cd
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4b7a20
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4b79c2
cmp dword [ebp - 0x24], 1
jne 0x4b79c2
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x4ceaf0
push eax
call fcn.00483a4c
add esp, 0xc
cmp eax, 1
jne 0x4b79c2
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x40], eax
call esi
push 2
mov dword [ebp - 0x3c], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4b7a20
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x4b7a20
lea ecx, [ebp - 0x18]
push ecx
push 0x4b785d
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x4b7a20
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x40], eax
call esi
mov dword [ebp - 0x3c], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x40], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x4b7a45
push dword [ebp + edi*4 - 0x40]
mov ecx, dword [ebp - 0x2c]
call fcn.004b77d4
cmp eax, ebx
pop ecx
jne 0x4b7a47
inc edi
cmp edi, esi
jl 0x4b7a2f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f5bc
leave
ret 4
Function at 0x4b7a58
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x4e3230
je 0x4b7b14
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4b7afc
mov esi, dword [ebx + 4]
jmp 0x4b7af6
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4b7ae6
cmp dword [ebp - 0xc], 4
jne 0x4b7ae6
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x4b7ade
or dword [eax + 0x9c], ecx
jmp 0x4b7ae6
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x4b7aaa
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x4b7a8d
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x4b83fe
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x4be7d1
call fcn.00483e84
sub esp, 0x124
mov eax, dword [0x4e4150]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
mov dword [ebp - 0x10], esp
lea edx, [ebp - 0x124]
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
push edx
push eax
push ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x128], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x4b850c
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x4b84e0
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00412d30
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.004b83fe
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.0041eea0
test bl, bl
jne 0x4b84e0
or dword [ebp - 4], 0xffffffff
jmp 0x4b844b
cmp esi, 0x103
je 0x4b84f0
cmp esi, 0x3f2
jne 0x4b8500
push dword [edi]
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f5bc
leave
ret 8
Function at 0x4b99ef
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, 0x4bef46
call fcn.00483e84
mov eax, 0x1024
call fcn.0047f5d0
mov eax, dword [0x4e4150]
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
xor eax, ebp
push edi
xor edi, edi
mov dword [ebp - 0x102c], edi
cmp dword [ecx + 0x50], edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x101c], ebx
mov dword [ebp - 0x1030], esi
mov dword [ebp - 0x1014], edx
je 0x4b9b26
push eax
call fcn.004b9940
cmp eax, edi
mov dword [ebp - 0x1020], eax
jne 0x4b9a5a
push dword [ebp - 0x1014]
jmp 0x4b9b58
call fcn.004a24f7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x1018], ebx
lea eax, [ebp - 0x1024]
push eax
push edi
lea eax, [ebp - 0x102c]
push eax
push edi
push esi
push dword [ebp - 0x1020]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], edi
call esi
cmp eax, edi
mov dword [ebp - 0x1028], eax
jne 0x4b9ae3
push dword [ebp - 0x1024]
lea ecx, [ebp - 0x1018]
call fcn.004784d2
lea ecx, [ebp - 0x1024]
push ecx
push eax
lea eax, [ebp - 0x102c]
push eax
push edi
push dword [ebp - 0x1030]
push dword [ebp - 0x1020]
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x1018]
mov dword [ebp - 0x1028], eax
call fcn.00467a70
mov ebx, dword [ebp - 0x1018]
push dword [ebp - 0x1020]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1028], edi
mov ecx, dword [ebp - 0x101c]
jne 0x4b9b19
lea eax, [ebp - 0x1018]
push eax
call fcn.00469a90
lea ecx, [ebx - 0x10]
call fcn.0041eea0
mov eax, dword [ebp - 0x101c]
jmp 0x4b9b61
push dword [ebp - 0x1014]
call fcn.00412d30
jmp 0x4b9b09
cmp edx, edi
jne 0x4b9b34
mov dword [ebp - 0x1014], 0x4cab78
push dword [ecx + 0x64]
lea ecx, [ebp - 0x1010]
push 0x1000
push ecx
push dword [ebp - 0x1014]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1010]
push eax
mov ecx, ebx
call fcn.00412d30
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f5bc
leave
ret 0x10

Function at 0x4b9dd8
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x4b9e0d
cmp edi, dword [esi + 0xc]
jge 0x4b9e0d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b9e0d
cmp edi, dword [eax + 8]
jge 0x4b9e0d
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x4b9e0f
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
Function at 0x4b9f96
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4b9fca
jmp fcn.004961a1
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x4ba03b
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x4ba134
cmp eax, dword [edi + 0xc]
jge 0x4ba134
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x4ba08c
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x4ba11d
cmp dword [ebp + 0xc], ebx
je 0x4ba11d
jmp 0x4ba0b6
push 0x10
call fcn.004b9ca4
cmp eax, ebx
je 0x4ba0a2
mov ecx, eax
call fcn.004b9f63
mov esi, eax
jmp 0x4ba0a4
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x4ba0cd
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4ba0dd
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x4ba0ef
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004961a1
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00484370
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x4ba12f
cmp ecx, dword [esi + 8]
jge 0x4ba12f
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x4ba135
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4ba592
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4e4150]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
call fcn.0048433b
mov esi, eax
test esi, esi
pop ecx
je 0x4ba63d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, esi
je 0x4ba633
push edi
mov edi, closesocket
push ebx
push eax
push esi
mov byte [eax], 0
call fcn.004848b3
pop ecx
pop ecx
lea eax, [ebp - 0x110]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4ba631
push 0x105
lea eax, [ebp - 0x10c]
push eax
xor ebx, ebx
push ebx
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x4ba60b
inc ebx
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x4ba631
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x5c
push esi
call fcn.00484848
test eax, eax
pop ecx
pop ecx
jne 0x4ba5cc
pop ebx
pop edi
push esi
call fcn.0048154a
xor eax, eax
pop ecx
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0047f5bc
leave
ret 4
Function at 0x4010c7
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403101
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
mov dword [ebp - 8], 0
push 0x4108d8
mov eax, dword [ebp + 0x10]
shl eax, 4
mov eax, dword [eax + 0x410590]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x403233
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40322e
mov eax, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
movsx eax, byte [ebp + eax - 0x119]
cmp eax, 0x5c
je 0x4031aa
push 0x4108dc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 0x18]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push pe_nt_image_headers32
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x403224
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40321a
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 4], eax
jne 0x40321a
mov dword [ebp - 8], 1
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x403233
mov eax, dword [ebp - 8]
jmp 0x40323b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403240
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push ebx
push esi
push edi
lea eax, [ebp - 0x100]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
movsx eax, byte [ebp + eax - 0x101]
cmp eax, 0x5c
je 0x40329a
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
movsx eax, byte [ebp + eax - 0x101]
cmp eax, 0x2f
jne 0x4032bb
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x30c], eax
mov eax, dword [ebp - 0x30c]
mov byte [ebp + eax - 0x101], 0
push 0x4108e0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x304], 0
jmp 0x4032e2
inc dword [ebp - 0x304]
cmp dword [ebp - 0x304], 0xb
jge 0x403334
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x300]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x304]
shl eax, 4
mov eax, dword [eax + 0x41059c]
push eax
lea eax, [ebp - 0x300]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x300]
push eax
call fcn.00409180
add esp, 4
jmp 0x4032dc
xor eax, eax
jmp 0x40333b
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4033a0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi
push edi
mov dword [ebp - 0x90], 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0040eb60
add esp, 8
test eax, eax
jne 0x4033d8
mov eax, 1
jmp 0x4034d0
mov eax, dword [ebp + 8]
push eax
call fcn.00408eb0
add esp, 4
mov ecx, dword [ebp + 8]
add ecx, eax
dec ecx
mov dword [ebp - 0x120], ecx
mov eax, dword [ebp - 0x120]
mov al, byte [eax]
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x120]
mov byte [eax], 0x5f
push 0
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.LZ32.dll_LZOpenFileA
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0xffffffff
jne 0x403460
mov al, byte [ebp - 4]
mov ecx, dword [ebp - 0x120]
mov byte [ecx], al
push 0
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.LZ32.dll_LZOpenFileA
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0xffffffff
jne 0x403460
xor eax, eax
jmp 0x4034d0
push 0x1001
lea eax, [ebp - 0x118]
push eax
mov eax, dword [ebp + 0xc]
push eax
call sub.LZ32.dll_LZOpenFileA
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0xffffffff
je 0x4034b9
mov eax, dword [ebp - 0x124]
push eax
mov eax, dword [ebp - 0x11c]
push eax
call sub.LZ32.dll_LZCopy
test eax, eax
jle 0x4034ad
mov dword [ebp - 0x90], 1
mov eax, dword [ebp - 0x124]
push eax
call sub.LZ32.dll_LZClose
mov eax, dword [ebp - 0x11c]
push eax
call sub.LZ32.dll_LZClose
mov eax, dword [ebp - 0x90]
jmp 0x4034d0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4035e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403684
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xb7
jne 0x403627
mov dword [ebp - 4], 1
jmp 0x403684
push 0x5c
mov eax, dword [ebp + 8]
push eax
call fcn.00409120
add esp, 8
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
je 0x40367d
mov eax, dword [ebp - 0x108]
mov byte [eax], 0
mov eax, dword [ebp + 8]
push eax
call fcn.004035e0
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x108]
mov byte [eax], 0x5c
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 4], eax
jmp 0x403684
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
jne 0x4036f9
push 0x100
lea eax, [ebp - 0x208]
push eax
push 0x2715
call section..text
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0040108e
add esp, 0x10
push 0x100
lea eax, [ebp - 0x208]
push eax
push 0x2716
call section..text
add esp, 0xc
push 0x10
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebp - 4]
jmp 0x403701
pop edi
pop esi
pop ebx
leave
ret