joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404caa
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x2dc
lea eax, [ebp - 0x270]
cmp dword [ebp + 0x7c], 0
push ebx
push esi
push edi
jne 0x404cd4
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x404cdf
push dword [ebp + 0x7c]
push eax
call fcn.0041fae6
pop ecx
pop ecx
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x404dc1
call fcn.0042fe40
mov esi, esp
test esi, esi
je 0x404dc1
push edi
push 0
push esi
call fcn.00419e50
add esp, 0xc
lea eax, [ebp - 0x270]
push esi
push edi
push dword [ebp + 0x64]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x404dc1
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x7c]
push eax
push str.VarFileInfoTranslation
push esi
call edi
test eax, eax
je 0x404dc1
mov ecx, dword [ebp + 0x7c]
mov ebx, str.FileVersion
push ebx
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x64]
push str.StringFileInfo_04X_04X_s
push eax
call fcn.004029e8
add esp, 0x14
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x7c]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
call edi
test eax, eax
jne 0x404da4
push ebx
lea eax, [ebp - 0x64]
push str.StringFileInfo040904E4_s
push eax
call fcn.004029e8
add esp, 0xc
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x7c]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
call edi
test eax, eax
je 0x404dc1
mov edi, dword [ebp + 0x78]
mov esi, dword [ebp + 0x74]
push edi
push dword [ebp + 0x7c]
push esi
call fcn.0041fb54
xor eax, eax
add esp, 0xc
mov word [esi + edi*2 - 2], ax
inc eax
jmp 0x404dc3
xor eax, eax
lea esp, [ebp - 0x27c]
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc

Function at 0x404dd3
Capabilities:
Read .ini file

Disassembly:
push esi
push edi
mov edi, ecx
xor edx, edx
mov eax, dword [edi + 0x11b0]
sub eax, edx
je 0x404e5b
sub eax, 1
je 0x404def
xor eax, eax
jmp 0x404e78
lea ecx, [edi + 0x1424]
mov eax, dword [ecx]
test eax, eax
je 0x404e07
cmp word [eax], dx
je 0x404e07
call fcn.0040ef32
jmp 0x404e61
mov esi, dword [esp + 0xc]
lea eax, [edi + 0x420]
push eax
push 0x104
push esi
push 0x43ace4
push str.INSTLOCAL
lea eax, [edi + 0x834]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
call fcn.0041fb39
pop ecx
test eax, eax
jne 0x404e6e
lea eax, [edi + 0xc]
push eax
push esi
call fcn.0041fae6
mov ecx, esi
call fcn.0040bd2b
push str.INSTALL
push esi
call fcn.0041fb08
add esp, 0x10
jmp 0x404e6e
lea eax, [edi + 0x216]
mov esi, dword [esp + 0xc]
push eax
push esi
call fcn.0041fae6
pop ecx
pop ecx
mov ecx, esi
call fcn.0040bd2b
xor eax, eax
inc eax
pop edi
pop esi
ret 4
Function at 0x416e22
Capabilities:
Get common file path

Disassembly:
mov eax, 0x430b51
call fcn.00430290
sub esp, 0x664
push ebx
push esi
push edi
xor esi, esi
mov edi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x25c], esi
movlpd qword [ebp - 0x38], xmm0
call fcn.0040dee6
mov dword [ebp - 4], esi
mov eax, ecx
push dword [edi + 0x646]
push dword [edi + 0x642]
push ecx
push 0x83
push eax
mov ecx, edi
call fcn.0041790e
test eax, eax
je 0x417037
mov dword [ebp - 0x14], esi
cmp dword [edi + 0x64a], esi
jle 0x417037
mov eax, dword [ebp - 0x34]
mov ecx, esi
mov ebx, dword [ebp - 0x38]
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x416ef8
mov eax, dword [ebp - 0x2c]
add eax, ebx
push 0x418
push eax
lea eax, [ebp - 0x670]
push eax
call fcn.004198d0
lea eax, [ebp - 0x466]
push str.wd250pnt.dll
push eax
call fcn.0041fb97
add esp, 0x14
test eax, eax
jne 0x416ece
xor ecx, ecx
inc ecx
mov dword [ebp - 0x18], ecx
jmp 0x416ee1
mov eax, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0x18]
add eax, 0x418
add ebx, eax
adc dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [edi + 0x64a]
jl 0x416e93
test ecx, ecx
je 0x417037
lea ecx, [ebp - 0x44]
call fcn.0040dee6
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
mov eax, ecx
push eax
mov eax, dword [ebp - 0x2c]
push dword [ebp - 0x25c]
add eax, 0x418
add eax, ebx
push eax
call fcn.00417064
test eax, eax
je 0x41702d
lea ecx, [edi + 0x12dc]
call fcn.0040ef32
push esi
lea edx, [ebp - 0x258]
mov ecx, eax
call fcn.00402d88
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x670]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x258]
mov ebx, str._s_s
push eax
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.0040f523
add esp, 0x14
lea ecx, [ebp - 0x24]
call fcn.00412148
push esi
push 0x10000000
push 2
push esi
push 0x40000000
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0040ef32
push eax
lea ecx, [ebp - 0x24]
call fcn.004121f2
test eax, eax
jne 0x416fe8
lea eax, [ebp - 0x258]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.0040f523
add esp, 0x10
lea ecx, [ebp - 0x10]
push esi
push 0x10000000
push 2
push esi
push 0x40000000
call fcn.0040ef32
push eax
lea ecx, [ebp - 0x24]
call fcn.004121f2
test eax, eax
je 0x41701d
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
push dword [ebp - 0x40]
call fcn.0041227b
test eax, eax
je 0x41701d
lea ecx, [ebp - 0x24]
call fcn.0041222a
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
xor ebx, ebx
inc ebx
push eax
mov dword [edi + 0x12f8], ebx
call fcn.0040f1ac
mov esi, ebx
lea ecx, [ebp - 0x24]
call fcn.00412159
lea ecx, [ebp - 0x10]
call fcn.0040eea9
lea ecx, [ebp - 0x44]
call fcn.0040def7
jmp 0x417049
mov ecx, dword [ebp + 8]
lea eax, [edi + 0x222]
push eax
call fcn.0040f1c4
xor esi, esi
inc esi
lea ecx, [ebp - 0x30]
call fcn.0040def7
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x4fe7e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa3000]
push edi
jmp 0x4fe7fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4fe801
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fe7f0
mov eax, 1
add ebx, ebx
jne 0x4fe813
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4fe824
jne 0x4fe843
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fe843
dec eax
add ebx, ebx
jne 0x4fe830
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4fe808
add ebx, ebx
jne 0x4fe83f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4fe895
xor ecx, ecx
sub eax, 3
jb 0x4fe85b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4fe8ca
sar eax, 1
mov ebp, eax
jmp 0x4fe866
add ebx, ebx
jne 0x4fe866
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fe834
inc ecx
add ebx, ebx
jne 0x4fe874
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fe834
add ebx, ebx
jne 0x4fe881
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4fe876
jne 0x4fe892
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4fe876
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4fe8b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4fe8a6
jmp 0x4fe7f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4fe8b4
add edi, ecx
jmp 0x4fe7f6
pop esi
mov edi, esi
mov ecx, 0x3b6c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4fe8d2
cmp byte [edi], 0x17
jne 0x4fe8d2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
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 0x4fe8d7
lea edi, [esi + 0xf8000]
mov eax, dword [edi]
or eax, eax
je 0x4fe946
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11abc8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11ac5c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4fe904
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x11ac64]
or eax, eax
je 0x4fe940
mov dword [ebx], eax
add ebx, 4
jmp 0x4fe921
call dword [esi + 0x11ac60]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4fe977
cmp al, 0xef
ja 0x4fe96a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4fe94c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4fe959
mov ebp, dword [esi + 0x11ac68]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x4fe9ab
sub esp, 0xffffff80
jmp 0x435126
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x58fa44], 1
mov dword [0x58fa40], 1
mov dword [0x58fa3c], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x58f00c], eax
mov eax, dword [0x58fa50]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x58fa64]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x58fa4c]
mov dword [eax], edx
call sym.__setargv
cmp dword [0x51109c], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], sym.__matherr
call sym.___mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056
Function at 0x401540
Capabilities:
Delete file

Disassembly:
push esi
push ebx
sub esp, 0x64
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x70]
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
cmp eax, 0x14
ja 0x401570
test eax, eax
je case.0x401563.0
cmp eax, 0x14
ja case.0x401563.0
jmp dword [eax*4 + 0x5130dc]
cmp eax, 0x111
jne case.0x401563.0
mov dword [esp], edx
call sym.HandleButtonClick_unsigned_int_
test eax, eax
jne 0x4015b8
lea esi, [esi]
nop
xor eax, eax
add esp, 0x64
pop ebx
pop esi
ret 0x10
mov dword [esp + 0x70], ebx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x74], eax
add esp, 0x64
pop ebx
pop esi
jmp dword [sym.imp.USER32.dll_DefWindowProcA]
mov dword [esp + 4], 0x513092
mov dword [esp], str.MapleStory.exe
call sym.StartProcess_char__char_
mov dword [esp + 4], 1
mov dword [esp], str.Removing_files_after_result__d
call sym.Log_char_const__..._
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esp], str.Patcher.dat
call esi
sub esp, 4
mov dword [esp], str.Patcher.info
call esi
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
sub esp, 4
jmp 0x401588
mov dword [esp], ebx
call sym.InitializeUI_HWND___
test eax, eax
je 0x401588
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym.__Z20StartPatchingProcessPv_4
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x58f040], eax
sub esp, 0x18
jmp 0x401588
lea esi, [esp + 0x20]
mov dword [esp], ebx
mov dword [esp + 4], esi
call dword [sym.imp.USER32.dll_BeginPaint]
sub esp, 8
mov dword [esp], eax
call sym.Draw_HDC___
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_EndPaint]
sub esp, 8
jmp 0x401588
mov eax, dword [0x58f040]
test eax, eax
je 0x4016b5
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [0x58f044]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
sub esp, 4
call sym.CleanupUI__
mov dword [esp], 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
sub esp, 4
jmp 0x401588
mov eax, 1
jmp 0x40158a
Function at 0x401610
Capabilities:
Create thread

Disassembly:
push esi
push ebx
sub esp, 0x64
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x70]
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
cmp eax, 0x14
ja 0x401570
test eax, eax
je case.0x401563.0
cmp eax, 0x14
ja case.0x401563.0
jmp dword [eax*4 + 0x5130dc]
cmp eax, 0x111
jne case.0x401563.0
mov dword [esp], edx
call sym.HandleButtonClick_unsigned_int_
test eax, eax
jne 0x4015b8
lea esi, [esi]
nop
xor eax, eax
add esp, 0x64
pop ebx
pop esi
ret 0x10
mov dword [esp + 0x70], ebx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x74], eax
add esp, 0x64
pop ebx
pop esi
jmp dword [sym.imp.USER32.dll_DefWindowProcA]
mov dword [esp + 4], 0x513092
mov dword [esp], str.MapleStory.exe
call sym.StartProcess_char__char_
mov dword [esp + 4], 1
mov dword [esp], str.Removing_files_after_result__d
call sym.Log_char_const__..._
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esp], str.Patcher.dat
call esi
sub esp, 4
mov dword [esp], str.Patcher.info
call esi
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
sub esp, 4
jmp 0x401588
mov dword [esp], ebx
call sym.InitializeUI_HWND___
test eax, eax
je 0x401588
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym.__Z20StartPatchingProcessPv_4
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x58f040], eax
sub esp, 0x18
jmp 0x401588
lea esi, [esp + 0x20]
mov dword [esp], ebx
mov dword [esp + 4], esi
call dword [sym.imp.USER32.dll_BeginPaint]
sub esp, 8
mov dword [esp], eax
call sym.Draw_HDC___
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_EndPaint]
sub esp, 8
jmp 0x401588
mov eax, dword [0x58f040]
test eax, eax
je 0x4016b5
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [0x58f044]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
sub esp, 4
call sym.CleanupUI__
mov dword [esp], 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
sub esp, 4
jmp 0x401588
mov eax, 1
jmp 0x40158a
Function at 0x402190
Capabilities:
Contain obfuscated stackstrings
Delete file

Disassembly:
push esi
push ebx
sub esp, 0x34
lea ebx, [esp + 0x18]
mov dword [esp + 4], sym.patchProgress_char__long__long_
lea esi, [esp + 0x20]
mov dword [esp], ebx
mov dword [esp + 0x24], 0x2e726568
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], 0x63746150
mov dword [esp + 0x27], 0x7461642e
mov dword [esp + 0x1c], 0xb
mov byte [esp + 0x2b], 0
call sym.PatchReaderMain_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char_____int____char__long__long__
mov edx, dword [esp + 0x18]
mov ebx, eax
cmp edx, esi
je 0x4021f3
mov eax, dword [esp + 0x20]
mov dword [esp], edx
add eax, 1
mov dword [esp + 4], eax
call sym.operator_delete_void__unsigned_int_
test bl, bl
je 0x402215
mov dword [esp], 8
call sym.setPatchStep_int_
mov dword [esp], 1
call sym.SetButtonStatus_int_
add esp, 0x34
pop ebx
pop esi
ret
xor eax, eax
mov dword [esp], str.Removing_files_after_result__d
mov dword [esp + 4], eax
call sym.Log_char_const__..._
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esp], str.Patcher.dat
call ebx
push edx
mov dword [esp], str.Patcher.info
call ebx
push ecx
mov dword [esp], 1
call sym._exit
mov esi, eax
jmp sym.ExecutePatch____clone_.cold_
Function at 0x404fe0
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
push esi
xor eax, eax
push ebx
mov ebx, dword [esp + 0xc]
lea esi, [esi]
nop
mov ecx, eax
shl ecx, 0x19
mov edx, ecx
xor edx, 0x4c11db7
test al, 0x80
cmove edx, ecx
lea ecx, [edx + edx]
mov esi, ecx
xor esi, 0x4c11db7
test edx, edx
cmovs ecx, esi
lea edx, [ecx + ecx]
mov esi, edx
xor esi, 0x4c11db7
test ecx, ecx
cmovs edx, esi
lea ecx, [edx + edx]
mov esi, ecx
xor esi, 0x4c11db7
test edx, edx
cmovs ecx, esi
lea edx, [ecx + ecx]
mov esi, edx
xor esi, 0x4c11db7
test ecx, ecx
cmovs edx, esi
lea ecx, [edx + edx]
mov esi, ecx
xor esi, 0x4c11db7
test edx, edx
cmovs ecx, esi
lea edx, [ecx + ecx]
mov esi, edx
xor esi, 0x4c11db7
test ecx, ecx
cmovs edx, esi
lea ecx, [edx + edx]
mov esi, ecx
xor esi, 0x4c11db7
test edx, edx
cmovs ecx, esi
mov dword [ebx + eax*4], ecx
add eax, 1
cmp eax, 0x100
jne 0x404ff0
pop ebx
pop esi
ret

Function at 0x4050f0
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
push ebx
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
test ebx, ebx
jle 0x405130
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
add ebx, edx
lea esi, [esi]
movzx edi, byte [edx]
mov ecx, eax
shr eax, 0x18
add edx, 1
shl ecx, 8
xor eax, edi
xor ecx, dword [esi + eax*4]
mov eax, ecx
cmp ebx, edx
jne 0x405110
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x1c]
pop ebx
pop esi
pop edi
ret
Function at 0x405140
Capabilities:
Encode data using xor
Hash data using crc32b
Read file on windows

Disassembly:
push ebp
xor eax, eax
push edi
push esi
push ebx
sub esp, 0x42c
lea esi, [esi]
mov ecx, eax
shl ecx, 0x19
mov edx, ecx
xor edx, 0x4c11db7
test al, 0x80
cmove edx, ecx
lea ecx, [edx + edx]
mov ebx, ecx
xor ebx, 0x4c11db7
test edx, edx
cmovs ecx, ebx
lea edx, [ecx + ecx]
mov ebx, edx
xor ebx, 0x4c11db7
test ecx, ecx
cmovs edx, ebx
lea ecx, [edx + edx]
mov ebx, ecx
xor ebx, 0x4c11db7
test edx, edx
cmovs ecx, ebx
lea edx, [ecx + ecx]
mov ebx, edx
xor ebx, 0x4c11db7
test ecx, ecx
cmovs edx, ebx
lea ecx, [edx + edx]
mov ebx, ecx
xor ebx, 0x4c11db7
test edx, edx
cmovs ecx, ebx
lea edx, [ecx + ecx]
mov ebx, edx
xor ebx, 0x4c11db7
test ecx, ecx
cmovs edx, ebx
lea ecx, [edx + edx]
mov ebx, ecx
xor ebx, 0x4c11db7
test edx, edx
cmovs ecx, ebx
mov dword [esp + eax*4 + 0x20], ecx
add eax, 1
cmp eax, 0x100
jne 0x405150
mov dword [esp], 0xf0000
call sym.safe_malloc_int_
mov dword [esp + 4], 0x514fc4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x440]
mov eax, dword [eax]
mov dword [esp], eax
call sym.safe_fopen_char__char_
mov dword [esp], eax
mov dword [esp + 0x14], eax
call sym.GetEOF__iobuf_
mov ebp, eax
test eax, eax
jle 0x4052d9
xor esi, esi
mov edi, 0xf0000
xor ebx, ebx
lea edx, [esi + 0xeffff]
mov eax, ebp
mov dword [esp + 8], 0
sub eax, esi
cmp ebp, edx
mov dword [esp + 4], esi
cmovle edi, eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._fseek
mov eax, dword [esp + 0x14]
mov dword [esp + 4], edi
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sym._fread
test edi, edi
jle 0x4052a6
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], edi
mov eax, ecx
add ecx, edi
lea esi, [esi]
nop
movzx edi, byte [eax]
mov edx, ebx
shr ebx, 0x18
add eax, 1
shl edx, 8
xor ebx, edi
xor edx, dword [esp + ebx*4 + 0x20]
mov ebx, edx
cmp ecx, eax
jne 0x405288
mov edi, dword [esp + 0x1c]
add esi, 0xf0000
cmp ebp, esi
jg 0x40522c
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._fclose
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sym._free
add esp, 0x42c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebx, ebx
jmp 0x4052b4
Function at 0x407320
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edx, edx
sub esp, 4
cmp eax, 0xffffffff
je 0x407345
shr eax, 4
xor eax, 1
and eax, 1
mov edx, eax
mov eax, edx
add esp, 0x1c
ret

Function at 0x4073f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x2c
xor eax, eax
mov word [esp + 0x1e], ax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
lea eax, [esp + 0x1e]
mov dword [esp + 4], 2
mov dword [esp], eax
call sym._fread
movzx eax, word [esp + 0x1e]
add esp, 0x2c
ret

Function at 0x4074b0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
xor eax, eax
mov ecx, 0x10
push edi
push esi
push ebx
sub esp, 0x9c
lea edx, [esp + 0x50]
mov ebx, dword [esp + 0xb0]
lea ebp, [esp + 0x4c]
mov esi, dword [esp + 0xb4]
mov edi, edx
mov dword [esp + 0x4c], 0x44
rep stosd dword es:[edi], eax
mov dword [esp + 8], esi
lea edi, [esp + 0x3c]
mov dword [esp + 4], ebx
mov dword [esp], str.Starting__s__s
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
call sym.Log_char_const__..._
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], ebp
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 0x28
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call ebx
sub esp, 4
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call ebx
sub esp, 4
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x407810
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x1c
mov dword [esp + 4], eax
mov dword [esp], str.Out_of_memory_reallocation__nTried_to_reallocate__d_bytes.
call sym.Log_char_const__..._
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], 0x5152a4
mov dword [esp + 4], str.Out_of_realloc_memory_
mov dword [esp], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
sub esp, 0x10
mov dword [esp], 1
call sym._exit
lea esi, [esi]
nop
Function at 0x407d00
Capabilities:
Delete file

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [esp + 0x50]
mov dword [esp], esi
call sym._strlen
mov dword [esp + 4], 1
mov ebx, eax
add eax, 2
mov dword [esp], eax
add ebx, 1
call sym._calloc
mov dword [esp + 4], esi
lea esi, [esp + 0x12]
mov dword [esp + 8], ebx
mov edi, eax
mov dword [esp], eax
call sym._memcpy
lea ecx, [esp + 0x14]
mov eax, esi
mov dword [esp + 0x12], 0
sub eax, ecx
mov dword [esp + 0x28], 0
add eax, 0x1a
mov dword [ecx], 0
and eax, 0xfffffffc
lea edx, [eax - 1]
shr edx, 2
and edx, 1
mov ebp, edx
mov edx, 4
cmp edx, eax
jae 0x407d9d
xor ebx, ebx
test ebp, ebp
je 0x407d8f
mov edx, 8
mov dword [ecx + 4], 0
cmp edx, eax
jae 0x407d9d
mov dword [ecx + edx], ebx
mov dword [ecx + edx + 4], ebx
add edx, 8
cmp edx, eax
jb 0x407d8f
mov eax, 0x414
mov dword [esp + 0x1a], edi
mov dword [esp], esi
mov dword [esp + 0x16], 3
mov word [esp + 0x22], ax
mov dword [esp + 0x2c], 0x5153e4
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
sub esp, 4
mov ebx, eax
mov dword [esp], edi
call sym._free
add esp, 0x3c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x407de0
Capabilities:
Create directory

Disassembly:
push ebp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x14c
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, dword [esp + 0x160]
lea esi, [esp + 0x14]
movzx eax, byte [ebp]
test al, al
je 0x407e1c
lea esi, [esi]
add ebx, 1
cmp al, 0x5c
je 0x407e30
cmp al, 0x2f
je 0x407e30
movzx eax, byte [ebp + ebx]
test al, al
jne 0x407e08
add esp, 0x14c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], ebp
mov dword [esp], esi
call sym._memcpy
mov byte [ebx + esi], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call edi
movzx eax, byte [ebp + ebx]
sub esp, 8
test al, al
jne 0x407e08
add esp, 0x14c
pop ebx
pop esi
pop edi
pop ebp
ret