joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..data
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x4b74781c
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
mov eax, section..text
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e1d0
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x37bf48b6
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret
Function at 0x100d7554
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100cba3c
and dword [ebp - 4], 0
cmp dword [0x10136f98], 0
mov ebx, eax
jne 0x100d7605
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100d76b6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100d76b6
push eax
call fcn.100cb9ca
mov dword [esp], 0x100f8bc8
push edi
mov dword [0x10136f98], eax
call esi
push eax
call fcn.100cb9ca
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10136f9c], eax
call esi
push eax
call fcn.100cb9ca
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10136fa0], eax
call esi
push eax
call fcn.100cb9ca
pop ecx
mov dword [0x10136fa8], eax
test eax, eax
je 0x100d7605
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100cb9ca
pop ecx
mov dword [0x10136fa4], eax
mov eax, dword [0x10136fa4]
cmp eax, ebx
je 0x100d765d
cmp dword [0x10136fa8], ebx
je 0x100d765d
push eax
call fcn.100cba45
push dword [0x10136fa8]
mov esi, eax
call fcn.100cba45
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100d765d
test edi, edi
je 0x100d765d
call esi
test eax, eax
je 0x100d7654
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100d7654
test byte [ebp - 0xc], 1
jne 0x100d765d
or dword [ebp + 0x10], 0x200000
jmp 0x100d7696
mov eax, dword [0x10136f9c]
cmp eax, ebx
je 0x100d7696
push eax
call fcn.100cba45
pop ecx
test eax, eax
je 0x100d7696
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100d7696
mov eax, dword [0x10136fa0]
cmp eax, ebx
je 0x100d7696
push eax
call fcn.100cba45
pop ecx
test eax, eax
je 0x100d7696
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10136f98]
call fcn.100cba45
pop ecx
test eax, eax
je 0x100d76b6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100d76b8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x710c71
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x7109ec
add edx, 1
inc edx
mov edi, edi
call fcn.00710cae
and edx, edi
sub esp, 4
mov dword [esp], edx
pop edi
xor dword [esi], ecx
or edi, edx
inc esi
or edi, edi
push edi
mov edi, dword [esp]
add esp, 4
mov edi, 0xcca6e7ce
cmp esi, eax
jne fcn.00710c71
add edi, 0x5609e9e0
ret
Function at 0x10010bd
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push 1
push 0x7b
push dword [ebp + 0xc]
call fcn.0100129d
mov edi, eax
test edi, edi
je 0x1001110
xor eax, eax
cmp ax, word [edi]
je 0x1001110
push eax
dec edi
push 0x7d
dec edi
push edi
call fcn.0100129d
mov esi, eax
test esi, esi
je 0x10010fa
xor eax, eax
cmp ax, word [esi]
je 0x10010fa
mov word [esi], ax
inc esi
inc esi
push dword [ebp + 8]
push edi
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jl 0x1001110
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x100129d
Capabilities:
Terminate process

Disassembly:
push 0x20
pop edx
cmp dx, cx
je 0x10012c5
jmp 0x10019f1
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x10012c9
nop
nop
nop
nop
nop
nop
nop
movzx ecx, word [eax]
xor edx, edx
cmp dx, cx
je 0x10012cd
cmp word [ebp + 0xc], cx
je 0x10012cd
cmp dword [ebp + 0x10], edx
jne 0x100128b
inc eax
inc eax
jne 0x10012b0
pop ebp
ret 0xc
xor ecx, ecx
cmp cx, word [eax]
je 0x10012c9
inc eax
inc eax
jmp 0x10012c9
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x100144f
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
or dword [ebp - 0x40], 2
inc esi
inc esi
jmp 0x1001528
lea eax, [ebp - 0x2c]
add esi, 2
push esi
push eax
call fcn.010010bd
jmp 0x1001526
push 0x40
push 0x10015d8
call fcn.01001171
mov dword [ebp - 0x40], 8
mov dword [ebp - 0x44], 0x401
mov ebx, 0x10015c8
mov esi, ebx
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ebx
lea edi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
cmp esi, edi
je 0x10014c7
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x10014c7
push 0x22
pop ecx
push edi
add esi, 2
cmp cx, ax
jne 0x10015fc
push ecx
push esi
call fcn.0100129d
mov esi, eax
push 1
push 0x2f
push esi
call fcn.0100129d
mov esi, eax
cmp esi, edi
je 0x1001603
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x1001603
movzx eax, ax
cmp eax, 0x43
je 0x1001438
cmp eax, 0x49
je 0x10015f4
cmp eax, 0x4d
je 0x100111c
cmp eax, 0x53
je 0x1001118
cmp eax, 0x58
jne 0x1001603
add esi, 2
push esi
lea eax, [ebp - 0x44]
push eax
call fcn.010017cc
mov esi, eax
cmp esi, edi
je 0x1001533
xor eax, eax
cmp ax, word [esi]
jne 0x10014c7
push dword [ebp - 0x40]
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x10019f9
mov dword [ebp - 4], edi
lea eax, [ebp - 0x50]
push eax
push 1
lea eax, [ebp - 0x2c]
push eax
call sub.apphelp.dll_ApphelpCheckShellObject
test eax, eax
je 0x1001a01
mov dword [ebp - 0x40], edi
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x44]
or eax, 0x400
push eax
push edi
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x1001a15
cmp dword [ebp - 0x40], edi
je 0x1001a15
or dword [ebp - 0x48], 0xffffffff
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
lea edx, [ebp - 0x48]
push edx
push ebx
push eax
call dword [ecx]
cmp eax, edi
jge 0x1001a29
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.01001688
ret 0x10
lea eax, [ebp - 0x3c]
jmp 0x100143b
push 0x20
jmp 0x10014bf
push 1
jmp 0x10019fb
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x100155f
push 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x100158f
push 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x10015a8
Function at 0x10017cc
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push 1
push 0x30
push dword [ebp + 0xc]
call fcn.0100129d
mov esi, eax
test esi, esi
je 0x100181c
xor eax, eax
cmp ax, word [esi]
je 0x100181c
push eax
dec esi
push 0x20
dec esi
push esi
call fcn.0100129d
push dword [ebp + 8]
mov edi, eax
sub eax, esi
push 0x1001824
sar eax, 1
push eax
push esi
call sub.msvcrt.dll__snwscanf_s
add esp, 0x10
cmp eax, 1
jne 0x100181c
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40148e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x47fb90]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x401523
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014e0
cmp dword [ebp + 0x10], ebx
jne 0x401517
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.0040148e
test eax, eax
jne 0x4014f2
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014c7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00406352
cmp eax, ebx
je 0x40152a
push ebx
push dword [0x47fb90]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x401523
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x47fb90], ebx
jne 0x401520
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x401520
jmp 0x401523
Function at 0x405c99
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x462dd0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x462dd0], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405cd4
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405e89
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405ea6
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x405ea9
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405ed8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a6c4]
mov dword [ebp - 8], eax
mov eax, dword [0x40a6c8]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405f28
test edi, edi
jne 0x405ee5
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405f22

Function at 0x405f2c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push edi
push dword [ebp + 0xc]
mov word [esi], di
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405fa0
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x4008
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405f8d
cmp dword [ebp + 0x14], 1
je 0x405f90
cmp dword [ebp + 0x14], 2
je 0x405f90
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x4006], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x40613d
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406166
mov eax, dword [0x40d058]
cmp eax, 0xffffffff
je 0x40615a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40d058], 0xffffffff
jmp 0x406211
cmp dword [0x46e20c], ebx
je 0x406211
cmp word [0x477240], bx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x4061dd
cmp dword [0x40d058], 0xffffffff
jne 0x4061e6
mov esi, 0x477240
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 4
push 0x40000000
push esi
mov dword [ebp + 8], eax
call fcn.00405ea9
cmp eax, 0xffffffff
mov dword [0x40d058], eax
je 0x40620f
cmp dword [ebp + 8], 0xffffffff
jne 0x4061d2
push ebx
lea ecx, [ebp - 4]
push ecx
push 2
lea ecx, [ebp + 8]
push ecx
push eax
mov dword [ebp + 8], 0xfeff
call edi
mov eax, dword [0x40d058]
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40d058], 0xffffffff
je 0x40620f
push 0x40a6e0
mov esi, 0x46e220
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp + 8]
push ecx
add eax, eax
push eax
push esi
push dword [0x40d058]
call edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4067ca
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x462e18
push esi
call fcn.0040605f
push esi
call fcn.00405db2
mov edi, eax
test edi, edi
jne 0x4067eb
xor eax, eax
jmp 0x406849
push edi
call fcn.0040608e
test byte [0x47fb08], 0x80
je 0x406808
movzx eax, word [edi]
test ax, ax
je 0x4067e7
cmp ax, 0x5c
je 0x4067e7
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x40682a
push esi
call fcn.0040632b
test eax, eax
je 0x406824
test byte [eax], 0x10
je 0x40684e
push esi
call fcn.0040679e
push esi
call ebx
cmp eax, edi
jg 0x406815
push esi
call fcn.0040676f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x406848
Function at 0x406ae3
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x40a8f0
mov ebx, 0x466e20
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
cmp edi, ebp
mov esi, 0x400
je 0x406b31
push 1
push ebp
push edi
call fcn.00405ea9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406ca8
cmp eax, esi
jg 0x406ca8
push esi
mov edi, 0x46c478
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406ca8
cmp eax, esi
jg 0x406ca8
push ebp
push ebp
push esi
push 0x467620
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x406ca8
push ebp
push ebp
push esi
mov esi, 0x467c70
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x406ca8
push esi
push 0x467620
push str._s_s_r_n
push 0x468070
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x47fabc]
push dword [eax + 0x13c]
push edi
call fcn.00406852
push 4
push 0xc0000000
push edi
call fcn.00405ea9
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x406ca8
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebp
je 0x406c9e
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406c9e
cmp edi, dword [esp + 0x10]
jne 0x406c9e
push str._Rename__r_n
push esi
call fcn.00405e0f
cmp eax, ebp
jne 0x406c35
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406c66
push 0x40a8e4
add eax, 0xa
push eax
call fcn.00405e0f
mov ebp, eax
test ebp, ebp
je 0x406c64
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406c57
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406c51
sub ebp, esi
inc ebp
mov eax, ebp
xor ebp, ebp
jmp 0x406c68
xor ebp, ebp
mov eax, edi
push ebx
push 0x468070
add eax, esi
push eax
call fcn.00405e65
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4072a9
Capabilities:
Connect to http server
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0x94
push ebx
push edi
xor ebx, ebx
push 0x7f
lea eax, [ebp - 0x3b]
push ebx
push eax
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x44], 1
mov dword [ebp + 0x54], ebx
mov byte [ebp - 0x3c], bl
call fcn.00408c0c
add esp, 0xc
push ebx
push ebx
push 3
mov eax, 0x40ac15
push eax
push eax
push dword [ebp + 0x78]
push dword [ebp + 0x60]
call fcn.0040720e
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov edi, dword [ebp + 0x74]
mov dword [ebp + 0x48], eax
je 0x40743b
push ebx
push 0x84080100
push ebx
push ebx
push ebx
push dword [ebp + 0x64]
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, ebx
mov dword [ebp + 0x50], eax
je 0x40742d
push esi
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea ecx, [ebp + 0x7c]
push ecx
push 2
push eax
call esi
push 4
lea eax, [ebp + 0x7c]
push eax
push 6
push dword [ebp + 0x50]
call esi
push 4
lea eax, [ebp + 0x7c]
push eax
push 5
push dword [ebp + 0x50]
call esi
push 4
lea eax, [ebp + 0x44]
push eax
push 3
push dword [ebp + 0x50]
call esi
push dword [ebp + 0x6c]
push dword [ebp + 0x68]
push ebx
push ebx
push dword [ebp + 0x50]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x407423
lea eax, [ebp + 0x7c]
push eax
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x13
push dword [ebp + 0x50]
mov esi, 0x80
mov dword [ebp + 0x54], esi
mov dword [ebp + 0x7c], ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x407423
cmp byte [ebp - 0x3c], 0x32
jne 0x407423
cmp byte [ebp - 0x3b], 0x30
jne 0x407423
cmp byte [ebp - 0x3a], 0x30
jne 0x407423
mov eax, dword [ebp + 0x70]
mov dword [eax], ebx
mov dword [edi], ebx
mov dword [ebp + 0x54], esi
jmp 0x407406
mov ecx, dword [ebp + 0x54]
cmp ecx, ebx
jbe 0x40741c
mov eax, dword [edi]
cmp eax, ebx
jne 0x4073d4
push ecx
call fcn.0040722e
jmp 0x4073e2
add eax, ecx
push eax
mov eax, dword [ebp + 0x70]
push dword [eax]
call fcn.0040726f
pop ecx
pop ecx
mov ecx, dword [ebp + 0x70]
mov dword [ecx], eax
mov eax, ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x407423
push dword [ebp + 0x54]
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [edi]
add ecx, eax
push ecx
call fcn.00405e65
mov eax, dword [ebp + 0x54]
add dword [edi], eax
lea eax, [ebp + 0x54]
push eax
push esi
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0x50]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4073bf
mov dword [ebp + 0x4c], 1
push dword [ebp + 0x50]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop esi
push dword [ebp + 0x48]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp + 0x4c], ebx
jne 0x407442
mov eax, dword [ebp + 0x70]
mov dword [eax], ebx
mov dword [edi], ebx
mov eax, dword [ebp + 0x4c]
pop edi
pop ebx
add ebp, 0x58
leave
ret
Function at 0x40744c
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jle 0x407475
push edi
mov eax, dword [esp + 0xc]
lea ecx, [esi + eax]
mov eax, esi
cdq
push 0xa
pop edi
idiv edi
mov al, byte [edx + str.JZS_URQ_Z5]
xor byte [ecx], al
inc esi
cmp esi, dword [esp + 0x10]
jl 0x407456
pop edi
pop esi
ret

Function at 0x407477
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [edi + 2]
test eax, eax
jl 0x40757b
push 3
cdq
pop ecx
idiv ecx
cmp eax, 0x40000000
jge 0x40757b
cmp edi, 2
mov ecx, dword [ebp + 0x10]
jle 0x407511
push ebx
xor edx, edx
push 3
lea eax, [edi - 3]
pop ebx
div ebx
inc eax
mov edx, eax
imul edx, edx, 0xfffffffd
add edi, edx
movzx edx, byte [esi]
shr edx, 2
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
movzx edx, byte [esi]
movzx ebx, byte [esi + 1]
and edx, 3
shl edx, 4
shr ebx, 4
mov dl, byte [edx + ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
movzx edx, byte [esi + 1]
movzx ebx, byte [esi + 2]
and edx, 0xf
shr ebx, 6
mov dl, byte [ebx + edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
movzx edx, byte [esi + 2]
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
inc ecx
add esi, 3
dec eax
jne 0x4074b9
pop ebx
test edi, edi
je 0x407566
movzx eax, byte [esi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx eax, byte [esi]
and eax, 3
inc ecx
shl eax, 4
cmp edi, 1
jle 0x407555
movzx edx, byte [esi + 1]
shr edx, 4
mov al, byte [eax + edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx eax, byte [esi + 1]
inc ecx
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
jmp 0x407561
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x407574
mov edx, ecx
sub edx, dword [ebp + 0x10]
mov dword [eax], edx
mov byte [ecx], 0
xor eax, eax
jmp 0x40757e
or eax, 0xffffffff
pop edi
pop esi
pop ebp
ret