joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4247a6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0xfffffffffffffff0
push dword [ebx + 0x10]
call sub.USER32.dll_GetWindowLongA
test al, 4
je 0x4247cc
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
je 0x4247f6
test esi, esi
jne 0x4247db
push dword [ebx + 0x10]
call sub.USER32.dll_GetWindowTextLengthA
mov esi, eax
inc esi
push esi
call fcn.0042efd0
pop ecx
mov edi, eax
mov eax, esi
mov edx, edi
push eax
push edx
push dword [ebx + 0x10]
call sub.USER32.dll_GetWindowTextA
mov eax, edi
jmp 0x424823
push 0
push 0
push 0xbd
push ebx
call fcn.0041d0d0
add esp, 0x10
test esi, esi
je 0x42481d
push 0x42
push esi
push eax
call sub.KERNEL32.dll_LocalReAlloc
test eax, eax
jne 0x42481d
xor eax, eax
jmp 0x424823
push eax
call sub.KERNEL32.dll_LocalLock
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x429d5e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0xc]
shr eax, 4
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
push 6
push dword [ebp - 0xc]
push dword [esi + 0xc]
call sub.KERNEL32.dll_FindResourceA
mov edi, eax
test edi, edi
je 0x429e0d
mov dword [ebp - 0x10], edi
push dword [ebp - 0x10]
push dword [esi + 0xc]
call sub.KERNEL32.dll_LoadResource
mov dword [ebp - 4], eax
test eax, eax
je 0x429e0d
push dword [ebp - 4]
call sub.KERNEL32.dll_LockResource
mov edi, eax
test edi, edi
je 0x429dfd
mov eax, dword [ebp + 0xc]
and eax, 0xf
jmp 0x429dbe
add ebx, ebx
add edi, ebx
mov bx, word [edi]
add edi, 2
movzx ebx, bx
mov edx, eax
add eax, 0xffffffff
test edx, edx
jne 0x429dba
test ebx, ebx
je 0x429dfd
cmp ebx, dword [ebp + 0x14]
jb 0x429ddd
mov ebx, dword [ebp + 0x14]
dec ebx
mov eax, ebx
jmp 0x429dee
mov dl, byte [edi]
add edi, 2
mov ecx, dword [ebp + 0x10]
inc dword [ebp + 0x10]
mov byte [ecx], dl
mov edx, eax
add eax, 0xffffffff
test edx, edx
jne 0x429de1
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
push dword [ebp - 4]
call sub.KERNEL32.dll_FreeResource
test ebx, ebx
je 0x429e0d
mov eax, ebx
jmp 0x429e38
mov eax, dword [0x456390]
cmp esi, eax
je 0x429e2a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.00429d5e
add esp, 0x10
jmp 0x429e38
cmp dword [ebp + 0x14], 0
je 0x429e36
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429e3f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov eax, 0x4560f1
call fcn.0042d074
xor ebx, ebx
mov word [ebp - 0x14], 8
lea eax, [ebp - 4]
push eax
call fcn.00430014
pop ecx
mov eax, dword [ebp + 0x10]
shr eax, 4
inc eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
push 6
push dword [ebp - 0x30]
push dword [esi + 0xc]
call sub.KERNEL32.dll_FindResourceA
mov edi, eax
test edi, edi
je 0x429f63
mov dword [ebp - 0x34], edi
push dword [ebp - 0x34]
push dword [esi + 0xc]
call sub.KERNEL32.dll_LoadResource
mov dword [ebp - 0x28], eax
test eax, eax
je 0x429f63
push dword [ebp - 0x28]
call sub.KERNEL32.dll_LockResource
mov edi, eax
test edi, edi
je 0x429f1d
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 0x38], eax
jmp 0x429ec4
add ebx, ebx
add edi, ebx
mov bx, word [edi]
add edi, 2
movzx ebx, bx
mov eax, dword [ebp - 0x38]
add dword [ebp - 0x38], 0xffffffff
test eax, eax
jne 0x429ec0
test ebx, ebx
je 0x429f1d
push ebx
lea eax, [ebp - 4]
push eax
call fcn.00430298
add esp, 8
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ebx
jmp 0x429f12
mov eax, dword [ebp - 0x3c]
inc dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
push dword [ebp - 0x40]
lea eax, [ebp - 4]
push eax
call fcn.00430250
add esp, 8
mov dl, byte [edi]
add edi, 2
mov byte [eax], dl
mov eax, dword [ebp - 0x38]
add dword [ebp - 0x38], 0xffffffff
test eax, eax
jne 0x429ef3
push dword [ebp - 0x28]
call sub.KERNEL32.dll_FreeResource
test ebx, ebx
je 0x429f63
mov word [ebp - 0x14], 0x14
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00430088
add esp, 8
mov eax, dword [ebp + 8]
mov word [ebp - 0x14], 0x20
push eax
push 2
lea eax, [ebp - 4]
push eax
call fcn.004302e8
add esp, 8
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x429fdf
mov ebx, dword [0x456390]
cmp esi, ebx
je 0x429fa7
mov word [ebp - 0x14], 0x2c
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call fcn.00429e3f
add esp, 0xc
mov eax, dword [ebp + 8]
mov word [ebp - 0x14], 0x38
push eax
push 2
lea eax, [ebp - 4]
push eax
call fcn.004302e8
add esp, 8
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x429fdf
mov word [ebp - 0x14], 0x44
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00430088
add esp, 8
mov eax, dword [ebp + 8]
mov word [ebp - 0x14], 0x50
push eax
push 2
lea eax, [ebp - 4]
push eax
call fcn.004302e8
add esp, 8
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f340
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
mov esi, dword [ebp + 8]
cmp byte [0x451bd5], 0
je 0x42f3a3
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x5c
lea eax, [ebp - 0x54]
push eax
call fcn.0042b3fc
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x42f38e
push 0x3a
lea eax, [ebp - 0x54]
push eax
call fcn.0042b3fc
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x42f38e
lea ebx, [ebp - 0x54]
jmp 0x42f38f
inc ebx
call fcn.0042f2f8
or eax, 0x10
push eax
push ebx
push esi
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x42f3e7
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x4574a8
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea eax, [ebp - 4]
push eax
push esi
call fcn.0042b1f8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x4574ab
push ebx
call sub.KERNEL32.dll_WriteFile
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4061e0
Capabilities:
Terminate thread
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov eax, dword [0x445b0c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, edi
je 0x406260
push esi
push edi
push edi
push 3
push edi
push edi
push 0x40000000
push edi
push 0x445a04
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], 0x1f40
mov dword [esp + 0x3c], edi
call fcn.00406450
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40624d
lea eax, [esp + 0xc]
push edi
push eax
lea ecx, [esp + 0x18]
push 0x10
push ecx
push esi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call ebx
push 0x3e8
mov edx, dword [0x445b0c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov eax, dword [0x445b08]
cmp eax, edi
je 0x406281
mov eax, dword [0x445b08]
cmp eax, 0xffffffff
je 0x406281
mov eax, dword [0x445b08]
push eax
call ebx
mov dword [0x445b08], edi
mov eax, dword [0x445b0c]
cmp eax, edi
je 0x4062a9
mov eax, dword [0x445b0c]
cmp eax, 0xffffffff
je 0x4062a9
push 0xffffffffffffffff
mov ecx, dword [0x445b0c]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x445b0c], edi
call fcn.004063b0
mov dword [0x445b14], edi
pop edi
pop ebx
add esp, 0x14
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x429e25f2
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..rsrc
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x556a4831
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x864fc0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1d5000]
push edi
or ebp, 0xffffffff
jmp 0x864fe2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x864fe9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x864fd8
mov eax, 1
add ebx, ebx
jne 0x864ffb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x86500c
jne 0x86502b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x86502b
dec eax
add ebx, ebx
jne 0x865018
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x864ff0
add ebx, ebx
jne 0x865027
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x86507d
xor ecx, ecx
sub eax, 3
jb 0x865043
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8650b2
sar eax, 1
mov ebp, eax
jmp 0x86504e
add ebx, ebx
jne 0x86504e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x86501c
inc ecx
add ebx, ebx
jne 0x86505c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x86501c
add ebx, ebx
jne 0x865069
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x86505e
jne 0x86507a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x86505e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x86509c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x86508e
jmp 0x864fde
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x86509c
add edi, ecx
jmp 0x864fde
pop esi
mov edi, esi
mov ecx, 0x69d6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8650ba
cmp byte [edi], 0x13
jne 0x8650ba
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 0x8650bf
lea edi, [esi + 0x45b000]
mov eax, dword [edi]
or eax, eax
je 0x865137
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x469b94]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x469cd4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8650ec
mov ecx, edi
jns 0x86511b
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 + 0x469cd8]
or eax, eax
je 0x865131
mov dword [ebx], eax
add ebx, 4
jmp 0x865109
call dword [esi + 0x469ce8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x865168
cmp al, 0xef
ja 0x86515b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x86513d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x86514a
mov ebp, dword [esi + 0x469cdc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x86519c
sub esp, 0xffffff80
jmp 0x4af4c0
Function at 0x1000a990
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1004a4b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.100228a0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.100228a0
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x10040cb0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp dword [esi + 0x14], 8
jb 0x1000aa1e
mov esi, dword [esi]
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push esi
push 0
call dword [0x1004ff60]
test eax, eax
jns 0x1000aa49
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10020c5f
mov esp, ebp
pop ebp
ret 8
push ebx
push edi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea eax, [ebp - 0x20c]
push eax
call fcn.1001e9a0
mov edi, eax
xor bl, bl
cmp edi, 0xffffffff
je 0x1000aadd
push 0x1000
call fcn.100200fd
add esp, 4
mov esi, eax
lea eax, [ebp - 0x418]
push 0
push eax
push 0x1000
push esi
push edi
call fcn.1001f7f6
test eax, eax
je 0x1000aacc
mov ebx, dword [ebp - 0x41c]
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x1000aacc
push eax
push esi
mov ecx, ebx
call fcn.10005990
push 0
lea eax, [ebp - 0x418]
push eax
push 0x1000
push esi
push edi
call fcn.1001f7f6
test eax, eax
jne 0x1000aaa0
push edi
call fcn.1001e923
push esi
call fcn.100214be
add esp, 4
mov bl, 1
lea eax, [ebp - 0x20c]
push eax
call fcn.1001ee8f
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.10020c5f
mov esp, ebp
pop ebp
ret 8
Function at 0x10013e50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, edx
cmp ecx, ebx
je 0x10013f17
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [ecx + 0x10]
lea eax, [esi - 0xc]
push eax
lea ecx, [edi + 4]
call fcn.1000f130
push esi
lea ecx, [edi + 0x10]
call fcn.1000f130
lea eax, [esi + 0xc]
push eax
lea ecx, [edi + 0x1c]
call fcn.1000f130
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x28]
call fcn.1000f130
lea eax, [esi + 0x24]
lea ecx, [edi + 0x34]
cmp ecx, eax
je 0x10013ea7
push 0xffffffffffffffff
push 0
push eax
call fcn.10002ca0
lea eax, [esi + 0x3c]
lea ecx, [edi + 0x4c]
cmp ecx, eax
je 0x10013ebb
push 0xffffffffffffffff
push 0
push eax
call fcn.10002ca0
lea eax, [esi + 0x54]
lea ecx, [edi + 0x64]
cmp ecx, eax
je 0x10013ecf
push 0xffffffffffffffff
push 0
push eax
call fcn.10002ca0
mov eax, dword [esi + 0x6c]
mov dword [edi + 0x7c], eax
mov eax, dword [esi + 0x70]
mov dword [edi + 0x80], eax
mov eax, dword [esi + 0x74]
mov dword [edi + 0x84], eax
mov al, byte [esi + 0x78]
mov byte [edi + 0x88], al
mov ecx, dword [esi + 0x7c]
add esi, 0x90
mov dword [edi + 0x8c], ecx
add edi, 0x90
lea ecx, [esi - 0x10]
cmp ecx, ebx
jne 0x10013e66
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
pop ebx
pop ebp
ret
Function at 0x1001e78c
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
mov eax, dword [ecx]
jmp 0x1001e7a8
cmp word [eax + 0x24], 0x18
je 0x1001e7ac
mov eax, dword [eax]
cmp eax, edx
jne 0x1001e79f
mov eax, dword [eax + 0x10]
ret

Function at 0x1001e7b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x2c
mov eax, 0x10038fbd
call fcn.10022ba4
mov esi, dword [ebp + 8]
test esi, esi
je 0x1001e80f
mov eax, dword [esi + 0x3c]
xor edi, edi
mov ebx, dword [eax + esi + 0x78]
mov eax, dword [eax + esi + 0x7c]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + ebx + 0x1c]
mov ecx, dword [esi + ebx + 0x24]
add eax, esi
mov dword [ebp - 0x2c], eax
add ecx, esi
mov eax, dword [esi + ebx + 0x20]
add eax, esi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
cmp dword [esi + ebx + 0x18], edi
jbe 0x1001e80f
mov eax, dword [eax + edi*4]
add eax, esi
push eax
call fcn.1001fedc
pop ecx
cmp eax, dword [ebp + 0xc]
je 0x1001e817
mov eax, dword [ebp - 0x34]
inc edi
cmp edi, dword [esi + ebx + 0x18]
jb 0x1001e7f4
xor eax, eax
call fcn.10022b62
ret
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x2c]
movzx eax, word [eax + edi*2]
mov ecx, dword [ecx + eax*4]
add esi, ecx
cmp ebx, ecx
ja 0x1001e886
mov eax, dword [ebp - 0x30]
add eax, ebx
cmp ecx, eax
jae 0x1001e886
push 0x2e
push esi
call fcn.100229c0
pop ecx
pop ecx
test eax, eax
je 0x1001e80f
push eax
push esi
lea ecx, [ebp - 0x28]
lea edi, [eax + 1]
call fcn.10003620
and dword [ebp - 4], 0
lea esi, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
push edi
cmovae esi, dword [ebp - 0x28]
call fcn.1001fedc
pop ecx
push eax
push esi
call dword [0x1004ee98]
push eax
call fcn.1001e7b0
pop ecx
pop ecx
mov esi, eax
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.10002c20
mov eax, esi
jmp 0x1001e811

Function at 0x1001fedc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
or ecx, 0xffffffff
cmp byte [edx], 0
je 0x1001ff0d
push esi
movzx eax, byte [edx]
push 8
xor ecx, eax
inc edx
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor ecx, eax
dec esi
jne 0x1001fef4
cmp byte [edx], 0
jne 0x1001feeb
pop esi
not ecx
mov eax, ecx
pop ebp
ret
Function at 0x10019030
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001906f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001906f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001906f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001906f
cmp dword [ecx + 0x74], 0xe
jbe 0x1001906f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001bd2d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001bdca
push ebx
push esi
call fcn.1001bcf6
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001bc8a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001bd77
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001bdc9
push edi
push eax
call fcn.10019d6d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001bd97
call fcn.1001a7d2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001bdc8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001bc8a
add esp, 0x20
test eax, eax
jne 0x1001bdb6
push edi
call fcn.1001a7d2
jmp 0x1001bdbe
push ebx
call fcn.1001a7d2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001c037
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10023d10
push 0x10023d08
push str.FlsAlloc
push 0x1f
call fcn.1001bf53
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001c06b
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002214c]
call esi
jmp 0x1001c071
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001c0b5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10023d20
push 0x10023d18
push str.FlsGetValue
push 0x21
call fcn.1001bf53
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001c0ec
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002214c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001c0f4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10023d28
push 0x10023d20
push str.FlsSetValue
push 0x22
call fcn.1001bf53
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001c12e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002214c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100216d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100216fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100216fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x480004]
jne 0x401010
repz ret
jmp fcn.004016e6

Function at 0x4097a3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004043c0
and dword [ebp - 4], 0
cmp dword [0x4827e0], 0
mov ebx, eax
jne 0x409854
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409905
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x409905
push eax
call fcn.0040434e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4827e0], eax
call esi
push eax
call fcn.0040434e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4827e4], eax
call esi
push eax
call fcn.0040434e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4827e8], eax
call esi
push eax
call fcn.0040434e
pop ecx
mov dword [0x4827f0], eax
test eax, eax
je 0x409854
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040434e
pop ecx
mov dword [0x4827ec], eax
mov eax, dword [0x4827ec]
cmp eax, ebx
je 0x4098ac
cmp dword [0x4827f0], ebx
je 0x4098ac
push eax
call fcn.004043c9
push dword [0x4827f0]
mov esi, eax
call fcn.004043c9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4098ac
test edi, edi
je 0x4098ac
call esi
test eax, eax
je 0x4098a3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4098a3
test byte [ebp - 0xc], 1
jne 0x4098ac
or dword [ebp + 0x10], 0x200000
jmp 0x4098e5
mov eax, dword [0x4827e4]
cmp eax, ebx
je 0x4098e5
push eax
call fcn.004043c9
pop ecx
test eax, eax
je 0x4098e5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4098e5
mov eax, dword [0x4827e8]
cmp eax, ebx
je 0x4098e5
push eax
call fcn.004043c9
pop ecx
test eax, eax
je 0x4098e5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4827e0]
call fcn.004043c9
pop ecx
test eax, eax
je 0x409905
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409907
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret