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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10006008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10002090
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100029bf
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x100020c0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x100020c0
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100029bf
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x10002198
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x100020e9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100020f5
movsx eax, bl
jmp 0x1000212d
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x10002157
sub eax, 1
je 0x10002157
sub eax, 2
jne 0x10002198
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100029bf
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10002175
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10002198
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100029bf
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100029bf
mov esp, ebp
pop ebp
ret 4
Function at 0x10002390
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10006008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1000244c
cmp byte [esi + 0x3d], 0
je 0x1000244c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1000243a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x10002401
sub eax, 1
je 0x10002405
sub eax, 2
jne 0x1000243a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100029bf
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10002423
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1000243a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100029bf
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100029bf
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.100029bf
mov esp, ebp
pop ebp
ret
Function at 0x4052e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
movzx eax, word [ebp + 0xc]
test eax, eax
je 0x4052f7
cmp dword [ebp + 8], 0
jne 0x4052ff
xor ax, ax
jmp 0x405431
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x468], 0xffffffff
jne 0x405313
xor ax, ax
jmp 0x405431
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + 0x57]
cmp eax, 2
je 0x405327
xor ax, ax
jmp 0x405431
mov ecx, dword [ebp - 0xc]
mov word [ecx + 0x58], 0
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x56], 0
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 0x54]
add ecx, 1
cmp ecx, 1
jge 0x40534f
mov dword [ebp - 0x10], 1
jmp 0x40535c
mov edx, dword [ebp - 0xc]
movzx eax, word [edx + 0x54]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
mov dx, word [ebp - 0x10]
mov word [ecx + 0x54], dx
mov word [ebp - 4], 0
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 0x45a]
test ecx, ecx
jne 0x405406
movzx edx, word [ebp - 4]
movzx eax, word [ebp + 0xc]
cmp edx, eax
jge 0x405406
push 0
movzx ecx, word [ebp + 0xc]
movzx edx, word [ebp - 4]
sub ecx, edx
push ecx
movzx eax, word [ebp - 4]
add eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x468]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4053f6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4053e7
movzx eax, word [ebp + 0xc]
movzx ecx, word [ebp - 4]
sub eax, ecx
push eax
movzx edx, word [ebp - 4]
add edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0xc]
call fcn.004059b0
mov ax, word [ebp + 0xc]
jmp 0x405431
push 4
mov ecx, dword [ebp - 0xc]
call fcn.00404910
xor ax, ax
jmp 0x405431
movzx eax, word [ebp - 4]
add eax, dword [ebp - 8]
mov word [ebp - 4], ax
jmp 0x40536d
movzx ecx, word [ebp - 4]
movzx edx, word [ebp + 0xc]
cmp ecx, edx
jle 0x40542d
movzx eax, word [ebp + 0xc]
movzx ecx, word [ebp - 4]
sub eax, ecx
push eax
movzx edx, word [ebp - 4]
add edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0xc]
call fcn.004059b0
mov ax, word [ebp + 0xc]
mov esp, ebp
pop ebp
ret 8
Function at 0x406c50
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x41a184]
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x258], ecx
mov ax, word [0x415030]
mov word [ebp - 0x210], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x412
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
mov dword [ebp - 0x214], 0x104
mov dword [ebp - 0x254], 0x2e000000
mov edx, dword [ebp - 0x254]
push edx
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
test eax, eax
jne 0x406cd8
or eax, 0xffffffff
jmp 0x406d58
push 0x3c
push 0
lea eax, [ebp - 0x250]
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
mov dword [ebp - 0x250], 0x3c
mov ecx, dword [ebp + 0xc]
add ecx, 2
mov dword [ebp - 0x224], ecx
mov edx, dword [ebp + 0xc]
add edx, 0x20a
mov dword [ebp - 0x240], edx
mov dword [ebp - 0x220], 0x104
mov dword [ebp - 0x23c], 0x104
lea eax, [ebp - 0x250]
push eax
push 0
push 0
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x406d45
or eax, 0xffffffff
jmp 0x406d58
mov edx, dword [ebp + 0xc]
mov ax, word [ebp - 0x238]
mov word [edx], ax
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 4]
call fcn.0040e449
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x4080a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x14], ecx
call fcn.00408a40
test eax, eax
je 0x4080db
call fcn.00408a40
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
add eax, 8
push eax
push 0x4155b0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x18]
call dword [edx + 8]
mov eax, dword [ebp - 0x14]
cmp dword [eax + 4], 0
je 0x4080eb
xor al, al
jmp 0x4081ae
push 0x4155b8
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40810e
xor al, al
jmp 0x4081ae
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x40814d
xor al, al
jmp 0x4081ae
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
call dword [edx + 0x10]
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.00408e30
add esp, 8
mov edx, dword [ebp - 0x14]
mov dword [edx + 4], eax
cmp dword [ebp - 4], 0
je 0x408190
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
call dword [ecx + 8]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax + 4], 0
je 0x4081a8
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 4]
call fcn.00409050
test eax, eax
je 0x4081ac
xor al, al
jmp 0x4081ae
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x40a480
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x634
mov eax, dword [0x41a184]
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x634], ecx
mov eax, dword [ebp - 0x634]
cmp dword [eax + 0x27c], 0xffffffff
je 0x40a4ae
xor al, al
jmp 0x40a623
mov cx, word [0x415994]
mov word [ebp - 0x210], cx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.00409760
add esp, 8
mov ax, word [0x415998]
mov word [ebp - 0x418], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x416]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x210]
push ecx
push str._sDownLoad
push 0x104
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x10
push 0x3f
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR71.dll_wcsrchr]
add esp, 8
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0
je 0x40a549
mov ecx, dword [ebp - 0x420]
mov word [ecx], 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jbe 0x40a585
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2]
cmp edx, 0x2f
je 0x40a585
mov eax, dword [ebp - 0x424]
sub eax, 1
mov dword [ebp - 0x424], eax
jmp 0x40a559
mov cx, word [0x4159b4]
mov word [ebp - 0x630], cx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x62e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [ebp - 0x424]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*2 + 2]
mov dword [ebp - 0x41c], ecx
mov edx, dword [ebp - 0x41c]
push edx
lea eax, [ebp - 0x418]
push eax
push str._s_s
push 0x104
lea ecx, [ebp - 0x630]
push ecx
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x14
push 0
lea edx, [ebp - 0x418]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0
push 0x1001
lea eax, [ebp - 0x630]
push eax
mov ecx, dword [ebp - 0x634]
add ecx, 0x278
mov edx, dword [ebp - 0x634]
mov eax, dword [edx + 0x278]
call dword [eax + 0x28]
test eax, eax
jne 0x40a621
xor al, al
jmp 0x40a623
mov al, 1
mov ecx, dword [ebp - 4]
call fcn.0040e449
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x40a830
Capabilities:
Delete file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x41a184]
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x268], ecx
mov ax, word [0x4159c4]
mov word [ebp - 0x258], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x256]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea ecx, [ebp - 0x258]
push ecx
call fcn.00409760
add esp, 8
lea edx, [ebp - 0x258]
push edx
push str._sUpdate.WHD
push 0x104
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x10
lea ecx, [ebp - 0x258]
push ecx
push 0
push str.UPDATEFILECOUNT
push 0x415a04
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x4c], eax
lea edx, [ebp - 0x258]
push edx
push 0x208
mov eax, dword [ebp - 0x268]
add eax, 0x62
push eax
push 0x415a24
push str.FILENETADDRESS
push 0x415a48
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov cx, word [0x415a68]
mov word [ebp - 0x48], cx
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x46]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x25c], 0
jmp 0x40a916
mov edx, dword [ebp - 0x25c]
add edx, 1
mov dword [ebp - 0x25c], edx
mov eax, dword [ebp - 0x25c]
cmp eax, dword [ebp - 0x4c]
jge 0x40a9f6
push 0x24a
call sub.MFC71U.DLL_CWordArray::CWordArray
add esp, 4
mov dword [ebp - 0x264], eax
mov ecx, dword [ebp - 0x264]
mov dword [ebp - 0x260], ecx
cmp dword [ebp - 0x260], 0
jne 0x40a952
jmp 0x40a9f6
mov edx, dword [ebp - 0x25c]
push edx
push str.FileIndex_d
push 0x20
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x10
lea ecx, [ebp - 0x258]
push ecx
push 0x208
mov edx, dword [ebp - 0x260]
push edx
push 0x415a84
lea eax, [ebp - 0x48]
push eax
push 0x415a88
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 0x25c]
push ecx
push str.FileCheckNum_d
push 0x20
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x258]
push eax
push 0x42
mov ecx, dword [ebp - 0x260]
add ecx, 0x208
push ecx
push 0x415ac8
lea edx, [ebp - 0x48]
push edx
push str.UPDATEFILELIST
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x260]
push eax
mov ecx, dword [ebp - 0x268]
add ecx, 0x26c
call fcn.0040c4a0
jmp 0x40a907
mov ecx, dword [ebp - 0x268]
add ecx, 0x26c
call fcn.0040c480
mov ecx, dword [ebp - 0x268]
mov dword [ecx + 0x58], eax
lea edx, [ebp - 0x258]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
mov ecx, dword [ebp - 4]
call fcn.0040e449
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40ab80
Capabilities:
Create directory
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x41a184]
mov dword [ebp - 0xc], eax
push edi
mov dword [ebp - 0x424], ecx
mov ecx, dword [ebp - 0x424]
add ecx, 0x280
call fcn.0040c850
test eax, eax
jle 0x40ad1d
push 0
mov ecx, dword [ebp - 0x424]
add ecx, 0x280
call fcn.0040c870
mov ecx, eax
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
mov dword [ebp - 8], eax
push 0
mov ecx, dword [ebp - 0x424]
add ecx, 0x294
call fcn.0040c870
mov ecx, eax
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
mov dword [ebp - 4], eax
mov ax, word [0x415aec]
mov word [ebp - 0x218], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [ebp - 4]
push ecx
push 0x415af0
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x10
push 0x5c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.MSVCR71.dll_wcsrchr]
add esp, 8
mov word [eax], 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 9
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
test eax, eax
je 0x40ac7f
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40acee
mov ax, word [0x415af8]
mov word [ebp - 0x420], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x41e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [ebp - 8]
push ecx
push str._s.old
push 0x104
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x420]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 9
push 0
push 0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
test eax, eax
je 0x40acee
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
push 0
mov ecx, dword [ebp - 0x424]
add ecx, 0x280
call sub.MFC71U.DLL_CPtrList::RemoveAt
push 1
push 0
mov ecx, dword [ebp - 0x424]
add ecx, 0x294
call sub.MFC71U.DLL_CPtrList::RemoveAt
jmp 0x40ab98
mov ecx, dword [ebp - 0xc]
call fcn.0040e449
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40b390
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x41a184]
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x41c], ecx
mov ax, word [0x415b9c]
mov word [ebp - 0x418], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x416]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea ecx, [ebp - 0x418]
push ecx
call fcn.00409760
add esp, 8
mov dx, word [0x415ba0]
mov word [ebp - 0x210], dx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x418]
push eax
push str._s_GamePlaza.exe
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x10
push 0
push 0
push 0x10
call fcn.0040c8f0
mov ecx, eax
call fcn.004036d0
push 1
push 0
push str.UPDATED
lea edx, [ebp - 0x210]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
call fcn.0040e449
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x40c9c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0x416238
push 0x40
push 0
mov ecx, dword [ebp - 4]
add ecx, 4
push ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
mov edx, dword [ebp - 4]
mov dword [edx + 0x48], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x44], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x4c], 0x67452301
mov edx, dword [ebp - 4]
mov dword [edx + 0x50], 0xefcdab89
mov eax, dword [ebp - 4]
mov dword [eax + 0x54], 0x98badcfe
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x58], 0x10325476
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40e20e
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x4162b0
call fcn.0040e5d8
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
cmp word [eax], 0x5a4d
jne 0x40e24e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e24e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40e266
cmp eax, 0x20b
je 0x40e253
mov dword [ebp - 0x1c], edi
jmp 0x40e27a
cmp dword [ecx + 0x84], 0xe
jbe 0x40e24e
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x40e274
cmp dword [ecx + 0x74], 0xe
jbe 0x40e24e
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x41b4ec], 0xffffffff
or dword [0x41b4f0], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x41b474]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x41b470]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41b4e8], eax
call fcn.0040e6ee
call fcn.0040e78e
cmp dword [0x41a1b0], edi
jne 0x40e2da
push fcn.0040e78e
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.0040e77c
push 0x41a024
push 0x41a020
call sub.MSVCR71.dll__initterm
push 0x40e732
call fcn.0040e546
mov eax, dword [0x41b46c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x41b468]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x40e32e
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x41a01c
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x40e358
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x40e412
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x40e3c7
cmp ax, di
je 0x40e36e
cmp dword [ebp - 0x20], edi
jne 0x40e3c7
mov ax, word [esi]
cmp ax, di
je 0x40e383
cmp ax, 0x20
ja 0x40e383
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x40e36e
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x40e39f
movzx eax, word [ebp - 0x54]
jmp 0x40e3a2
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.00412f20
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x40e3bf
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x40e40c
cmp ax, 0x22
jne 0x40e3d8
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x40e358
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040e613
ret
Function at 0x40effb
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x24]
mov dword [ebp - 0xc], edi
jmp 0x40f00e
mov edi, dword [ebp - 0xc]
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x6c]
sub eax, ecx
sub eax, edx
mov dword [ebp - 8], eax
jne 0x40f02d
test ecx, ecx
jne 0x40f03b
test edx, edx
jne 0x40f03b
mov dword [ebp - 8], edi
jmp 0x40f0a5
cmp eax, 0xffffffff
jne 0x40f03b
mov dword [ebp - 8], 0xfffffffe
jmp 0x40f0a5
mov eax, dword [esi + 0x24]
lea eax, [edi + eax - 0x106]
cmp ecx, eax
jb 0x40f0a5
mov eax, dword [esi + 0x30]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call sub.MSVCR71.dll_memcpy
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
sub dword [esi + 0x68], edi
sub dword [esi + 0x64], edi
add esp, 0xc
sub dword [esi + 0x54], edi
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx edx, word [eax]
mov ebx, edx
sub ebx, edi
cmp edx, edi
sbb edx, edx
not edx
and edx, ebx
dec ecx
mov word [eax], dx
jne 0x40f06c
mov eax, dword [esi + 0x38]
mov edx, edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov ebx, ecx
sub ebx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, ebx
dec edx
mov word [eax], cx
jne 0x40f08b
add dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x40f14b
mov ebx, dword [esi + 0x6c]
add ebx, dword [esi + 0x64]
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 8]
add ebx, dword [esi + 0x30]
cmp eax, ecx
mov dword [ebp - 4], eax
jbe 0x40f0ca
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x40f0d4
xor eax, eax
jmp 0x40f10c
sub eax, dword [ebp - 4]
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x18], 0
jne 0x40f0f6
push dword [ebp - 4]
push dword [edi]
push dword [edi + 0x30]
call fcn.0040fff6
add esp, 0xc
mov dword [edi + 0x30], eax
push dword [ebp - 4]
push dword [edi]
push ebx
call sub.MSVCR71.dll_memcpy
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x6c], eax
mov edi, dword [esi + 0x6c]
cmp edi, 3
jb 0x40f137
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x30]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x50]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp edi, 0x106
jae 0x40f14b
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x40f00b
pop edi
pop ebx
leave
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