joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459d00
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x94
xor eax, eax
mov edx, dword [esp + 0x98]
mov dword [esp + 9], eax
push ebx
mov dword [esp + 0x11], eax
mov ebx, ecx
mov ecx, dword [esp + 0xa8]
mov word [esp + 0x15], ax
mov byte [esp + 0x17], al
mov dword [esp + 8], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0xc], ecx
test eax, eax
mov dword [esp + 0x14], edx
je 0x459e46
mov eax, dword [str.EPIPEMAGQQ]
mov ecx, dword [0x4947b8]
mov dx, word [0x4947bc]
mov dword [esp + 0x18], eax
mov al, byte [0x4947be]
push ebp
push esi
push edi
mov dword [esp + 0x28], ecx
mov byte [esp + 0x2e], al
mov ecx, 0x1d
xor eax, eax
lea edi, [esp + 0x2f]
mov word [esp + 0x2c], dx
rep stosd dword es:[edi], eax
mov edx, dword [ebx + 0x24]
lea esi, [ebx + 0x24]
stosb byte es:[edi], al
mov edi, dword [esp + 0xac]
mov ecx, esi
push edi
call dword [edx]
push eax
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 0x10]
mov ebp, eax
mov eax, dword [esi]
push ecx
mov ecx, dword [esp + 0xb4]
lea edx, [esp + 0x28]
push ebp
push edx
push edi
push ecx
mov ecx, esi
call dword [eax + 4]
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [ebx + 0x10]
lea eax, [esp + 0x14]
push esi
mov dword [esp + 0x20], edx
mov edx, dword [ebx + 8]
push eax
lea ecx, [esp + 0x20]
push 0xc
push ecx
push edx
call edi
test eax, eax
jne 0x459e1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xc
push eax
mov ecx, ebx
call fcn.00459e80
cmp eax, 1
jne 0x459e3a
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 8]
lea eax, [esp + 0x14]
push esi
push eax
push ecx
push ebp
push edx
call edi
test eax, eax
jne 0x459e27
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.00459e80
jmp 0x459e3a
cmp dword [esp + 0x14], 0xc
je 0x459df3
jmp 0x459e33
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp edx, eax
je 0x459e3a
mov ecx, ebx
call fcn.00459ed0
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0x10

Function at 0x459f70
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 4], eax
mov dword [0x4b7074], ecx
mov ecx, esi
call fcn.0045a2b0
mov eax, dword [esi + 4]
lea edx, [esp + 8]
push edx
push 0
push eax
push 0x459fc0
push 0
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret 8
Function at 0x45a620
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [edi]
push eax
call sub.WSOCK32.dll_ntohl
mov ecx, dword [edi + 4]
mov esi, eax
push ecx
call sub.WSOCK32.dll_ntohl
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x10]
mov edi, eax
lea ebx, [esp + 0x10]
sub ebp, edx
mov dword [esp + 0x24], 4
mov eax, dword [ebx + ebp]
push eax
call sub.WSOCK32.dll_ntohl
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
add ebx, 4
dec eax
mov dword [esp + 0x24], eax
jne 0x45a656
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x24], 0x10
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov edx, edi
sub eax, 0x61c88647
shr edx, 5
add edx, ebx
mov ebx, edi
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x18]
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
add esi, edx
mov edx, esi
mov ebx, esi
shr edx, 5
shl ebx, 4
add edx, ecx
add ebx, ebp
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add edi, edx
mov edx, dword [esp + 0x24]
dec edx
mov dword [esp + 0x24], edx
jne 0x45a67d
push esi
call sub.WSOCK32.dll_htonl
mov esi, dword [esp + 0x2c]
push edi
mov dword [esi], eax
call sub.WSOCK32.dll_htonl
mov dword [esi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x45a6f0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov eax, dword [esi]
push eax
call sub.WSOCK32.dll_ntohl
mov ecx, dword [esi + 4]
mov edi, eax
push ecx
call sub.WSOCK32.dll_ntohl
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x10]
mov esi, eax
lea ebx, [esp + 0x10]
sub ebp, edx
mov dword [esp + 0x24], 4
mov eax, dword [ebx + ebp]
push eax
call sub.WSOCK32.dll_ntohl
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
add ebx, 4
dec eax
mov dword [esp + 0x24], eax
jne 0x45a726
mov ecx, dword [esp + 0x14]
mov eax, 0xe3779b90
mov dword [esp + 0x24], 0x10
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, edi
shr edx, 5
add edx, ebx
mov ebx, edi
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x10]
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
sub esi, edx
mov edx, esi
mov ebx, esi
shr edx, 5
shl ebx, 4
add edx, ecx
add ebx, ebp
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add eax, 0x61c88647
sub edi, edx
mov edx, dword [esp + 0x24]
dec edx
mov dword [esp + 0x24], edx
jne 0x45a750
push edi
call sub.WSOCK32.dll_htonl
mov edi, dword [esp + 0x2c]
push esi
mov dword [edi], eax
call sub.WSOCK32.dll_htonl
mov dword [edi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x45fc70
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x208
push ebx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 8]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
cmp eax, ebx
je 0x45fd17
mov byte [eax + 1], bl
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x10d]
mov byte [esp + 0x10c], bl
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
push str._s_config.ini
lea eax, [esp + 0x114]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea ecx, [esp + 0x10c]
push ecx
push ebx
push str.InitGdiPlus
push str.MinigameLoader
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
pop edi
pop ebx
setne al
add esp, 0x208
ret
mov al, bl
pop edi
pop ebx
add esp, 0x208
ret
Function at 0x4638a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x479d58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0xc]
call fcn.00466170
mov ecx, dword [edi + 0x4c]
lea eax, [edi + 0x2c]
mov esi, ecx
mov dword [esp + 0x28], 0
sub esi, eax
neg esi
sbb esi, esi
and esi, ecx
test esi, esi
je 0x46390a
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
add eax, 8
add ecx, 8
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.00466350
mov ecx, esi
call fcn.00469880
mov esi, eax
test esi, esi
jne 0x4638e6
mov ecx, dword [ebx + 0x28]
lea eax, [esp + 0xc]
push eax
mov eax, dword [edi + 0x20]
mov edx, dword [ecx]
add eax, 8
push eax
call dword [edx + 4]
test al, al
jne 0x463950
mov edi, dword [edi + 0x28]
test edi, edi
jne 0x4638e2
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00466250
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00466250
mov ecx, dword [esp + 0x20]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4

Function at 0x463980
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x479d78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
call fcn.00466170
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x28], 0
mov esi, dword [ebx + 0x4c]
lea eax, [ebx + 0x2c]
cmp esi, eax
je 0x4639e4
test esi, esi
je 0x4639e4
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
add eax, 8
add ecx, 8
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.00466350
mov ecx, esi
call fcn.00469880
mov esi, eax
test esi, esi
jne 0x4639c0
mov ecx, dword [edi + 0x28]
lea eax, [esp + 0xc]
push eax
mov eax, dword [ebx + 0x20]
mov edx, dword [ecx]
add eax, 8
push eax
call dword [edx + 4]
mov ecx, ebx
call fcn.00468690
mov esi, eax
test esi, esi
je 0x463a1a
push esi
mov ecx, edi
call fcn.00463980
mov ecx, esi
call fcn.00468740
mov esi, eax
test esi, esi
jne 0x463a05
mov ecx, dword [edi + 0x28]
mov eax, dword [ebx + 0x20]
add eax, 8
mov edx, dword [ecx]
push eax
call dword [edx + 8]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00466250
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x464a40
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x479dc3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
call fcn.0046f870
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0xc]
call fcn.0046f540
mov esi, dword [0x4faba0]
mov dword [esp + 0x24], 0
test esi, esi
jne 0x464ab6
push 0x3c
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov byte [esp + 0x24], 1
je 0x464aa3
mov ecx, eax
call fcn.004631b0
jmp 0x464aa5
xor eax, eax
mov esi, eax
mov byte [esp + 0x24], 0
test esi, esi
mov dword [0x4faba0], esi
je 0x464adc
lea eax, [edi + 8]
add edi, 4
push eax
push edi
lea ecx, [esp + 0x14]
call fcn.0046f600
mov edx, dword [esi]
push 0
push 0
lea eax, [esp + 0x14]
push str.EngineCfg.xml
push eax
mov ecx, esi
call dword [edx + 4]
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.0046f5c0
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x4694b0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x47a2d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.00468000
mov edx, dword [esp + 0x24]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
mov dword [ebx + 8], ecx
mov dword [ebx + 4], ecx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [ebx + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.0046fae0
mov eax, dword [esi]
push 0x48d204
add eax, 8
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x46969a
mov ebp, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call ebp
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov edi, eax
call ebp
add esp, 0x1c
test edi, edi
jne 0x469544
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
jmp 0x4696a9
mov dword [esp + 0x10], 0x4faf48
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0
call fcn.0046fa30
lea ecx, [edi + 1]
push ecx
call sub.MFC42.DLL_operatornew
push esi
mov ebp, eax
push 1
push edi
push ebp
mov byte [ebp], 0
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x14
cmp eax, 1
je 0x4695be
push 0
push 0
push 0
push 2
mov ecx, ebx
call fcn.00470b00
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, 0x4faf48
mov dword [esp + 0x1c], 0xffffffff
je 0x4696a9
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x4696a9
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov byte [edi + ebp], 0
mov cl, byte [ebp]
add esp, 4
mov eax, ebp
test cl, cl
mov esi, ebp
je 0x469633
mov cl, byte [esi]
cmp cl, 0xa
jne 0x4695f3
mov edx, esi
lea ecx, [esp + 0x10]
sub edx, eax
inc edx
push edx
push eax
call fcn.0046fbc0
inc esi
mov eax, esi
jmp 0x46962e
cmp cl, 0xd
jne 0x46962d
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x46960b
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.0046fbc0
lea eax, [esp + 0x24]
push 1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 0xa
call fcn.0046fbc0
cmp byte [esi + 1], 0xa
jne 0x4695ee
add esi, 2
mov eax, esi
jmp 0x46962e
inc esi
cmp byte [esi], 0
jne 0x4695d7
sub esi, eax
je 0x469642
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.0046fbc0
push ebp
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx]
add esp, 4
add ecx, 8
push eax
push 0
push ecx
mov ecx, ebx
call dword [edx + 8]
mov al, byte [ebx + 0x2c]
mov dword [esp + 0x1c], 0xffffffff
test al, al
mov eax, dword [esp + 0x10]
je 0x469686
cmp eax, 0x4faf48
je 0x4696a9
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x4696a9
cmp eax, 0x4faf48
je 0x469696
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov al, 1
jmp 0x4696ab
push 0
push 0
push 0
push 2
mov ecx, ebx
call fcn.00470b00
xor al, al
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x46cb30
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
push 0x48d204
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
mov edi, eax
push 2
push 0
push edi
call ebx
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push edi
mov esi, eax
call ebx
push esi
call sub.MFC42.DLL_operatornew
push edi
mov ebx, eax
push 1
push esi
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call sub.zlib1.dll_compressBound
push eax
mov dword [esp + 0x50], eax
call sub.MFC42.DLL_operatornew
add esp, 0x40
lea ecx, [esp + 0x10]
mov ebp, eax
push esi
push ebx
push ecx
push ebp
call sub.zlib1.dll_compress
add esp, 0x10
test eax, eax
jne 0x46cbb6
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push edx
push esi
push ebp
push eax
call fcn.004722e0
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
push ebx
call sub.MFC42.DLL_operatordelete
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4722a0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push esi
push 1
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x4722ce
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor al, al
pop esi
ret
mov al, 1
pop esi
ret
Function at 0x47251a
Capabilities:
Print debug messages
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47a9f1
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi]
cmp eax, ebx
je 0x472534
push eax
call dword [sym.imp.MSVCRT.dll__filelength]
add esp, 4
test eax, eax
jg 0x472576
mov edi, dword [esp + 0x50]
mov ebp, dword [sym.imp.MSVCRT.dll__open]
push 0x8002
push edi
call ebp
add esp, 8
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x472576
push 0x8002
push edi
call ebp
add esp, 8
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x472576
push str.CPackage::Open_Failed_
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
jmp 0x472613
mov ecx, dword [esi]
lea eax, [esi + 0x14]
push 0x10
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__read]
mov dl, byte [esp + 0x5c]
add esp, 0xc
mov byte [esp + 0x10], dl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov al, byte [esp + 0x50]
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x24], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 1
push ecx
mov ecx, esi
call fcn.004727b0
test al, al
je 0x4725ed
lea edi, [esi + 4]
mov eax, dword [edi + 8]
lea edx, [esp + 0x20]
push edx
push 1
push eax
mov ecx, edi
call fcn.00472e90
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.004727e0
test al, al
jne 0x4725cb
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x472611
mov al, byte [ecx - 1]
cmp al, bl
je 0x472607
cmp al, 0xff
je 0x472607
dec al
mov byte [ecx - 1], al
jmp 0x472611
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 4
Function at 0x4727e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, ecx
mov edx, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x18]
inc edx
mov eax, edx
mov dword [ebx + 0x24], edx
cmp eax, ecx
jl 0x472805
xor al, al
pop ebx
add esp, 0x10c
ret 4
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebx]
push ebp
push esi
push edi
push 0
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__lseek]
mov eax, dword [ebx]
mov edi, dword [sym.imp.MSVCRT.dll__read]
lea edx, [esp + 0x1e]
push 2
push edx
push eax
call edi
movsx ecx, word [esp + 0x2a]
mov eax, dword [ebx]
lea edx, [esp + 0x30]
push ecx
push edx
push eax
call edi
movsx esi, word [esp + 0x36]
add esp, 0x24
cmp esi, 0xfffffffd
mov dword [esp + 0x14], esi
jbe 0x472850
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ebp, dword [esp + 0x120]
xor edx, edx
mov ecx, dword [ebp + 4]
cmp ecx, edx
je 0x47287f
mov al, byte [ecx - 1]
test al, al
je 0x47287f
cmp al, 0xff
je 0x47287f
cmp esi, edx
jne 0x4728a5
dec al
mov byte [ecx - 1], al
mov dword [ebp + 4], edx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edx
jmp 0x4728d9
cmp esi, edx
jne 0x47288f
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x4728d9
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x47289b
cmp eax, esi
jae 0x4728ae
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push esi
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov edi, dword [ebp + 4]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x14]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov edi, dword [sym.imp.MSVCRT.dll__read]
mov dword [ebp + 8], eax
mov byte [ecx + eax], 0
mov eax, dword [ebx]
lea edx, [ebp + 0x10]
push 4
push edx
push eax
call edi
mov edx, dword [ebx]
lea ecx, [ebp + 0x14]
push 4
push ecx
push edx
call edi
mov ecx, dword [ebx]
lea eax, [ebp + 0x18]
push 4
push eax
push ecx
call edi
mov edx, dword [ebx]
add ebp, 0x1c
push 4
push ebp
push edx
call edi
mov eax, dword [ebx]
push eax
call dword [sym.imp.MSVCRT.dll__tell]
add esp, 0x34
mov dword [ebx + 0x28], eax
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4
Function at 0x41f430
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x485a4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00479fbb
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41f4b2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00477c9a
mov eax, dword [eax]
push 0x4ac1f0
push eax
call fcn.0046a9c4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0047a246
test bl, bl
je 0x41f4b2
push 0x4ac1f0
lea ecx, [esp + 0xc]
call fcn.0047a5d6
push 0x4afd6c
lea ecx, [esp + 0xc]
call fcn.0047a5d6
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41f4ee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0047a246
jmp 0x41f5b9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x41f572
lea edx, [esp + 0x7c]
push 0x4afd68
push edx
call fcn.0046a9c4
add esp, 8
test eax, eax
je 0x41f572
lea eax, [esp + 0x7c]
push 0x4afd64
push eax
call fcn.0046a9c4
add esp, 8
test eax, eax
je 0x41f572
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41f502
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0047a246
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x41fdb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41fe12
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x41fe20
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x485acb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4b6830]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x41ff58
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x41fe86
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047a246
xor eax, eax
jmp 0x41ffcf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0047a383
push esi
lea ecx, [esp + 0xc]
call fcn.0047a612
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x41ffad
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.0041fdb0
test eax, eax
jne 0x41ffad
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocString
mov ecx, edi
call fcn.0041fdb0
test eax, eax
jne 0x41ffad
lea eax, [esp + 0x14]
push 0x4afd80
push eax
call fcn.0046bad0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41ff8c
lea ecx, [esp + 0x14]
push 0x4afd7c
push ecx
call fcn.0046ba50
mov esi, eax
add esp, 8
test esi, esi
jne 0x41ff8c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41ff8f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0047a333
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41fe9e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047a246
xor eax, eax
jmp 0x41ffcf
mov byte [esi], 0
push 0x4afd78
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0047a246
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4