joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4821a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x31000]
push edi
or ebp, 0xffffffff
jmp 0x4821c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4821c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4821b8
mov eax, 1
add ebx, ebx
jne 0x4821db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4821ec
jne 0x48220b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48220b
dec eax
add ebx, ebx
jne 0x4821f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4821d0
add ebx, ebx
jne 0x482207
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x48225d
xor ecx, ecx
sub eax, 3
jb 0x482223
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x482292
sar eax, 1
mov ebp, eax
jmp 0x48222e
add ebx, ebx
jne 0x48222e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4821fc
inc ecx
add ebx, ebx
jne 0x48223c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4821fc
add ebx, ebx
jne 0x482249
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48223e
jne 0x48225a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48223e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48227c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48226e
jmp 0x4821be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48227c
add edi, ecx
jmp 0x4821be
pop esi
lea edi, [esi + 0x7d000]
mov ecx, 6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x48229e
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 0x4822a3
lea edi, [esi + 0x7f000]
mov eax, dword [edi]
or eax, eax
je 0x482314
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x881c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x882b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4822c9
mov ecx, edi
jns 0x4822f8
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 + 0x882c0]
or eax, eax
je 0x48230e
mov dword [ebx], eax
add ebx, 4
jmp 0x4822e6
call dword [esi + 0x882bc]
mov ebp, dword [esi + 0x882c4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x482348
sub esp, 0xffffff80
jmp 0x414ab0
Function at 0x403560
Capabilities:
Delete file
Enumerate gui resources

Disassembly:
mov eax, dword [0x49b234]
mov ecx, dword [0x49813c]
sub esp, 0xc2c
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x403653
mov esi, dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
cmp dword [0x49b234], 0x959
jne 0x403639
push 0
push 0
call esi
push 0
lea eax, [esp + 0x43c]
push eax
push 0
call edi
push 0
push 0
call ebx
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
lea ecx, [esp + 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
push 0
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommState]
push 0
push 0x402bf8
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov eax, dword [esp + 0x14]
push eax
call fcn.004033b0
add dword [esp + 0x14], 8
sub dword [esp + 0x18], 1
jne 0x4035a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc2c
ret
Function at 0x404000
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42c1f8
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
xor ebx, ebx
cmp dword [0x49b234], 0x84
jne 0x40408c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedFlushSList]
push ebx
call dword [sym.imp.KERNEL32.dll_AddAtomW]
mov dword [esp + 0x1c], 0xf
mov dword [esp + 0x18], ebx
mov byte [esp + 8], bl
push ebx
mov dword [esp + 0x2c], ebx
call fcn.00405729
push ebx
push ebx
call fcn.004057b7
add esp, 0xc
mov dword [esp + 0x28], 0xffffffff
cmp dword [esp + 0x1c], 0x10
jb 0x40407c
mov eax, dword [esp + 8]
push eax
call fcn.0040599e
add esp, 4
mov dword [esp + 0x1c], 0xf
mov dword [esp + 0x18], ebx
mov byte [esp + 8], bl
cmp byte [0x4310e0], bl
jle 0x40409c
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [0x430284]
mov edx, dword [0x430258]
mov dword [0x49b234], ecx
mov dword [0x49bbd4], edx
call fcn.00403760
mov ecx, dword [esp + 0x20]
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 0x10

Function at 0x406f7c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e238]
jne 0x406f86
repz ret
jmp fcn.0040b1b5
Function at 0x40bcaf
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.004097e6
and dword [ebp - 4], 0
cmp dword [0x430fd0], 0
mov ebx, eax
jne 0x40bd60
push 0x40241c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40be11
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402410
push edi
call esi
test eax, eax
je 0x40be11
push eax
call fcn.00409774
mov dword [esp], 0x402400
push edi
mov dword [0x430fd0], eax
call esi
push eax
call fcn.00409774
mov dword [esp], 0x4023ec
push edi
mov dword [0x430fd4], eax
call esi
push eax
call fcn.00409774
mov dword [esp], 0x4023d0
push edi
mov dword [0x430fd8], eax
call esi
push eax
call fcn.00409774
pop ecx
mov dword [0x430fe0], eax
test eax, eax
je 0x40bd60
push 0x4023b8
push edi
call esi
push eax
call fcn.00409774
pop ecx
mov dword [0x430fdc], eax
mov eax, dword [0x430fdc]
cmp eax, ebx
je 0x40bdb8
cmp dword [0x430fe0], ebx
je 0x40bdb8
push eax
call fcn.004097ef
push dword [0x430fe0]
mov esi, eax
call fcn.004097ef
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40bdb8
test edi, edi
je 0x40bdb8
call esi
test eax, eax
je 0x40bdaf
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40bdaf
test byte [ebp - 0xc], 1
jne 0x40bdb8
or dword [ebp + 0x10], 0x200000
jmp 0x40bdf1
mov eax, dword [0x430fd4]
cmp eax, ebx
je 0x40bdf1
push eax
call fcn.004097ef
pop ecx
test eax, eax
je 0x40bdf1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40bdf1
mov eax, dword [0x430fd8]
cmp eax, ebx
je 0x40bdf1
push eax
call fcn.004097ef
pop ecx
test eax, eax
je 0x40bdf1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x430fd0]
call fcn.004097ef
pop ecx
test eax, eax
je 0x40be11
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40be13
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418010
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x18
mov eax, dword [0x634038]
mov edx, dword [0x63403c]
mov dword [esp + 0x14], 0
inc esp
and al, 0x14
add byte [eax], al
add byte [eax], al

Function at 0x41804b
Capabilities:
Query or enumerate registry value

Disassembly:
fadd qword [str.9_v_]
push SysFreeString
mov edi, esi
fstp qword [str.9_v_]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4180de
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0xc]
push ebp
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
mov ebp, 4
push str.Browse_For_Folder_Width
push eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebp
call ebx
test eax, eax
jne 0x4180a4
mov edi, dword [esp + 0x1c]
xor esi, esi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.Browse_For_Folder_Height
push ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebp
call ebx
pop ebp
pop ebx
test eax, eax
jne 0x4180d3
or esi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, edi
mov eax, esi
pop edi
pop esi
add esp, 0x18
ret

Function at 0x42784d
Capabilities:
Encode data using xor

Disassembly:
pop esp
jbe 0x427892
lcall 0x84e6, 0xb31d0929
xor cl, bl
arpl word [esi - 0x37], dx
cli
or ebx, ecx
dec ecx
pop ds
cmp al, 0x9b
insb byte es:[edi], dx
pop eax
out 0xf4, eax
pop ds
arpl di, ax
push es
or edx, edi
push eax
mov edi, 0x87bbf6e8
push ebp
sbb ebp, dword [eax + 0x36cf3ef3]
mov dword [0x575ca667], eax
ja 0x427850
iretd
jp 0x427879
invalid
jle 0x4278a3
fldenv [eax]
add esi, ebx
mov ebp, 0xd9da9bb9
invalid
pop es
out dx, eax
in al, 8
mov bl, 0xc8
aam 0xa9
inc eax
rol byte [ecx + 0x430dfeda], 0x17
arpl sp, si
push edx
lodsd eax, dword [esi]
xor ebp, dword [eax + 0x17]
add byte [edx - 1], cl
sub dword [edi], edx
mov bl, 0x32
xchg ebp, eax
nop
or al, 0xa8
ret 0x827d

Function at 0x4800de
Capabilities:
Encode data using xor

Disassembly:
xor byte [edx + 0x4630b0cd], bl
adc al, 0x2a
xchg ebx, eax
sub bh, byte [ebp - 0x48af0f96]
mov edx, 0x6c4496d
cli
adc bl, dh
stosd dword es:[edi], eax
outsb dx, byte [esi]
xor bl, cl
jg 0x4800c7
mov dh, 0x48
mov edx, 0x265e781e
das
test al, 0x14
jl 0xe8a57a24
mov bh, 0x52
sar byte [ecx], cl
invalid
cmp dword [eax - 0xac67958], ebx
cwde
test al, 0x86
cmp ebp, esi
jbe 0x4800df
mov al, byte [ecx]
dec esp
sub byte [ebp - 0x4431862c], ch
jmp 0x4800ae
Function at 0x62b085
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x634430
cmp edx, dword [eax]
je 0x62b0a7
add eax, 8
inc ecx
cmp eax, 0x6344c0
jl 0x62b098
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x634430]
jne 0x62b1d5
mov eax, dword [0x638dc0]
cmp eax, 1
je 0x62b1af
test eax, eax
jne 0x62b0d8
cmp dword [0x63435c], 1
je 0x62b1af
cmp edx, 0xfc
je 0x62b1d5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62b10f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0062ba70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0062bf00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x62b152
lea eax, [ebp - 0x1a4]
push eax
call fcn.0062bf00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x630c04
push edi
call fcn.0062ddd0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0062ba70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0062ba80
lea eax, [ebp - 0xa0]
push 0x630be4
push eax
call fcn.0062ba80
push dword [esi + 0x634434]
lea eax, [ebp - 0xa0]
push eax
call fcn.0062ba80
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062dd44
add esp, 0x2c
pop edi
jmp 0x62b1d5
lea eax, [ebp + 8]
lea esi, [esi + 0x634434]
push 0
push eax
push dword [esi]
call fcn.0062bf00
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 0x643145
Capabilities:
Check for vm using instruction vpcext

Disassembly:
ljmp 0x49c5:0x20caf494
fstp xword [eax + 0x50]
stosd dword es:[edi], eax
inc ebx
clc
mov dl, 0xe3
lds ebx, ss:[esp + ebp + 0x2b]
invalid
jo 0x6430d9
and edx, 0xffffff92
bound ecx, qword [0x4cbfddd6]
jnp 0x643119
mov dword [0xcc783bfc], eax
invalid

Function at 0x6d9985
Capabilities:
Encode data using xor

Disassembly:
out 0xfb, eax
clc
fbstp tbyte [esp + ebp*2 + 0x41ad1959]
call 0x5e15458d
push 0xde6c716a
and eax, 0xb1ba3909
mov dword [0xd62a6b9b], eax
xor eax, 0x74944be6
xchg esi, eax
xchg esp, eax
xchg edi, eax
mov dword [0x60adcefc], eax
ficom word [ebx + 0x6778562f]
push 0x45c074f2
and ebp, edi
invalid

Function at 0x76ee05
Capabilities:
Encode data using xor

Disassembly:
push cs
xchg edi, eax
push ecx
xchg byte [ecx + esi*4 - 0x1b635cc2], cl
push ss
jbe 0x76ee40
pop esi
out dx, al
inc ebx
xor ah, byte [edi]
sub dl, dh
cdq
mov edx, 0x9e06ec92
add edi, dword [esp + ebx*4]
mov ah, 0xfc
cld
push ss
mov dh, 0x3a
push edx
aas
je 0x76ee32
sbb byte [edx], ah
mov esi, 0x991be120
pop ss
push es
push ebp
push ebx
and cl, ah
sbb ebx, dword [ecx + 0x53550617]
mov esp, 0xa8a2c42
call [edi + 0x12ad86f2]
jb 0x76ee4b
inc ecx
out dx, al
ror esi, 1
pop ds
pop ds
mov esi, 0xb536c7b9
pop eax
movsd dword es:[edi], dword [esi]
xor ecx, dword [ebp + 0x20]
sub cl, dh
push ecx
inc byte [esi + 0x63ee32f0]
fistp qword [ebx + 0x1e04261e]
xchg edi, eax
cmp byte [ebp - 9], 0x1b
mov dword [0xba6f5988], eax
and esi, dword [eax]
xor eax, 0x53bc9ada
add dh, byte [edi + esi]
pop edi
and byte [edx], al
jns 0x76ee80
test eax, 0xc5cf41b1
mov dh, 0x41
int3
Function at 0x405465
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x5c4e68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor ebx, ebx
push 0x4d
lea eax, [ebp - 0x57]
push ebx
push eax
mov byte [ebp - 0x58], bl
call fcn.005117f0
add esp, 0xc
cmp esi, ebx
jne 0x405497
or eax, 0xffffffff
jmp 0x40554b
lea eax, [ebp - 0x58]
push eax
mov edx, str.____This_is_the_beginning_of_a_PAULA_Arkive_self_extracting_compilation.____
call fcn.004c62db
push esi
call fcn.005133f3
push esi
mov dword [ebp - 0x5c], ebx
call fcn.0051344f
add esp, 0xc
cmp eax, 0xffffffff
je 0x4054de
push 1
push eax
lea eax, [ebp - 0x5c]
lea ebx, [ebp - 0x58]
call fcn.00434c9b
test eax, eax
pop ecx
pop ecx
jne 0x405544
push esi
call fcn.0051344f
cmp eax, 0xffffffff
pop ecx
jne 0x4054bc
xor ebx, ebx
push 2
push ebx
push esi
call fcn.005131f0
add esp, 0xc
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.005120b0
pop ecx
push eax
lea eax, [ebp - 0x58]
push 1
push eax
call fcn.005110f1
mov edi, eax
lea eax, [ebp - 0x58]
push eax
call fcn.005120b0
add esp, 0x14
cmp edi, eax
je 0x405522
push str.:7:TagSelfExtractingExe___FAILED:_fwrite___failed_to_write_the_tag_
call fcn.004265da
or eax, 0xffffffff
jmp 0x40554a
push esi
call fcn.005133f3
push 2
push 0xffffffffffffffff
push esi
call fcn.005131f0
push esi
call fcn.0051344f
push 2
push ebx
push esi
call fcn.005131f0
add esp, 0x20
push esi
call fcn.005130cc
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0051291c
leave
ret
Function at 0x406679
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00524dc0
push ebx
push esi
xor ebx, ebx
push 0xffc
lea eax, [ebp - 0x1004]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x1008], ebx
call fcn.005117f0
add esp, 0xc
cmp dword [ebp + 8], ebx
mov dword [ebp - 8], ebx
jne 0x4066b6
xor eax, eax
jmp 0x40673f
shr esi, 2
mov eax, 0x40000
cmp esi, eax
mov dword [ebp - 4], esi
jbe 0x4066c8
mov dword [ebp - 4], eax
shr dword [ebp - 4], 2
push edi
mov edi, 0x400
cmp dword [ebp - 4], edi
jbe 0x4066e9
push 4
push dword [ebp - 4]
call fcn.00511988
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
jne 0x4066f2
mov dword [ebp - 4], edi
lea esi, [ebp - 0x1008]
xor edi, edi
push dword [ebp + 8]
push dword [ebp - 4]
push 4
push esi
call fcn.00511c63
add esp, 0x10
test eax, eax
mov dword [ebp - 8], eax
jbe 0x40671e
xor ebx, ebx
test eax, eax
jbe 0x40671a
add edi, dword [esi + ebx*4]
inc ebx
cmp ebx, eax
jb 0x406712
add edi, eax
jmp 0x4066f4
test edi, edi
jne 0x406727
test ebx, ebx
je 0x406727
inc edi
test esi, esi
je 0x40673c
lea eax, [ebp - 0x1008]
cmp esi, eax
je 0x40673c
push esi
call fcn.00511758
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407a7c
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x5c4e68]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
push 0x10
pop ecx
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor esi, esi
cmp edx, esi
je 0x407ba1
mov edi, dword [ebp + 0xc]
cmp edi, esi
je 0x407ba1
cmp ebx, esi
je 0x407ba1
mov eax, ebx
call fcn.004c3ab2
xor ecx, ecx
test edi, edi
mov dword [ebp - 0x4c], esi
jbe 0x407b8b
dec edi
mov dword [ebp - 0x50], edi
jmp 0x407adc
mov edx, dword [ebp + 8]
test esi, esi
jbe 0x407aff
xor edx, edx
push 3
pop edi
mov eax, esi
div edi
xor edx, edx
push 0x4c
pop edi
shl eax, 2
div edi
test edx, edx
mov edx, dword [ebp + 8]
jne 0x407aff
mov byte [ebx + ecx], 0xa
inc ecx
cmp esi, dword [ebp - 0x50]
jb 0x407b11
movzx eax, byte [esi + edx]
shl eax, 0x10
add dword [ebp - 0x4c], 2
jmp 0x407b45
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffe
cmp esi, eax
movzx eax, byte [esi + edx]
jb 0x407b31
movzx edx, byte [esi + edx + 1]
shl eax, 8
add eax, edx
shl eax, 8
inc dword [ebp - 0x4c]
jmp 0x407b45
movzx edi, byte [esi + edx + 1]
movzx edx, byte [esi + edx + 2]
shl eax, 8
add eax, edi
shl eax, 8
add eax, edx
mov edx, eax
shr edx, 0x12
push 0x3f
pop edi
and edx, edi
mov dl, byte [ebp + edx - 0x48]
mov byte [ebx + ecx], dl
mov edx, eax
shr edx, 0xc
and edx, edi
mov dl, byte [ebp + edx - 0x48]
inc ecx
mov byte [ebx + ecx], dl
mov edx, eax
shr edx, 6
and edx, edi
mov dl, byte [ebp + edx - 0x48]
inc ecx
and eax, edi
mov al, byte [ebp + eax - 0x48]
mov byte [ebx + ecx], dl
inc ecx
mov byte [ebx + ecx], al
add esi, 3
inc ecx
cmp esi, dword [ebp + 0xc]
jb 0x407ad9
mov eax, dword [ebp - 0x4c]
test eax, eax
jbe 0x407b9d
lea ebx, [ebx + ecx - 1]
mov byte [ebx], 0x3d
dec ebx
dec eax
jne 0x407b96
mov eax, ecx
jmp 0x407ba3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051291c
leave
ret
Function at 0x40f5fc
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x5c4e68]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov edi, ecx
mov byte [ebp - 0x110], 0
call fcn.005117f0
add esp, 0xc
test edi, edi
jne 0x40f63a
lea edi, [ebp - 0x110]
mov esi, 0x104
push esi
push edi
push str.windir
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x40f65f
cmp eax, esi
jae 0x40f65f
mov edx, edi
call fcn.004c3b34
test eax, eax
je 0x40f678
push 0
push 0
call fcn.00489d3d
push eax
push str._sWindows
push esi
push edi
call fcn.004c53b7
add esp, 0x18
mov eax, edi
call fcn.004c425f
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0051291c
leave
ret

Function at 0x40f68f
Capabilities:
Query environment variable

Disassembly:
mov edx, str.Desktop
jmp fcn.0040f699
Function at 0x41003b
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x114
mov eax, dword [0x5c4e68]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push ebp
push esi
push edi
push 0x103
lea eax, [esp + 0x19]
push 0
push eax
mov byte [esp + 0x20], 0
call fcn.005117f0
add esp, 0xc
call fcn.0040ff87
xor edi, edi
inc edi
call fcn.00412d95
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
mov esi, str._GetLastError_
jne 0x410097
push esi
push str.:7:InitConsole___FAILED:_AllocConsole___FAILED:__s
xor edi, edi
call fcn.004265da
pop ecx
pop ecx
mov ebp, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 7
push 0xfffffffffffffff6
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push eax
call ebx
test eax, eax
jne 0x4100bf
push esi
push str.:7:InitConsole___FAILED:_SetConsoleMode_STD_INPUT_HANDLE__FAILED:__s
xor edi, edi
call fcn.004265da
pop ecx
pop ecx
push 3
push 0xfffffffffffffff5
call ebp
push eax
call ebx
test eax, eax
jne 0x4100db
push esi
push str.:7:InitConsole___FAILED:_SetConsoleMode_STD_OUTPUT_HANDLE__FAILED:__s
xor edi, edi
call fcn.004265da
pop ecx
pop ecx
push 1
push 0x4101f7
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x4100fb
push esi
push str.:7:InitConsole___FAILED:_SetConsoleCtrlHandler___FAILED:__s
xor edi, edi
call fcn.004265da
pop ecx
pop ecx
mov ebp, 0x35c
push ebp
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
test eax, eax
jne 0x41011a
push ebp
push str.:9:InitConsole___FAILED:_SetConsoleOutputCP___FAILED:_could_not_set_code_page__d___
xor edi, edi
call fcn.004265da
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor ebx, ebx
cmp eax, ebx
mov dword [0x5d9d6c], eax
jne 0x41013a
push esi
push str.:7:InitConsole___FAILED:_GetConsoleWindow___FAILED:__s
xor edi, edi
call fcn.004265da
pop ecx
pop ecx
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jbe 0x410179
lea edx, [esp + 0x14]
call fcn.004c470f
mov eax, edx
push eax
mov esi, 0x532eb0
call fcn.004c3ca1
test eax, eax
pop ecx
jne 0x410179
push ebx
push ebx
call fcn.00489f49
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.Sounds_
push ebx
call fcn.00489f49
pop ecx
pop ecx
mov ebx, eax
call fcn.004bf865
call fcn.004f16be
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0051228a
pop ecx
call fcn.00512297
call fcn.00512297
call fcn.00512297
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051291c
add esp, 0x114
ret
Function at 0x410257
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5c4e68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
xor ebx, ebx
push ebx
mov esi, eax
call fcn.00410423
cmp esi, ebx
pop ecx
mov dword [0x5d9c9c], ebx
jne 0x41028f
xor eax, eax
jmp 0x410414
push 0x400
mov eax, 0x5d9898
push ebx
push eax
mov dword [0x5d9ca0], eax
xor edi, edi
mov dword [ebp - 0x114], ebx
call fcn.005117f0
mov eax, dword [0x5d9c9c]
mov edx, dword [0x5d9c98]
add esp, 0xc
cmp byte [esi], bl
je 0x41037e
mov dword [ebp - 0x118], esi
cmp eax, 0x32
jge 0x41036a
lea esi, [edx + edi]
cmp esi, 0x3f6
jge 0x41036a
mov ecx, dword [ebp - 0x118]
mov cl, byte [ecx]
cmp cl, 0x20
ja 0x41032a
xor ebx, ebx
cmp dword [ebp - 0x114], ebx
jne 0x41032a
cmp edi, ebx
jle 0x410326
inc eax
cmp eax, 1
lea edx, [esi + 6]
mov dword [0x5d9c9c], eax
mov dword [0x5d9c98], edx
jne 0x410319
add edx, 4
mov dword [0x5d9c98], edx
lea ecx, [edx + 0x5d9898]
mov dword [eax*4 + 0x5d9ca0], ecx
xor edi, edi
jmp 0x410356
cmp cl, 0x22
jne 0x41034b
cmp dword [ebp - 0x114], ebx
jne 0x410343
mov dword [ebp - 0x114], 1
jmp 0x410356
mov dword [ebp - 0x114], ebx
jmp 0x410356
mov esi, dword [eax*4 + 0x5d9ca0]
mov byte [edi + esi], cl
inc edi
inc dword [ebp - 0x118]
mov ecx, dword [ebp - 0x118]
cmp byte [ecx], bl
jne 0x4102c9
cmp edi, ebx
jle 0x41037e
inc eax
lea edx, [edx + edi + 1]
mov dword [0x5d9c9c], eax
mov dword [0x5d9c98], edx
push 0x32
pop ecx
cmp eax, ecx
jge 0x410396
lea edi, [eax*4 + 0x5d9ca0]
sub ecx, eax
lea eax, [edx + 0x5d9898]
rep stosd dword es:[edi], eax
mov esi, dword [0x5d9ca0]
call fcn.004c4471
mov edx, eax
call fcn.004c3b34
test eax, eax
je 0x41040f
push 0x103
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], bl
call fcn.005117f0
add esp, 0xc
push dword [0x5d9ca0]
mov esi, 0x104
mov ecx, esi
lea eax, [ebp - 0x110]
call fcn.004c3b66
mov eax, esi
lea esi, [ebp - 0x110]
mov dword [esp], str..exe
call fcn.004c3c36
pop ecx
mov edi, esi
call fcn.0042ad00
test eax, eax
je 0x41040f
mov eax, esi
push eax
push dword [0x5d9ca0]
call fcn.005123e0
pop ecx
pop ecx
mov eax, dword [0x5d9c9c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051291c
leave
ret