joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013120
Capabilities:
Check for time delay via gettickcount
Delete file

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x208
cmp eax, 1
push ebx
push esi
push edi
jne 0x100132b8
push 0x37a
push str.Emlla_b_gkwase
call fcn.10012d60
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
call esi
mov ebx, dword [esp + 0x224]
add esp, 0xc
push 0x104
push 0x10020e50
push ebx
call dword [0x10020e30]
push 0x30
call esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 4
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0x104
push eax
push 0x1001e774
call dword [0x10020e34]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
push 0x1001e774
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x10020e50
mov edx, ecx
mov esi, edi
mov edi, 0x1001e774
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x100131fd
mov dword [0x10020d10], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x10020d00], eax
call fcn.1000b130
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x208
ret 0xc
push str.Glable__Wait
push 0
push 0
push 0
call dword [0x10020e38]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
call fcn.1000a1e0
push 0x1001e774
call fcn.10012040
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 4
push 0x1001e774
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, 0xb
mov esi, str._SystemRoot_System32_svchost.exe__k_imgsvc
lea edi, [esp + 0x110]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x36
lea edi, [esp + 0x13c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x110]
push eax
call fcn.100120d0
add esp, 4
call fcn.100123a0
call fcn.100125c0
push 0x1000
push 0x1001e774
call dword [0x10020e40]
push 0
push 0x1001e774
push 0x10020e50
call dword [0x10020e3c]
push 0x1001e774
call fcn.10012b30
add esp, 4
call fcn.10012220
call fcn.10012160
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x208
ret 0xc
Function at 0x10007cac
Capabilities:
Read file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push 2
push 0xffffffffffffffff
push 0xffffffffffffffea
push ebp
call fcn.10019b4a
mov ebx, edx
add esp, 0x10
mov esi, eax
test ebx, ebx
jl 0x10007e1f
jg 0x10007cdb
test esi, esi
jb 0x10007e1f
mov edi, dword [esp + 0x20]
push 0x16
push edi
push ebp
call fcn.10017328
add esp, 0xc
test eax, eax
js 0x10007e1f
movzx ecx, byte [edi + 3]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
cmp ecx, 0x6054b50
jne 0x10007d3d
push edi
call fcn.1000822e
pop ecx
test eax, eax
je 0x10007d34
push ebx
push esi
push edi
push ebp
call fcn.10019b4a
add esp, 0x10
mov esi, eax
mov ebx, edx
mov eax, esi
mov edx, ebx
jmp 0x10007e24
push 2
xor ebx, ebx
push ebx
push ebx
push ebp
call fcn.10019b4a
mov ebp, eax
add esp, 0x10
mov eax, edx
mov dword [esp + 0x14], eax
cmp eax, ebx
jl 0x10007e1f
jg 0x10007d66
cmp ebp, ebx
jb 0x10007e1f
mov ecx, 0x10015
cmp eax, ebx
jg 0x10007d7b
jl 0x10007d75
cmp ebp, ecx
jae 0x10007d7b
mov esi, ebp
mov ecx, eax
jmp 0x10007d7f
mov esi, ecx
mov ecx, ebx
mov eax, esi
neg eax
push 2
adc ecx, ebx
neg ecx
push ecx
push eax
push dword [esp + 0x28]
call fcn.10019b4a
add esp, 0x10
cmp edx, ebx
jl 0x10007e1f
jg 0x10007da5
cmp eax, ebx
jb 0x10007e1f
push 0x10015
call fcn.10019b4a
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10007e1f
push esi
push ebx
push dword [esp + 0x24]
call fcn.10017328
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
js 0x10007e18
lea edx, [ebx + eax]
lea esi, [edx - 0x16]
jmp 0x10007e14
cmp byte [esi], 0x50
jne 0x10007e13
movzx ecx, byte [esi + 3]
movzx eax, byte [esi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, 0x50
cmp ecx, 0x6054b50
jne 0x10007e13
movzx ecx, byte [esi + 0x15]
movzx eax, byte [esi + 0x14]
shl ecx, 8
or ecx, eax
lea eax, [esi + 0x16]
add eax, ecx
cmp eax, edx
je 0x10007e2b
dec esi
cmp esi, ebx
jae 0x10007dd4
push ebx
call fcn.10019b4a
pop ecx
or eax, 0xffffffff
or edx, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push 0x16
push esi
push edi
call fcn.1000a190
push ebx
call fcn.10019b4a
mov eax, dword [esp + 0x20]
add eax, ebx
sub eax, esi
mov esi, dword [esp + 0x24]
cdq
sub ebp, eax
push edi
sbb esi, edx
call fcn.1000822e
add esp, 0x14
test eax, eax
je 0x10007e6b
push esi
push ebp
push edi
push dword [esp + 0x28]
call fcn.10019b4a
add esp, 0x10
mov ebp, eax
mov esi, edx
mov eax, ebp
mov edx, esi
jmp 0x10007e24
Function at 0x10019b4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x10019b59
pop dword [ebp - 0x2c]
mov eax, 0x4e3b5472
sub eax, 0x3e39b919
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x8e0e5f3a
sub dword [ebp - 0x3c], 0x3fbc19ef
mov dword [ebp - 0x38], 0xaf25ed27
add dword [ebp - 0x38], 0x830d5f1e
mov dword [ebp - 0x34], 0x18154d87
sub dword [ebp - 0x34], 0xcbc90959
mov dword [ebp - 0x30], 0xd8cddaa6
add dword [ebp - 0x30], 0x2732255a
lea eax, [ebp - 0x3c]
push eax
mov eax, 0xfccd5b81
add eax, 0x1334f4cf
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xde0c8c46
sub dword [ebp - 0x3c], 0x699a22f0
mov dword [ebp - 0x38], 0x417ddead
add dword [ebp - 0x38], 0xffee82c8
mov dword [ebp - 0x34], 0xbb3af799
sub dword [ebp - 0x34], 0x57cb8b2d
mov dword [ebp - 0x30], 0xcd5d968f
add dword [ebp - 0x30], 0x32a26971
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x843f67fb
add eax, 0x8bc2e859
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x40ff4
push 0
call eax
mov ecx, 0xb0d95c84
sub ecx, 0xb0d907ae
xor edi, edi
add edi, eax
mov edx, 0x1a5afc7d
add edx, 0xf5a85d83
add edx, dword [ebp - 0x2c]
mov esi, 0xbe63b972
add esi, 0x6f4b5ec
sub dword [ebp - 8], ecx
mov ebx, dword [edx]
xor dword [ebp - 4], esi
add ebx, esi
xor dword [ebp - 0x28], ebx
mov dword [edi], ebx
add dword [ebp - 0x18], 0xd12bb755
add edi, 4
add edx, 0xe7e0da12
sub edx, 0xe7e0da0e
loop 0x10019c7d
add eax, 0x479bc9e6
sub eax, 0x479a83bb
mov ebx, eax
add eax, 0x1f8def09
add eax, 0xe07210fc
mov ecx, 0x353a4f5b
add ecx, 0xdac5b0a5
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x42404d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x42405c
pop dword [ebp - 0x4c]
mov eax, 0x42405c
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xe2b260eb
add dword [ebp - 0x5c], 0x6b9fe460
mov dword [ebp - 0x58], 0x750d613f
add dword [ebp - 0x58], 0xbd25eb06
mov dword [ebp - 0x54], 0x77e70bf3
sub dword [ebp - 0x54], 0x2b9ac7c5
mov dword [ebp - 0x50], 0xcdf2d7d1
sub dword [ebp - 0x50], 0xcdf2d7d1
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x9fd3198b
sub eax, 0x9f8fb7ab
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x76182282
sub dword [ebp - 0x5c], 0x1a5b92c
mov dword [ebp - 0x58], 0xef796f6
sub dword [ebp - 0x58], 0xcd8b3581
mov dword [ebp - 0x54], 0xe6e64c9c
add dword [ebp - 0x54], 0x7c891fd0
mov dword [ebp - 0x50], 0xa36e585f
add dword [ebp - 0x50], 0x5c91a7a1
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0xbccc9e69
add eax, 0x4376c3c7
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x40cc8
push 0
call eax
mov ecx, 0x72b05e0e
add ecx, 0x8d4fe109
mov edx, eax
mov ebx, 0xf88513bf
add ebx, 0x7c0b441
add ebx, dword [ebp - 0x4c]
mov esi, 0xadcd14d2
add dword [ebp - 4], 0x946be5eb
mov edi, dword [ebx]
xor edi, esi
xor dword [ebp - 0x10], edx
mov dword [edx], edi
sub dword [ebp - 0x20], 0x3e473af9
add edx, 0xaac020fc
sub edx, 0xaac020f8
add ebx, 4
loop 0x424173
add eax, 0x466b8292
add eax, 0xb9956c9d
mov ebx, eax
add eax, 5
mov ecx, 0xa42bb60b
add ecx, 0x5c1449f5
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x404350
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ebx, ecx
push edi
mov dword [esp + 0x14], ebx
mov eax, dword [esi]
mov ecx, dword [eax]
test ecx, ecx
jne 0x404470
mov ecx, dword [esi]
push 0
mov eax, dword [ecx + 8]
test eax, eax
jns 0x4043a2
and eax, 0x7fffffff
push eax
push 8
push 0x20
call dword [sym.imp.Qt5Core.dll_public:_static_struct_QArrayData____cdecl_QArrayData::allocate_unsigned_int__unsigned_int__unsigned_int__class_QFlags_enum_QArrayData::AllocationOption__]
add esp, 0x10
mov dword [ebx], eax
test eax, eax
jne 0x404399
call dword [sym.imp.Qt5Core.dll_void___cdecl_qBadAlloc_void_]
mov eax, dword [ebx]
or dword [eax + 8], 0x80000000
jmp 0x4043be
push dword [ecx + 4]
push 8
push 0x20
call dword [sym.imp.Qt5Core.dll_public:_static_struct_QArrayData____cdecl_QArrayData::allocate_unsigned_int__unsigned_int__unsigned_int__class_QFlags_enum_QArrayData::AllocationOption__]
add esp, 0x10
mov dword [ebx], eax
test eax, eax
jne 0x4043be
call dword [sym.imp.Qt5Core.dll_void___cdecl_qBadAlloc_void_]
mov ecx, dword [ebx]
test dword [ecx + 8], 0x7fffffff
je 0x40447c
mov edx, dword [esi]
mov eax, dword [ecx + 0xc]
add eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0xc]
mov ebp, dword [edx + 4]
shl ebp, 5
add ebp, eax
add ebp, edx
lea edi, [eax + edx]
cmp edi, ebp
je 0x40445e
mov ebx, dword [esp + 0x10]
mov esi, ebx
add ebx, 0x20
push edi
mov ecx, esi
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
mov eax, dword [esi + 4]
xor eax, dword [edi + 4]
and eax, 1
xor dword [esi + 4], eax
mov ecx, dword [edi + 4]
xor ecx, dword [esi + 4]
and ecx, 2
xor ecx, dword [esi + 4]
mov dword [esi + 4], ecx
mov eax, dword [edi + 4]
xor eax, ecx
and eax, 4
xor eax, ecx
lea ecx, [esi + 0x18]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
lea eax, [edi + 0x18]
push eax
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QDateTime::constructor_class_QDateTime_const__]
add edi, 0x20
cmp edi, ebp
jne 0x4043f0
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov edx, dword [eax]
mov ecx, dword [ebx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
cmp ecx, 0xffffffff
je 0x404478
lock inc dword [eax]
mov eax, dword [esi]
mov dword [ebx], eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret 4
Function at 0x4bcc10
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x18
push ebx
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x4bcc42
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret 0x10
mov eax, dword [esp + 4]
xor ecx, ecx
inc eax
mov edx, 4
mul edx
push ebp
push esi
seto cl
neg ecx
or ecx, eax
push edi
push ecx
call fcn.004bcd2f
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x14], 0
mov ebp, eax
mov dword [esp + 0x20], ebp
test ecx, ecx
je 0x4bccdc
mov eax, ebx
sub eax, ebp
mov dword [esp + 0x1c], eax
mov ebx, dword [eax + ebp]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
push esi
call fcn.004bcd2f
add esp, 4
mov edi, eax
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esp + 0x14]
lea ebp, [ebp + 4]
inc eax
mov dword [ebp - 4], edi
mov ecx, dword [esp + 0x10]
cmp eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
jne 0x4bcc81
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
push ebx
mov dword [ebp + ecx*4], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
push dword [esp + 0x14]
call fcn.004030c0
xor esi, esi
add esp, 8
mov edi, eax
cmp dword [esp + 0x10], esi
je 0x4bcd1a
mov ecx, dword [ebp + esi*4]
test ecx, ecx
je 0x4bcd1a
push ecx
call fcn.004bcd38
inc esi
add esp, 4
cmp esi, dword [esp + 0x10]
jne 0x4bcd02
push ebp
call fcn.004bcd38
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
Function at 0x408a1c
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov edi, 0x4b6
push edi
mov esi, ecx
call fcn.004071bd
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push 1
inc eax
inc eax
push edi
mov ecx, esi
mov dword [esi + 0x58], eax
call fcn.004071da
push 1
inc edi
push edi
mov ecx, esi
call fcn.004071da
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x4d0]
push eax
push 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x4d0]
push edi
push dword [esi + 4]
mov dword [esi + 0x50], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x407823
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.004086eb
mov ecx, esi
mov edi, eax
call fcn.00407b90
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x40c8ae
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c8d4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x40c8d4
xor al, al
jmp 0x40c8f4
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00413790
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x40e859
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.0040e5da
dec ebx
scasd eax, dword es:[edi]
imul ecx, ebp, 0xffffff8d
inc ebp
test al, 0x50
call fcn.0040e5ea
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
jne 0x40e89b
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0040e5da
lodsd eax, dword [esi]
fmul dword [0xc0458de6]
push eax
call fcn.0040e5ea
push eax
push esi
push dword [ebp + 8]
call fcn.0040e59f
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.0040e5da
out dx, al
invalid
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x4042e8
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x153a3085
mov eax, 0x4a400412
xor edi, eax
mov esi, edi
xor esi, 0xffffffff
and esi, 0x5f7a06a7
and edi, 0xa085f958
or edi, esi
mov ecx, 0x3003a00
mov eax, 0x120140
xor ecx, eax
push ecx
mov ebx, 0x349bc189
xor ebx, 0x3789f2cd
pop esi
xor ebx, esi
xor edi, ebx
mov ebx, edi
push 0x385d0886
mov ecx, 0x385d0886
pop esi
xor ecx, esi
mov eax, 0
mov edx, 0
xor eax, edx
xor ecx, eax
xor ecx, ecx
jmp 0x403f26

Function at 0x40520c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405245
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40524e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405258
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405279
mov al, byte [esp]
jmp 0x40527b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4069dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406a24
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406978
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a2b
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406c2c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406cba
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406c77
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x406ca4
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406c8b
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x406c9a
lea edx, [ebp - 4]
call fcn.00406af0
test ebx, ebx
je 0x406c9a
dec ebx
jmp 0x406c7c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cc1
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406cc8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404de0
add esp, 0x104
pop ebx
ret
Function at 0x401000
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x43b3f0]
mov dword [esp + 0x94], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov eax, dword [esp + 0x10]
sub eax, 0
je 0x4010e3
dec eax
je 0x40109a
dec eax
jne 0x401082
mov eax, dword [esp + 4]
cmp eax, 4
ja 0x401058
mov eax, 3
mov ecx, dword [esp + 0x94]
call fcn.0040fed5
add esp, 0x98
ret
cmp eax, 5
jne 0x401082
mov eax, dword [esp + 8]
test eax, eax
je 0x401040
cmp eax, 1
jne 0x401082
mov eax, 4
mov ecx, dword [esp + 0x94]
call fcn.0040fed5
add esp, 0x98
ret
mov eax, 5
mov ecx, dword [esp + 0x94]
call fcn.0040fed5
add esp, 0x98
ret
cmp dword [esp + 4], 4
jne 0x4010e3
mov eax, dword [esp + 8]
test eax, eax
je 0x4010e3
cmp eax, 0xa
jne 0x4010c6
mov eax, 1
mov ecx, dword [esp + 0x94]
call fcn.0040fed5
add esp, 0x98
ret
cmp eax, 0x5a
jne 0x4010e3
mov eax, 2
mov ecx, dword [esp + 0x94]
call fcn.0040fed5
add esp, 0x98
ret
mov ecx, dword [esp + 0x94]
xor eax, eax
call fcn.0040fed5
add esp, 0x98
ret

Function at 0x401220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x401239
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
jne 0x40124d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40126e
cmp esi, eax
jae 0x401247
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401260
cmp esi, eax
jae 0x401247
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x402030
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
mov ecx, dword [esp + 0xc]
mov edx, 4
push edx
lea eax, [esi + 0x1c]
push eax
push edx
push 0
mov dword [eax], edi
mov eax, dword [esi + 8]
push ecx
push eax
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], edx
mov dword [esi + 0x10], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esi], eax
test eax, eax
pop edi
sete al
pop esi
ret 8

Function at 0x402070
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
mov eax, esi
push edi
mov dword [ebx + 0x14], 1
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402085
mov ecx, dword [esp + 0x10]
sub eax, edx
cmp eax, 0x100
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x10], ecx
jb 0x4020a6
mov dword [ebx + 0x18], 0xff
lea edx, [ebx + 0x1c]
xor eax, eax
mov edi, edx
mov ecx, pe_nt_image_headers32
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x18]
mov eax, ecx
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x10]
push ecx
mov ecx, dword [ebx + 8]
push edx
mov edx, dword [ebx + 0x14]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
mov dword [ebx], eax
test eax, eax
pop esi
sete al
pop ebx
ret 8

Function at 0x402200
Capabilities:
Download and write a file
Query remote server for available data
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 8
push ebp
push esi
push edi
xor esi, esi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
mov edi, ecx
push eax
mov dword [edi + 0x10], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4022ec
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], esi
jmp 0x402240
mov ecx, dword [edi + 4]
push 0
push 0
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov edx, dword [esp + 0x20]
push edx
call fcn.0041de5d
mov ecx, dword [esp + 0x24]
mov edx, dword [edi + 4]
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push eax
push ecx
push esi
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4022b4
push 0
lea ecx, [esp + 0x24]
push ecx
push eax
push esi
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4022cb
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
add edx, eax
test ebx, ebx
mov dword [esp + 0x10], edx
je 0x4022b4
push eax
push 1
push 0x7de
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call fcn.0041de58
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
jne 0x402240
jmp 0x4022d4
push esi
call fcn.0041de58
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 8]
xor edx, edx
cmp ecx, eax
sete dl
pop ebx
mov esi, edx
pop edi
test esi, esi
pop esi
setne al
pop ebp
add esp, 8
ret 8