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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x40c612
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40c619
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40c608
mov eax, 1
add ebx, ebx
jne 0x40c62b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40c620
jne 0x40c63c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c620
xor ecx, ecx
sub eax, 3
jb 0x40c650
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40c6c2
mov ebp, eax
add ebx, ebx
jne 0x40c65b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40c668
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40c68c
inc ecx
add ebx, ebx
jne 0x40c678
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40c66d
jne 0x40c689
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c66d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40c6ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40c69d
jmp 0x40c60e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40c6ac
add edi, ecx
jmp 0x40c60e
pop esi
mov edi, esi
mov ecx, 0x40
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40c6ca
cmp byte [edi], 4
jne 0x40c6ca
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 0x40c6cf
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40c747
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd1b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd1ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40c6fc
mov ecx, edi
jns 0x40c72b
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 + 0xd1f0]
or eax, eax
je 0x40c741
mov dword [ebx], eax
add ebx, 4
jmp 0x40c719
call dword [esi + 0xd200]
mov ebp, dword [esi + 0xd1f4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
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 0x40c77b
sub esp, 0xffffff80
jmp 0x401424
Function at 0x10003001
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, dword [esi + 0x3c]
add ebx, esi
push 0x40
lea eax, [ebx + 0x18]
push 0x3000
push dword [eax + 0x38]
mov dword [ebp - 4], ecx
push 0
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], eax
call dword [0x505070]
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x1000316b
push 0x40
mov edx, esi
mov ecx, edi
call 0x10005240
mov esi, dword [edi + 0x3c]
movzx eax, word [ebx + 0x14]
add esi, edi
push eax
mov edx, ebx
mov ecx, esi
call 0x10005240
mov eax, dword [ebp - 8]
lea ebx, [esi + 0x18]
movzx ecx, word [eax + 0x14]
movzx esi, word [esi + 0x14]
lea edx, [eax + 0x18]
movzx eax, word [eax + 6]
add ecx, edx
add esi, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x100030c9
mov ebx, ecx
sub ebx, esi
mov edi, eax
push 0x28
lea edx, [ebx + esi]
mov ecx, esi
call 0x10005240
add esi, 0x28
dec edi
jne 0x10003087
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
test eax, eax
je 0x100030c9
lea esi, [ecx + 0x14]
mov ebx, eax
mov edx, dword [esi]
mov ecx, dword [esi - 8]
push dword [esi - 4]
add edx, dword [ebp + 8]
add ecx, edi
call 0x10005240
lea esi, [esi + 0x28]
dec ebx
jne 0x100030ae
mov ebx, dword [ebp - 0xc]
push ebx
mov edx, edi
mov ecx, edi
call fcn.10001f85
push dword [ebp - 0x18]
mov ecx, dword [0x506438]
mov edx, edi
call fcn.10001ee1
mov edx, dword [ebx + 0x60]
test edx, edx
je 0x10003168
cmp dword [ebx + 0x64], 0
je 0x10003168
xor eax, eax
lea ecx, [edx + edi]
inc eax
sub eax, dword [ecx + 0x10]
cmp eax, dword [ecx + 0x14]
jae 0x10003110
push eax
push ecx
push dword [ebx + 0x64]
mov ecx, edi
call fcn.10001eb3
mov ecx, eax
xor eax, eax
jmp 0x10003114
xor eax, eax
mov ecx, eax
mov edx, dword [ebp - 4]
push 2
mov dword [edx + 4], ecx
mov edx, dword [ebx + 0x60]
pop ecx
lea esi, [edx + edi]
sub ecx, dword [esi + 0x10]
cmp ecx, dword [esi + 0x14]
jae 0x1000313d
push ecx
push esi
push dword [ebx + 0x64]
mov ecx, edi
call fcn.10001eb3
mov ecx, eax
xor eax, eax
jmp 0x1000313f
mov ecx, eax
mov edx, dword [ebp - 4]
push 3
mov dword [edx + 8], ecx
mov edx, dword [ebx + 0x60]
pop ecx
lea esi, [edx + edi]
sub ecx, dword [esi + 0x10]
cmp ecx, dword [esi + 0x14]
jae 0x10003162
push ecx
push esi
push dword [ebx + 0x64]
mov ecx, edi
call fcn.10001eb3
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x53f1b2
Capabilities:
Encode data using xor

Disassembly:
loop 0x53f1f4
xchg edx, eax
push dword [ebp + 0x71]
xchg ebx, eax
sbb edx, dword [eax + 0x25]
jecxz 0x53f1ce
and byte [ebx], 0x60
std
add esp, esi
push ebx
or dh, dl
imul esp, dword [edx - 0x5c91176e], 0x18
ret 0xb363
invalid

Function at 0x55365e
Capabilities:
Encode data using xor

Disassembly:
mov dl, pe_nt_image_headers32
push edi
mov byte [ebx - 0x63de4b6d], dl
and eax, 0x81bef383
pop esp
invalid
xor eax, 0xde409151
loopne 0x5535b8
or eax, 0x6dc3b242
mov dword [0x75ded3f5], eax
mov edi, 0xb431314f
int 0x92
ret 0xff20
sub dword [eax], eax
test esp, edi
loop 0x5535f4
xor dword [ecx + 0x1330f631], eax
daa
lahf
ret

Function at 0x60b00e
Capabilities:
Encode data using xor

Disassembly:
fld xword [eax + 0x30]
inc ebp
sbb dword [eax + 0x3a], edx
mov esi, 0x90be532
test al, 0x96
stc
pop ds
xor edi, dword [0x6f707fc8]
add eax, 0x60c11ae3
fist word [edi - 0x46]
jns 0x60b01c
push ds
pushal
mov byte [0xb1011756], al
xor dword [esi + 0x39], ebx
jne 0x60b030
rcl byte [esi - 0x76], 0x3f
dec esp
push ecx
and ecx, esi
fcom qword [edx]
imul ebp, dword [ebp - 0x4c608435], 0x6ea33723
mov ecx, dword [ebx]
cld
inc edi
jge 0x60b03e
lodsd eax, dword [esi]
retf
adc ebp, dword [eax + 0x2fa5ea3c]
int1
inc edi
push esp
scasb al, byte es:[edi]
jae 0x60b081
pop es
test al, 8
xor byte [ebp + 0x4b5ca307], 0xc5
mov byte [0x6833a7b2], al
pop ecx
mov ch, 7
mov dword [0xa2c54b5c], eax
mov dl, 0xa7
xor ebp, dword [eax + 0x59]
ret
ja 0x60b045
sbb edi, esi
mov esp, 0x90cdcd60
jecxz 0x60b0b0
xor cl, byte [eax - 0x1e3ea724]
pop esp
xor bx, dx
sub dword [ecx + 0x63], ebx
push esp
test byte [ecx - 0x20], bl
and dword [esi - 0x6525ec70], esi
inc ecx
mov dh, 0xf8
sbb byte [esi + 0x6d], cl
cwde
jle 0x60b065
and al, 0x79
xor esp, dword [esi*4 - 0x4fbad791]
and al, 0xb5
outsd dx, dword [esi]
sub byte [ebp - 0x50], al
and al, 0x55
inc eax
adc byte [ecx], dl
rcr edx, cl
adc eax, 0x1b7aad28
enter 0xffffffffffffe5ac, 0xffffffffffffffde
pushal
ljmp 0xf80b
Function at 0x64e4ed
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x659368
cmp edx, dword [eax]
je 0x64e50f
add eax, 8
inc ecx
cmp eax, 0x6593f8
jl 0x64e500
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x659368]
jne 0x64e63d
mov eax, dword [0xa5ccc0]
cmp eax, 1
je 0x64e617
test eax, eax
jne 0x64e540
cmp dword [0x659294], 1
je 0x64e617
cmp edx, 0xfc
je 0x64e63d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x64e577
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0064eed0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0064f360
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x64e5ba
lea eax, [ebp - 0x1a4]
push eax
call fcn.0064f360
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65409c
push edi
call fcn.00651230
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0064eed0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0064eee0
lea eax, [ebp - 0xa0]
push 0x65407c
push eax
call fcn.0064eee0
push dword [esi + 0x65936c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0064eee0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.006511a4
add esp, 0x2c
pop edi
jmp 0x64e63d
lea eax, [ebp + 8]
lea esi, [esi + 0x65936c]
push 0
push eax
push dword [esi]
call fcn.0064f360
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x402c00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x43d524]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov esi, edx
test ebx, ebx
jne 0x402c2c
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004178da
mov esp, ebp
pop ebp
ret
push edi
push 0x44
xor edi, edi
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.0041a3f0
add esp, 0xc
mov dword [ebp - 0x48], 0x44
mov eax, 1
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push edi
push edi
push 0x20
push edi
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x402c92
test esi, esi
je 0x402c7d
movups xmm0, xmmword [ebp - 0x58]
movups xmmword [esi], xmm0
jmp 0x402c8d
push dword [ebp - 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x54]
call esi
mov edi, 1
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004178da
mov esp, ebp
pop ebp
ret
Function at 0x403490
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x43d524]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], eax
movaps xmmword [esp + 0x20], xmm0
call fcn.004033b0
mov eax, dword [esp + 0x14]
movaps xmm0, xmmword [esp + 0x20]
push esi
movq qword [esp + 0x34], xmm0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 1
mov dword [eax + 0x24], 0
mov dword [eax + 0x10], 0
lea eax, [esp + 0x34]
push 0
psrldq xmm0, 8
push eax
movd dword [esp + 0x44], xmm0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push 0
mov dword [ecx + 0x14], eax
lea eax, [esp + 0x38]
push 0
push eax
call esi
push dword [esp + 0x18]
mov edi, dword [esp + 0x18]
push 0
push 0
mov dword [edi + 0x18], eax
lea eax, [esp + 0x3c]
push eax
call esi
mov ecx, dword [edi + 0x14]
mov dword [edi + 0x1c], eax
test ecx, ecx
je 0x40362d
cmp dword [edi + 0x18], 0
je 0x40362d
test eax, eax
je 0x40362d
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x1c]
push 0x2000
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4035a5
mov dword [edi + 0xc], 0
mov eax, dword [edi]
test eax, eax
jne 0x4035c2
mov dword [edi + 0xc], eax
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40363e
push eax
jmp 0x403636
cmp dword [edi + 0xc], 1
jne 0x4035d7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
jmp 0x4035ae
push 0x2000
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 4], eax
test eax, eax
jne 0x403600
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
jmp 0x4035ae
cmp dword [edi + 0xc], 0
mov dword [edi + 8], 0x2000
mov dword [edi + 0x10], 1
je 0x40361b
mov ecx, edi
call fcn.00403660
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [edi + 0x20], 0x1770
jmp 0x4035b7
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x40363e
push ecx
call fcn.00403d9a
add esp, 4
mov ecx, dword [esp + 0x3c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.004178da
mov esp, ebp
pop ebp
ret 0x24
Function at 0x406362
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d019
mov eax, dword fs:[0]
push eax
mov eax, 0x201c
call fcn.00418080
mov eax, dword [0x43d524]
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 edx, dword [ebp + 0x10]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x2020], edx
mov dword [ebp - 0x2028], ebx
cmp dword [ecx + 0x58], ebx
je 0x406499
push ebx
push eax
call fcn.004064e8
mov ebx, eax
test ebx, ebx
jne 0x4063ca
push esi
jmp 0x4064c1
call fcn.004074a7
push eax
lea ecx, [ebp - 0x2014]
call fcn.00401f80
xor ecx, ecx
lea eax, [ebp - 0x2018]
push eax
push ecx
lea eax, [ebp - 0x201c]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x2020]
mov dword [ebp - 0x201c], ecx
push ebx
mov dword [ebp - 0x2018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x2024], eax
test eax, eax
jne 0x406458
mov eax, dword [ebp - 0x2018]
lea ecx, [ebp - 0x2014]
shr eax, 1
push eax
call fcn.00401e40
lea ecx, [ebp - 0x2018]
push ecx
push eax
lea eax, [ebp - 0x201c]
push eax
push 0
push dword [ebp - 0x2020]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x2014]
mov dword [ebp - 0x2024], eax
call fcn.0040660c
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x2024], 0
jne 0x406486
mov esi, dword [ebp - 0x2014]
add esi, 0xfffffff0
push esi
call fcn.00401fb0
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.00401570
jmp 0x4064c8
push esi
mov ecx, edi
call fcn.00404643
mov ecx, dword [ebp - 0x2014]
lea ecx, [ecx - 0x10]
jmp 0x40647f
test esi, esi
jne 0x4064a2
mov esi, 0x4356f8
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x2010]
push 0x1000
push ecx
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2010]
push eax
mov ecx, edi
call fcn.00404643
mov eax, edi
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.004178da
mov esp, ebp
pop ebp
ret 0x10
Function at 0x413299
Capabilities:
Get disk information

Disassembly:
push 0x268
mov eax, 0x42da52
call fcn.00417f15
mov esi, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp + 0xc]
test esi, esi
mov edi, dword [ebp + 0x10]
setne al
mov dword [ebp - 0x264], esi
test eax, eax
jne 0x4132c7
call fcn.00407744
xor eax, eax
test ebx, ebx
setne al
test eax, eax
je 0x4132c2
lea eax, [ebp - 0x268]
push eax
push esi
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x41330f
push 0xffffffffffffffff
push ebx
push 0x104
push esi
call fcn.0041f1ac
push eax
call fcn.00404c33
add esp, 0x14
push ebx
push edi
call fcn.0041326c
xor eax, eax
jmp 0x413432
cmp eax, 0x104
jb 0x41332c
test edi, edi
je 0x413308
push ebx
lea ecx, [edi + 0x10]
mov dword [edi + 8], 3
call fcn.004025f0
jmp 0x413308
call fcn.004074a7
push eax
lea ecx, [ebp - 0x26c]
call fcn.00401f80
and dword [ebp - 4], 0
lea eax, [ebp - 0x26c]
push eax
push esi
call fcn.00413222
mov esi, dword [ebp - 0x26c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x413427
xor ecx, ecx
lea eax, [ebp - 0x270]
push ecx
push ecx
push eax
lea eax, [ebp - 0x274]
push eax
push ecx
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x413397
push ebx
push edi
call fcn.0041326c
lea ecx, [esi - 0x10]
call fcn.00401570
jmp 0x413308
mov eax, dword [ebp - 0x270]
test al, 2
jne 0x4133b3
push dword [ebp - 0x264]
call dword [sym.imp.USER32.dll_CharUpperW]
mov eax, dword [ebp - 0x270]
test al, 4
jne 0x413427
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x413427
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x413383
cmp eax, dword [ebp - 0x264]
jbe 0x413383
lea eax, [ebp - 0x234]
push eax
call fcn.0041ed07
mov edx, dword [ebp - 0x268]
sub edx, dword [ebp - 0x264]
sar edx, 1
pop ecx
add eax, edx
mov ecx, 0x104
cmp eax, ecx
jge 0x41343a
lea eax, [ebp - 0x234]
sub ecx, edx
push eax
push ecx
push dword [ebp - 0x268]
call fcn.0041d037
push eax
call fcn.00404c33
add esp, 0x10
lea ecx, [esi - 0x10]
call fcn.00401570
xor eax, eax
inc eax
call fcn.00417ebf
ret 0xc
test edi, edi
je 0x41338a
push ebx
lea ecx, [edi + 0x10]
mov dword [edi + 8], 3
call fcn.004025f0
jmp 0x41338a

Function at 0x425d08
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004259c8
Function at 0x40630f
Capabilities:
Connect to http server
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov eax, 0x43b1fe
call fcn.00439f7c
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub esp, 0x2c
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov esi, edx
cmp eax, ebx
je 0x406452
cmp dword [ecx + 0x14], 0x10
jb 0x40633b
mov ecx, dword [ecx]
push ebx
push ebx
push 3
push ebx
push ebx
push 0x1bb
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x406452
cmp dword [edi + 0x14], 0x10
jb 0x406366
mov eax, dword [edi]
jmp 0x406368
mov eax, edi
push ebx
push 0xc03000
push ebx
push ebx
push ebx
push eax
push str.POST
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
mov dword [ebp + 8], edi
mov byte [ebp - 4], 1
cmp edi, ebx
jne 0x40639b
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x406452
push 0x3e
push str.Content_Type:_application_x_www_form_urlencoded_r_nAccept:___r_n
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
call fcn.004031b4
mov byte [ebp - 4], 2
cmp dword [esi + 0x14], 0x10
mov ecx, dword [esi + 0x10]
jb 0x4063c6
mov esi, dword [esi]
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x4063d2
lea eax, [ebp - 0x34]
push ecx
push esi
push dword [ebp - 0x24]
push eax
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x4063f1
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.004027c9
push edi
jmp 0x406445
mov edi, 0x20000
lea esi, [ebp - 0x18]
mov dword [ebp - 0x10], ebx
call fcn.0040576a
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x18]
cmp esi, ebx
jne 0x40640f
push ebx
jmp 0x406431
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push esi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x406430
push dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
push esi
call fcn.00403cd7
push esi
call fcn.0040da6f
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.004027c9
push dword [ebp + 8]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp + 0xc]
call esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
Function at 0x4069fb
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x43b1d4
call fcn.00439f7c
sub esp, 0x74
push ebx
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0040eb10
add esp, 0xc
push dword [ebp + 8]
mov dword [ebp - 0x80], edi
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.00407292
push str.__VERYSILENT
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], esi
call fcn.004072b4
mov eax, dword [ebp - 0x28]
push 2
xor ebx, ebx
pop ecx
inc eax
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call fcn.0040e021
mov edi, eax
pop ecx
cmp edi, esi
je 0x406a71
push ebx
push esi
push edi
call fcn.0040eb10
add esp, 0xc
jmp 0x406a73
xor edi, edi
cmp dword [ebp - 0x24], 8
mov eax, dword [ebp - 0x38]
jae 0x406a7f
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 0x28]
add ecx, ecx
push ecx
push eax
push edi
call fcn.0040ef90
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x406aba
cmp dword [ebp - 0x1c], 0xffffffff
je 0x406aba
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push edi
call fcn.0040da6f
pop ecx
push esi
push 1
lea ecx, [ebp - 0x38]
call fcn.0040579d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x406add
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
push ebx
xor eax, eax
push 0x206
mov word [ebp - 0x280], ax
xor ebx, ebx
lea eax, [ebp - 0x27e]
push ebx
push eax
call fcn.0040eb10
add esp, 0xc
push 0x104
lea eax, [ebp - 0x280]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
test eax, eax
jne 0x406b25
xor al, al
jmp 0x406bf9
push esi
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406bf6
push 0x39
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.0040eb10
add esp, 0xc
push 2
push ebx
push 0xffffffffffffffc8
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push ebx
lea eax, [ebp - 4]
push eax
push 0x38
lea eax, [ebp - 0x78]
push eax
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x78], 0x44414544
jne 0x406bf6
cmp dword [ebp - 0x74], 0x46454542
jne 0x406bf6
push edi
xor eax, eax
mov byte [ebp - 0x18], bl
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x18]
push 0x11
push eax
call fcn.0040e320
mov ecx, dword [ebp + 8]
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
call fcn.0040561b
push 8
pop ecx
xor eax, eax
mov byte [ebp - 0x3c], bl
lea edi, [ebp - 0x3b]
rep stosd dword es:[edi], eax
push 0x10
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x3c]
push 0x11
push eax
call fcn.0040e320
mov ecx, dword [ebp + 0xc]
add esp, 0x10
lea eax, [ebp - 0x3c]
push eax
call fcn.0040561b
mov al, 1
pop edi
jmp 0x406bf8
xor al, al
pop esi
pop ebx
leave
ret 8