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

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x524f53
push esi
call fcn.00529bb0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x524f4c
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x524fd9
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x524fc2
mov eax, dword [esi + 8]
test eax, eax
je 0x524f77
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x524fbe
cmp eax, 2
je 0x524fc2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x524f6a
cmp eax, 3
je 0x524f9d
cmp eax, 1
jne 0x524f6a
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 0x524f6a
mov edx, dword [esi + 0x144]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x524f6a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00525010
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x524ff9
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.00525010
add esp, 4
pop esi
ret

Function at 0x568c1e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x568c56
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.00566c2f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00566c07
jmp 0x568c62
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x56a492
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 0x56a4d4
call fcn.00570ff9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x56a4d4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x56a4cb
xor eax, eax
jmp 0x56a4dc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0056a4e2
pop edi
pop esi
pop ebx
ret 4
Function at 0x56bf1b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x57de20
call fcn.00519448
push ecx
push ecx
push esi
push 0x14
call fcn.00566515
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
test esi, esi
je 0x56bf6e
mov ecx, esi
call fcn.00566d4d
mov eax, dword [0x77f560]
lea ecx, [esi + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [esi], vtable.CFileException.0
mov dword [esi + 0xc], eax
call fcn.00566911
jmp 0x56bf70
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push 0x758cc0
push eax
mov dword [ebp - 0x10], esi
call fcn.00518005
pop esi

Function at 0x571529
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 0x571557
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x571575
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0057148f
jmp 0x571575
mov eax, dword [esi + 0x14]
test eax, eax
je 0x571575
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0057148f
test edi, edi
mov eax, edi
jne 0x57155f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x573e33
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x573e5b
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x573e6c
push 2
call edi
test ax, ax
jge 0x573e6c
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.00568254
cmp dword [esi + 0x30], ebx
jne 0x573f46
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.00568254
cmp eax, dword [esp + 0x34]
jne 0x573f46
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x573ee2
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x573f27
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x573f46
cmp eax, 0x205
je 0x573f46
cmp eax, 0x201
je 0x573f46
cmp eax, 0x204
je 0x573f46
cmp eax, ebx
jne 0x573f0d
cmp dword [esp + 0x1c], 0x1b
je 0x573f46
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x804968]
jbe 0x573f3c
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x573e9f
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x100177fa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x10017809
pop dword [ebp - 0x44]
mov eax, 0x1d12ad6f
add eax, 0xf2eeca9a
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x7c2ca847
sub dword [ebp - 0x54], 0x2dda62fc
mov dword [ebp - 0x50], 0xf13aa345
sub dword [ebp - 0x50], 0xbf075700
mov dword [ebp - 0x4c], 0x57e5399e
sub dword [ebp - 0x4c], 0xb98f570
mov dword [ebp - 0x48], 0xa8619dc4
add dword [ebp - 0x48], 0x579e623c
lea eax, [ebp - 0x54]
push eax
mov eax, 0xc2b725ce
add eax, 0x4d4d2b36
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xf7b2386c
sub dword [ebp - 0x54], 0x833fcf16
mov dword [ebp - 0x50], 0x9797a142
sub dword [ebp - 0x50], 0x562b3fcd
mov dword [ebp - 0x4c], 0xa57daed6
add dword [ebp - 0x4c], 0xbdf1bd96
mov dword [ebp - 0x48], 0x4a9cfe09
add dword [ebp - 0x48], 0xb56301f7
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x585a268c
add eax, 0xb7aa2a2c
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x49330
push 0
call eax
mov ecx, 0x51b55ded
sub ecx, 0x51b51acd
mov esi, eax
mov edx, 0xa04d978
add edx, 0x6027688
add edx, dword [ebp - 0x44]
mov edi, 0x71f37e71
sub edi, 0xc9d6523e
xor dword [ebp - 0x40], 0xf695d6c9
mov ebx, dword [edx]
xor dword [ebp - 0x38], edi
sub ebx, edi
sub dword [ebp - 0x2c], edx
mov dword [esi], ebx
add dword [ebp - 0x18], edx
add esi, 0xaef1489
add esi, 0xf510eb7b
add edx, 4
loop 0x1001792b
add eax, 0xd9a57824
add eax, 0x265b872f
xor ebx, ebx
add ebx, eax
add eax, 0x419af8f
add eax, 0xfbe65076
mov ecx, 0xe8ac941e
add ecx, 0x27536be2
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x1001bd34
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor ebx, ebx
push edi
mov edi, ecx
push 5
pop eax
push ebx
mov dword [edi], eax
mov dword [edi + 4], eax
mov word [edi + 8], 1
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
push 0x5b
mov dword [edi + 0xc], 4
call esi
push ebx
push 0x10
mov byte [edi + 0x29], al
call esi
push ebx
push 0xa0
mov byte [edi + 0x26], al
call esi
push ebx
push 0xa1
mov byte [edi + 0x27], al
call esi
push ebx
push 0x11
mov byte [edi + 0x28], al
call esi
push ebx
push 0x12
mov byte [edi + 0x24], al
call esi
mov byte [edi + 0x25], al
pop edi
pop esi
pop ebx
ret
Function at 0x10001f40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub dword [ebp + 0xc], 1
jne 0x10001fd5
push 8
push 0
push str.ic.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
test eax, eax
je 0x10001fb4
push str.DoMagic
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10001fa7
push 0
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10001f9a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, str.Failed_to_create_thread:
jmp 0x10001fbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, str.Failed_to_get_DoMagic_function_address:
jmp 0x10001fbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, str.Failed_to_load_ic.dll:
push eax
call fcn.10004670
mov ecx, eax
call fcn.100022e0
push eax
call fcn.10004940
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10004190
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10022630
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10031014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10006e4e
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.100057f1
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100153b3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10026fe0
push 0x10026fd8
push str.FlsAlloc
push 0x1e
call fcn.1001527d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100153e7
push dword [ebp + 8]
mov ecx, esi
call dword [0x10023134]
call esi
jmp 0x100153ed
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10015431
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10026ff0
push 0x10026fe8
push str.FlsGetValue
push 0x20
call fcn.1001527d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015468
push dword [ebp + 8]
mov ecx, esi
call dword [0x10023134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10017518
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10017389

Function at 0x10017912
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10007cd0
mov eax, dword [0x10031014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10012f13
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10017954
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10017ab0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10021f10
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100328a0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.10018909
mov ecx, dword [esi*4 + 0x100328a0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x10017aa9
cmp eax, dword [edi + ecx + 0x24]
jne 0x10017aa9
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10017aa9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10018909
add esp, 0x14
test edx, edx
jl 0x10017aa9
jg 0x10017a1f
test eax, eax
jb 0x10017aa9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10017aa9
jl 0x10017a39
cmp dword [ebp - 0x1008], eax
ja 0x10017aa9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10017a57
test ebx, ebx
je 0x10017a90
cmp ecx, edi
jae 0x10017a90
mov al, byte [ecx]
cmp al, 0xd
jne 0x10017a71
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10017a7d
cmp byte [ecx + 1], 0xa
jne 0x10017a7d
inc ecx
jmp 0x10017a7d
movzx eax, al
movsx eax, byte [eax + 0x10031298]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10017a57
cmp edx, ebx
jne 0x10017a57
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10017aae
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10006e0f
leave
ret
Function at 0x10017da7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100328a0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10017de7
cmp byte [ebx], 0xa
jne 0x10017de7
or byte [eax + edi + 0x28], 4
jmp 0x10017dec
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10017eea
mov al, byte [edx]
cmp al, 0x1a
je 0x10017ecc
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10017e1b
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x10017e40
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10017e4a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x10017dfd
jmp 0x10017eea
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10017ec7
cmp dword [ebp - 0xc], 0
je 0x10017ec7
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x100328a0]
test byte [eax + edi + 0x28], 0x48
je 0x10017ea1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10017e8c
mov byte [esi], dl
jmp 0x10017e9d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100328a0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10017eea
cmp byte [ebp - 1], 0xa
jne 0x10017eb0
cmp esi, ebx
jne 0x10017eb0
mov byte [esi], 0xa
jmp 0x10017ee9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10018927
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10017eea
mov byte [esi], 0xd
jmp 0x10017ee9
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x100328a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10017ee6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10017eea
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10017ef3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x100328a0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10017f36
cmp word [esi], dx
jne 0x10017f36
or byte [edi + eax + 0x28], 4
jmp 0x10017f3b
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x1001808e
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x1001806e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10017f7d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10017fb3
cmp eax, edx
jae 0x10017fbf
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x10017f55
jmp 0x1001808e
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001806a
cmp dword [ebp - 0x14], 0
je 0x1001806a
mov eax, dword [ebx*4 + 0x100328a0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10018042
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x1001800b
mov word [esi], cx
jmp 0x1001803e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x100328a0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x100328a0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x100328a0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x1001808e
pop ebx
cmp word [ebp - 4], bx
jne 0x10018053
cmp esi, dword [ebp + 0xc]
jne 0x10018053
mov word [esi], bx
jmp 0x1001808b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10018927
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1001808e
push 0xd
jmp 0x10018087
mov ecx, dword [ebx*4 + 0x100328a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10018085
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001808e
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001b4b1
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 0x1001b54e
push ebx
push esi
call fcn.1001b47a
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.1001a211
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001b4fb
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001b54d
push edi
push eax
call fcn.10012022
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001b51b
call fcn.10011fe8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001b54c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001a211
add esp, 0x20
test eax, eax
jne 0x1001b53a
push edi
call fcn.10011fe8
jmp 0x1001b542
push ebx
call fcn.10011fe8
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 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x469706
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x469727
jl 0x46971e
test edi, edi
jne 0x469727
xor eax, eax
xor edx, edx
jmp 0x4697e8
cmp dword [ebx + 0x38], 0
je 0x46973c
push eax
push edi
push dword [ebp + 8]
call fcn.00428130
jmp 0x4697e8
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x469783
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x469783
cmp eax, edi
jb 0x46975d
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0046be80
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x469789
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4697dd
mov ecx, ebx
call fcn.00469071
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4697c8
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00471574
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4697dd
jmp 0x46979b
test edx, edx
je 0x4697dd
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00471574
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x46bb50
Capabilities:
Parse pe header

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

Function at 0x4795a7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x489218
push 0x489210
push str.FlsAlloc
push 0x1f
call fcn.0047946f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4795db
push dword [ebp + 8]
mov ecx, esi
call dword [0x48512c]
call esi
jmp 0x4795e1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x479625
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x489228
push 0x489220
push str.FlsGetValue
push 0x21
call fcn.0047946f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x47965c
push dword [ebp + 8]
mov ecx, esi
call dword [0x48512c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x479664
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x489230
push 0x489228
push str.FlsSetValue
push 0x22
call fcn.0047946f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x47969e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x48512c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]