joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c903
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x130
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x64
pop ebx
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call edi
test eax, eax
je 0x41c9da
mov eax, dword [ebp - 0xc]
dec eax
je 0x41c9bd
dec eax
jne 0x41c9da
lea eax, [ebp - 0xb8]
push eax
xor esi, esi
mov dword [ebp - 0xb8], 0x9c
call edi
test eax, eax
je 0x41c960
cmp byte [ebp - 0x1e], 1
jne 0x41c960
inc esi
mov eax, dword [ebp - 0x18]
sub eax, 3
je 0x41c9b9
dec eax
je 0x41c9b5
dec eax
je 0x41c993
dec eax
jne 0x41c9da
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x41c985
dec eax
jne 0x41c9da
neg esi
sbb esi, esi
and esi, 5
jmp 0x41c98c
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
mov ebx, esi
jmp 0x41c9da
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x41c9b1
dec eax
je 0x41c9ad
dec eax
jne 0x41c9da
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x41c98f
push 0x3c
jmp 0x41c9d9
push 0x32
jmp 0x41c9d9
push 0x14
jmp 0x41c9d9
push 5
jmp 0x41c9d9
cmp dword [ebp - 0x14], 0
je 0x41c9d7
cmp dword [ebp - 0x14], 0xa
je 0x41c9d3
cmp dword [ebp - 0x14], 0x5a
jne 0x41c9da
push 0x28
jmp 0x41c9d9
push 0x1e
jmp 0x41c9d9
push 0xa
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
add ebp, 0x78
leave
ret

Function at 0x420b47
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x46c2d0]
call fcn.00427eaa
mov edi, eax
test edi, edi
je 0x420baa
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x420b70
push dword [esp + 0xc]
push edi
call eax
jmp 0x420baa
push ebx
push esi
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthW]
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.00429c80
mov ebx, eax
and word [ebx], 0
lea eax, [esi + 1]
push eax
push ebx
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextW]
push ebx
call sub.MSVCRT.dll_wcslen
pop ecx
sub esi, eax
push esi
call fcn.00429d00
pop esi
pop ebx
pop edi
ret 8
Function at 0x421743
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [0x46c2d4]
call fcn.00428039
mov ebx, eax
call fcn.00423cbd
xor edi, edi
cmp dword [0x46b940], edi
jne 0x4218a2
mov esi, 0x98
push esi
push edi
push 0x46b8a8
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x46b8ac], esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.RICHED20.DLL
mov dword [0x46b8a8], 0x16
mov dword [0x46b8c8], 0x42104f
mov dword [0x46b8c0], 0x4211ed
mov dword [0x46b8c4], 0x42121b
mov dword [0x46b8dc], 0x42112f
mov dword [0x46b8d4], 0x42115a
mov dword [0x46b8d0], 0x421174
mov dword [0x46b8e8], 0x421244
mov dword [0x46b8ec], 0x4212b7
mov dword [0x46b910], 0x4213e6
mov dword [0x46b914], 0x421412
mov dword [0x46b924], 0x4213c0
mov dword [0x46b920], 0x421331
call esi
cmp eax, edi
mov dword [0x46b944], eax
jne 0x421822
push str.RICHED32.DLL
call esi
mov eax, dword [0x46b550]
cmp eax, edi
je 0x421898
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenThemeData
push eax
call esi
push str.CloseThemeData
push dword [0x46b550]
mov dword [0x46b89c], eax
call esi
push str.GetThemeBackgroundContentRect
push dword [0x46b550]
mov dword [0x46b898], eax
call esi
push str.IsThemeBackgroundPartiallyTransparent
push dword [0x46b550]
mov dword [0x46b894], eax
call esi
push str.DrawThemeParentBackground
push dword [0x46b550]
mov dword [0x46b890], eax
call esi
push str.DrawThemeBackground
push dword [0x46b550]
mov dword [0x46b88c], eax
call esi
mov dword [0x46b888], eax
mov dword [0x46b940], 1
mov eax, dword [0x46b54c]
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
cmp dword [0x46b944], edi
mov ecx, str.RichEdit20W
jne 0x4218c7
mov ecx, 0x4369bc
mov edx, dword [ebp + 0x1c]
push edi
push dword [0x46af84]
or edx, 0x503111c4
push 0xffffffffffffffff
push dword [ebx]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edx
push edi
push ecx
push eax
call dword [sym.imp.USER32.DLL_CreateWindowExW]
mov esi, eax
cmp esi, edi
je 0x421984
push dword [ebp + 8]
push dword [0x46c2d0]
call fcn.00427e22
push 0x10
mov ebx, eax
or dword [ebx + 0x18], 0xffffffff
or dword [ebx + 0x14], 0xffffffff
push 8
push dword [0x46af80]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push 0x436988
push esi
call dword [sym.imp.USER32.DLL_SetPropW]
push edi
push 0xffffffffffffffff
push 0xc5
push esi
call dword [sym.imp.USER32.DLL_SendMessageW]
push 0x42162d
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.DLL_SetWindowLongW]
push 0x37
push edi
push edi
push edi
push edi
push edi
push esi
mov dword [0x46b8a0], eax
call dword [sym.imp.USER32.DLL_SetWindowPos]
push 0x541
push edi
push edi
push esi
call dword [sym.imp.USER32.DLL_RedrawWindow]
call fcn.00423d8e
push 0x46b8a8
push esi
push ebx
push dword [ebp + 8]
call fcn.0042352c
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x425769
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
test edi, edi
mov bl, pe_nt_image_headers32
je 0x4257e4
push 9
call esi
test bl, al
je 0x4257e4
push 0x11
call esi
test bl, al
jne 0x4257e4
push 0x10
call esi
test bl, al
jne 0x4257e4
push 0x12
call esi
test bl, al
jne 0x4257e4
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameW]
push 4
lea eax, [esp + 0x14]
push 0x436c5c
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x4257e4
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageW]
test ax, 0x800
jne 0x4257e4
xor eax, eax
jmp 0x425866
push ebp
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x42580d
push 0x11
call esi
test bl, al
jne 0x425805
push 0x10
call esi
test bl, al
jne 0x425805
push 0x12
call esi
test bl, al
je 0x42580d
push 1
push ebp
call fcn.00425717
test edi, edi
mov esi, dword [sym.imp.USER32.DLL_GetPropW]
je 0x425823
push 0x436c48
push edi
call esi
test eax, eax
jne 0x425863
push 0x436b34
push ebp
call esi
mov esi, eax
test esi, esi
je 0x425863
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x425863
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x425863
dec esi
push esi
push dword [0x46c2dc]
call fcn.00427eaa
test eax, eax
je 0x425863
mov eax, dword [eax + 8]
jmp 0x425865
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x425d57
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push edi
push 0x436c74
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor edi, edi
cmp eax, edi
mov dword [0x46bd84], eax
je 0x425d88
push 0x436c68
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x46bd88], eax
lea eax, [ebp - 0x114]
push eax
mov dword [0x46bd80], 1
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x425dd8
cmp dword [ebp - 0x104], 1
je 0x425de9
cmp dword [ebp - 0x104], 2
jne 0x425dd8
cmp dword [ebp - 0x110], 5
jb 0x425de9
jne 0x425dd8
cmp dword [ebp - 0x10c], edi
jne 0x425dd8
mov dword [0x46bd80], edi
cmp dword [0x46bd80], edi
je 0x425def
call fcn.00425c9e
test eax, eax
jne 0x425def
mov dword [0x46bd80], edi
pop edi
leave
ret
Function at 0x426b6d
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push ebx
push pe_nt_image_headers32
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x426bf8
push esi
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
push ebx
push dword [0x46af80]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x426bed
push ebx
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x426bdf
cmp dword [ebp - 8], esi
jne 0x426bdf
push esi
push edi
push dword [ebp + 8]
call fcn.00426ffb
mov dword [ebp - 4], eax
push edi
push ebx
push dword [0x46af80]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0xc
Function at 0x4277d8
Capabilities:
Enumerate pe sections
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 0xc], 0
push ebx
push esi
push dword [0x46bd8c]
call fcn.00428039
push dword [ebp + 8]
mov ebx, eax
push dword [0x46c378]
call fcn.00427eaa
mov esi, eax
test esi, esi
je 0x427962
push ebx
call fcn.004276f3
pop ecx
mov ecx, dword [esi]
cmp word [ecx], 0x5a4d
mov dword [ebp - 8], ecx
jne 0x427962
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x427962
mov edx, dword [eax + 0x78]
and dword [ebp - 4], 0
push edi
movzx edi, word [eax + 0x14]
lea edi, [edi + eax + 0x18]
movzx eax, word [eax + 6]
test eax, eax
lea esi, [edx + ecx]
mov dword [ebp + 8], edi
mov dword [ebp - 0x10], eax
jle 0x427874
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xc]
cmp edx, eax
jb 0x427865
mov edi, dword [edi + 8]
add edi, eax
cmp edx, edi
jb 0x4278cb
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add dword [ebp + 8], 0x28
cmp eax, dword [ebp - 0x10]
jl 0x427852
xor eax, eax
test eax, eax
je 0x427961
mov eax, dword [esi + 0x24]
mov edi, dword [esi + 0x1c]
add eax, ecx
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x20]
add eax, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x14]
add edi, ecx
test eax, eax
mov dword [ebp - 0x10], edi
jbe 0x42795a
mov dword [ebx + 4], eax
mov eax, dword [esi + 0x14]
shl eax, 3
push eax
push 0
push dword [0x46af80]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
mov dword [ebx], eax
cmp dword [esi + 0x14], ecx
mov dword [ebp + 8], ecx
jbe 0x42795a
jmp 0x4278d3
mov eax, dword [ebp + 8]
jmp 0x427876
mov edi, dword [ebp - 0x10]
mov edx, dword [ebx]
lea eax, [edi + ecx*4]
mov edi, ecx
mov ecx, dword [eax]
add ecx, dword [ebp - 8]
shl edi, 3
mov dword [edx + edi + 4], ecx
mov edx, dword [ebx]
xor ecx, ecx
mov dword [edi + edx], ecx
cmp dword [eax], ecx
je 0x42794a
xor eax, eax
cmp dword [esi + 0x18], ecx
mov dword [ebp - 4], eax
jbe 0x42794a
mov ecx, dword [ebp - 0xc]
movzx ecx, word [ecx + eax*2]
cmp ecx, dword [ebp + 8]
jne 0x427941
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + eax*4]
add eax, dword [ebp - 8]
push eax
mov dword [ebp - 0x18], eax
call sub.MSVCRT.dll_strlen
pop ecx
inc eax
push eax
push 0
push dword [0x46af80]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebx]
push dword [ebp - 0x18]
mov dword [edi + ecx], eax
mov eax, dword [ebx]
push dword [eax + edi]
call sub.MSVCRT.dll_strcpy
mov eax, dword [ebp - 4]
pop ecx
pop ecx
inc eax
cmp eax, dword [esi + 0x18]
mov dword [ebp - 4], eax
jb 0x4278fb
mov ecx, dword [ebp + 8]
inc ecx
cmp ecx, dword [esi + 0x14]
mov dword [ebp + 8], ecx
jb 0x4278d0
mov dword [ebp - 0xc], 1
pop edi
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret 4
Function at 0x42a8f0
Capabilities:
Check for software breakpoints

Disassembly:
cmp dword [esi + 0x14], 0xcc
je 0x42a915
mov eax, dword [esi + 0x180]
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x14], 0xcc
mov edx, dword [esi + 0x180]
cmp byte [edx + 8], 0
je 0x42a940
mov eax, dword [esi]
mov dword [eax + 0x14], 0x30
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
mov eax, dword [esi + 0x180]
add esp, 4
cmp byte [eax + 8], 0
jne 0x42a921
xor ecx, ecx
cmp byte [esi + 0x41], cl
mov al, 1
setne cl
add ecx, 0xcd
mov dword [esi + 0x14], ecx
ret

Function at 0x42aa00
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x42aa2f
push esi
call fcn.0042a3c0
add esp, 4
cmp byte [esi + 0x40], 0
je 0x42aa28
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x42aaaa
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x42aa9a
mov eax, dword [esi + 8]
test eax, eax
je 0x42aa54
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov edx, dword [esi + 0x190]
mov eax, dword [edx]
push esi
call eax
add esp, 4
test eax, eax
je 0x42aa96
cmp eax, 2
je 0x42aa9a
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x42aa45
cmp eax, 3
je 0x42aa7c
cmp eax, 1
jne 0x42aa45
add dword [ecx + 4], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x42aa45
mov edx, dword [esi + 0x11c]
add dword [eax + 8], edx
jmp 0x42aa45
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.0042a8f0
pop esi
ret
cmp eax, 0xcc
je 0x42aacc
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.0042a8f0
pop esi
ret
Function at 0x42f0d0
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call fcn.00431970
push 0x54
push edi
mov dword [esp + 0x18], eax
call fcn.00431900
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x42f116
push edi
call fcn.00431980
mov eax, dword [edi]
mov dword [eax + 0x14], 0x36
mov ecx, dword [edi]
mov dword [ecx + 0x18], ebx
mov edx, dword [edi]
mov eax, dword [edx]
push edi
call eax
add esp, 8
mov dword [esi], fcn.0042e5c0
mov dword [esi + 4], fcn.0042e710
mov dword [esi + 8], fcn.0042e7d0
mov dword [esi + 0xc], fcn.0042e880
mov dword [esi + 0x10], 0x42e930
mov dword [esi + 0x14], 0x42e9a0
mov dword [esi + 0x18], 0x42ea10
mov dword [esi + 0x1c], 0x42ecf0
mov dword [esi + 0x20], 0x42ee30
mov dword [esi + 0x24], fcn.0042ef80
mov dword [esi + 0x28], 0x42f090
mov dword [esi + 0x30], 0x3b9aca00
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x54
push 0x438340
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
cmp eax, ebx
je 0x42f1f1
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x10]
push ecx
push 0x438338
push eax
mov byte [esp + 0x24], 0x78
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x42f1f1
mov al, byte [esp + 0x14]
cmp al, 0x6d
je 0x42f1cc
cmp al, 0x4d
jne 0x42f1e4
mov eax, dword [esp + 0xc]
imul eax, eax, 0x3e8
imul eax, eax, 0x3e8
pop edi
mov dword [esi + 0x2c], eax
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x402b30
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004039a0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004039a0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x402b90
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40706c]
test esi, esi
jle 0x402cb0
mov eax, dword [0x407070]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x402bc4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x402c47
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x402bb0
mov dword [esp], ebx
call fcn.00403590
mov edi, eax
test eax, eax
je 0x402cd7
mov eax, dword [0x407070]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004036d0
mov edx, dword [0x407070]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x402cb7
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x402c40
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x402c50
add dword [0x40706c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x407070]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x402c40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00402b30
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x402bce
mov eax, dword [0x407070]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00402b30
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00402b30
lea esi, cs:[esi]
nop
Function at 0x403200
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x407088
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x407080]
sub esp, 4
test ebx, ebx
je 0x403255
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x40324e
test eax, eax
jne 0x40324e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x403230
mov dword [esp], 0x407088
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x403590
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4035b5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4035c0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4035b5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x403608
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4035fe
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40360a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x4035f0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x419610
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x11000]
push edi
or ebp, 0xffffffff
jmp 0x419632
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419639
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419628
pushfd
xor eax, eax
inc eax
popfd
add ebx, ebx
jne 0x41964b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419640
jne 0x41965c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419640
xor ecx, ecx
sub eax, 3
jb 0x419670
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4196e2
push eax
pop ebp
add ebx, ebx
jne 0x41967b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419688
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4196ac
inc ecx
add ebx, ebx
jne 0x419698
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41968d
jne 0x4196a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41968d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4196cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4196bd
jmp 0x41962e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4196cc
add edi, ecx
jmp 0x41962e
pop esi
push esi
pop edi
mov ecx, 0x5ce
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4196ea
cmp byte [edi], 0
jne 0x4196ea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
push ebx
pop eax
loop 0x4196ef
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x41975e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x191e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1924c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41971c
push edi
pop ecx
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19250]
test eax, eax
je 0x419758
mov dword [ebx], eax
add ebx, 4
jmp 0x419739
call dword [esi + 0x19254]
popal
jmp 0x40e274
Function at 0x100066ae
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
test eax, eax
jg 0x100066d2
jl 0x100066c9
test ebx, ebx
jne 0x100066d2
xor eax, eax
xor edx, edx
jmp 0x1000678f
cmp dword [esi + 0x38], 0
je 0x100066e7
push eax
push ebx
push dword [ebp + 8]
call fcn.10003601
jmp 0x1000678f
mov eax, dword [esi + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x1000672a
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x1000672a
cmp dword [eax], ebx
mov esi, ebx
mov edi, dword [ebp + 8]
cmovb esi, dword [eax]
push esi
push ecx
push edi
call fcn.101449b0
mov ecx, dword [ebp - 4]
add edi, esi
mov dword [ebp + 8], edi
add esp, 0xc
mov edi, ebx
sub edi, esi
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
jmp 0x10006730
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [esi + 0x4c], 0
je 0x10006784
mov ecx, esi
call fcn.10006e08
mov ecx, dword [ebp + 8]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x1000676f
push dword [esi + 0x4c]
push eax
push 1
push ecx
call fcn.1014c4d1
mov ecx, dword [ebp + 8]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp + 8], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x10006784
jmp 0x10006742
test edx, edx
je 0x10006784
push dword [esi + 0x4c]
push edi
push 1
push ecx
call fcn.1014c4d1
add esp, 0x10
sub edi, eax
mov edx, dword [ebp + 0x10]
sub ebx, edi
mov eax, ebx
sbb edx, 0
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10009f8e
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 0x10009fe7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10009fe7
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 0x10009fd8
cmp esi, ecx
jae 0x10009fe7
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x10009fc6
cmp esi, ecx
jae 0x10009fe7
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
jmp 0x10009fe9
xor eax, eax
pop esi
pop ebp
ret