joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425f2a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004208fc
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x425f99
cmp esi, dword [ebp - 4]
je 0x425f94
cmp dword [ebp + 0xc], 0
je 0x425f94
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x425f71
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00425ff3
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x425f9b
xor eax, eax
inc eax
jmp 0x425f9b
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x426342
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x454040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x42638d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004264b8
test al, al
jne 0x426387
sub edx, 2
cmp edx, edi
jne 0x42636d
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4263af
lea eax, [edi + 2]
cmp edx, eax
je 0x4263af
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0042628e
add esp, 0x10
jmp 0x4264a9
push esi
lea ecx, [ebp - 0x255]
call fcn.004264b8
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4263f2
push dword [ebp - 0x25c]
jmp 0x42639f
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x42642f
cmp word [ebp - 0x226], 0
je 0x426450
cmp word [ebp - 0x226], ax
jne 0x42642f
cmp word [ebp - 0x224], 0
je 0x426450
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0042628e
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42649c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x426409
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x426484
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4264a9
push 0x4264dc
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0042d6f0
add esp, 0x10
jmp 0x426479
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b285
leave
ret
Function at 0x426def
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x426e00
pop esi
ret
push ebx
push edi
push esi
call fcn.00426e3d
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00422a86
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x426e28
push ebx
push esi
push edi
call fcn.0040df30
add esp, 0xc
push 0
call fcn.00420294
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x426e74
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00426e7f
Function at 0x42975f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x456618]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42979f
cmp byte [ebx], 0xa
jne 0x42979f
or byte [edi + eax + 0x28], 4
jmp 0x4297a4
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4298a3
mov dl, byte [eax]
cmp dl, 0x1a
je 0x429886
inc eax
cmp dl, 0xd
je 0x4297d0
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4297f6
cmp eax, ecx
jae 0x429804
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4297b8
jmp 0x4298a3
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x429881
cmp dword [ebp - 0x10], 0
je 0x429881
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x456618]
test byte [eax + edi + 0x28], 0x48
je 0x42985b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x429846
mov byte [esi], dl
jmp 0x429857
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x456618]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4298a3
cmp byte [ebp - 1], 0xa
jne 0x42986a
cmp esi, ebx
jne 0x42986a
mov byte [esi], 0xa
jmp 0x4298a2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00429aa6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4298a3
mov byte [esi], 0xd
jmp 0x4298a2
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x456618]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4298a0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4298a3
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4298ac
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x456618]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4298f2
cmp word [ebx], dx
jne 0x4298f2
or byte [eax + edi + 0x28], 4
jmp 0x4298f7
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x429a5a
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x429a3a
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x429938
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42996e
cmp eax, edx
jae 0x42997c
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x429913
jmp 0x429a5a
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x429a35
cmp dword [ebp - 0x18], 0
je 0x429a35
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x456618]
test byte [eax + edi + 0x28], 0x48
je 0x429a0b
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4299cf
mov word [esi], cx
jmp 0x429a06
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x456618]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x456618]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x456618]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x429a5a
pop eax
cmp word [ebp - 4], ax
jne 0x429a1b
cmp esi, ebx
jne 0x429a1b
mov word [esi], ax
jmp 0x429a57
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00429aa6
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x429a5a
push 0xd
pop eax
jmp 0x429a16
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x456618]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x429a54
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x429a5a
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x941000
Capabilities:
Packed with generic packer

Disassembly:
pushal
push 0x941031
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x94103a
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [0x941047]
push 0
push 0
push 0
push edx
push 0
push 0
call eax
popal
jmp fcn.0040b8ec
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43100c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x401450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40147a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x40147e
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
mov dword [ecx], eax
pop eax
pop esi
ret

Function at 0x401499
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x4014da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4014ed
push 8
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
call esi
test eax, eax
je 0x4014ed
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4014f1
xor eax, eax
jmp 0x401503
cmp dword [ebp - 4], edi
je 0x401500
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x40c12f]
shl eax, 2
mov dword [0x40c133], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0040320c
pop edx
call fcn.004025a4
call fcn.00403210
push 0
call fcn.00403f94
pop ecx
push 0x40c0d8
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x40c137], eax
push 0
jmp fcn.004092d4

Function at 0x401150
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push 0x15e
lea eax, [ebp - 0x164]
push eax
push dword [0x40c148]
call sub.KERNEL32.DLL_GetModuleFileNameA
lea edx, [ebp - 4]
push edx
push 2
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x401190
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x4011da
cmp byte [ebp + 8], 0
je 0x4011c5
lea eax, [ebp - 0x164]
push eax
call fcn.0040345c
pop ecx
inc eax
push eax
lea edx, [ebp - 0x164]
push edx
push 1
push 0
push 0x40c192
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegSetValueExA
jmp 0x4011d2
push str.ServUTrayIcon
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegDeleteValueA
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
mov esp, ebp
pop ebp
ret

Function at 0x401310
Capabilities:
Create process on windows

Disassembly:
add esp, 0xffffffac
cmp byte [0x40eba8], 0
je 0x40135f
push esp
call sub.KERNEL32.DLL_GetStartupInfoA
xor eax, eax
xor edx, edx
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x2c], 1
mov word [esp + 0x30], 0xa
lea ecx, [esp + 0x44]
push ecx
lea eax, [esp + 4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x40eba8
push 0
call sub.KERNEL32.DLL_CreateProcessA
add esp, 0x54
ret

Function at 0x401364
Capabilities:
Stop service

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
push 0x40c201
push 0
push 0x1f0003
call sub.KERNEL32.DLL_OpenEventA
mov ebx, eax
test ebx, ebx
je 0x4013df
call fcn.004012b8
test al, al
je 0x4013d3
push 2
push 0
push 0
call sub.ADVAPI32.DLL_OpenSCManagerA
mov esi, eax
test esi, esi
je 0x4013df
push 0x20
push 0x40c227
push esi
call sub.ADVAPI32.DLL_OpenServiceA
mov edi, eax
test edi, edi
je 0x4013b7
push esp
push 1
push edi
call sub.ADVAPI32.DLL_ControlService
test esi, esi
je 0x4013c1
push esi
call sub.ADVAPI32.DLL_CloseServiceHandle
test edi, edi
je 0x4013cb
push edi
call sub.ADVAPI32.DLL_CloseServiceHandle
push ebx
call sub.KERNEL32.DLL_CloseHandle
jmp 0x4013df
push ebx
call sub.KERNEL32.DLL_SetEvent
push ebx
call sub.KERNEL32.DLL_CloseHandle
add esp, 0x1c
pop edi
pop esi
pop ebx
ret
Function at 0x4013e8
Capabilities:
Create process on windows
Start service

Disassembly:
push ebx
push esi
add esp, 0xffffffac
push str.UniqueServUEvent_93570126297340819583
push 0
push 0x1f0003
call sub.KERNEL32.DLL_OpenEventA
test eax, eax
push eax
setne bl
and ebx, 1
call sub.KERNEL32.DLL_CloseHandle
test bl, bl
jne 0x4014ac
call fcn.004012b8
test al, al
je 0x401460
push 2
push 0
push 0
call sub.ADVAPI32.DLL_OpenSCManagerA
mov ebx, eax
test ebx, ebx
je 0x4014ac
push 0xf01ff
push str.Serv_U
push ebx
call sub.ADVAPI32.DLL_OpenServiceA
mov esi, eax
push 0
push 0
push esi
call sub.ADVAPI32.DLL_StartServiceA
test ebx, ebx
je 0x401454
push ebx
call sub.ADVAPI32.DLL_CloseServiceHandle
test esi, esi
je 0x4014ac
push esi
call sub.ADVAPI32.DLL_CloseServiceHandle
jmp 0x4014ac
cmp byte [0x40ed06], 0
je 0x4014ac
push esp
call sub.KERNEL32.DLL_GetStartupInfoA
xor eax, eax
xor edx, edx
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x2c], 1
mov word [esp + 0x30], 0xa
lea ecx, [esp + 0x44]
push ecx
lea eax, [esp + 4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x40ed06
call sub.KERNEL32.DLL_CreateProcessA
add esp, 0x54
pop esi
pop ebx
ret

Function at 0x402efc
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

Function at 0x404610
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
call fcn.004024b4
pop ecx
mov ebx, eax
test eax, eax
jne 0x404634
xor eax, eax
jmp 0x4046dd
lea edx, [ebp - 4]
push edx
push ebx
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
mov esi, eax
test esi, esi
je 0x404655
cmp esi, 0x104
jb 0x404660
push ebx
call fcn.004024c4
pop ecx
xor eax, eax
jmp 0x4046dd
cmp byte [ebx + 1], 0x3a
jne 0x404690
mov dl, byte [ebx]
lea ecx, [ebp - 8]
mov byte [ebp - 8], dl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0
push ecx
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
jae 0x404690
push ebx
call fcn.004024c4
pop ecx
xor eax, eax
jmp 0x4046dd
inc esi
test edi, edi
je 0x4046d3
cmp esi, dword [ebp + 0x10]
jbe 0x4046a5
push ebx
call fcn.004024c4
pop ecx
xor eax, eax
jmp 0x4046dd
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
call fcn.004024c4
pop ecx
mov eax, edi
jmp 0x4046dd
push esi
push ebx
call fcn.004024d4
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x408304
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x408366
call fcn.004082b4
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0040345c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0040345c
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4083c4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x40df48], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x40849e
cmp dword [0x40df44], 0
jne 0x40849e
cmp dword [0x40e138], 0
je 0x408458
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00408194
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40843e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00408194
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40843e
lea ebx, [ebp - 0x84]
jmp 0x40843f
inc ebx
call fcn.00408380
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4084d9
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x40df4c
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0040345c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x40df4f
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4084d9
cmp dword [0x40df44], 0
je 0x4084b8
cmp dword [0x40df44], 0xffffffff
je 0x4084d9
push esi
call dword [0x40df44]
pop ecx
mov eax, dword [0x40df48]
test eax, eax
je 0x4084d9
cmp dword [0x40df48], 0xffffffff
je 0x4084d9
cmp byte [eax], 0
je 0x4084d9
push esi
push eax
call fcn.00408304
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408d1c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x40f674], 0
jne 0x408d9d
cmp dword [0x40f694], 0
jne 0x408d4c
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x40f694], eax
test eax, eax
jne 0x408d4c
push str.GetEnvironmentStrings_failed
call fcn.004084f0
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x40f694]
jmp 0x408d60
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0040345c
pop ecx
mov edi, eax
test eax, eax
jne 0x408d58
lea edi, [ebp + 1]
push edi
call fcn.004024b4
pop ecx
mov ebx, eax
mov dword [0x40f678], ebx
test ebx, ebx
jne 0x408d8a
xor eax, eax
jmp 0x408e60
push edi
mov edx, dword [0x40f694]
push edx
push ebx
call fcn.00403290
add esp, 0xc
jmp 0x408dbd
xor esi, esi
mov ebx, dword [0x40f674]
jmp 0x408db7
push eax
call fcn.0040345c
pop ecx
test eax, eax
jne 0x408db3
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x408da7
lea ebx, [esi + 4]
push 4
mov dword [0x40f67c], ebx
inc ebx
push ebx
call fcn.0040201c
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x408de0
xor eax, eax
jmp 0x408e60
cmp dword [0x40f674], 0
jne 0x408e11
xor esi, esi
mov ebx, dword [0x40f678]
mov eax, dword [esp]
mov ebp, eax
jmp 0x408e02
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0040345c
pop ecx
mov edi, eax
test eax, eax
jne 0x408df8
jmp 0x408e42
xor esi, esi
mov ebx, dword [0x40f674]
mov eax, dword [esp]
mov edi, eax
jmp 0x408e3c
push eax
call fcn.0040345c
pop ecx
test eax, eax
je 0x408e31
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x408e35
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x408e20
mov eax, dword [0x40f674]
test eax, eax
je 0x408e52
push eax
call fcn.004024c4
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x40f674], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401030
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
xor eax, eax
mov dword [eax*4 + 0x422598], eax
inc eax
cmp eax, 0x100
jne 0x401032
push esi
xor esi, esi
xor ecx, ecx
xor edx, edx
mov eax, ecx
div edi
inc ecx
movsx eax, byte [edx + 0x41cc40]
add eax, dword [ecx*4 + 0x422594]
add eax, esi
and eax, 0xff
mov esi, eax
mov al, byte [ecx*4 + 0x422594]
mov edx, dword [esi*4 + 0x422598]
mov dword [ecx*4 + 0x422594], edx
movzx eax, al
mov dword [esi*4 + 0x422598], eax
cmp ecx, 0x100
jne 0x401046
mov dword [0x422998], 0
mov dword [0x42299c], 0
pop esi
ret

Function at 0x4011b0
Capabilities:
Encode data using xor
Hide graphical window

Disassembly:
push ebp
mov ebp, dword [0x42258c]
push esi
push edi
push 0x41cc40
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
call fcn.00401030
sub esi, 1
js 0x401237
mov ecx, dword [0x42299c]
mov eax, dword [0x422998]
lea ecx, [ecx]
inc ecx
and ecx, 0xff
mov edi, dword [ecx*4 + 0x422598]
add eax, edi
and eax, 0xff
mov dl, byte [eax*4 + 0x422598]
mov dword [eax*4 + 0x422598], edi
movzx edx, dl
mov dword [ecx*4 + 0x422598], edx
mov edi, dword [eax*4 + 0x422598]
add edi, edx
and edi, 0xff
movzx edx, byte [edi*4 + 0x422598]
xor byte [esi + ebp], dl
sub esi, 1
jns 0x4011e0
mov dword [0x422998], eax
mov dword [0x42299c], ecx
pop edi
cmp esi, 0x20ec943
pop esi
pop ebp
jle 0x40125c
push 0
push 0
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
ret

Function at 0x40155e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41e004]
jne 0x401568
repz ret
jmp fcn.00401893