joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403530
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x40353b
xor eax, eax
ret
push ebp
mov ebp, dword [esp + 0x10]
cmp ebp, 8
push esi
mov esi, dword [esp + 0xc]
push edi
not esi
jl 0x40363a
mov edi, ebp
shr edi, 3
mov eax, edi
neg eax
lea ebp, [ebp + eax*8]
mov edi, edi
xor edx, edx
mov dl, byte [ecx]
mov eax, esi
shr eax, 8
xor edx, esi
and edx, 0xff
mov esi, dword [edx*4 + 0x40b420]
xor edx, edx
mov dl, byte [ecx + 1]
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x40b420]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x40b420]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x40b420]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x40b420]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x40b420]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x40b420]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x40b420]
shr eax, 8
xor eax, esi
inc ecx
dec edi
mov esi, eax
jne 0x403560
test ebp, ebp
je 0x40365b
mov edi, edi
xor eax, eax
mov al, byte [ecx]
xor eax, esi
and eax, 0xff
mov edi, dword [eax*4 + 0x40b420]
shr esi, 8
xor esi, edi
inc ecx
dec ebp
jne 0x403640
pop edi
mov eax, esi
pop esi
not eax
pop ebp
ret

Function at 0x403670
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov edx, 0x400
cmp eax, edx
jae 0x40367f
mov edx, eax
xor eax, eax
test edx, edx
jbe 0x403699
mov ecx, dword [esp + 4]
lea esp, [esp]
xor byte [eax + ecx], 8
inc eax
cmp eax, edx
jb 0x403690
mov eax, 1
ret
Function at 0x403ce8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00403fd0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x403d83
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40e798]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x403d83
cmp eax, 1
je 0x403da4
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x403d83
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x403d50
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x403d7f
xor eax, eax
inc eax
jmp 0x403dc3
cmp edi, eax
jae 0x403d87
xor eax, eax
jmp 0x403dc3
cmp eax, esi
jae 0x403d8e
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40e798]
jmp 0x403da7
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404cbf
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40b8f8
call fcn.0040504c
mov edi, 0x94
mov eax, edi
call fcn.00403fd0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40e798], ecx
mov eax, dword [esi + 4]
mov dword [0x40e7a4], eax
mov edx, dword [esi + 8]
mov dword [0x40e7a8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40e79c], esi
cmp ecx, 2
je 0x404d1f
or esi, 0x8000
mov dword [0x40e79c], esi
shl eax, 8
add eax, edx
mov dword [0x40e7a0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x404d5a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404d5a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x404d72
cmp eax, 0x20b
je 0x404d5f
mov dword [ebp - 0x1c], esi
jmp 0x404d86
cmp dword [ecx + 0x84], 0xe
jbe 0x404d5a
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x404d80
cmp dword [ecx + 0x74], 0xe
jbe 0x404d5a
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00405782
pop ecx
test eax, eax
jne 0x404db2
cmp dword [0x40e784], 1
jne 0x404d9f
call fcn.004087b0
push 0x1c
call fcn.00408639
push 0xff
call fcn.004055cd
pop ecx
pop ecx
call fcn.00408f59
mov dword [ebp - 4], esi
call fcn.00408dae
test eax, eax
jge 0x404dcb
push 0x1b
call fcn.00404c9a
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40fdd8], eax
call fcn.00408c8c
mov dword [0x40e77c], eax
call fcn.00408bea
test eax, eax
jge 0x404df1
push 8
call fcn.00404c9a
pop ecx
call fcn.004089b7
test eax, eax
jge 0x404e02
push 9
call fcn.00404c9a
pop ecx
push 1
call fcn.004055fd
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x404e18
push eax
call fcn.00404c9a
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040895a
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x404e39
movzx eax, word [ebp - 0x40]
jmp 0x404e3c
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00402f90
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x404e5a
push edi
call fcn.00405728
call fcn.0040574a
jmp 0x404e8c
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00405087
ret
Function at 0x405667
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40e7d8], esi
push edi
jne 0x405687
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40e7d4], esi
mov byte [0x40e7d0], al
jne 0x4056ed
mov ecx, dword [0x40fdcc]
test ecx, ecx
je 0x4056ce
mov eax, dword [0x40fdc8]
sub eax, 4
cmp eax, ecx
jmp 0x4056c7
mov eax, dword [eax]
test eax, eax
je 0x4056b9
call eax
mov eax, dword [0x40fdc8]
sub eax, 4
cmp eax, dword [0x40fdcc]
mov dword [0x40fdc8], eax
jae 0x4056b1
mov eax, 0x40e03c
mov esi, 0x40e044
cmp eax, esi
mov edi, eax
jae 0x4056ed
mov eax, dword [edi]
test eax, eax
je 0x4056e6
call eax
add edi, 4
cmp edi, esi
jb 0x4056de
mov eax, 0x40e048
mov esi, 0x40e050
cmp eax, esi
mov edi, eax
jae 0x40570c
mov eax, dword [edi]
test eax, eax
je 0x405705
call eax
add edi, 4
cmp edi, esi
jb 0x4056fd
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x405726
push dword [ebp + 8]
mov dword [0x40e7d8], 1
call fcn.004055cd
pop ebp
ret
Function at 0x406311
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40633f
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x406346
cmp ebx, dword [eax + 4]
jae 0x406346
xor eax, eax
jmp 0x406536
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x406357
xor eax, eax
inc eax
jmp 0x406535
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40636d
cmp ecx, edx
jae 0x4064b2
cmp dword [eax + 4], 0
je 0x406376
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40635e
cmp dword [ebp + 8], 0
je 0x406398
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4064b2
cmp eax, esi
jae 0x4064b2
mov eax, dword [0x40e7e8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4063bd
cmp dword [esi*4 + 0x40e7f0], edi
je 0x4064b6
inc esi
cmp esi, eax
jl 0x4063ab
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406532
cmp dword [ebp - 8], 0x1000000
jne 0x406532
test byte [ebp - 0xc], 0xcc
je 0x40643b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x406532
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x406532
cmp word [eax + 0x18], 0x10b
jne 0x406532
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x406532
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40643b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40643b
test byte [ecx + 0x27], 0x80
jne 0x4064b2
push 1
push 0x40e830
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40634f
mov ecx, dword [0x40e7e8]
test ecx, ecx
mov edx, ecx
jle 0x40646f
lea eax, [ecx*4 + 0x40e7ec]
cmp dword [eax], edi
je 0x40646f
dec edx
sub eax, 4
test edx, edx
jg 0x406463
test edx, edx
jne 0x4064a0
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40647c
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x406494
lea eax, [edx*4 + 0x40e7f0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x406482
cmp ecx, 0x10
jge 0x4064a0
inc ecx
mov dword [0x40e7e8], ecx
push 0
push 0x40e830
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40634f
xor eax, eax
jmp 0x406535
test esi, esi
jle 0x40634f
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40e830
call ebx
test eax, eax
jne 0x40634f
cmp dword [esi*4 + 0x40e7f0], edi
je 0x40650c
mov eax, dword [0x40e7e8]
lea esi, [eax - 1]
test esi, esi
jl 0x4064fa
cmp dword [esi*4 + 0x40e7f0], edi
je 0x4064f6
dec esi
jns 0x4064ea
test esi, esi
jge 0x40650a
cmp eax, 0x10
jge 0x406505
inc eax
mov dword [0x40e7e8], eax
lea esi, [eax - 1]
jmp 0x40650c
je 0x406524
xor ecx, ecx
test esi, esi
jl 0x406524
lea eax, [ecx*4 + 0x40e7f0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x406512
push 0
push 0x40e830
call ebx
jmp 0x40634f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408639
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40e090]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40e210]
je 0x40866e
inc eax
cmp eax, 0x13
jb 0x40865f
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40e210]
jne 0x408794
mov eax, dword [0x40e784]
cmp eax, 1
je 0x40876c
cmp eax, edx
jne 0x40869e
cmp dword [0x40e0d4], 1
je 0x40876c
cmp ecx, 0xfc
je 0x408794
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4086d4
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004090e0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00406aa0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x408708
mov eax, edi
push eax
call fcn.00406aa0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b93c
push edi
call fcn.00403a60
add esp, 0x10
push edi
call fcn.00406aa0
push dword [esi + 0x40e214]
mov ebx, eax
call fcn.00406aa0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00403fd0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004090e0
push edi
push ebx
call fcn.004090f0
push 0x40b938
push ebx
call fcn.004090f0
push dword [esi + 0x40e214]
push ebx
call fcn.004090f0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00408fe1
add esp, 0x2c
jmp 0x408794
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40e214]
push dword [esi]
call fcn.00406aa0
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00403bb5
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x408fe1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40e96c], ebx
push esi
push edi
jne 0x409061
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40909c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40c57c
push edi
call esi
test eax, eax
mov dword [0x40e96c], eax
je 0x40909c
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40e970], eax
call esi
cmp dword [0x40e798], 2
mov dword [0x40e974], eax
jne 0x409061
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40e97c], eax
je 0x409061
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40e978], eax
mov eax, dword [0x40e978]
test eax, eax
je 0x4090a6
call eax
test eax, eax
je 0x40908d
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40e97c]
test eax, eax
je 0x40908d
test byte [ebp - 8], 1
jne 0x4090a6
cmp dword [0x40e7a4], 4
jb 0x4090a0
or byte [ebp + 0x12], 0x20
jmp 0x4090c5
xor eax, eax
jmp 0x4090d5
or byte [ebp + 0x12], 4
jmp 0x4090c5
mov eax, dword [0x40e970]
test eax, eax
je 0x4090c5
call eax
mov ebx, eax
test ebx, ebx
je 0x4090c5
mov eax, dword [0x40e974]
test eax, eax
je 0x4090c5
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40e96c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4092ed
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x40fa44]
mov eax, dword [0x40e090]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x4094b3
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40fa60]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x4094b3
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x409357
xor eax, eax
jmp 0x4094c7
test al, 0x20
je 0x409368
push 2
push edi
push edi
push ecx
call fcn.00409c49
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40943d
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x409484
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x4093ca
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4093bb
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x40939d
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40940a
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x409416
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x409391
jmp 0x409418
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x4094ae
cmp dword [ebp + 0x3a4], edi
je 0x409484
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x409476
mov dword [0x40e790], eax
jmp 0x4094ba
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409468
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x409418
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x409418
push dword [ebp + 0x3a4]
call fcn.004091d8
pop ecx
jmp 0x4094c4
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40949c
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x409350
mov dword [0x40e78c], 0x1c
mov dword [0x40e790], edi
jmp 0x4094c4
sub eax, dword [ebp - 0x7c]
jmp 0x4094c7
and dword [0x40e790], 0
mov dword [0x40e78c], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00403bb5
add ebp, 0x39c
leave
ret
Function at 0x102a2bc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x102a2d8
test al, 0x10
jne 0x102a2d8
xor eax, eax
inc eax
jmp 0x102a2da
xor eax, eax
pop ebp
ret 4

Function at 0x102f977
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, eax
mov dword [ebp - 0x14], eax
push esi
mov esi, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
push edi
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], eax
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
shr esi, 1
xor ecx, ecx
and ebx, 1
and esi, 1
stosd dword es:[edi], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ebx
mov eax, 0x102f823
cmp dword [ebp + 8], ecx
jne 0x102f9bf
mov eax, 0x102f7ea
lea edx, [ebp + 0x10]
push edx
push ecx
lea edx, [ebp - 0x14]
push edx
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x102f9f0
call fcn.0108edc3
push eax
push 0x1c0012f
mov dword [ebp - 4], eax
call fcn.010893e6
jmp 0x102fa78
push 0
push esi
push ebx
push dword [ebp + 8]
call fcn.0102f862
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, 0x1f4
jmp 0x102fa12
cmp dword [ebp - 4], 0x102
jne 0x102fa62
push ebx
push dword [ebp + 0xc]
call edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0102f862
cmp dword [ebp - 4], 0
jne 0x102fa09
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x102fa52
call fcn.0108edc3
push eax
mov dword [ebp - 4], eax
push 0x1d6012f
jmp 0x102fa6a
cmp dword [ebp - 4], 0
je 0x102fa6f
push dword [ebp - 4]
push 0x1d9012f
jmp 0x102fa6a
push dword [ebp - 4]
push 0x1e2012f
call fcn.010893e6
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1031719
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x10cf1f0]
neg eax
push ebx
sbb eax, eax
push esi
add eax, 0x8b9
push eax
call fcn.01088aa0
push eax
push 0x1002c78
call fcn.01099014
mov eax, dword [0x10cf1f0]
neg eax
pop ecx
sbb eax, eax
pop ecx
and eax, 0xff000000
add eax, 0x1000000
push eax
xor ebx, ebx
push ebx
push ebx
push ebx
push 0x1002c50
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x1031784
call fcn.0108edc3
mov esi, eax
push esi
push 0x34b0140
call fcn.010893e6
jmp 0x10318c7
mov ecx, dword [0x10cf1f0]
push edi
mov edi, dword [ebp + 8]
neg ecx
sbb ecx, ecx
push ebx
and ecx, 0x80000000
or ecx, 0x1000
push ecx
push 0xffffffffffffffff
push 0x1002c34
push edi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp + 8], eax
cmp eax, ebx
jne 0x10317d7
call fcn.0108edc3
mov esi, eax
cmp esi, ebx
je 0x10317d7
push 0x80072ee6
push esi
push 0x35e0140
push edi
call fcn.0108933a
jmp 0x1031877
cmp dword [0x10cf1f0], ebx
je 0x10317fb
cmp dword [0x10cf1f4], ebx
je 0x103181e
push edi
call fcn.010309bf
mov esi, eax
cmp esi, ebx
je 0x103181e
push esi
push 0x3660140
jmp 0x1031872
cmp dword [0x10cf1f4], ebx
je 0x103181e
cmp dword [ebp + 8], ebx
je 0x103181e
push dword [ebp + 8]
call fcn.01030e62
mov esi, eax
cmp esi, ebx
je 0x103181e
push esi
push 0x36e0140
jmp 0x1031872
push dword [ebp + 0xc]
push edi
push dword [ebp + 8]
call fcn.0103111d
mov esi, eax
cmp esi, ebx
je 0x103183b
push esi
push 0x3720140
call fcn.010893e6
cmp dword [0x10cf1f0], ebx
jne 0x1031868
cmp dword [0x10cf1f4], ebx
je 0x1031868
push edi
call fcn.010309bf
mov edi, eax
cmp edi, ebx
je 0x1031862
push edi
push 0x3770140
call fcn.010893e6
cmp esi, ebx
jne 0x103186c
mov esi, edi
cmp esi, ebx
je 0x1031877
push esi
push 0x37d0140
call fcn.010893e6
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp + 8], ebx
je 0x10318a5
push dword [ebp + 8]
call edi
test eax, eax
jne 0x10318a5
call fcn.0108edc3
mov ebx, eax
push ebx
push 0x3850140
call fcn.010893e6
test esi, esi
jne 0x10318a3
mov esi, ebx
xor ebx, ebx
push dword [ebp - 4]
call edi
test eax, eax
jne 0x10318c6
call fcn.0108edc3
mov edi, eax
push edi
push 0x3910140
call fcn.010893e6
cmp esi, ebx
jne 0x10318c6
mov esi, edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x1033e4c
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
push ebx
push esi
push edi
xor esi, esi
mov dl, 1
movzx eax, si
mov bl, al
and bl, dl
movzx edi, bl
neg edi
sbb edi, edi
and edi, ecx
shr ax, 1
xor di, ax
movzx eax, di
mov bl, al
and bl, dl
movzx edi, bl
neg edi
sbb edi, edi
and edi, ecx
shr ax, 1
xor di, ax
movzx eax, di
mov bl, al
and bl, dl
movzx edi, bl
neg edi
sbb edi, edi
and edi, ecx
shr ax, 1
xor di, ax
movzx eax, di
mov bl, al
and bl, dl
movzx edi, bl
neg edi
sbb edi, edi
and edi, ecx
shr ax, 1
xor di, ax
movzx eax, di
mov bl, al
and bl, dl
movzx edi, bl
neg edi
sbb edi, edi
and edi, ecx
shr ax, 1
xor di, ax
movzx eax, di
mov bl, al
and bl, dl
movzx edi, bl
neg edi
sbb edi, edi
and edi, ecx
shr ax, 1
xor di, ax
movzx eax, di
mov bl, al
and bl, dl
movzx edi, bl
neg edi
sbb edi, edi
and edi, ecx
shr ax, 1
xor di, ax
movzx eax, di
mov bl, al
and bl, dl
movzx edi, bl
neg edi
sbb edi, edi
shr ax, 1
and edi, ecx
xor di, ax
mov eax, dword [ebp + 8]
mov word [eax + esi*2], di
inc esi
cmp esi, 0x100
jl 0x1033e5e
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1033f2e
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 0x14], 0
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
movzx eax, word [edx]
je 0x1033f62
push esi
push edi
movzx edi, byte [ecx]
movzx esi, al
xor esi, edi
mov edi, dword [ebp + 8]
shr ax, 8
xor ax, word [edi + esi*2]
inc ecx
dec dword [ebp + 0x14]
movzx eax, ax
jne 0x1033f44
pop edi
pop esi
mov word [edx], ax
pop ebp
ret 0x10