joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d6f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43d723
push esi
call fcn.004407e0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43d71c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43d7a9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43d792
mov eax, dword [esi + 8]
test eax, eax
je 0x43d747
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43d78e
cmp eax, 2
je 0x43d792
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43d73a
cmp eax, 3
je 0x43d76d
cmp eax, 1
jne 0x43d73a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43d73a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43d73a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043d7d0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43d7b8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043d7d0
add esp, 4
pop esi
ret

Function at 0x45bde8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45be20
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00459e9c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00459e74
jmp 0x45be2c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45d4d6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45d518
call fcn.00462f8f
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45d518
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45d50f
xor eax, eax
jmp 0x45d520
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045d526
pop edi
pop esi
pop ebx
ret 4

Function at 0x4634bf
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4634ed
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46350b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00463425
jmp 0x46350b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46350b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00463425
test edi, edi
mov eax, edi
jne 0x4634f5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40281d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407318
cmp edx, dword [eax]
je 0x40283f
add eax, 8
inc ecx
cmp eax, 0x4073a8
jl 0x402830
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407318]
jne 0x40296d
mov eax, dword [0x4096f8]
cmp eax, 1
je 0x402947
test eax, eax
jne 0x402870
cmp dword [0x407268], 1
je 0x402947
cmp edx, 0xfc
je 0x40296d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4028a7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402e00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402fb0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4028ea
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402fb0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4063f0
push edi
call fcn.00404650
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402e00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402e10
lea eax, [ebp - 0xa0]
push 0x4063d0
push eax
call fcn.00402e10
push dword [esi + 0x40731c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402e10
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004045c4
add esp, 0x2c
pop edi
jmp 0x40296d
lea eax, [ebp + 8]
lea esi, [esi + 0x40731c]
push 0
push eax
push dword [esi]
call fcn.00402fb0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x1001700
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ecx
and dword [esp], 0
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
mov ebx, 0x1000
mov eax, 0x10000
push ebx
mov ebp, eax
push eax
jmp 0x1001755
push 0
push ebp
push esi
push 5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
mov dword [esp + 0x10], eax
je 0x1001774
cmp eax, 0xc0000004
jne 0x1001751
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
add ebp, 0x2000
push 4
push ebx
push ebp
push 0
call edi
mov esi, eax
test esi, esi
jne 0x1001722
push dword [esp + 0x10]
push 0x100113c
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
pop ecx
xor eax, eax
jmp 0x1001776
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x1001b2d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
call fcn.01001a07
cmp eax, edi
jne 0x1001b80
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x1001b85
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp + 8]
push 0x1001288
call dword [sym.imp.msvcrt.dll_printf]
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop esi
pop edi
leave
ret 0x14
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x64]
push 0x1001284
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
push dword [ebp + 0xc]
call fcn.01001abe
push dword [ebp + 0x14]
mov ebx, eax
call fcn.01001abe
cmp ebx, edi
mov dword [ebp - 0x10], eax
je 0x1001c39
cmp eax, edi
je 0x1001c39
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 8]
call esi
cmp eax, edi
je 0x1001beb
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp + 0x14]
mov dword [ebp - 0x20], edi
push dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jmp 0x1001bfe
push ebx
push dword [ebp - 8]
call esi
cmp eax, edi
je 0x1001c23
lea ecx, [ebp - 0xc]
push ecx
push edi
push dword [ebp - 0x10]
push edi
call eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call esi
push ebx
call esi
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0xc]
pop ebx
jmp 0x1001b7f
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x1001244
call dword [sym.imp.msvcrt.dll_printf]
add esp, 0xc
jmp 0x1001c45
push 0x100121c
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
push 1
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x1001fb3
Capabilities:
Initialize winsock library
Print debug messages

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 2
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x1001fdd
push eax
push 0x1001568
call sub.ntdll.dll_DbgPrint
pop ecx
pop ecx
add esp, 0x190
ret
push esi
mov esi, dword [sym.imp.msvcrt.dll_printf]
push 0x1001548
call esi
pop ecx
call fcn.01001cce
push 0x1001524
call esi
pop ecx
pop esi
add esp, 0x190
jmp fcn.01001eff

Function at 0x100209a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and byte [ebp - 1], 0
and byte [ebp - 5], 0
and byte [ebp - 9], 0
push ebx
push esi
push edi
xor edi, edi
push edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
mov dword [0x1003204], eax
je 0x10020ca
push eax
call fcn.0100265f
mov esi, dword [ebp + 8]
cmp esi, 2
jl 0x10021a9
xor ebx, ebx
and dword [ebp - 0x10], ebx
dec esi
mov dword [ebp - 0x14], edi
mov dword [ebp + 8], edi
je 0x100217d
mov eax, dword [ebp + 0xc]
push 4
pop edx
mov ecx, eax
add eax, edx
test ecx, ecx
je 0x100217d
mov ecx, dword [eax]
cmp word [ecx], 0x2d
jne 0x100217d
movzx ecx, word [ecx + 2]
cmp ecx, 0x70
jg 0x100215b
je 0x1002152
sub ecx, 0x61
je 0x1002146
sub ecx, 3
je 0x100213d
dec ecx
je 0x1002131
dec ecx
jne 0x10021a9
dec esi
je 0x10021a9
add eax, edx
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
jmp 0x1002176
dec esi
je 0x10021a9
add eax, edx
mov ecx, dword [eax]
mov dword [ebp + 8], ecx
jmp 0x1002176
dec esi
je 0x10021a9
add eax, edx
mov ebx, dword [eax]
jmp 0x1002176
dec esi
je 0x10021a9
add eax, edx
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
jmp 0x1002176
dec esi
je 0x10021a9
add eax, edx
mov edi, dword [eax]
jmp 0x1002176
sub ecx, 0x71
je 0x1002172
dec ecx
je 0x100216c
dec ecx
jne 0x10021a9
mov byte [ebp - 1], 1
jmp 0x1002176
mov byte [ebp - 5], 1
jmp 0x1002176
mov byte [ebp - 9], 1
dec esi
jne 0x10020ee
xor eax, eax
test edi, edi
sete al
xor ecx, ecx
test ebx, ebx
sete cl
cmp ecx, eax
je 0x1002195
cmp byte [ebp - 1], 0
je 0x10021a9
test ebx, ebx
je 0x10021b9
test edi, edi
je 0x10021b9
cmp dword [ebp + 8], 0
jne 0x10021b9
cmp byte [ebp - 1], 0
jne 0x10021bf
push 0x10015b8
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
push 1
jmp 0x1002223
cmp byte [ebp - 1], 0
je 0x10021c6
call fcn.01001fb3
jmp 0x1002212
cmp byte [ebp - 5], 0
jne 0x10021db
cmp byte [ebp - 9], 0
jne 0x10021db
call fcn.01002078
test eax, eax
jne 0x1002212
test ebx, ebx
jne 0x10021e3
test edi, edi
je 0x10021e9
cmp byte [ebp - 5], 0
je 0x10021ff
push dword [ebp - 9]
push dword [ebp - 5]
push dword [ebp - 0x10]
push dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.0100183a
jmp 0x100220f
push dword [ebp - 0x10]
push dword [ebp + 8]
push dword [ebp - 0x14]
push edi
push ebx
call fcn.01001b2d
mov dword [ebp - 0x18], eax
cmp dword [0x1003204], 0
je 0x1002220
call fcn.0100268f
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x100222a
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x1001608
call fcn.010023c8
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1002265
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002265
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100227d
cmp eax, 0x20b
je 0x100226a
mov dword [ebp - 0x1c], edi
jmp 0x1002291
cmp dword [ecx + 0x84], 0xe
jbe 0x1002265
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x100228b
cmp dword [ecx + 0x74], 0xe
jbe 0x1002265
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1003278], 0xffffffff
or dword [0x100327c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1003214]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1003210]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1003280], eax
call fcn.010023c2
cmp dword [0x1003028], edi
jne 0x10022ec
push fcn.010023c2
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010023b0
push 0x1001114
push 0x1001110
call sub.msvcrt.dll__initterm
mov eax, dword [0x100320c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1003208]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x30], eax
push 0x100110c
push 0x1001108
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0100209a
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x1002363
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1002398
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01002401
ret
Function at 0x403df4
Capabilities:
Identify system language via api

Disassembly:
push ecx
cmp byte [0x47c000], 0
push ebx
push ebp
push esi
push edi
mov ebx, pe_overlay
mov ebp, 0x47c000
je 0x403e14
push ebp
call fcn.004060b0
jmp 0x403e1a
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov dword [esp + 0x10], eax
xor esi, esi
mov edi, dword [0x44ba84]
mov eax, edi
dec edi
test eax, eax
je 0x403e76
mov eax, dword [0x44ba48]
mov ecx, dword [eax + 0x64]
mov edx, ecx
imul ecx, edi
neg edx
add ecx, dword [0x44ba80]
mov ax, word [esp + 0x10]
mov esi, ecx
xor ax, word [ecx]
and eax, ebx
test ax, ax
je 0x403e5e
mov eax, edi
dec edi
add ecx, edx
test eax, eax
jne 0x403e42
jmp 0x403e76
mov eax, dword [esi + 2]
mov dword [0x447a20], eax
mov eax, dword [esi + 6]
mov dword [0x44bae8], eax
lea eax, [esi + 0xa]
mov dword [0x447a1c], eax
cmp dword [0x447a1c], 0
jne 0x403e91
cmp bx, 0xffff
jne 0x403e8d
mov ebx, 0x3ff
jmp 0x403e20
xor ebx, ebx
jmp 0x403e20
movzx eax, word [esi]
push eax
push ebp
call fcn.00406097
push 0xfffffffffffffffe
push 0x447a40
call fcn.00406158
push eax
push dword [0x4353ec]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x44ba6c]
mov esi, dword [0x44ba68]
mov ecx, eax
dec eax
test ecx, ecx
je 0x403ee5
lea ebx, [esi + 0x18]
lea ebp, [eax + 1]
mov edi, 0x2018
mov eax, dword [esi]
test eax, eax
je 0x403ede
push eax
push ebx
call fcn.00406158
add esi, edi
add ebx, edi
dec ebp
jne 0x403ed1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x405952
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x43a418], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x405976
test al, 0x10
jne 0x405979
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x43a418
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4059a4
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x4a0cb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x68000]
push edi
jmp 0x4a0cca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4a0cd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a0cc0
mov eax, 1
add ebx, ebx
jne 0x4a0ce3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4a0cf4
jne 0x4a0d13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a0d13
dec eax
add ebx, ebx
jne 0x4a0d00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4a0cd8
add ebx, ebx
jne 0x4a0d0f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4a0d65
xor ecx, ecx
sub eax, 3
jb 0x4a0d2b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4a0d9a
sar eax, 1
mov ebp, eax
jmp 0x4a0d36
add ebx, ebx
jne 0x4a0d36
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a0d04
inc ecx
add ebx, ebx
jne 0x4a0d44
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a0d04
add ebx, ebx
jne 0x4a0d51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4a0d46
jne 0x4a0d62
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4a0d46
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4a0d84
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4a0d76
jmp 0x4a0cc6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4a0d84
add edi, ecx
jmp 0x4a0cc6
pop esi
mov edi, esi
mov ecx, 0x2cc0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4a0da2
cmp byte [edi], 0x1a
jne 0x4a0da2
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
mov al, bl
loop 0x4a0da7
lea edi, [esi + 0x9d000]
mov eax, dword [edi]
or eax, eax
je 0x4a0e1f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xae988]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xaeaa0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4a0dd4
mov ecx, edi
jns 0x4a0e03
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xaeaa4]
or eax, eax
je 0x4a0e19
mov dword [ebx], eax
add ebx, 4
jmp 0x4a0df1
call dword [esi + 0xaeab4]
mov ebp, dword [esi + 0xaeaa8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4a0e53
sub esp, 0xffffff80
jmp 0x454d3d
Function at 0x100dd24
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x1071a9c
sub esi, edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp + 0xc]
push eax
push 0x40
push esi
push edi
call ebx
cmp byte [ebp + 0x18], 0
je 0x100dd58
mov eax, dword [ebp + 0x14]
sub dword [edi], eax
mov eax, edi
sub eax, dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push esi
push edi
call fcn.0100dd93
add esp, 0x10
cmp byte [ebp + 0x18], 0
je 0x100dd76
mov eax, dword [ebp + 0x14]
add dword [edi], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push esi
push edi
call ebx
push 0x1071a9c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x100e034
Capabilities:
Allocate thread local storage
Resolve function by parsing pe exports
Terminate process

Disassembly:
pushal
pushfd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0101054f
push eax
lea edx, [0xff01ee0]
lea ecx, [0x1990c354]
sub esp, 0x10
mov dword [esp], edx
push ecx
sub dword [esp + 4], 0xeef3e64
pop ebx
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 0xc
jmp fcn.0100e0a0
Function at 0x101030d
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [0x1071c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebp + 8]
push dword [edi + 0x64]
mov esi, eax
push dword [0x1071c50]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp esi, 0x32
jae 0x101035c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 0x60]
cmp eax, 0x2710
jae 0x1010354
mov dword [esi*8 + 0x1071ac0], 1
jmp 0x1010362
and dword [esi*8 + 0x1071ac0], 0
push edi
call fcn.01010a99
pop edi
pop esi
pop ebp
ret 4

Function at 0x101038c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x20]
push ebx
movzx ebx, word [eax]
push esi
mov esi, dword [ebp + 0x10]
push edi
push 0xfffffffffffffffe
inc esi
pop edi
and esi, edi
mov dword [ebp + 0x10], esi
jmp 0x10103ba
push dword [ebp + 0x14]
movzx eax, ax
add eax, dword [ebp + 8]
push eax
call fcn.01010540
inc esi
and esi, edi
movzx eax, word [esi]
inc esi
xor eax, ebx
inc esi
cmp ax, 0xffff
jne 0x10103a8
inc esi
and esi, edi
movzx ecx, word [esi]
inc esi
inc esi
xor ecx, ebx
cmp byte [ebp + 0x28], 0
jne 0x10103f4
cmp byte [ebp + 0x24], 0
jne 0x10103f4
cmp cx, ax
je 0x1010429
inc esi
and esi, edi
movzx eax, word [esi]
inc esi
xor eax, ebx
inc esi
cmp ax, 0xffff
jne 0x10103e2
jmp 0x1010429
xor edi, edi
jmp 0x1010423
mov eax, dword [ebp + 0x20]
movzx eax, word [eax + edi*2]
mov edx, dword [ebp + 0x18]
and eax, 0xfffffff0
add eax, edx
push eax
movzx eax, cx
add eax, dword [ebp + 8]
inc edi
push eax
and edi, 3
call fcn.01010540
inc esi
and esi, 0xfffffffe
movzx ecx, word [esi]
inc esi
inc esi
xor ecx, ebx
cmp cx, 0xffff
jne 0x10103f8
mov ecx, dword [ebp + 0x1c]
push dword [ebp + 0x20]
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [esi + 7]
and eax, 0xfffffff8
mov edx, dword [eax]
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
movzx eax, word [ebp + 0xc]
add eax, dword [ebp + 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.010104ea
cmp byte [ebp + 0x24], 0
jne 0x1010467
cmp dword [ebp + 0x14], 0
jne 0x101046d
cmp byte [ebp + 0x28], 0
je 0x10104dd
mov esi, dword [ebp + 0x10]
movzx eax, word [esi]
inc esi
xor eax, ebx
inc esi
cmp ax, 0xffff
je 0x10104a0
mov edi, dword [ebp + 0x14]
neg edi
movzx eax, ax
add eax, dword [ebp + 8]
push edi
push eax
call fcn.01010540
inc esi
and esi, 0xfffffffe
movzx eax, word [esi]
inc esi
xor eax, ebx
inc esi
cmp ax, 0xffff
jne 0x1010482
cmp byte [ebp + 0x28], 0
je 0x10104dd
xor edi, edi
jmp 0x10104cc
mov eax, dword [ebp + 0x20]
movzx eax, word [eax + edi*2]
mov edx, dword [ebp + 0x18]
and eax, 0xfffffff0
add eax, edx
neg eax
push eax
movzx eax, cx
add eax, dword [ebp + 8]
inc edi
push eax
and edi, 3
call fcn.01010540
inc esi
and esi, 0xfffffffe
movzx ecx, word [esi]
inc esi
xor ecx, ebx
inc esi
cmp cx, 0xffff
jne 0x10104aa
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x24
Function at 0x10108eb
Capabilities:
Check for time delay via gettickcount
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov ebx, 0x1071ac0
push edi
mov esi, ebx
push 2
xor eax, eax
pop ecx
inc eax
lock cmpxchg dword [esi], ecx
cmp eax, 1
jne 0x1010928
mov edi, dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 0x60]
cmp eax, 0x2710
jb 0x1010978
and dword [esi], 0
push edi
call fcn.01010a99
inc dword [ebp - 4]
add esi, 8
cmp dword [ebp - 4], 0x32
jl 0x10108fd
call fcn.010109c8
mov esi, eax
xor edi, edi
mov ecx, ebx
push 2
pop edx
xor eax, eax
lock cmpxchg dword [ecx], edx
test eax, eax
je 0x101099a
inc edi
add ecx, 8
cmp edi, 0x32
jl 0x101093f
push dword [0x1071c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov dword [esi + 0x64], eax
push dword [0x1071c50]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
push dword [0x1071c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [ebp - 4]
mov dword [edi + 0x64], eax
push dword [0x1071c50]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, edi
jmp 0x1010973
push dword [0x1071c50]
mov dword [edi*8 + 0x1071ac4], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
mov dword [esi + 0x64], eax
push dword [0x1071c50]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x60], eax
jmp 0x1010971

Function at 0x10109c8
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1071ab8]
mov ecx, dword [eax + 0x3c]
sub esp, 0x24
push ebx
push esi
mov esi, dword [ecx + eax + 0x50]
mov ebx, eax
push edi
lea eax, [ebp - 0x24]
push eax
add esi, ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x1c]
lea ecx, [eax - 0x80000000]
cmp esi, ecx
mov edi, eax
jb 0x1010a00
lea edi, [esi - 0x80000000]
mov eax, dword [ebp - 0x18]
lea ecx, [eax - 0x7fffffff]
cmp ebx, ecx
ja 0x1010a13
lea eax, [ebx + 0x7fffffff]
mov ebx, dword [ebp - 8]
sub eax, edi
xor edx, edx
div ebx
lea esi, [eax - 1]
push 0x40
push 0x3000
push 0x4000
push esi
push 0
call fcn.01010a48
imul eax, ebx
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x1010a1f
pop edi
pop esi
pop ebx
leave
ret