joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4332f0
Capabilities:
Parse url

Disassembly:
sub esp, 0x44c
push ebx
push esi
mov esi, dword [esp + 0x458]
push edi
test esi, esi
je 0x4333e7
mov ebx, dword [esp + 0x460]
test ebx, ebx
je 0x4333e7
mov dx, word [0x4da9a0]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x252]
mov word [esp + 0x250], dx
mov word [esp + 0x48], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x4a]
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xc]
push edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x254]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x14], eax
mov eax, 0x104
push 0
push esi
mov dword [esp + 0x18], 0x3c
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x4333e7
mov edx, dword [esp + 0x464]
xor eax, eax
mov edi, ebx
lea ecx, [edx + edx]
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
dec edx
rep stosb byte es:[edi], al
lea eax, [esp + 0x48]
lea ecx, [esp + 0x250]
push eax
push ecx
push str._s:___s_favicon.ico
push edx
push ebx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x44c
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x44c
ret

Function at 0x433870
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x18]
lea eax, [esp + 8]
push edi
mov edi, dword [esp + 0x18]
lea ecx, [esp + 8]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
push esi
push edi
push reloc.DSOUND.dll_DirectSoundCreate
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 4
mov dword [esp + 0x28], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4338c1
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x20]
cmp ecx, edx
je 0x4338d7
lea edx, [esp + 0x20]
push 4
push edx
push 4
push esi
push edi
push reloc.DSOUND.dll_DirectSoundCreate
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
pop edi
pop esi
add esp, 0xc
ret
Function at 0x433950
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x40
lea eax, [esp + 0xc]
push esi
lea ecx, [esp + 0x14]
push eax
xor esi, esi
push ecx
push 1
lea edx, [esp + 0x30]
push esi
push edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x38], 0xbcde0395
mov word [esp + 0x3c], 0xe52f
mov word [esp + 0x3e], 0x467c
mov byte [esp + 0x40], 0x8e
mov byte [esp + 0x41], 0x3d
mov byte [esp + 0x42], 0xc4
mov byte [esp + 0x43], 0x57
mov byte [esp + 0x44], 0x92
mov byte [esp + 0x45], 0x91
mov byte [esp + 0x46], 0x69
mov byte [esp + 0x47], 0x2e
mov dword [esp + 0x28], 0xa95664d2
mov word [esp + 0x2c], 0x9614
mov word [esp + 0x2e], 0x4f35
mov byte [esp + 0x30], 0xa7
mov byte [esp + 0x31], 0x46
mov byte [esp + 0x32], 0xde
mov byte [esp + 0x33], 0x8d
mov byte [esp + 0x34], 0xb6
mov byte [esp + 0x35], 0x36
mov byte [esp + 0x36], 0x17
mov byte [esp + 0x37], 0xe6
mov dword [esp + 0x48], 0xbfa971f1
mov word [esp + 0x4c], 0x4d5e
mov word [esp + 0x4e], 0x40bb
mov byte [esp + 0x50], 0x93
mov byte [esp + 0x51], 0x5e
mov byte [esp + 0x52], 0x96
mov byte [esp + 0x53], 0x70
mov byte [esp + 0x54], 0x39
mov byte [esp + 0x55], 0xbf
mov byte [esp + 0x56], 0xbe
mov byte [esp + 0x57], 0xe4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x433add
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x433add
lea edx, [esp + 0xc]
mov dword [esp + 0xc], esi
mov ecx, dword [eax]
push edx
push 1
push esi
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x433ad3
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x433ad3
lea edx, [esp + 8]
mov dword [esp + 8], esi
mov ecx, dword [eax]
push edx
push esi
lea edx, [esp + 0x3c]
push 1
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x433ac9
mov eax, dword [esp + 8]
cmp eax, esi
je 0x433ac9
lea edx, [esp + 4]
mov dword [esp + 4], esi
mov ecx, dword [eax]
push edx
push esi
push 0x5ad688
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x433abf
mov eax, dword [esp + 4]
cmp eax, esi
je 0x433abf
mov edx, dword [esp + 0x48]
mov ecx, dword [eax]
push esi
push edx
push eax
call dword [ecx + 0x14]
mov esi, eax
mov eax, dword [esp + 4]
neg esi
mov ecx, dword [eax]
push eax
sbb esi, esi
inc esi
call dword [ecx + 8]
mov eax, dword [esp + 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, esi
pop esi
add esp, 0x40
ret
Function at 0x433af0
Capabilities:
Create process on windows
Get common file path
Get program files directory
Initialize iwebbrowser2
Query or enumerate registry value

Disassembly:
sub esp, 0x440
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_wcslen]
push esi
mov esi, dword [esp + 0x450]
push esi
call ebp
add esp, 4
test eax, eax
jne 0x433b1a
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x42]
mov word [esp + 0x40], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x24a]
mov word [esp + 0x248], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [esp + 0x24c]
push 0x26
push eax
push ebx
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0x208
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0x248]
lea edx, [esp + 0x40]
push ecx
push str._sInternet_Exploreriexplore.exe
push 0x103
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [esp + 0x50]
push ebx
push eax
call fcn.00428370
add esp, 0x18
test eax, eax
pop edi
jne 0x433bd8
lea ecx, [esp + 0x18]
lea edx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push 0x4da9a0
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00428370
add esp, 8
test eax, eax
jne 0x433bd8
mov word [esp + 0x3c], bx
lea edx, [esp + 0x3c]
push edx
call ebp
add esp, 4
test eax, eax
jbe 0x433c10
push 0xa
push ebx
lea eax, [esp + 0x44]
push esi
push eax
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x440
ret
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], ebx
push ecx
push 0x4b6518
push 0x15
push ebx
push 0x4b64e8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x433c3c
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x440
ret
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x433cc2
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x94]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x433c72
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [esp + 0x10]
push 1
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea edx, [esp + 0x1c]
mov esi, eax
push edx
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
mov word [esp + 0x20], bx
push edx
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x3c]
mov word [esp + 0x3c], 8
mov dword [esp + 0x44], esi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xd0]
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x440
ret
Function at 0x433ce0
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov dword [esp + 0x10], eax
jne 0x433d03
xor ax, ax
pop edi
add esp, 8
ret
push ebx
push esi
push eax
xor ebx, ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add esp, 4
mov esi, eax
push esi
push ecx
push edx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x433d47
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push ecx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x433d47
mov edx, dword [esp + 0x10]
mov bx, word [edx]
push esi
call fcn.004ad125
add esp, 4
mov ax, bx
pop esi
pop ebx
pop edi
add esp, 8
ret

Function at 0x433ec0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 8
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x4b6458
push 1
push 0
push 0x4b6488
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x433f5a
mov ecx, dword [esp]
test ecx, ecx
je 0x433f5a
mov eax, dword [esp + 0x10]
push esi
mov dword [esp + 8], 0
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x50]
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x18]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push 0x4b6588
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x433f4d
mov eax, dword [esp + 8]
test eax, eax
je 0x433f4d
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
push 1
push edx
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x434600
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x20
test eax, eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
jne 0x43461e
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x20
ret 4
lea edi, [esi + 0x218]
xor ebp, ebp
mov eax, dword [edi + 8]
test eax, eax
je 0x434655
mov ecx, dword [edi + 0xc]
sub ecx, eax
sar ecx, 2
cmp ebp, ecx
jae 0x434655
mov edx, eax
mov ebx, dword [edx + ebp*4]
test ebx, ebx
je 0x434652
mov ecx, ebx
call fcn.00434830
push ebx
call fcn.004ad125
add esp, 4
inc ebp
jmp 0x434626
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov eax, edx
cmp eax, edx
je 0x43466f
mov ebx, dword [eax]
add eax, 4
mov dword [ecx], ebx
add ecx, 4
cmp eax, edx
jne 0x434661
mov eax, dword [edi + 0xc]
mov dword [edi + 0xc], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x23c]
test eax, eax
je 0x434697
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [esi + 0x23c], 0
mov ebx, dword [esp + 0x34]
lea ecx, [esi + 0x10]
push ebx
push 0x4c3574
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
push 0x4cecd0
push ebx
call dword [sym.imp.MSVCRT.dll__wfopen]
add esp, 0x18
mov dword [esi + 0x23c], eax
test eax, eax
jne 0x4346d6
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x20
ret 4
xor edx, edx
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
mov dword [esp + 0x1e], edx
push eax
mov dword [esp + 0x26], edx
push 0xa
mov dword [esp + 0x2e], edx
lea eax, [esp + 0x24]
mov dword [esp + 0x32], edx
push 2
push eax
mov word [esp + 0x2c], 0
mov word [esp + 0x3e], dx
call ebx
add esp, 0x10
cmp eax, 0xa
jne 0x4347f8
lea ecx, [esp + 0x1c]
push str.TWHIS
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x4347f8
mov edx, dword [esi + 0x23c]
lea eax, [esp + 0x10]
push edx
push 1
push 4
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x4347f8
mov eax, dword [esp + 0x10]
mov ebp, 0x3e8
cmp eax, ebp
jne 0x4347f8
mov ecx, dword [esi + 0x23c]
lea edx, [esp + 0x14]
push ecx
push 1
push 4
push edx
call ebx
add esp, 0x10
cmp eax, 1
jne 0x4347f8
cmp dword [esp + 0x14], ebp
jne 0x4347f8
mov eax, dword [esi + 0x23c]
lea ecx, [esi + 0xc]
push eax
push 1
push 4
push ecx
call ebx
add esp, 0x10
cmp eax, 1
jne 0x4347f8
mov edx, dword [esi + 0x23c]
lea ebp, [esi + 8]
push edx
push eax
push 4
push ebp
call ebx
add esp, 0x10
cmp eax, 1
jne 0x4347f8
mov eax, dword [ebp]
test eax, eax
jle 0x4347f8
lea eax, [eax + eax*2]
shl eax, 2
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esi + 4], eax
test eax, eax
je 0x4347f8
mov ecx, dword [esi + 0x23c]
mov edx, dword [ebp]
push ecx
push edx
push 0xc
push eax
call ebx
mov ecx, dword [ebp]
add esp, 0x10
cmp eax, ecx
je 0x434805
mov eax, dword [esi + 4]
push eax
call fcn.004ad125
add esp, 4
mov dword [esi + 4], 0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x20
ret 4
mov ecx, esi
call fcn.00434590
push edi
push eax
mov ecx, esi
call fcn.00434a80
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret 4
Function at 0x434840
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x178c
call fcn.004ad150
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 8], ebx
je 0x434901
mov eax, dword [esi + 0x23c]
mov ebp, dword [sym.imp.MSVCRT.dll_fseek]
cmp eax, ebx
jne 0x43487f
lea eax, [esi + 0x10]
push 0x4cecd8
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
add esp, 8
jmp 0x4348f7
push ebx
push ebx
push eax
call ebp
mov edx, dword [esi + 0x23c]
xor ecx, ecx
mov dword [esp + 0x26], ecx
push edx
mov dword [esp + 0x2e], ecx
push 0xa
mov dword [esp + 0x36], ecx
lea eax, [esp + 0x2c]
mov dword [esp + 0x3a], ecx
push 2
push eax
mov word [esp + 0x34], bx
mov word [esp + 0x46], cx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
cmp eax, 0xa
jne 0x4348d2
lea eax, [esp + 0x18]
push str.TWHIS
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x43490f
mov ecx, dword [esi + 0x23c]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
lea edx, [esi + 0x10]
push 0x4cecd8
push edx
mov dword [esi + 0x23c], ebx
call dword [sym.imp.MSVCRT.dll__wfopen]
add esp, 0xc
cmp eax, ebx
mov dword [esi + 0x23c], eax
jne 0x43490f
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x178c
ret
mov ecx, 0x1f3
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3e7
xor eax, eax
lea edi, [esp + 0x7fe]
mov word [esp + 0x7fc], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x23c]
push ebx
push ebx
push eax
call ebp
mov ecx, dword [esi + 0x23c]
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push ecx
push 0x7d0
lea edx, [esp + 0x40]
push 1
push edx
call edi
add esp, 0x1c
cmp eax, 0x7d0
jne 0x434a48
mov eax, dword [esi + 0x23c]
push ebx
push ebx
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x7fc]
mov eax, 0x3e8
push str.TWHIS
push 0x4c3574
push 9
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov edx, dword [esi + 0x23c]
lea eax, [esp + 0x80c]
push edx
push 0xa
push 2
push eax
call edi
add esp, 0x20
cmp eax, 0xa
jne 0x434a48
mov ecx, dword [esi + 0x23c]
lea edx, [esp + 0x10]
push ecx
push 1
push 4
push edx
call edi
add esp, 0x10
cmp eax, 1
jne 0x434a48
mov eax, dword [esi + 0x23c]
lea ecx, [esp + 0x14]
push eax
push 1
push 4
push ecx
call edi
add esp, 0x10
cmp eax, 1
jne 0x434a48
mov edx, dword [esi + 0x23c]
push edx
push eax
lea eax, [esi + 0xc]
push 4
push eax
call edi
add esp, 0x10
cmp eax, 1
jne 0x434a48
mov ecx, dword [esi + 0x23c]
lea ebp, [esi + 8]
push ecx
push eax
push 4
push ebp
call edi
add esp, 0x10
cmp eax, 1
jne 0x434a48
mov edx, dword [esi + 0x23c]
mov eax, dword [ebp]
mov ecx, dword [esi + 4]
push edx
push eax
push 0xc
push ecx
call edi
mov ecx, dword [ebp]
add esp, 0x10
cmp eax, ecx
je 0x434a6c
mov edx, dword [esi + 0x23c]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [esi + 0x23c], ebx
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x178c
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x178c
ret
Function at 0x434d80
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b0b98
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [esp + 0x20]
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push ebp
push esi
mov esi, dword [esp + 0x30]
push edi
push esi
push 1
push 1
push eax
call ebx
mov ebp, dword [esp + 0x3c]
push esi
push 1
push 4
push ebp
call ebx
mov eax, dword [ebp]
add esp, 0x20
test eax, eax
jle 0x434eeb
push esi
lea edi, [ebp + 4]
push 1
push 4
push edi
call ebx
mov eax, dword [edi]
add esp, 0x10
test eax, eax
jl 0x434eeb
push esi
push 1
lea ecx, [ebp + 8]
push 4
push ecx
call ebx
push esi
push 1
lea edx, [ebp + 0xc]
push 4
push edx
call ebx
push esi
push 1
lea eax, [ebp + 0x10]
push 4
push eax
call ebx
push esi
push 1
lea ecx, [esp + 0x6c]
push 4
push ecx
mov dword [esp + 0x74], 0
call ebx
mov eax, dword [esp + 0x74]
add esp, 0x40
test eax, eax
jle 0x434eeb
cmp eax, 0x1048
jae 0x434eeb
lea edx, [ebp + 0x14]
mov ecx, 0x82
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x34]
push esi
push eax
push 2
push edx
call ebx
push esi
push 1
lea ecx, [esp + 0x4c]
push 4
push ecx
mov dword [esp + 0x54], 0
call ebx
mov eax, dword [esp + 0x54]
add esp, 0x20
test eax, eax
jle 0x434ee4
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x30], edi
je 0x434ee4
mov edx, dword [esp + 0x34]
xor eax, eax
push esi
mov esi, dword [esp + 0x34]
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x38]
push eax
push 1
push esi
call ebx
add esp, 0x10
lea ecx, [esp + 0x10]
push esi
call fcn.00412160
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0
push ecx
lea ecx, [ebp + 0x21c]
call fcn.00412280
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00412140
push esi
call fcn.004ad125
add esp, 4
mov eax, 1
jmp 0x434eee
or eax, 0xffffffff
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
Function at 0x4351d0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, ecx
test ebx, ebx
je 0x43533c
mov eax, dword [esi + 0x23c]
test eax, eax
je 0x43533c
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fseek]
push edi
push 2
push 0
push eax
call ebp
mov eax, dword [esi + 0x23c]
mov edi, dword [sym.imp.MSVCRT.dll_ftell]
push eax
call edi
add esp, 0x10
cmp eax, 0x7d0
jge 0x43522a
mov ecx, dword [esi + 0x23c]
push 0
push 0x7d0
push ecx
call ebp
add esp, 0xc
mov edx, dword [esi + 0x23c]
push edx
call edi
mov eax, dword [esi + 0x23c]
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push eax
push 1
lea ecx, [esp + 0x24]
push 1
push ecx
mov byte [esp + 0x2c], 0
call edi
mov edx, dword [esi + 0x23c]
push edx
push 1
push 4
push ebx
call edi
mov eax, dword [esi + 0x23c]
lea ecx, [ebx + 4]
push eax
push 1
push 4
push ecx
call edi
mov edx, dword [esi + 0x23c]
lea eax, [ebx + 8]
push edx
push 1
push 4
push eax
call edi
mov ecx, dword [esi + 0x23c]
add esp, 0x44
lea edx, [ebx + 0xc]
push ecx
push 1
push 4
push edx
call edi
mov eax, dword [esi + 0x23c]
lea ecx, [ebx + 0x10]
push eax
push 1
push 4
push ecx
call edi
lea ebp, [ebx + 0x14]
push ebp
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x24
cmp eax, 0x103
mov dword [esp + 0x10], eax
jbe 0x4352c5
mov dword [esp + 0x10], 0x103
mov edx, dword [esi + 0x23c]
lea eax, [esp + 0x10]
push edx
push 1
push 4
push eax
call edi
mov ecx, dword [esi + 0x23c]
mov edx, dword [esp + 0x20]
push ecx
push edx
push 2
push ebp
call edi
add ebx, 0x21c
add esp, 0x20
mov ecx, ebx
call fcn.00412310
inc eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x23c]
push eax
push 1
push 4
push ecx
call edi
mov edx, dword [esi + 0x23c]
mov eax, dword [esp + 0x20]
add esp, 0x10
mov ecx, ebx
push edx
push eax
push 1
call fcn.00412330
push eax
call edi
mov ecx, dword [esi + 0x23c]
push ecx
call dword [sym.imp.MSVCRT.dll_fflush]
add esp, 0x14
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret 4
Function at 0x436620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0c2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
xor eax, eax
xor edi, edi
mov edx, dword [esi + 8]
mov dword [ebp - 0x10], esp
cmp edx, eax
mov dword [ebp - 0x18], eax
jle 0x436684
mov ecx, dword [esi + 4]
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
jne 0x436661
cmp byte [ecx + 8], 0
je 0x43666b
inc eax
add ecx, 0xc
cmp eax, edx
jl 0x436657
jmp 0x436684
mov edi, dword [ecx + 4]
dec edx
cmp eax, edx
je 0x436684
lea ecx, [eax + eax*2 + 3]
mov eax, dword [esi + 4]
mov edx, dword [eax + ecx*4 + 4]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x18], edx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
test edi, edi
jle 0x4367fc
mov eax, dword [esi + 0x23c]
mov dword [ebp - 4], 0
test eax, eax
je 0x4367fc
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x4366d7
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push eax
call ebx
mov ecx, dword [esi + 0x23c]
push ecx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 0x10
mov dword [ebp - 0x18], eax
jmp 0x4366dd
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [esi + 0x23c]
push 0
push edi
push edx
call ebx
mov eax, dword [esi + 0x23c]
push eax
call dword [sym.imp.MSVCRT.dll_ftell]
push 0x228
mov dword [ebp - 0x1c], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 0x14
mov dword [ebp + 8], edi
test edi, edi
mov byte [ebp - 4], 1
je 0x436723
lea ecx, [edi + 0x21c]
call fcn.004120f0
mov dword [ebp - 0x14], edi
jmp 0x43672d
mov dword [ebp - 0x14], 0
mov edi, dword [ebp - 0x14]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
cmp eax, ecx
jge 0x4367e4
test edi, edi
je 0x4367fc
mov ecx, 0x8a
xor eax, eax
rep stosd dword es:[edi], eax
mov edx, dword [esi + 0x23c]
mov ecx, dword [ebp - 0x14]
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00434d80
cmp eax, 0xffffffff
je 0x4367e1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp + 0xc]
sub edx, ecx
cmp edx, eax
jge 0x4367c6
mov ecx, dword [esi + 0x23c]
mov byte [ebp + 0xb], 1
push ecx
call dword [sym.imp.MSVCRT.dll_ftell]
mov edx, dword [ebp - 0x1c]
mov edi, eax
mov eax, dword [esi + 0x23c]
push 0
push edx
push eax
call ebx
mov ecx, dword [esi + 0x23c]
lea edx, [ebp + 0xb]
push ecx
push 1
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov eax, dword [esi + 0x23c]
push 0
push edi
push eax
call ebx
add esp, 0x2c
mov ecx, dword [esi + 0x23c]
push ecx
call dword [sym.imp.MSVCRT.dll_ftell]
mov edi, dword [ebp - 0x14]
add esp, 4
mov dword [ebp - 0x1c], eax
jmp 0x436731
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x4367fc
lea ecx, [edi + 0x21c]
call fcn.00412140
push edi
call fcn.004ad125
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8