joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b8a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x7c]
mov eax, dword [ebx + 0x78]
cmp edx, eax
jae 0x44b8c0
mov ecx, dword [ebx + 0x74]
sub eax, edx
cmp eax, ecx
ja 0x44b8d0
test eax, eax
jne 0x44b8d6
nop
xor esi, esi
lea esp, [ebp - 8]
mov eax, esi
pop ebx
pop esi
pop ebp
ret
mov eax, ecx
test eax, eax
je 0x44b8c0
push edx
push eax
mov esi, dword [ebx + 0x70]
push esi
mov ecx, dword [ebx]
push ecx
call sub.msvcrt.dll__read
add esp, 0x10
mov esi, eax
test eax, eax
js 0x44b909
mov eax, dword [ebx + 0x7c]
mov dword [ebx + 0x18], esi
add eax, esi
xor esi, esi
mov dword [ebx + 0x7c], eax
mov eax, dword [ebx + 0x70]
mov dword [ebx + 0x14], eax
lea esp, [ebp - 8]
mov eax, esi
pop ebx
pop esi
pop ebp
ret
push edx
push str.Error_reading_asset_data
push str.szipinf
push 6
call fcn.0044c320
add esp, 0x10
jmp 0x44b8c2

Function at 0x44c430
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [0x4ca248]
test eax, eax
je 0x44c463
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], eax
mov ecx, dword [0x4ca248]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp ecx
sub esp, 0xc
push str.ANDROID_WRAPSIM
call sub.msvcrt.dll_getenv
add esp, 0x10
mov esi, eax
test eax, eax
je 0x44c4b0
mov eax, 0x4b6eb4
mov ecx, 2
cld
mov edi, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x44c4b0
mov dword [0x4ca248], sub.msvcrt.dll__open
mov dword [0x4ca238], 0x486f30
mov dword [0x4ca228], 0x44c8c0
jmp 0x44c44b
mov dword [0x4ca248], 0x44c520
mov dword [0x4ca238], 0x44c4e0
mov dword [0x4ca228], 0x44cdb0
jmp 0x44c44b

Function at 0x44d0f0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x44d163
lea esi, [ebx + 0xc]
cmp eax, 0xfffffffe
je 0x44d11b
sub esp, 0xc
push 0xa
call sub.KERNEL32.dll_Sleep
add esp, 0xc
cmp dword [ebx], 0xfffffffe
jne 0x44d106
lea esi, [ebx + 0xc]
sub esp, 0xc
push esi
call sub.KERNEL32.dll_EnterCriticalSection
mov ecx, dword [ebx + 4]
add esp, 0xc
test ecx, ecx
jne 0x44d140
call sub.KERNEL32.dll_TlsAlloc
mov dword [ebx + 8], eax
inc eax
je 0x44d180
mov dword [ebx + 4], 1
sub esp, 0xc
push esi
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.dll_TlsSetValue
add esp, 0x18
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
sub esp, 0xc
mov dword [ebx], 0xffffffff
lea esi, [ebx + 0xc]
push esi
call sub.KERNEL32.dll_InitializeCriticalSection
add esp, 0xc
mov dword [ebx], 0xfffffffe
jmp 0x44d11b
sub esp, 0xc
push esi
call sub.KERNEL32.dll_LeaveCriticalSection
add esp, 0xc
jmp 0x44d15c
Function at 0x44d190
Capabilities:
Get thread local storage value

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x44d1a4
leave
ret
sub esp, 0xc
mov eax, dword [edx + 8]
push eax
call sub.KERNEL32.dll_TlsGetValue
add esp, 0xc
leave
ret

Function at 0x44e0e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
xor esi, esi
mov dl, byte [eax]
test dl, dl
je 0x44e117
mov ebx, eax
nop
xor ecx, ecx
mov cl, dl
mov edx, esi
shl edx, 5
sub edx, esi
mov eax, edx
shl eax, 6
sub eax, edx
mov dl, byte [ebx + 1]
inc ebx
lea eax, [esi + eax*8]
shl eax, 5
add eax, esi
lea esi, [esi + eax*2]
xor esi, ecx
test dl, dl
jne 0x44e0f0
mov eax, esi
pop ebx
pop esi
pop ebp
ret
Function at 0x46b640
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
cmp byte [edx + 8], 0
jne 0x46b663
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x46b661
mov eax, dword [ebp + 0xc]
xor edx, edx
inc edx
xor byte [eax], 0xff
inc eax
cmp edx, ecx
jne 0x46b658
pop ebp
ret
mov eax, dword [edx + 8]
cmp ax, 0x804
je 0x46b692
cmp ax, 0x1004
jne 0x46b661
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x46b661
mov eax, dword [ebp + 0xc]
xor edx, edx
nop
add edx, 4
xor byte [eax], 0xff
not byte [eax + 1]
add eax, 4
cmp ecx, edx
ja 0x46b680
pop ebp
ret
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x46b661
mov eax, dword [ebp + 0xc]
xor edx, edx
nop
add edx, 2
xor byte [eax], 0xff
add eax, 2
cmp ecx, edx
ja 0x46b6a0
pop ebp
ret
Function at 0x486590
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x4865c3
push edx
push edx
push 0
push eax
mov dword [0x4ca2b8], eax
call fcn.0048eae0
add esp, 0x10
test eax, eax
sete al
and eax, 0xff
mov dword [0x4a60dc], eax
leave
ret
call fcn.0048ea5c
jmp 0x4865b2

Function at 0x486650
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov esi, edx
mov eax, dword [0x4a60dc]
mov ebx, dword [edx]
test eax, eax
js 0x4866b0
mov eax, dword [0x4a60dc]
test eax, eax
jne 0x486680
mov dword [0x4ca2a8], ebx
mov eax, dword [esi]
add eax, 0x20
mov edx, dword [eax + 4]
mov ebp, dword [eax]
mov esp, dword [eax + 8]
jmp edx
push eax
push eax
push ebx
mov ebx, dword [0x4ca2b8]
push ebx
call sub.KERNEL32.dll_TlsSetValue
pop edx
test eax, eax
pop ecx
jne 0x486671
call fcn.0048ea5c
mov eax, dword [esi]
add eax, 0x20
mov edx, dword [eax + 4]
mov ebp, dword [eax]
mov esp, dword [eax + 8]
jmp edx
call fcn.00486510
jmp 0x486662

Function at 0x486970
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x4a60dc]
mov edi, dword [ebp + 8]
test eax, eax
js 0x486a41
mov eax, dword [0x4a60dc]
test eax, eax
jne 0x4869e4
mov eax, dword [0x4ca2a8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4869d7
lea ebx, [ebp - 0x14]
jmp 0x4869a9
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4869ce
push esi
push esi
push ebx
push edi
mov ecx, dword [edi + 4]
push ecx
mov edx, dword [edi]
push edx
push 1
push 1
call eax
add esp, 0x20
cmp eax, 6
je 0x486a09
cmp eax, 8
jne 0x486a34
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
jne 0x4869a6
mov eax, 5
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [0x4ca2b8]
call fcn.0048ea5c
sub esp, 0xc
mov esi, eax
push ebx
call sub.KERNEL32.dll_TlsGetValue
mov ebx, eax
push esi
call sub.KERNEL32.dll_SetLastError
mov eax, ebx
add esp, 0xc
jmp 0x486997
mov eax, dword [ebp - 0x14]
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov edx, ebx
mov eax, edi
call fcn.004865d0
cmp eax, 7
jne 0x4869dc
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00486650
lea esp, [ebp - 0xc]
mov eax, 3
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00486510
jmp 0x486989
Function at 0x486a50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x486ac0
mov eax, dword [0x4a60dc]
test eax, eax
js 0x486ad1
mov eax, dword [0x4a60dc]
test eax, eax
jne 0x486a96
mov eax, dword [0x4ca2a8]
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov edx, ebx
mov eax, edi
call fcn.00486720
cmp eax, 7
je 0x486ad8
call sub.msvcrt.dll_abort
mov ebx, dword [0x4ca2b8]
call fcn.0048ea5c
sub esp, 0xc
mov esi, eax
push ebx
call sub.KERNEL32.dll_TlsGetValue
mov ebx, eax
push esi
call sub.KERNEL32.dll_SetLastError
mov eax, ebx
add esp, 0xc
jmp 0x486a7a
sub esp, 0xc
push edi
call fcn.00486970
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00486510
jmp 0x486a6c
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00486650
lea esi, [esi]
lea edi, [edi]

Function at 0x486af0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ecx, dword [0x4a60dc]
mov edi, dword [ebp + 8]
test ecx, ecx
js 0x486b70
mov edx, dword [0x4a60dc]
test edx, edx
jne 0x486b46
mov eax, dword [0x4ca2a8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x486b38
lea ebx, [ebp - 0x14]
mov eax, edi
mov edx, ebx
call fcn.004865d0
cmp eax, 7
je 0x486b77
call sub.msvcrt.dll_abort
lea ebx, [ebp - 0x14]
mov eax, edi
mov edx, ebx
call fcn.00486720
jmp 0x486b2e
mov ebx, dword [0x4ca2b8]
call fcn.0048ea5c
sub esp, 0xc
mov esi, eax
push ebx
call sub.KERNEL32.dll_TlsGetValue
mov ebx, eax
push esi
call sub.KERNEL32.dll_SetLastError
mov eax, ebx
add esp, 0xc
jmp 0x486b15
call fcn.00486510
jmp 0x486b06
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00486650
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x487240
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x11c
mov ebx, dword [esp + 0x130]
call sub.msvcrt.dll__errno
test ebx, ebx
mov dword [eax], 0
je 0x4873fe
cmp byte [ebx], 0
je 0x4873c0
sub esp, 0xc
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
add esp, 0xc
cmp eax, 0xffffffff
je 0x4873ec
test al, 0x10
je 0x4873c0
push eax
push 0x104
push ebx
lea edi, [esp + 0x24]
push edi
call sub.msvcrt.dll__fullpath
pop eax
mov ecx, edi
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
xor eax, 0xffffffff
and edx, eax
and edx, 0x80808080
je 0x48729e
test edx, 0x8080
je 0x4873b2
add dl, dl
sbb ecx, 3
sub ecx, edi
lea eax, [ecx + 0x233]
push eax
call sub.msvcrt.dll_malloc
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x4873da
lea esi, [eax + 0x22c]
mov ebp, eax
push eax
push eax
push edi
push esi
call sub.msvcrt.dll_strcpy
add esp, 0x10
cmp byte [ebx + 0x22c], 0
jne 0x487364
sub esp, 0xc
push esi
call sub.msvcrt.dll_strlen
add esp, 0xc
mov word [eax + esi], 0x2a
lea eax, [ebx + 0x120]
mov dword [ebx + 0x224], 0xffffffff
mov dword [ebx + 0x228], 0
mov dword [ebx + 0x118], 0
mov word [ebx + 0x11c], 0
mov word [ebx + 0x11e], 0
push 0x104
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x10
add esp, 0x11c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
push esi
call sub.msvcrt.dll_strlen
pop edx
pop ecx
push 0x2f
lea edi, [esi + eax - 1]
push esi
call sub.msvcrt.dll_strrchr
add esp, 0x10
cmp eax, edi
je 0x4872ff
push eax
push eax
push 0x5c
push esi
call sub.msvcrt.dll_strrchr
add esp, 0x10
cmp edi, eax
je 0x4872ff
sub esp, 0xc
push esi
call sub.msvcrt.dll_strlen
add esp, 0x10
mov word [eax + esi], 0x5c
jmp 0x4872ff
shr edx, 0x10
add ecx, 2
jmp 0x4872c2
call sub.msvcrt.dll__errno
xor ebp, ebp
mov dword [eax], 0x14
add esp, 0x11c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll__errno
xor ebp, ebp
mov dword [eax], 0xc
jmp 0x487357
call sub.msvcrt.dll__errno
xor ebp, ebp
mov dword [eax], 2
jmp 0x487357
call sub.msvcrt.dll__errno
xor ebp, ebp
mov dword [eax], 0xe
jmp 0x487357
Function at 0x40271c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403174
test esi, esi
jne 0x402752
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403264
jmp 0x402770
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004025d0
mov edi, eax
test esi, esi
je 0x402770
cmp dword [ebx], 0
je 0x402770
dec esi
jmp 0x402759
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402918
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x411014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4029b0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402990
xor eax, eax
push ebp
push 0x402989
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4029cc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402990
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x411014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x411014], ax
mov esp, ebp
pop ebp
ret

Function at 0x402ff8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x412034], 0
je 0x403059
cmp word [0x412208], 0xd7b2
jne 0x403021
cmp dword [0x412210], 0
jbe 0x403021
mov eax, 0x412204
call dword [0x412220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41105c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403080
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x411020], 0
jne 0x403075
push 0
push 0x411054
push 0x41105c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403f00
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x403f66
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004032f0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040280c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403f50
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403f6d
lea eax, [ebp - 0x10]
call fcn.00403174
ret

Function at 0x404b00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403508
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x404b19
test al, 0x10
jne 0x404b1d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x4050c8
Capabilities:
Clear file content
Get file size

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4050d0
push ecx
push ebx
push esi
push edi
xor edx, edx
push ebp
push 0x4052cc
push dword fs:[edx]
mov dword fs:[edx], esp
test al, al
je 0x405114
lea edx, [ebp - 0x14]
mov eax, 0x4052e4
call fcn.00404cc0
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
call fcn.00405028
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0xc]
pop ecx
call fcn.00403354
jmp 0x405139
lea edx, [ebp - 0x1c]
mov eax, 0x4052f4
call fcn.00404cc0
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
call fcn.00405078
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0xc]
pop ecx
call fcn.00403354
mov eax, dword [ebp - 0xc]
call fcn.00404a74
test al, al
je 0x4052b1
mov edx, 2
mov eax, dword [ebp - 0xc]
call fcn.00404a84
mov esi, eax
cmp esi, 0xffffffff
je 0x4052b1
push 0
push esi
call sub.kernel32.dll_GetFileSize
mov ebx, eax
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403638
mov eax, dword [ebp - 8]
call fcn.00403508
mov edx, eax
mov ecx, ebx
mov eax, esi
call fcn.004045b0
xor ebx, ebx
jmp 0x405271
mov edx, dword [ebp - 8]
mov eax, 0x405310
call fcn.004035f0
mov edi, eax
test edi, edi
jne 0x4051af
lea edx, [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00404878
jmp 0x405201
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00403568
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 4]
call fcn.00404878
lea eax, [ebp - 0x28]
push eax
lea edx, [edi + 1]
mov ecx, 1
mov eax, dword [ebp - 8]
call fcn.00403568
mov eax, dword [ebp - 0x28]
mov edx, 0x40531c
call fcn.00403454
jne 0x4051f2
inc edi
lea eax, [ebp - 8]
mov ecx, edi
mov edx, 1
call fcn.004035a8
cmp dword [ebp - 4], 0
je 0x405255
lea eax, [ebp - 0x2c]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00403568
mov eax, dword [ebp - 0x2c]
mov edx, 0x405328
call fcn.00403454
je 0x405255
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.00404604
mov eax, dword [ebp - 0x30]
push eax
lea edx, [ebp - 0x34]
mov eax, 0x405334
call fcn.00404cc0
mov eax, dword [ebp - 0x34]
pop edx
call fcn.004035f0
test eax, eax
je 0x40526f
push dword [ebp - 0x10]
push dword [ebp - 4]
push 0x405348
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004033c8
jmp 0x405271
mov bl, 1
cmp dword [ebp - 8], 0
jne 0x40518f
test bl, bl
je 0x4052ab
xor ecx, ecx
xor edx, edx
mov eax, esi
call fcn.004048c8
mov eax, dword [ebp - 0x10]
call fcn.00403308
push eax
mov eax, dword [ebp - 0x10]
call fcn.00403508
mov edx, eax
mov eax, esi
pop ecx
call fcn.004048f8
push esi
call sub.kernel32.dll_SetEndOfFile
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4052d3
lea eax, [ebp - 0x34]
mov edx, 0xd
call fcn.00403198
ret
Function at 0x4062e4
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff34
mov esi, eax
xor ebx, ebx
push 0
push esi
call fcn.004057a8
mov dword [0x4126bc], eax
cmp dword [0x4126bc], 0
je 0x406385
cmp dword [0x4126cc], 0
je 0x406385
cmp dword [0x4126d0], 0
je 0x406385
mov eax, dword [0x4126bc]
push eax
call sub.kernel32.dll_SuspendThread
mov dword [esp], 0x10007
push esp
mov eax, dword [0x4126bc]
push eax
call sub.kernel32.dll_GetThreadContext
test eax, eax
je 0x40636c
push esi
lea esi, [esp + 4]
mov edi, 0x4126d4
mov ecx, 0x33
rep movsd dword es:[edi], dword [esi]
pop esi
mov eax, dword [0x4126cc]
mov dword [esp + 0xb8], eax
mov dword [esp], 0x10007
push esp
mov eax, dword [0x4126bc]
push eax
call sub.kernel32.dll_SetThreadContext
mov eax, dword [0x4126bc]
push eax
call sub.kernel32.dll_ResumeThread
push 0
push 0
push 0
push esi
call sub.user32.dll_PostThreadMessageA
mov bl, 1
mov eax, ebx
add esp, 0xcc
pop edi
pop esi
pop ebx
ret

Function at 0x406b54
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov edi, eax
xor eax, eax
push ebp
push 0x406c88
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov esi, 0x406af8
sub esi, 0x406ae8
push edi
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov dword [0x4127e0], eax
cmp dword [0x4127e0], 0
je 0x406c6d
push 0x40
push 0x1000
push esi
push 0
mov eax, dword [0x4127e0]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov dword [0x4127e4], eax
cmp dword [0x4127e4], 0
je 0x406c6b
lea edx, [ebp - 0x10]
mov eax, 0x406ca0
call fcn.00404cc0
mov eax, dword [ebp - 0x10]
call fcn.00403508
push eax
call sub.kernel32.dll_GetModuleHandleA_1
mov ebx, eax
lea edx, [ebp - 0x14]
mov eax, 0x406cb8
call fcn.00404cc0
mov eax, dword [ebp - 0x14]
call fcn.00403508
push eax
push ebx
call sub.kernel32.dll_GetProcAddress
call fcn.00406afc
mov dword [ebp - 0xc], eax
push esi
push 0
call sub.kernel32.dll_GlobalAlloc
mov ebx, eax
test ebx, ebx
je 0x406c6b
mov edx, ebx
mov eax, 0x406ae8
mov ecx, esi
call fcn.00402590
mov edx, esi
sub edx, 5
test edx, edx
jl 0x406c4e
inc edx
mov dword [ebp - 4], 0
mov eax, ebx
add eax, dword [ebp - 4]
cmp dword [eax], 0x11111111
jne 0x406c48
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
inc dword [ebp - 4]
dec edx
jne 0x406c36
lea eax, [ebp - 8]
push eax
push esi
push ebx
mov eax, dword [0x4127e4]
push eax
mov eax, dword [0x4127e0]
push eax
call sub.kernel32.dll_WriteProcessMemory
push ebx
call sub.kernel32.dll_GlobalFree
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406c8f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403198
ret
Function at 0x406cc4
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff34
mov esi, eax
xor ebx, ebx
push 0
push esi
call fcn.00406818
mov dword [0x4127dc], eax
cmp dword [0x4127dc], 0
je 0x406d5c
cmp dword [0x4127e4], 0
je 0x406d5c
mov eax, dword [0x4127dc]
push eax
call sub.kernel32.dll_SuspendThread
mov dword [esp], 0x10007
push esp
mov eax, dword [0x4127dc]
push eax
call sub.kernel32.dll_GetThreadContext
test eax, eax
je 0x406d43
push esi
lea esi, [esp + 4]
mov edi, 0x4127e8
mov ecx, 0x33
rep movsd dword es:[edi], dword [esi]
pop esi
mov eax, dword [0x4127e4]
mov dword [esp + 0xb8], eax
mov dword [esp], 0x10007
push esp
mov eax, dword [0x4127dc]
push eax
call sub.kernel32.dll_SetThreadContext
mov eax, dword [0x4127dc]
push eax
call sub.kernel32.dll_ResumeThread
push 0
push 0
push 0
push esi
call sub.user32.dll_PostThreadMessageA
mov bl, 1
mov eax, ebx
add esp, 0xcc
pop edi
pop esi
pop ebx
ret

Function at 0x406ddc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004034f8
xor eax, eax
push ebp
push 0x406e98
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00403174
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00403508
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jbe 0x406e7a
mov eax, ebx
call fcn.0040248c
mov esi, eax
push esi
push ebx
push 0
mov eax, dword [ebp - 4]
call fcn.00403508
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x10]
mov eax, 0x406eb0
call fcn.00404cc0
mov eax, dword [ebp - 0x10]
call fcn.00403508
push eax
push esi
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x406e71
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.0040478c
mov edx, ebx
mov eax, esi
call fcn.004024ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406e9f
lea eax, [ebp - 0x10]
call fcn.00403174
lea eax, [ebp - 4]
call fcn.00403174
ret