joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001050
Capabilities:
Delete file
Move file

Disassembly:
mov eax, dword [esp + 4]
push esi
xor esi, esi
test eax, eax
je 0x10001074
push eax
push 3
push 0x1000cd84
call fcn.100010a0
add esp, 0xc
test eax, eax
je 0x10001074
mov esi, 1
push 0x1000cd84
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x10001091
push 4
push eax
push 0x1000cd84
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov eax, esi
pop esi
ret
Function at 0x10001350
Capabilities:
Create process on windows
Self delete

Disassembly:
sub esp, 0x384
mov ecx, dword [0x1000c0c4]
push ebx
push esi
push edi
mov dword [esp + 0x10], ecx
mov ecx, 0x15
mov esi, str._echo_off_nattrib__s__h__r__a___s__n:Repeat_ndel___s__nif_exist___s__goto_Repeat_ndel___0_n
lea edi, [esp + 0x18]
mov eax, dword [str.delself.bat]
mov edx, dword [0x1000c0c8]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push 0x1000c064
push eax
xor ebx, ebx
mov dword [esp + 0x1c], edx
movsw word es:[edi], word [esi]
call fcn.10002ce7
mov esi, eax
add esp, 8
test esi, esi
je 0x10001401
mov eax, dword [esp + 0x394]
lea ecx, [esp + 0x18]
push eax
push eax
push eax
lea edx, [esp + 0x7c]
push ecx
push edx
call fcn.10002c64
lea edi, [esp + 0x84]
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x88]
push ecx
push 1
push eax
call fcn.10002b2b
push esi
call fcn.10002aae
add esp, 0x28
lea ecx, [esp + 0xc]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x384
ret
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x384
ret

Function at 0x10006995
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1000c538
cmp edx, dword [eax]
je 0x100069b7
add eax, 8
inc ecx
cmp eax, 0x1000c5c8
jl 0x100069a8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1000c538]
jne 0x10006ae5
mov eax, dword [0x1000ce94]
cmp eax, 1
je 0x10006abf
test eax, eax
jne 0x100069e8
cmp dword [0x1000ce98], 1
je 0x10006abf
cmp edx, 0xfc
je 0x10006ae5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10006a1f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.100095b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10005ae0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10006a62
lea eax, [ebp - 0x1a4]
push eax
call fcn.10005ae0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1000b5a4
push edi
call fcn.100029b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.100095b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.100095c0
lea eax, [ebp - 0xa0]
push 0x1000b584
push eax
call fcn.100095c0
push dword [esi + 0x1000c53c]
lea eax, [ebp - 0xa0]
push eax
call fcn.100095c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.100096a0
add esp, 0x2c
pop edi
jmp 0x10006ae5
lea eax, [ebp + 8]
lea esi, [esi + 0x1000c53c]
push 0
push eax
push dword [esi]
call fcn.10005ae0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4032a0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405258], eax
mov dword [0x4051e0], 0x402b80
mov dword [0x4051dc], 2
jmp 0x4032d0
mov dword [0x4051e4], 0
mov dword [0x4051e8], 0
mov dword [0x4051d8], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051ec], eax
mov dword [0x405200], 0x404080
mov dword [0x4051f8], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051f0], eax
mov dword [0x405204], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051f4], eax
push 0x4051d8
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
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 [0x405250], eax
push 5
push dword [0x405250]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405250]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x4033a3
push 0
push 0
push 0
push 0x405208
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x4033d0
push 0x405208
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x405208
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x4033a3
mov eax, dword [0x405210]
jmp 0x4033dd
call 0x402474
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1003353
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
call fcn.010049bc
jmp fcn.010032cf

Function at 0x1004348
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], ebx
je 0x1004409
cmp dword [ebp + 0x10], ebx
je 0x1004409
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x100438d
mov dword [ebp - 4], 0x80040116
jmp 0x10043fd
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10043a6
mov dword [ebp - 4], 0x80040116
jmp 0x10043f5
push edi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
jne 0x10043bf
mov dword [ebp - 4], 0x8007000e
jmp 0x10043f4
push ebx
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10043dc
mov dword [ebp - 4], 0x80040116
jmp 0x10043f4
cmp esi, dword [ebp - 8]
je 0x10043ea
mov dword [ebp - 4], 0x80004005
jmp 0x10043f4
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
pop edi
mov eax, dword [ebp + 8]
cmp eax, ebx
pop esi
je 0x1004404
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x100440e
mov eax, 0x80070057
pop ebx
leave
ret 0xc

Function at 0x4053700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0405378f
jae 0x405370e
xor ecx, ecx
call fcn.0405378f
jae 0x405373d
xor eax, eax
call fcn.0405378f
jae 0x405374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0405378f
adc al, al
jae 0x405372f
jne 0x4053779
stosb byte es:[edi], al
jmp 0x4053711
call fcn.0405379b
sub ecx, ebx
jne 0x4053756
call fcn.04053799
jmp 0x4053775
lodsb al, byte [esi]
shr eax, 1
je 0x4053783
adc ecx, ecx
jmp 0x4053772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.04053799
cmp eax, 0x7d00
jae 0x4053772
cmp ah, 5
jae 0x4053773
cmp eax, 0x7f
ja 0x4053774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4053711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x1f0d058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.01f0d1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1f0d07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1f0d06a
add dl, dl
jne 0x1f0d089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1f0d0dc
xor eax, eax
add dl, dl
jne 0x1f0d096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1f0d17d
add dl, dl
jne 0x1f0d0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1f0d0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1f0d0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1f0d0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1f0d0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1f0d075
mov eax, 1
add dl, dl
jne 0x1f0d0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1f0d0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1f0d0e1
sub eax, ebx
mov ebx, 1
jne 0x1f0d128
mov ecx, 1
add dl, dl
jne 0x1f0d10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1f0d119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1f0d105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1f0d075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1f0d13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1f0d14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1f0d136
cmp eax, 0x7d00
jae 0x1f0d16d
cmp eax, 0x500
jb 0x1f0d168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1f0d075
cmp eax, 0x7f
ja 0x1f0d170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1f0d075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1f0d19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1f0d075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x41f573
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41f5b2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41f5b2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f5b2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41f5b2
cmp dword [ecx + 0x74], 0xe
jbe 0x41f5b2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x431790
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4317bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4317bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x57c3700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.057c378f
jae 0x57c370e
xor ecx, ecx
call fcn.057c378f
jae 0x57c373d
xor eax, eax
call fcn.057c378f
jae 0x57c374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.057c378f
adc al, al
jae 0x57c372f
jne 0x57c3779
stosb byte es:[edi], al
jmp 0x57c3711
call fcn.057c379b
sub ecx, ebx
jne 0x57c3756
call fcn.057c3799
jmp 0x57c3775
lodsb al, byte [esi]
shr eax, 1
je 0x57c3783
adc ecx, ecx
jmp 0x57c3772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.057c3799
cmp eax, 0x7d00
jae 0x57c3772
cmp ah, 5
jae 0x57c3773
cmp eax, 0x7f
ja 0x57c3774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x57c3711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x3406038f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x3406039e
pop dword [ebp - 0xc]
mov eax, 0xee4517a1
sub eax, 0xba3f1403
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xb7b0996
sub dword [ebp - 0x1c], 0xbd28c44b
mov dword [ebp - 0x18], 0x79d52d0d
sub dword [ebp - 0x18], 0x47a1e0c8
mov dword [ebp - 0x14], 0xf23ac605
add dword [ebp - 0x14], 0x5a117e29
mov dword [ebp - 0x10], 0x96386ca1
sub dword [ebp - 0x10], 0x96386ca1
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xc83df7e5
sub dword [ebp - 0x1c], 0x53cb8e8f
mov dword [ebp - 0x18], 0x4582ff72
sub dword [ebp - 0x18], 0x4169dfd
mov dword [ebp - 0x14], 0x336ebdc
sub dword [ebp - 0x14], 0x9fc77f70
mov dword [ebp - 0x10], 0x3b5025dc
add dword [ebp - 0x10], 0xc4afda24
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x107bed28
add eax, 0x23872498
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x44217
push 0
call eax
mov ecx, 0x5910818d
add ecx, 0xa6efc0a1
mov ebx, eax
mov esi, 0x3409b800
add esi, dword [ebp - 0xc]
mov edi, 0xc73a342d
add edi, 0xa0f437d
sub dword [ebp - 8], ecx
mov edx, dword [esi]
xor dword [ebp - 4], ebx
xor edx, edi
xor dword [ebp - 8], 0xcdc99c8
mov dword [ebx], edx
mov dword [ebp - 8], 0xb1afb50e
add ebx, 4
add esi, 4
loop 0x340604b5
add eax, 0xfb8b
mov ebx, eax
add eax, 5
mov ecx, 0x3f20e1f5
add ecx, 0xf4e21e0b
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x3407b622
Capabilities:
Set registry value

Disassembly:
call fcn.34044726
test eax, eax
jl 0x3407b630
jmp fcn.3407ad34
ret

Function at 0x3407f0f4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3403d054]
jne 0x3407fcb3
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x34086a80], eax
mov dword [0x34086a7c], ecx
mov dword [0x34086a78], edx
mov dword [0x34086a74], ebx
mov dword [0x34086a70], esi
mov dword [0x34086a6c], edi
mov word [0x34086a98], ss
mov word [0x34086a8c], cs
mov word [0x34086a68], ds
mov word [0x34086a64], es
mov word [0x34086a60], fs
mov word [0x34086a5c], gs
pushfd
pop dword [0x34086a90]
mov eax, dword [ebp]
mov dword [0x34086a84], eax
mov eax, dword [ebp + 4]
mov dword [0x34086a88], eax
lea eax, [ebp + 8]
mov dword [0x34086a94], eax
mov eax, dword [ebp - 0x320]
mov dword [0x340869d0], 0x10001
mov eax, dword [0x34086a88]
mov dword [0x34086984], eax
mov dword [0x34086978], 0xc0000409
mov dword [0x3408697c], 1
mov eax, dword [0x3403d054]
mov dword [ebp - 0x328], eax
mov eax, dword [0x34086850]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x340869c8], eax
push 1
call sub.msvcr80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x3403d3b4
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x340869c8], 0
jne 0x3407fda3
push 1
call sub.msvcr80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0xbde140
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.0001
lea edi, [esi - 0x5d2000]
lea eax, [edi + 0x78a59c]
push dword [eax]
mov dword [eax], 0xbf02802e
push eax
push edi
or ebp, 0xffffffff
jmp 0xbde172
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xbde179
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xbde168
mov eax, 1
add ebx, ebx
jne 0xbde18b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xbde19c
jne 0xbde1bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xbde1bb
dec eax
add ebx, ebx
jne 0xbde1a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xbde180
add ebx, ebx
jne 0xbde1b7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xbde20d
xor ecx, ecx
sub eax, 3
jb 0xbde1d3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xbde242
sar eax, 1
mov ebp, eax
jmp 0xbde1de
add ebx, ebx
jne 0xbde1de
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xbde1ac
inc ecx
add ebx, ebx
jne 0xbde1ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xbde1ac
add ebx, ebx
jne 0xbde1f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xbde1ee
jne 0xbde20a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xbde1ee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xbde22c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xbde21e
jmp 0xbde16e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xbde22c
add edi, ecx
jmp 0xbde16e
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x18dba
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xbde24e
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xbde253
lea edi, [esi + 0x7dc000]
mov eax, dword [edi]
or eax, eax
je 0xbde2c4
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7de1b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7de24c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xbde279
mov ecx, edi
jns 0xbde2a8
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7de254]
or eax, eax
je 0xbde2be
mov dword [ebx], eax
add ebx, 4
jmp 0xbde296
call dword [esi + 0x7de250]
mov ebp, dword [esi + 0x7de258]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x7de31f]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 1
cmp esp, eax
jne 0xbde310
sub esp, 0xffffff80
jmp 0x5c96dc
Function at 0x4029c0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4029fd
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402a1d
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.0040492c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402b84
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.004046bc
test esi, esi
jne 0x402bba
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.004047ac
jmp 0x402bd8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a98
mov edi, eax
test esi, esi
je 0x402bd8
cmp dword [ebx], 0
je 0x402bd8
dec esi
jmp 0x402bc1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4036f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4c3020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403790
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403770
xor eax, eax
push ebp
push 0x403769
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 0x4037ac
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 0x403770
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4c3020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4c3020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404520
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c704c], 0
je 0x404581
cmp word [0x4c7220], 0xd7b2
jne 0x404549
cmp dword [0x4c7228], 0
jbe 0x404549
mov eax, 0x4c721c
call dword [0x4c7238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4c3070
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 0x4045a8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4c3030], 0
jne 0x40459d
push 0
push 0x4c3068
push 0x4c3070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406768
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4067ce
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040492c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403160
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4067b8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4067d5
lea eax, [ebp - 0x10]
call fcn.004046bc
ret

Function at 0x409610
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.00404b7c
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x409632
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40c244
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 0x40c27d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004047ac
jmp 0x40c286
mov eax, ebx
mov edx, esi
call fcn.00404710
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c290
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 0x40c2b1
mov al, byte [esp]
jmp 0x40c2b3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c938
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c7b0
mov eax, dword [0x4c6154]
cmp byte [eax], 0
je 0x40c9b4
mov eax, dword [0x4c5f1c]
call fcn.00402fc0
call fcn.00402914
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409968
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
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 0x40c9fc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c9ea
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4c5eb4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4c7668]
call fcn.00405c60
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