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

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x6362e4e0]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x6362ede8]
je 0x6361d628
inc eax
cmp eax, 0x13
jb 0x6361d619
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x6362ede8]
jne 0x6361d74b
mov eax, dword [0x63631c08]
cmp eax, 1
je 0x6361d726
cmp eax, edx
jne 0x6361d658
cmp dword [0x63631c0c], 1
je 0x6361d726
cmp ecx, 0xfc
je 0x6361d74b
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x6361d68e
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.63616430
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.63615900
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x6361d6c2
mov eax, edi
push eax
call fcn.63615900
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x636269fc
push edi
call fcn.63617510
add esp, 0x10
push edi
call fcn.63615900
push dword [esi + 0x6362edec]
mov ebx, eax
call fcn.63615900
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.63615140
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.63616430
push edi
push ebx
call fcn.63616440
push 0x636269f8
push ebx
call fcn.63616440
push dword [esi + 0x6362edec]
push ebx
call fcn.63616440
push 0x12010
push 0x636269c4
push ebx
call fcn.6361e35b
add esp, 0x2c
jmp 0x6361d74b
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x6362edec]
push dword [esi]
call fcn.63615900
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]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.636151ae
add ebp, 0x90
leave
ret
Function at 0x6361d7a2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x6361d978
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x63632260]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x6361d978
test cl, 0x48
je 0x6361d80d
cmp byte [eax + 5], 0xa
je 0x6361d80d
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x6361d85f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x6361d847
call fcn.6361be78
mov dword [eax], 9
call fcn.6361be81
mov dword [eax], esi
jmp 0x6361d857
cmp eax, 0x6d
je 0x6361d978
push eax
call fcn.6361be8a
pop ecx
or eax, 0xffffffff
jmp 0x6361d97a
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x6361d973
test eax, eax
je 0x6361d886
cmp byte [ebx], 0xa
jne 0x6361d886
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x6361d88f
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x6361d96d
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x6361d95d
cmp al, 0xd
je 0x6361d8c1
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x6361d94f
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x6361d8db
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x6361d8d6
add dword [ebp + 0x10], 2
jmp 0x6361d92f
mov dword [ebp + 0x10], eax
jmp 0x6361d94b
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x6361d903
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x6361d94b
cmp dword [ebp - 0xc], 0
je 0x6361d94b
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x6361d924
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x6361d92f
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x6361d94e
cmp ebx, dword [ebp + 0xc]
jne 0x6361d934
cmp byte [ebp - 1], 0xa
jne 0x6361d934
mov byte [ebx], 0xa
jmp 0x6361d94e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.6361dda4
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x6361d94f
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x6361d8a5
jmp 0x6361d96d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x6361d96d
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x6361d97a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6361e35b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x63631f68], ebx
push esi
push edi
jne 0x6361e3db
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x6361e416
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x63627404
push edi
call esi
test eax, eax
mov dword [0x63631f68], eax
je 0x6361e416
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x63631f6c], eax
call esi
cmp dword [0x63631d84], 2
mov dword [0x63631f70], eax
jne 0x6361e3db
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x63631f78], eax
je 0x6361e3db
push 0x636273ac
push edi
call esi
mov dword [0x63631f74], eax
mov eax, dword [0x63631f74]
test eax, eax
je 0x6361e420
call eax
test eax, eax
je 0x6361e407
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x63631f78]
test eax, eax
je 0x6361e407
test byte [ebp - 8], 1
jne 0x6361e420
cmp dword [0x63631d90], 4
jb 0x6361e41a
or byte [ebp + 0x12], 0x20
jmp 0x6361e43f
xor eax, eax
jmp 0x6361e44f
or byte [ebp + 0x12], 4
jmp 0x6361e43f
mov eax, dword [0x63631f6c]
test eax, eax
je 0x6361e43f
call eax
mov ebx, eax
test ebx, ebx
je 0x6361e43f
mov eax, dword [0x63631f70]
test eax, eax
je 0x6361e43f
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x63631f68]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6362056f
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.63615140
mov eax, dword [0x6362e4e0]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.6361c6ad
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x636206a4
push 2
push esi
push dword [ebp + 8]
call fcn.6361c6ad
add esp, 0xc
cmp eax, ebx
je 0x636206a4
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x63620644
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.63615500
push 0x8000
push dword [ebp + 8]
call fcn.63620924
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x636205fa
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.6361c0cd
add esp, 0xc
cmp eax, 0xffffffff
je 0x6362061a
sub edi, eax
test edi, edi
jg 0x636205f2
jmp 0x63620632
call fcn.6361be81
cmp dword [eax], 5
jne 0x6362062f
call fcn.6361be78
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.63620924
pop ecx
pop ecx
jmp 0x6362068c
jge 0x6362068c
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.6361c6ad
push dword [ebp + 8]
call fcn.6361db25
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x6362068c
call fcn.6361be78
mov dword [eax], 0xd
call fcn.6361be81
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.6361c6ad
add esp, 0xc
mov eax, esi
pop edi
jmp 0x636206a6
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.636151ae
leave
ret
Function at 0x636206b4
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x636288d8
call fcn.63614fdc
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x636320b0], edi
jne 0x636206f8
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x636206e3
mov dword [0x636320b0], ebx
jmp 0x636206f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x636206f8
mov dword [0x636320b0], 2
mov eax, dword [0x636320b0]
cmp eax, ebx
jne 0x63620718
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x636207db
cmp eax, 2
je 0x63620721
cmp eax, edi
jne 0x63620749
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x63620734
mov eax, dword [0x63631f58]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x63620750
xor eax, eax
jmp 0x636207db
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.63615140
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x63620783
cmp esi, edi
jne 0x63620799
push dword [ebp - 0x20]
call fcn.63614e76
pop ecx
mov esi, eax
cmp esi, edi
je 0x63620749
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x636207cc
cmp dword [ebp + 0x14], edi
jne 0x636207b6
push edi
push edi
jmp 0x636207bc
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x636207d8
push esi
call fcn.63614e88
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.63615017
ret
Function at 0x636207e4
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x636288e8
call fcn.63614fdc
xor esi, esi
cmp dword [0x636320b4], esi
jne 0x63620828
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x63620813
mov dword [0x636320b4], edi
jmp 0x63620828
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x63620828
mov dword [0x636320b4], 2
mov eax, dword [0x636320b4]
cmp eax, 2
je 0x63620909
cmp eax, esi
je 0x63620909
cmp eax, 1
jne 0x6362086d
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x63620856
mov eax, dword [0x63631f58]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x63620874
xor eax, eax
jmp 0x6362091b
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.63615140
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x636208aa
cmp edi, esi
jne 0x636208c5
lea eax, [ebx + ebx]
push eax
call fcn.63614e76
pop ecx
mov edi, eax
cmp edi, esi
je 0x6362086d
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x636208f8
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x636208e2
push esi
push esi
jmp 0x636208e8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x63620904
push edi
call fcn.63614e88
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x6362091b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.63615017
ret

Function at 0x63620a42
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x6362e4e0]
xor eax, ebp
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.63620a12
mov eax, 0x63600000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.63615500
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x63620aa6
cmp dword [ebp - 0x1c], 5
jb 0x63620abe
jmp 0x63620aba
cmp dword [ebp - 0x10], 1
jne 0x63620abe
cmp dword [ebp - 0x1c], 4
ja 0x63620aba
jne 0x63620abe
cmp dword [ebp - 0x18], 0
jbe 0x63620abe
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x63628904
call fcn.63601375
test eax, eax
jge 0x63620adf
mov byte [0x6362f260], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.636151ae
add ebp, 0x78
leave
ret
Function at 0x401a70
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x40d270
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
lea edi, [esi + 8]
mov dword [edi], 0
mov dword [esp + 0x20], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
lea ecx, [esi + 0x18]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString_2
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [esi + 0x20]
push eax
call ebx
lea eax, [esi + 0x30]
push eax
call ebx
lea ebp, [esi + 0x44]
mov byte [esp + 0x20], 5
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_2
lea ebx, [esi + 0x50]
mov byte [esp + 0x20], 6
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_2
mov dword [esi], 0x40e778
mov eax, dword [edi]
test eax, eax
mov byte [esp + 0x20], 7
je 0x401b0b
mov dword [edi], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0xc]
lea ecx, [esi + 0xc]
test eax, eax
mov dword [esp + 0x10], eax
je 0x401b32
mov dword [ecx], 0
call fcn.004032f0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401b32
mov edx, dword [eax]
push eax
call dword [edx + 8]
push 0x413898
mov ecx, ebx
call sub.MFC42.DLL_CString::operator_3
push 0x413898
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_3
xor ebp, ebp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], ebp
mov eax, dword [edi]
cmp eax, ebp
je 0x401b5e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, dword [sym.imp.ole32.dll_CoCreateInstance]
lea edx, [esp + 0x10]
push edx
push 0x412050
push 7
push ebp
push 0x412148
call ebx
cmp eax, ebp
jl 0x401ba4
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ole32.dll_OleRun]
cmp eax, ebp
jl 0x401b9a
mov eax, dword [esp + 0x10]
push edi
push 0x412138
push eax
mov ecx, dword [eax]
call dword [ecx]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esi + 0xc]
lea edi, [esi + 0xc]
cmp eax, ebp
je 0x401bb4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [esp + 0x10]
push edx
push 0x412050
push 7
push ebp
push 0x412128
call ebx
cmp eax, ebp
jl 0x401bf4
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ole32.dll_OleRun]
cmp eax, ebp
jl 0x401bea
mov eax, dword [esp + 0x10]
push edi
push 0x412118
push eax
mov ecx, dword [eax]
call dword [ecx]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x28]
push eax
mov dword [esi + 0x40], ebp
mov dword [esi + 0x14], 1
call fcn.00401c60
mov eax, dword [eax]
mov edi, dword [esi + 0x10]
lea ecx, [esi + 0x10]
cmp edi, eax
mov byte [esp + 0x20], 8
je 0x401c2e
mov dword [ecx], eax
call fcn.004032f0
cmp edi, ebp
je 0x401c2e
mov ecx, dword [edi]
push edi
call dword [ecx + 8]
mov eax, dword [esp + 0x28]
mov byte [esp + 0x20], 7
cmp eax, ebp
je 0x401c41
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x402cb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40d40f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0xc]
push 0xa
push eax
push ecx
mov dword [esp + 0x34], 1
call dword [sym.imp.MSVCRT.dll__ltoa]
add esp, 0xc
lea edx, [esp + 0xc]
lea ecx, [esp + 4]
push edx
call sub.MFC42.DLL_CString::operator_3
mov esi, dword [esp + 0x30]
lea eax, [esp + 4]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0x404380
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
sub esp, 0xc
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [edi]
mov edx, dword [eax + 0x412318]
mov dword [eax + ecx], edx
add eax, 4
cmp eax, 0x48
jl 0x40438b
xor eax, eax
mov ecx, 0x100
mov edx, dword [edi + 4]
mov esi, dword [eax + 0x412360]
mov dword [eax + edx], esi
add eax, 4
dec ecx
jne 0x4043a5
cmp eax, 0x1000
jl 0x4043a0
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
xor esi, esi
xor eax, eax
mov dword [esp + 0x18], eax
mov edx, dword [edi]
xor ebx, ebx
add eax, edx
mov dword [esp + 0x24], eax
lea eax, [esi + 1]
cdq
idiv ebp
lea eax, [esi + 2]
mov bl, byte [edx + ecx]
cdq
idiv ebp
mov bh, byte [esi + ecx]
xor eax, eax
shl ebx, 8
mov al, byte [edx + ecx]
or ebx, eax
lea eax, [esi + 3]
cdq
idiv ebp
xor eax, eax
shl ebx, 8
mov al, byte [edx + ecx]
or ebx, eax
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
xor edx, ebx
mov dword [eax], edx
lea eax, [esi + 4]
cdq
idiv ebp
mov eax, dword [esp + 0x18]
add eax, 4
cmp eax, 0x48
mov dword [esp + 0x18], eax
mov esi, edx
jl 0x4043ce
xor esi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, edi
call fcn.00403b80
mov eax, dword [edi]
mov ecx, dword [esp + 0x10]
mov dword [esi + eax], ecx
mov edx, dword [edi]
mov eax, dword [esp + 0x14]
mov dword [esi + edx + 4], eax
add esi, 8
cmp esi, 0x48
jl 0x404430
mov esi, 4
mov ebx, 0x80
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, edi
call fcn.00403b80
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x10]
mov dword [esi + eax - 4], ecx
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x14]
mov dword [esi + edx], eax
add esi, 8
dec ebx
jne 0x404466
cmp esi, 0x1004
jl 0x404461
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x408e10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
lea eax, [esp + 0x14]
push ebx
push ebp
push esi
push edi
mov edi, ecx
push eax
call fcn.004069f0
mov esi, dword [esp + 0x28]
mov ecx, edi
xor ebp, ebp
call fcn.00405a30
test al, al
je 0x408e3d
mov ecx, dword [edi + 0x6c]
mov dword [esp + 0x10], ecx
jmp 0x408e44
mov edx, dword [edi + 0x70]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x3c]
xor ebx, ebx
test eax, eax
jle 0x408e8f
mov eax, dword [esp + 0x38]
push 3
push ebx
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, edi
call fcn.004083e0
mov edx, dword [eax]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
mov edx, dword [edi + 0xdc]
mov eax, dword [eax + 4]
add eax, ecx
add esi, eax
dec edx
cmp ebx, edx
jne 0x408e86
mov eax, dword [esp + 0x28]
mov ebp, esi
sub ebp, eax
mov eax, dword [esp + 0x3c]
inc ebx
cmp ebx, eax
jl 0x408e4e
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x10]
push 1
push eax
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, edi
add esi, ebx
call fcn.004083e0
mov ebx, dword [eax]
mov ecx, edi
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
call fcn.00405a30
test al, al
je 0x408f24
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
add ecx, esi
add ebx, eax
push ecx
push ebx
push esi
mov esi, dword [esp + 0x4c]
push eax
push esi
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [edi + 0x74]
mov ebx, dword [esi]
mov ecx, dword [esi + 8]
add edx, 2
add ebx, edx
mov dword [esi], ebx
mov eax, dword [edi + 0x74]
mov ebx, dword [esi + 4]
add eax, 2
add ecx, eax
mov dword [esi + 8], ecx
mov ecx, dword [edi + 0x78]
sub ebx, ecx
mov dword [esi + 4], ebx
mov edx, dword [edi + 0x78]
mov edi, dword [esi + 0xc]
mov ecx, ebx
sub edi, edx
sub ecx, ebp
mov eax, edi
mov dword [esi + 0xc], edi
sub eax, ebp
mov dword [esi + 4], ecx
mov dword [esi + 0xc], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
sub eax, ebx
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
sar eax, 1
add edx, esi
push edx
lea edx, [eax + ebx]
add edx, ecx
add eax, ecx
push edx
push esi
mov esi, dword [esp + 0x4c]
push eax
push esi
call dword [sym.imp.USER32.dll_SetRect]
mov edi, dword [esi + 4]
mov eax, 0xfffffffd
sub eax, ebp
mov ecx, 0xfffffffe
add edi, eax
mov eax, dword [esi + 0xc]
sub ecx, ebp
mov dword [esi + 4], edi
add eax, ecx
pop edi
mov dword [esi + 0xc], eax
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc
Function at 0xa4a370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xa4a38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xa73074
push ecx
mov edi, eax
call fcn.00a5e198
mov esi, eax
add esp, 8
test esi, esi
jne 0xa4a3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00a5e02e
push esi
call fcn.00a5dfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret