joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445fb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2e000]
push edi
or ebp, 0xffffffff
jmp 0x445fd2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x445fd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x445fc8
mov eax, 1
add ebx, ebx
jne 0x445feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x445ffc
jne 0x44601b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44601b
dec eax
add ebx, ebx
jne 0x446008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x445fe0
add ebx, ebx
jne 0x446017
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x44606d
xor ecx, ecx
sub eax, 3
jb 0x446033
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4460a2
sar eax, 1
mov ebp, eax
jmp 0x44603e
add ebx, ebx
jne 0x44603e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44600c
inc ecx
add ebx, ebx
jne 0x44604c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44600c
add ebx, ebx
jne 0x446059
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x44604e
jne 0x44606a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x44604e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x44608c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x44607e
jmp 0x445fce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x44608c
add edi, ecx
jmp 0x445fce
pop esi
mov edi, esi
mov ecx, 0xac1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4460aa
cmp byte [edi], 9
jne 0x4460aa
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 0x4460af
lea edi, [esi + 0x43000]
mov eax, dword [edi]
or eax, eax
je 0x446127
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x50960]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x50a3c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4460dc
mov ecx, edi
jns 0x44610b
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 + 0x50a40]
or eax, eax
je 0x446121
mov dword [ebx], eax
add ebx, 4
jmp 0x4460f9
call dword [esi + 0x50a50]
mov ebp, dword [esi + 0x50a44]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x44615b
sub esp, 0xffffff80
jmp 0x40f247
Function at 0x10002280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x100022d8
cmp byte [esi + ebx - 1], 0xa
je 0x100022ac
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10003118], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x100023e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
xor esi, esi
push ebx
sub esp, 0x1c
test eax, eax
je 0x10002488
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 8], eax
mov ebx, eax
mov dword [esp + 0x14], 0
mov dword [ebp - 0x10], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call edx
mov edi, eax
sub esp, 0x18
lea ecx, [edi + edi]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x10002488
mov dword [esp + 0x14], edi
mov edx, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0
call edx
sub esp, 0x18
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401160
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push section..text
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
ret

Function at 0x401985
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424d66
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x443624]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push ecx
push eax
mov dword [ebp - 0x240], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402002
xor eax, eax
jmp 0x40212b
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x258]
push edi
push ebx
call fcn.004013b0
push 0x228
lea eax, [ebp - 0x238]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x23c], 0x22c
call fcn.00413a20
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push ebx
call dword [0x4435ec]
test eax, eax
je 0x4020fc
mov esi, dword [esi]
lea eax, [ebp - 0x218]
push dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x4020cf
mov eax, dword [ebp - 0x234]
cmp eax, dword [esi + 4]
je 0x4020cf
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 0x234]
cmp ecx, eax
je 0x4020cf
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x24c], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x402164
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4020c4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x402147
push esi
mov byte [ebp - 4], 2
call edi
mov byte [ebp - 4], 0
lea eax, [ebp - 0x23c]
push eax
push ebx
call dword [0x4435f0]
test eax, eax
je 0x4020ec
mov esi, dword [ebp - 0x240]
jmp 0x402052
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x12
sete bl
jmp 0x4020fe
xor ebx, ebx
mov esi, dword [ebp - 0x254]
test esi, esi
je 0x402129
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x402129
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x402129
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411faa
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x244]
push 0x42eef8
push eax
call fcn.00412ee2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x248]
push 0x42eef8
push eax
call fcn.00412ee2
int3
Function at 0x407a10
Capabilities:
Delete file

Disassembly:
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
lea edi, [esi + 3]
lea ebx, [ebx]
mov eax, dword [ebx + 4]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esi, 0x208
sub edi, 1
jne 0x407a20
pop edi
pop esi
pop ebx
ret 4
Function at 0x401bf0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408048
call sym._EnterCriticalSection_4
mov ebx, dword [0x408040]
sub esp, 4
test ebx, ebx
je 0x401c3b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401c34
test esi, esi
je 0x401c34
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401c10
mov dword [esp], 0x408048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401e20
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401e70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401f44
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x401eae
cmp eax, 4
jne 0x401ed0
test esi, esi
je 0x401ec2
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x401eb4
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x401f0f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x401f01
cmp ecx, 0x40
je 0x401ec2
cmp ecx, 4
je 0x401ec2
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401e20
lea esi, [esi]
Function at 0x4557f0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov edi, edi
push esi
mov esi, dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0x562d74
mov dword [ebx], 0
call esi
cmp eax, 0xfffffffe
jne 0x45587d
push edi
push 0
push 1
push 0x565da4
call esi
cmp eax, 1
jne 0x45583a
mov edi, dword [sym.imp.kernel32.dll_Sleep]
push 1
call edi
push 0
push 1
push 0x565da4
call esi
cmp eax, 1
je 0x455826
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0x562d74
call esi
mov edi, dword [sym.imp.kernel32.dll_InterlockedExchange]
mov esi, eax
cmp esi, 0xfffffffe
jne 0x455867
call dword [sym.imp.kernel32.dll_TlsAlloc]
mov esi, eax
cmp esi, 0xffffffff
je 0x455867
push esi
push 0x562d74
call edi
push 0
push 0x565da4
call edi
pop edi
cmp esi, 0xffffffff
jne 0x45587d
mov eax, 0x8007000e
pop esi
ret
mov eax, dword [0x562d74]
test eax, eax
jl 0x4558a1
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x4558a1
inc dword [eax + 0x128]
mov dword [ebx], 1
xor eax, eax
pop esi
ret
push 0x12c
call sub.msvcrt.dll_malloc
mov esi, eax
add esp, 4
test esi, esi
je 0x455876
push 0x12c
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esi + 0x128], 1
mov dword [ebx], 1
mov eax, dword [0x562d74]
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
xor eax, eax
pop esi
ret

Function at 0x455920
Capabilities:
Query environment variable

Disassembly:
cmp byte [0x565da0], 0
jne 0x4559b0
cmp dword [0x565da8], 0
je 0x4559a9
push esi
mov esi, 0x565db4
lea esp, [esp]
mov eax, dword [esi - 0xc]
push eax
call sub.msvcrt.dll_getenv
add esp, 4
test eax, eax
je 0x45599f
mov ecx, dword [esi - 4]
sub ecx, 0
je 0x455988
sub ecx, 1
je 0x455968
sub ecx, 1
jne 0x45599f
mov ecx, dword [esi]
mov dword [ecx], eax
jmp 0x45599f
mov edx, dword [esi]
push edx
push 0x43909c
push eax
call sub.msvcrt.dll_sscanf
add esp, 0xc
cmp eax, 1
je 0x45599f
mov eax, dword [esi]
mov dword [eax], 0
jmp 0x45599f
cmp byte [eax], 0x30
jne 0x45599a
cmp byte [eax + 1], 0
jne 0x45599a
mov ecx, dword [esi]
mov byte [ecx], 0
jmp 0x45599f
mov edx, dword [esi]
mov byte [edx], 1
add esi, 0x10
cmp dword [esi - 0xc], 0
jne 0x455940
pop esi
mov byte [0x565da0], 1
ret

Function at 0x455a00
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x562d74]
test eax, eax
jge 0x455a0d
xor eax, eax
jmp 0x455a14
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
xor ecx, ecx
lea edx, [eax + 0x20]
lea esp, [esp]
cmp dword [ecx*4 + 0x429d54], edi
jne 0x455a2e
cmp dword [edx], 0
jne 0x455a43
inc ecx
add edx, 8
cmp ecx, 0xf
jb 0x455a20
mov ecx, dword [eax + 0x1c]
push 0x10
push edi
call fcn.004f69d0
ret
mov edx, dword [eax + ecx*8 + 0x20]
test edx, edx
je 0x455a65
push esi
mov esi, dword [edx]
mov dword [eax + ecx*8 + 0x20], esi
test esi, esi
pop esi
jne 0x455a5f
mov dword [eax + ecx*8 + 0x24], 0
mov dword [edx], 0xfefefefe
cmp ecx, 0xf
jb 0x455a76
mov ecx, dword [eax + 0x1c]
push 0x10
push edi
call fcn.004f69d0
ret
mov eax, edx
ret
Function at 0x45adb0
Capabilities:
Get thread local storage value

Disassembly:
test esi, esi
je 0x45ae04
mov eax, dword [0x562d74]
push ebx
push edi
test eax, eax
jge 0x45adc3
xor ebx, ebx
jmp 0x45adcc
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov edi, dword [esi + 4]
mov eax, dword [edi*4 + 0x429d54]
push eax
push 0xfe
push esi
call sub.msvcrt.dll_memset
lea ecx, [ebx + edi*8 + 0x24]
mov dword [esi], 0
mov eax, dword [ecx]
add esp, 0xc
test eax, eax
je 0x45adfc
pop edi
mov dword [eax], esi
mov dword [ecx], esi
pop ebx
ret
mov dword [ebx + edi*8 + 0x20], esi
pop edi
mov dword [ecx], esi
pop ebx
ret

Function at 0x4f69d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x4f69df
pop dword [ebp - 0x40]
mov eax, 0x4f69df
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x5d4cc
push 0
mov eax, 0xd892a411
add eax, 0x27ad6c6f
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0x4354
xor ebx, ebx
add ebx, eax
mov edx, 0x48f44d47
sub edx, 0x489d5147
add edx, dword [ebp - 0x40]
mov edi, 0x86df7524
sub edi, 0x66f3fbf3
add dword [ebp - 0x2c], 0x51e8459f
mov esi, dword [edx]
xor dword [ebp - 0x24], 0x74953456
sub esi, edi
add dword [ebp - 0x14], 0x9091b1c8
mov dword [ebx], esi
add dword [ebp - 0x3c], edx
add ebx, 4
add edx, 0x1645a5bf
add edx, 0xe9ba5a45
loop 0x4f6a35
add eax, 0x10023
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x513d80
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x562d74]
test eax, eax
jge 0x513d8d
xor eax, eax
jmp 0x513d94
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp dword [eax + 8], 0
je 0x513db9
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x513da4
xor eax, eax
ret
mov edx, dword [ecx]
mov dword [eax + 8], edx
test edx, edx
jne 0x513db0
mov dword [eax + 0xc], edx
mov dword [ecx], 0xfefefefe
mov eax, ecx
ret
mov ecx, dword [eax + 4]
push 0x10
push 0xf0
call fcn.004f69d0
ret

Function at 0x513dd0
Capabilities:
Get thread local storage value

Disassembly:
test esi, esi
je 0x513e19
mov eax, dword [0x562d74]
push edi
test eax, eax
jge 0x513de2
xor edi, edi
jmp 0x513deb
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
push 0xf0
push 0xfe
push esi
call sub.msvcrt.dll_memset
mov dword [esi], 0
mov eax, dword [edi + 0xc]
add esp, 0xc
test eax, eax
je 0x513e12
mov dword [eax], esi
mov dword [edi + 0xc], esi
pop edi
ret
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
pop edi
ret
Function at 0x100250c4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x100250d3
pop dword [ebp - 0xc]
mov eax, 0x6b0df8bf
sub eax, 0x5b0ba7ec
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x40959
push 0
mov eax, 0x81fe9ac6
add eax, 0x8e03f61a
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0xc9d1c6f3
add ecx, 0x362e8887
mov edi, eax
mov esi, 0x10042200
add esi, dword [ebp - 0xc]
mov ebx, 0x825f8e80
sub ebx, 0x692b08a6
add dword [ebp - 4], esi
mov edx, dword [esi]
xor edx, ebx
sub dword [ebp - 8], 0xbd220ac0
mov dword [edi], edx
sub dword [ebp - 8], 0x59f8fe08
add edi, 0x5f2d447b
sub edi, 0x5f2d4477
add esi, 4
loop 0x1002512c
add eax, 0xf465956
add eax, 0xf0bad765
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40de73
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040931a
mov dword [ebp - 0x14], eax
cmp dword [0x814ea0], esi
jne 0x40df66
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40def3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40e046
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40e046
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e046
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x814ea0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x814ea4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x814ea8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x814eb0], eax
test eax, eax
je 0x40df63
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x814eac], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40df8b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40df7e
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40dfa0
push 4
pop eax
jmp 0x40e048
cmp dword [ebp - 0x14], esi
je 0x40dfa0
push dword [0x814ea0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40df85
mov eax, dword [0x814eac]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40dffe
cmp dword [0x814eb0], edi
je 0x40dffe
push eax
call ebx
push dword [0x814eb0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40dffe
test eax, eax
je 0x40dffe
call ecx
test eax, eax
je 0x40dff3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40dff3
test byte [ebp - 8], 1
jne 0x40dffe
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40e02e
mov eax, dword [0x814ea4]
cmp eax, edi
je 0x40e02b
push eax
call ebx
test eax, eax
je 0x40e02b
call eax
mov esi, eax
test esi, esi
je 0x40e02b
mov eax, dword [0x814ea8]
cmp eax, edi
je 0x40e02b
push eax
call ebx
test eax, eax
je 0x40e02b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x814ea0]
call ebx
test eax, eax
je 0x40e046
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40e048
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404429
mov esp, ebp
pop ebp
ret
Function at 0x10001720
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push ebx
push dword [edi + 0xdc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100017d0
push esi
lea eax, [ebp - 4]
push eax
push dword [edi + 0xdc]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [edi + 0xdc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 0xc4]
mov dword [edi + 0xdc], ebx
call fcn.100012a9
mov eax, dword [edi + 0xc0]
lea esi, [edi + 0x30]
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x10001783
call fcn.10001391
mov ecx, dword [edi + 0xb8]
cmp ecx, ebx
je 0x100017cf
push dword [edi + 8]
cmp dword [ebp - 4], ebx
je 0x1000179e
xor eax, eax
call fcn.10001505
jmp 0x100017cf
push 2
pop eax
call fcn.10001505
push 0xc8
lea esi, [edi + 0xd0]
call fcn.10001271
lea eax, [ebp - 8]
push eax
push ebx
push edi
push 0x10001c99
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0xe0], eax
pop esi
pop ebx
leave
ret
Function at 0x10001842
Capabilities:
Create http request
Create thread

Disassembly:
push 0x10
mov eax, 0x1000ff8c
call fcn.1000ee56
mov eax, dword [0x100161a0]
inc dword [0x100161a0]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 8]
lea esi, [ebx + 0xc]
mov edi, esi
mov dword [ebx + 0xcc], ebx
mov dword [ebx + 0xd8], ebx
call fcn.100025c4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
add eax, 8
lea edi, [esi + 8]
mov dword [esi + 4], ecx
call fcn.100025c4
mov eax, dword [ebp + 8]
add eax, 0xc
lea edi, [esi + 0xc]
call fcn.100025c4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
add eax, 0x14
lea edi, [esi + 0x14]
mov dword [esi + 0x10], ecx
call fcn.100025c4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
add eax, 0x1c
lea edi, [esi + 0x1c]
mov dword [esi + 0x18], ecx
mov dword [ebp - 0x14], eax
call fcn.100025c4
mov eax, dword [ebp + 8]
add eax, 0x20
lea edi, [esi + 0x20]
mov dword [ebp - 0x18], eax
call fcn.100025c4
mov esi, dword [ebp + 8]
xor edi, edi
add esi, 0x14
mov dword [ebx + 0xb8], edi
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
je 0x1000193c
mov eax, dword [0x10016cfc]
mov ecx, 0x10016cfc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], edi
push dword [eax + 0x18]
lea eax, [ebp - 0x10]
push dword [esi]
push str._s:_d
call fcn.10004186
mov esi, dword [ebp - 0x10]
mov eax, dword [ebx + 0x14]
add esp, 0xc
push edi
push edi
push esi
push 3
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
or dword [ebp - 4], 0xffffffff
mov dword [ebx + 0xbc], eax
lea eax, [esi - 0x10]
call fcn.10001068
jmp 0x10001950
mov eax, dword [ebx + 0x14]
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebx + 0xbc], eax
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
mov dword [ebx + 0xc0], edi
mov ecx, dword [eax]
cmp dword [ecx - 0xc], edi
je 0x10001976
mov eax, ecx
push dword [eax - 0xc]
push eax
push 0x2b
push dword [ebx + 0xbc]
call esi
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], edi
je 0x10001990
mov eax, ecx
push dword [eax - 0xc]
push eax
push 0x2c
push dword [ebx + 0xbc]
call esi
push 0xc8
lea esi, [ebx + 0xc4]
call fcn.10001271
lea eax, [ebp - 0x1c]
push eax
push edi
push ebx
push 0x10001bc1
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0xdc], eax
mov dword [ebx + 0xe0], edi
call fcn.1000eebf
ret 4