joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40126c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0
pop edi
lea ebx, [edi]
push 0x45
pop eax
add eax, dword [0x401ccd]
push dword [esp + 4]
push 0x40
pop esi
inc esi
xor ecx, ecx
sub ecx, dword [0x404fb2]
sub ecx, 0xffffffc4
add eax, edx
pop edx
and ebx, edx
mov ebx, esi
lea ebx, [esp + 4]
call dword [sym.imp.KERJUL2.dll_CetSystemD_faultUILanguage]
dec bl
mov dword [0x40ce12], ecx
cmp eax, 0xa1
jb 0x4012da
jne 0x4012f2
sub ebx, 0x40369c
imul dword [esp + 0x28]
push dword [0x404d7c]
pop dword [0x40cfc9]
lea ebx, [esp - 0x68]
lea eax, [0x40556d]
add eax, 0x403d95
or ebx, eax
not bl
push 0x405d95
call dword [sym.imp.KERJUL2.dll_ExitThread]
lea eax, [ebp]
mov bl, 0x3f
lea ebx, [eax + ecx]
mov edx, edx
mov eax, dword fs:[0x30]
push 0xffffffffffffffc5
pop ebx
mov ebx, ecx
mov edx, eax
not bh
neg bx
lea ebx, [eax + esi]
mov bl, cl
mov cl, 0x20
mov cl, bl
mov eax, dword [edx + 0x2c]
xor ebx, ebx
mov ebx, 0x400a76
mov cl, byte [eax + 0x6f]
or ebx, esi
shr eax, 0x10
add ebx, ebp
sbb ebx, esi
sub cl, ah
je 0x40134c
sub dword [ebp + 4], edx
mov dword [0x40cc1b], ecx
lea ebx, [ebp + 0xc]
push edi
push ebp
lea ebx, [eax]
call dword [sym.imp.KERJUL2.dll__mcreat]
mov dword [ebp], ebx
leave
ret
sub ebx, esi
xor ebx, esi
and ebx, ecx
xor ebx, edi
mov eax, dword [edx + 0xc]
sub ebx, esp
jae 0x40135f
add ebx, edi
sub ebx, eax
mov esi, dword [eax + 0x1c]
lea ebx, [edx]
lodsd eax, dword [esi]
or ebx, esi
mov eax, dword [eax + 8]
add bl, al
jae 0x401370
or ebx, ecx
mov edx, dword [eax + 0x3c]
jg 0x401379
mov bl, 0x61
and ebx, ecx
mov ebx, ebp
add edx, 0x104
add eax, dword [eax + edx]
add bh, bl
lea ebx, [ecx]
or ebx, ecx
inc eax
and ebx, ecx
mov ecx, dword [eax]
add ebx, esp
and ecx, dword [eax + 4]
jae 0x401398
and ebx, edx
add ecx, 0x405d74
add ebx, ebx
mov ecx, ecx
cmp ecx, 0x5586db9
jne 0x401388
mov ebx, 0x400692
lea ebx, [eax + esi]
xchg edx, eax
jg 0x4013b7
lea eax, [eax]
mov ebx, ecx
mov ecx, ebx
sub edx, 1
or ebx, eax
neg bl
mov eax, dword [edx]
sbb ebx, edx
and eax, 0xffff
not bl
add eax, 0x401a35
or ebx, edx
xor ebx, ecx
sub eax, 0x40a58a
jne 0x4013b7
and ebx, edi
xor dword [0x40cfcb], edx
sbb ebx, edi
push 0x40cfd1
or ebx, edx
mov ebx, eax
mov eax, ebx
push 0x1c
add dword [esp], 0x24
lea ebx, [edx]
push 0x1f60
sub ebx, ebp
push 0x40130e
lea ebx, ds:[esp]
add ebx, edx
push 0xfffffffffffffffe
jbe 0x401412
mov ebx, edx
mov ebx, esp
inc dword [esp]
mov edx, edx
lea ebx, [eax]
xor bl, 0x56
mov edx, edx
mov edx, dword [0x40cfcb]
call edx
mov ebx, eax
mov eax, ebx
xor ebx, edi
lea ecx, [0x403d1b]
pop ebx
sub esp, 4
add bh, bh
sub ecx, 0x403c85
jbe 0x401444
mov ebx, eax
mov edx, 0x40151d
jg 0x40144f
add bl, al
dec bl
mov edi, 0xea
xor dword [edx], edi
sbb ebx, ecx
xor bh, 9
mov esi, dword [edx]
sub ebx, eax
mov bl, al
mov al, 0xb6
mov al, bl
add esi, 1
mov dword [edx], esi
and ebx, edx
mov ecx, ecx
add edx, 0xffffffff
jbe 0x40147c
or ebx, 0x1ae708
mov ebx, esp
sub ecx, 1
jne 0x401449
or ebx, eax
lea ebx, [eax + esi]
lea esi, [ecx + edi*8 - 0x2b]
adc eax, 0x148955db
lds ecx, [ecx - 0x3bd90a9e]
sub al, 0xe5
sbb al, byte [ebx]
push cs
rol dword [ebp - 0x36469ceb], 1
jmp 0x2b6b1007
Function at 0x405498
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.00405739
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x4054ce
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4247e8], eax
jmp 0x405653
mov dword [ebp + 8], ecx
push edi
and dword [ebp + 8], 1
je 0x4054e9
test eax, eax
je 0x4055fe
test cl, 2
je 0x4055fe
mov esi, 0x421d70
push ebx
push esi
call fcn.00405b66
cmp dword [ebp + 8], 0
je 0x405508
push str..
push esi
call fcn.00405b82
jmp 0x40550e
push ebx
call fcn.004056a0
push 0x409010
push ebx
call fcn.00405b82
push ebx
call fcn.00405b7c
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4055f4
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405684
cmp byte [eax], 0
je 0x40555f
cmp byte [ebp - 0x18], 0
je 0x40555f
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405575
mov al, byte [esi + 1]
test al, al
je 0x4055d3
cmp al, 0x2e
jne 0x405575
cmp byte [esi + 2], 0
je 0x4055d3
push esi
push edi
call fcn.00405b66
test byte [ebp - 0x148], 0x10
je 0x40559a
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4055d3
push dword [ebp + 0xc]
push ebx
call fcn.00405498
jmp 0x4055d3
push ebx
call fcn.0040581d
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4055cb
test byte [ebp + 0xc], 4
je 0x4055c3
push ebx
push 0xfffffffffffffff1
call fcn.00404efa
push 0
push ebx
call fcn.004058b3
jmp 0x4055d3
inc dword [0x4247e8]
jmp 0x4055d3
push ebx
push 0xfffffffffffffff2
call fcn.00404efa
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40553d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4055fe
and byte [edi - 1], 0
xor esi, esi
pop edi
cmp dword [ebp + 8], esi
je 0x405653
cmp dword [ebp - 8], esi
jne 0x405613
inc dword [0x4247e8]
jmp 0x405653
push ebx
call fcn.00405e3b
test eax, eax
je 0x405653
push ebx
call fcn.00405659
push ebx
call fcn.0040581d
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40564b
test byte [ebp + 0xc], 4
je 0x40560b
push ebx
push 0xfffffffffffffff1
call fcn.00404efa
push esi
push ebx
call fcn.004058b3
jmp 0x405653
push ebx
push 0xffffffffffffffe5
call fcn.00404efa
pop esi
pop ebx
leave
ret 8
Function at 0x405739
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x422170
push esi
call fcn.00405b66
push esi
call fcn.004056ec
mov edi, eax
test edi, edi
jne 0x40575a
xor eax, eax
jmp 0x4057ac
push edi
call fcn.00405da2
test byte [0x424770], 0x80
je 0x405773
mov al, byte [edi]
test al, al
je 0x405756
cmp al, 0x5c
je 0x405756
sub edi, esi
jmp 0x40578b
call fcn.00405e3b
test eax, eax
je 0x405785
test byte [eax], 0x10
je 0x405756
push esi
call fcn.004056a0
push esi
call fcn.00405b7c
cmp eax, edi
push esi
jg 0x405777
call fcn.00405659
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405839
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x40583c
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
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_CreateFileA]
ret 0xc

Function at 0x40586b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4058af
test edi, edi
jne 0x405876
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4058a9
Function at 0x4058b3
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.00405e79
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4058df
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405a1e
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x422ef8], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x422ef8
je 0x405923
push 1
push 0
push esi
call fcn.0040583c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405a24
cmp eax, edi
jg 0x405a24
mov esi, 0x422970
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405a24
cmp eax, edi
jg 0x405a24
push esi
push ebp
push str._s_s_r_n
push 0x422570
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call fcn.00405b82
push 4
push 0xc0000000
push esi
call fcn.0040583c
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405a1e
push 0
push ebp
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
test esi, esi
je 0x405a17
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405a17
cmp edi, dword [esp + 0x18]
jne 0x405a17
push str._Rename__r_n
push esi
call fcn.004057b1
test eax, eax
jne 0x405a2b
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405b66
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x422570
push eax
call fcn.004057fd
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x4247f0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409320
push eax
call fcn.004057b1
test eax, eax
je 0x4059e2
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405a52
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405a47
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x4059e4
Function at 0x405b88
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jge 0x405ba9
mov ecx, dword [0x423f3c]
lea eax, [ebx*4 + 4]
sub ecx, eax
mov ebx, dword [ecx]
mov eax, dword [0x424798]
mov ecx, dword [ebp + 8]
add ebx, eax
mov eax, 0x423700
sub ecx, eax
mov edi, eax
cmp ecx, 0x800
jae 0x405d7c
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x405d7c
mov edx, edi
sub edx, eax
cmp edx, 0x400
jge 0x405d89
inc ebx
cmp cl, 0xfc
jbe 0x405d6f
movsx eax, byte [ebx + 1]
movsx ecx, byte [ebx]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, 0x8000
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
or ecx, edx
or eax, edx
inc ebx
mov dword [ebp - 0x14], ecx
inc ebx
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 0xc], eax
jne 0x405d1a
and dword [ebp + 0xc], 0
and byte [edi], 0
push 4
pop esi
cmp dword [ebp - 0x10], esi
jne 0x405c3d
mov dword [ebp + 0xc], str.MicrosoftInternet_ExplorerQuick_Launch
jmp 0x405cb5
mov eax, dword [ebp - 0x18]
cmp eax, 0x2b
jne 0x405c5c
push edi
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405a5a
jmp 0x405cb0
cmp eax, 0x26
jne 0x405c8c
push edi
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405a5a
cmp byte [edi], 0
jne 0x405d12
push str.C:Program_Files
push edi
call fcn.00405b66
jmp 0x405cb0
cmp eax, 0x25
jne 0x405c9f
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x405cb0
cmp eax, 0x24
jne 0x405cb5
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [edi], 0
jne 0x405d12
cmp dword [0x4247e4], 0
jne 0x405cc1
push 2
pop esi
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x18]
push dword [0x424764]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405cf7
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.004053b3
cmp dword [ebp - 8], 0
jne 0x405cfe
jmp 0x405cfa
and byte [edi], 0
test esi, esi
jne 0x405cc1
cmp byte [edi], 0
je 0x405d12
cmp dword [ebp + 0xc], 0
je 0x405d12
push dword [ebp + 0xc]
push edi
call fcn.00405b82
push edi
call fcn.00405da2
jmp 0x405d60
cmp byte [ebp + 0xf], 0xfd
jne 0x405d4e
cmp esi, 0x1b
jne 0x405d33
push dword [0x424764]
push edi
call fcn.00405ac4
jmp 0x405d44
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push edi
call fcn.00405b66
add esi, 0xffffffeb
cmp esi, 6
jae 0x405d60
jmp 0x405d12
cmp byte [ebp + 0xf], 0xff
jne 0x405d60
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.00405b88
push edi
call fcn.00405b7c
add edi, eax
mov eax, 0x423700
jmp 0x405d7c
jne 0x405d79
mov cl, byte [ebx]
mov byte [edi], cl
inc edi
inc ebx
jmp 0x405d7c
mov byte [edi], cl
inc edi
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x405bd4
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405d9e
push eax
push dword [ebp + 8]
call fcn.00405b66
leave
ret 8
Function at 0x405ed6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232fc], 0
push esi
jne 0x405f0d
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405ee7
mov dword [ecx*4 + 0x4232f8], eax
inc ecx
cmp ecx, 0x100
jl 0x405ee2
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f3e
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4232f8]
xor eax, esi
inc ecx
dec edx
jne 0x405f20
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
mov dword [0x80043b4], 0x30
mov dword [0x80043bc], 0x8003351
mov dword [0x80043b8], 2
mov dword [0x80043c0], 0
mov dword [0x80043c4], 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
jmp 0x8003b82
mov dword [0x80043c8], eax
mov dword [0x80043dc], 0x80041e0
mov dword [0x80043d4], 0xf
mov dword [0x8004102], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x80043cc], eax
mov dword [0x80043e0], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x800410a], ebp
mov dword [0x80043d0], eax
push 0x80043b4
call dword [sym.imp.user32.dll_RegisterClassExA]
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x8004434], eax
push 0
push dword [0x8004102]
push 0
push 0
push 0x1ef
push 0x21c
push 0xffffe688
push 0xfffff524
push 0xcf0000
push str.uno_momento
push str.verba
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x800442c], eax
push 1
push dword [0x800442c]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x800442c]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x8003c40
xor edi, edi
lea ebx, [0x80043e4]
jmp 0x8003c58
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x8003c4a
jmp 0x8003c6c
mov eax, dword [0x80043ec]
call fcn.08002ae4
ret
Function at 0x402ae4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004047d4
test esi, esi
jne 0x402b1a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004048c4
jmp 0x402b38
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029f8
mov edi, eax
test esi, esi
je 0x402b38
cmp dword [ebx], 0
je 0x402b38
dec esi
jmp 0x402b21
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4038c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x49b00c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403958
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403938
xor eax, eax
push ebp
push 0x403931
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403974
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403938
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x49b00c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x49b00c], ax
mov esp, ebp
pop ebp
ret

Function at 0x404638
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49e048], 0
je 0x404699
cmp word [0x49e21c], 0xd7b2
jne 0x404661
cmp dword [0x49e224], 0
jbe 0x404661
mov eax, 0x49e218
call dword [0x49e234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x49b074
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4046c0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49b01c], 0
jne 0x4046b5
push 0
push 0x49b094
push 0x49b074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408b0c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408b21
test eax, edx
je 0x408b24
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408b34
movzx eax, byte [eax]
sub eax, ecx
ret
xor eax, eax
ret
test eax, eax
je 0x408b30
test edx, edx
jne 0x408b14
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
push ebx
mov ebx, dword [eax - 4]
sub ebx, dword [edx - 4]
push ebx
sbb ecx, ecx
and ecx, ebx
add ecx, dword [edx - 4]
add eax, ecx
add edx, ecx
neg ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x408b59
add ecx, 4
jl 0x408b49
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ebx, ecx
movzx ecx, byte [ebx + eax]
pop eax
jg 0x408b70
movzx edx, byte [ebx + edx]
mov eax, ecx
sub eax, edx
pop ebx
ret

Function at 0x409380
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404c84
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409399
test al, 0x10
jne 0x40939d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409488
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404c84
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x40949c
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404c84
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4094be
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40bf8c
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_1
test eax, eax
jle 0x40bfc5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004048c4
jmp 0x40bfce
mov eax, ebx
mov edx, esi
call fcn.00404828
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bfd8
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_1
test eax, eax
jle 0x40bff9
mov al, byte [esp]
jmp 0x40bffb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40c680
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c4f8
mov eax, dword [0x49d0b4]
cmp byte [eax], 0
je 0x40c6e8
mov eax, dword [0x49ceb0]
call fcn.00402f08
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409824
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c730
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c71e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x49ce60]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x49e714]
call fcn.00405f64
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40d650
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d6b4
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404a3c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409174
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d6bb
lea eax, [ebp - 0xc]
call fcn.004047d4
ret

Function at 0x41fcd4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x49ea20
cmp dword [edi], 0
jne 0x41fd50
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x49ea1c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x49b51c
mov ecx, 2
call fcn.004028f8
mov edx, 0x41fcac
lea eax, [esi + 5]
call fcn.0041fccc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041fccc
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41fd25
mov dword [0x49ea1c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4212bc
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4212c2
ret
Function at 0x423870
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4238c1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4238a8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x423898
jmp 0x4238c1
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4238a9
pop ebx
mov esp, ebp
pop ebp
ret