joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e172
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
pushal
mov edx, dword [ebp + 8]
mov ax, word [edx]
cmp ax, 0x5a4d
jne 0x42e1a1
mov eax, dword [edx + 0x3c]
add edx, eax
mov eax, dword [edx]
cmp eax, 0x4550
jne 0x42e1a1
add edx, 4
mov dword [ebp - 4], edx
popal
mov eax, dword [ebp - 4]
leave
ret 8
popal
sub eax, eax
leave
ret 8

Function at 0x42edff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov ecx, 3
mov edx, 1
push ecx
push dword [ebp + 8]
call fcn.0042ef04
rol eax, 8
push dword [ebp + 0xc]
push eax
call fcn.0042ef20
push edx
push dword [ebp + 0x10]
push eax
call fcn.0042eeec
inc edx
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.0042ef04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.0042eecb
push ecx
push dword [ebp + 8]
call fcn.0042ef04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.0042ef04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.0042eecb
push ecx
push dword [ebp + 8]
call fcn.0042ef04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.0042ef04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.0042eecb
push ecx
push dword [ebp + 8]
call fcn.0042ef04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.0042ef04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.0042eecb
cmp ecx, 0x2b
jne 0x42ee0f
leave
ret 0xc

Function at 0x4304b4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov byte [ebp - 0x118], 0x42
mov byte [ebp - 0x117], 0x72
mov byte [ebp - 0x116], 0x75
mov byte [ebp - 0x115], 0x74
mov byte [ebp - 0x114], 0x65
mov byte [ebp - 0x113], 0x66
mov byte [ebp - 0x112], 0x6f
mov byte [ebp - 0x111], 0x72
mov byte [ebp - 0x110], 0x63
mov byte [ebp - 0x10f], 0x69
mov byte [ebp - 0x10e], 0x6e
mov byte [ebp - 0x10d], 0x67
mov byte [ebp - 0x10c], 0x20
mov byte [ebp - 0x10b], 0x4b
mov byte [ebp - 0x10a], 0x65
mov byte [ebp - 0x109], 0x79
mov byte [ebp - 0x108], 0
mov eax, 1
lea edi, [ebp - 0x14]
mov ecx, 0x10
mov al, 0
mov byte [edi], al
inc edi
dec ecx
jne 0x430544
mov eax, dword [ebp + 8]
push 4
push 0x3000
push 0x13210
push 0
call dword [eax + 0x20]
test eax, eax
je 0x4305d6
mov dword [ebp - 4], eax
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, 0x13210
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push 0x13210
call fcn.004303fa
push 0x13210
push dword [ebp + 0xc]
call fcn.0042e1a8
test eax, eax
jne 0x4305b8
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov ecx, 0x13210
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
call fcn.004305dd
test eax, eax
je 0x4305d6
jmp 0x430574
mov eax, dword [ebp + 8]
push 0x8000
push 0
push dword [ebp - 4]
call dword [eax + 0x28]
test eax, eax
je 0x4305d6
popal
mov eax, 1
leave
ret 8
popal
sub eax, eax
leave
ret 8
Function at 0x43060b
Capabilities:
Terminate process

Disassembly:
call fcn.00430618
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x40b400
Capabilities:
Encode data using base64

Disassembly:
inc ecx
in al, dx
mov eax, dword [ebp + 0x6d]
lea ebx, [eax + 2]
mov eax, 0x557c5556
idiv edi
mov ecx, edx
shr ecx, 0x1f
stosb byte es:[edi], al
jp 0x40b3e8
add al, 0x95
rol dword [eax], cl
add byte [eax], al
aaa
inc ebp
adc byte [ebx + 0x558b064d], cl
or byte [edi + 0xc655251], ch
add byte [eax], al
add byte [eax - 0x6ffff33e], cl
push es
mov edx, dword [ebp + 8]
scasd eax, dword es:[edi]
push ecx
push edx
or al, 0
add byte [eax], al
mov dl, al
or al, 0
nop
nop
nop
nop
nop
nop
dec edx
nop
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push ebx
push esi
lea ecx, [edx - 2]
xor esi, dword [edi + edx*2]
push es
jge 0x40b420
cwde
leave
jle 0x40b483
xor edx, edx
xor ebx, ebx
mov dl, byte [edi + esi]
add esi, 3
rol edi, 2
jp 0x40b3b1
mov byte [ebx], 0xc1
mov dword [edx], 0x18928a7a
mov dword [eax], 0x8aff5088
push esp
xchg edx, eax
sbb bh, al
inc eax
add byte [eax + 0x548aff50], cl
aaa
std
mov bl, byte [edi + esi - 2]
cmp edx, esp
add eax, ecx
loop 0x40b441
shr ebx, 0xd4
or edx, ebx
xor ebx, ebx
inc eax
mov dl, byte [edx + 0x40c755]
mov byte [eax - 1], dl
mov dl, byte [edi + esi - 2]
mov bl, byte [edi + esi - 1]
and edx, 0xf
sal dword [ebx], cl
fild dword [eax - 0x76]
xchg edx, eax
push ebp
mov dword [eax], 0x8aff5088
push esp
aaa
dec byte [edx - 0x7c00c8a4]
loop 0x40b468
shl edx, 2
rcr dword [esi + 6], 0xb
rol dword [eax - 0x76], cl
xchg edx, eax
sbb bh, al
jecxz 0x40b468
mov byte [edx - 1], bh
mov dl, byte [edi + esi - 1]
and edx, 0x3f
inc eax
cmp esi, ecx
mov dl, byte [edx + 0x40c718]
mov byte [eax - 1], dl
jl 0x40b418
mov edx, dword [ebp + 0x10]
cmp esi, edx
cmp bl, byte [edi + 0x33]
leave
dec dword [esi + edi]
xor byte [eax + 0x7c4a4002], bh
mov dword [ebp + 0x3b0040c7], ebp
mov byte [eax - 1], cl
mov al, ah
jne 0x40b431
pop ebp
loop 0x40b4a7
rol ebp, 4
inc eax
adc ecx, dword [edx + 0x40c718]
mov byte [eax - 1], cl
mov byte [eax], 0x3d
pop edx
sub ecx, dword [ebp + 0x33013e4c]
fild dword [ebx + 0x198a03e2]
shl edx, 4
shr ebx, 4
or edx, ebx
inc eax
mov ah, byte [eax + ebx - 0x772b0b39]
push eax
dec dword [edx + 0xfe18309]
mov dl, byte [ecx*4 + 0x1040c718]
mov byte [eax], dl
inc eax
mov byte [eax], 0x3d
adc al, 0x8b
ljmp 0xbd2b
Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40120f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push 2
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401234
xor eax, eax
jmp 0x4012ad
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40125e
xor eax, eax
jmp 0x4012ad
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 8]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401390
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0x401414
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 5
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0x40316c
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.USER32.dll_RegisterClassW]
and eax, 0xffff
test eax, eax
jne 0x4013f4
jmp 0x401410
lea edx, [ebp - 8]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
push 0x40178d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
mov esp, ebp
pop ebp
ret
Function at 0x401940
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], str.com_netapp_nmf_launch_LaunchNotify
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x401a63
cmp dword [ebp - 0x10], 0
jne 0x401a1b
cmp dword [0x404034], 0
je 0x401a1b
mov dword [ebp - 0x1c], 0x10004
mov dword [ebp - 0x18], str.SplashSreenThread
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [0x404034]
push eax
mov ecx, dword [0x404034]
mov edx, dword [ecx]
call dword [edx + 0x10]
test eax, eax
je 0x4019c3
jmp 0x401a8e
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
call dword [eax + 0x18]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4019f3
mov ecx, dword [ebp - 8]
push ecx
push str.cannot_find_class:__s_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
jmp 0x401a8e
push 0x4031ac
push str.started
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
call dword [edx + 0x240]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401a1b
jmp 0x401a8e
cmp dword [ebp - 0x10], 0
je 0x401a43
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x248]
and eax, 0xff
test eax, eax
je 0x401a43
jmp 0x401a8e
push 0x19
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0
mov edx, dword [0x404038]
push edx
call dword [sym.imp.USER32.dll_RedrawWindow]
jmp 0x40195b
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x401a81
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0x12
jne 0x40195b
push 0
mov eax, dword [0x404038]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp - 0xc], 0
je 0x401ab2
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
cmp dword [ebp - 0x10], 0
je 0x401ad5
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov edx, dword [0x404034]
push edx
mov eax, dword [0x404034]
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x401dfc
Capabilities:
Hide graphical window
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
lea eax, [ebp + 0xc]
mov dword [ebp - 0x804], eax
mov ecx, dword [ebp - 0x804]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x400
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.MSVCRT.dll__vsnwprintf]
add esp, 0x10
mov dword [ebp - 0x804], 0
push 0
mov ecx, dword [0x404038]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x30
push str.Error
lea edx, [ebp - 0x800]
push edx
mov eax, dword [0x404038]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov esp, ebp
pop ebp
ret

Function at 0x401e6d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
call dword [edx + 0x3c]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401e8d
jmp 0x401f37
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
call dword [edx + 0x44]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
call dword [eax + 0x7c]
mov dword [ebp - 4], eax
push str.__Ljava_lang_String_
push str.toString
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x84]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
call dword [eax + 0x88]
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x294]
mov dword [ebp - 0x14], eax
push 0x30
push str.Exception
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [0x404038]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
call dword [edx + 0x298]
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov esp, ebp
pop ebp
ret

Function at 0x40211c
Capabilities:
Hide graphical window
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
mov eax, dword [ebp + 8]
push eax
push str._s____installDir__directory_______maxJvmHeap__heapSize___
push 0x100
lea ecx, [ebp - 0x200]
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push 0
mov edx, dword [0x404038]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x30
push str.Usage
lea eax, [ebp - 0x200]
push eax
mov ecx, dword [0x404038]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
push 2
call dword [sym.imp.MSVCRT.dll_exit]
mov esp, ebp
pop ebp
ret
Function at 0x402179
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401b90
add esp, 0xc
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401f20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x401f4c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x401f6e
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x401f70
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x401ff5
jg 0x401f85
test esi, esi
je 0x401ff5
test ecx, ecx
jl 0x401fce
jg 0x401f8f
test eax, eax
je 0x401fce
cmp edi, ecx
jg 0x401fa3
jl 0x401f99
cmp esi, eax
jae 0x401fa3
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x401fd1
mov edx, dword [ebp + 8]
test edi, edi
jl 0x401ff5
jg 0x401fdb
test esi, esi
je 0x401ff5
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x401ff5
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402010
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x40203c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x40205e
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x402060
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x402100
jg 0x40207d
test esi, esi
je 0x402100
test ecx, ecx
jl 0x4020ca
jg 0x402087
test eax, eax
je 0x4020ca
cmp ebx, ecx
jg 0x40209b
jl 0x402091
cmp esi, eax
jae 0x40209b
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x4020d1
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x402100
jg 0x4020db
test esi, esi
je 0x402100
cmp dword [edi + 0x4c], 0
je 0x402100
mov ecx, edi
call fcn.00402c50
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4b700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x402490
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046dda6
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x4024c0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x4024c0
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.0046dda6
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x402595
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4024e9
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 0x4024f5
movsx eax, bl
jmp 0x40252c
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]
test eax, eax
js 0x402595
cmp eax, 1
jle 0x402556
cmp eax, 3
jne 0x402595
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.0046dda6
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x402574
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 0x402595
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x402595
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046dda6
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.0046dda6
mov esp, ebp
pop ebp
ret 4