joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a2c0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push esi
push edi
mov edi, eax
mov esi, ebx
mov dword [0x427ad0], eax
mov dword [0x425c84], edx
call fcn.0041d960
xor eax, eax
mov dword [0x4280f8], eax
call dword [sym.imp.KERNEL32.DLL_GetVersion]
mov edx, eax
mov byte [0x425fa9], al
shr eax, 0x10
mov word [0x425fab], ax
xor eax, eax
mov ax, word [0x425fab]
and edx, 0xffff
mov dword [0x425fad], eax
xor eax, eax
sar edx, 8
mov al, byte [0x425fa9]
and edx, 0xff
mov dword [0x425fb1], eax
xor eax, eax
mov al, dl
mov byte [0x425faa], dl
mov dword [0x425fb5], eax
mov eax, dword [0x425fb1]
mov edx, dword [0x425fb5]
shl eax, 8
or eax, edx
mov dword [0x425fb9], eax
cmp byte [0x425fa9], 4
jae 0x41a3e7
mov eax, 0x41a258
push eax
xor edx, edx
push 0x41a285
mov dword [0x425fa5], edx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edx, eax
test eax, eax
je 0x41a37a
call edx
mov dword [0x425fa5], eax
push 0x104
push 0x427ad4
push 0
mov ebx, 0x208
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, 0x427bd8
xor eax, eax
mov dword [0x425f74], 0x427ad4
call fcn.0041dd70
mov dword [0x425f80], 0x427bd8
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
call fcn.0041de10
mov edx, eax
mov bl, byte [eax]
mov dword [0x427ac8], eax
cmp bl, 0x22
je 0x41a3f1
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x417891], 2
je 0x41a409
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x417891], 2
je 0x41a410
inc eax
jmp 0x41a3d7
mov eax, 0x41a26e
jmp 0x41a352
inc eax
cmp bl, byte [eax]
je 0x41a401
cmp byte [eax], 0
je 0x41a401
inc eax
cmp byte [eax], 0x22
jne 0x41a3f6
cmp byte [eax], 0
je 0x41a3d7
inc eax
jmp 0x41a3d7
test dl, dl
je 0x41a3d7
inc eax
jmp 0x41a3ca
mov dword [0x425f70], eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
test eax, eax
je 0x41a486
call fcn.0041de50
mov edx, eax
mov bx, word [eax]
mov dword [0x427acc], eax
cmp bx, 0x22
je 0x41a459
xor eax, eax
mov ax, word [edx]
call fcn.0041de77
test eax, eax
je 0x41a47b
xor eax, eax
mov ax, word [edx]
call fcn.0041de77
test eax, eax
je 0x41a48b
add edx, 2
jmp 0x41a446
lea edx, [eax + 2]
cmp bx, word [edx]
je 0x41a470
cmp word [edx], 0
je 0x41a470
add edx, 2
cmp word [edx], 0x22
jne 0x41a461
cmp word [edx], 0
je 0x41a446
add edx, 2
jmp 0x41a446
cmp word [edx], 0
je 0x41a446
add edx, 2
jmp 0x41a438
mov edx, 0x41a292
mov dword [0x425f7c], edx
test edi, edi
jne 0x41a49e
mov eax, 1
pop edi
pop esi
pop ecx
ret
push 0x104
push 0x427de0
push esi
mov ebx, 0x208
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, 0x427ee4
mov eax, esi
mov dword [0x425f78], 0x427de0
call fcn.0041dd70
mov dword [0x425f84], 0x427ee4
mov eax, 1
pop edi
pop esi
pop ecx
ret
Function at 0x41a8c0
Capabilities:
Get file attributes

Disassembly:
push ecx
push edx
push esi
sub esp, 0x140
mov ecx, eax
cmp word [0x425fab], 0x8000
jae 0x41a8df
cmp byte [0x425fa9], 4
jae 0x41a92e
mov dl, 0x2a
mov esi, ecx
mov al, byte [esi]
cmp al, dl
je 0x41a8fb
cmp al, 0
je 0x41a8f9
inc esi
mov al, byte [esi]
cmp al, dl
je 0x41a8fb
inc esi
cmp al, 0
jne 0x41a8e3
sub esi, esi
test esi, esi
jne 0x41a91f
mov dl, 0x3f
mov esi, ecx
mov al, byte [esi]
cmp al, dl
je 0x41a91b
cmp al, 0
je 0x41a919
inc esi
mov al, byte [esi]
cmp al, dl
je 0x41a91b
inc esi
cmp al, 0
jne 0x41a903
sub esi, esi
test esi, esi
je 0x41a937
mov eax, 0xffffffff
add esp, 0x140
pop esi
pop edx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
jmp 0x41a924
mov edx, esp
mov eax, ecx
call fcn.0041edf0
cmp eax, 0xffffffff
je 0x41a924
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp]
add esp, 0x140
pop esi
pop edx
pop ecx
ret

Function at 0x41a960
Capabilities:
Read file on windows

Disassembly:
push ecx
sub esp, 4
test eax, eax
jl 0x41a991
cmp eax, dword [0x42600c]
jae 0x41a991
push 0
lea ecx, [esp + 4]
push ecx
push ebx
push edx
call fcn.0041d890
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x41a9a8
mov eax, dword [esp]
add esp, 4
pop ecx
ret
call dword [0x425c88]
mov dword [eax + 4], 4
mov eax, 0xffffffff
add esp, 4
pop ecx
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
call fcn.00418b90
cmp edx, 0x6d
jne 0x41a9c0
cmp dword [esp], 0
je 0x41a989
mov eax, 0xffffffff
add esp, 4
pop ecx
ret

Function at 0x41d090
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edx
push 0x40
push 0x1000
mov edx, dword [eax]
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
pop edx
pop ecx
ret

Function at 0x41ed10
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push edi
push ebp
sub esp, 8
mov esi, eax
mov ebp, edx
mov edi, ebx
test eax, eax
jl 0x41eda4
cmp eax, dword [0x42600c]
jae 0x41eda4
call fcn.0041d890
mov edx, eax
mov dword [esp + 4], eax
mov eax, esi
xor ebx, ebx
call fcn.0041ec80
test al, 0x80
je 0x41ed68
mov eax, esi
call dword [0x425dc4]
push 2
push 0
push 0
push edx
mov ebx, 1
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
je 0x41edb8
push 0
lea eax, [esp + 4]
push eax
push edi
push ebp
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x41edc2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
cmp ebx, 1
jne 0x41ed95
mov eax, esi
call dword [0x425dc8]
mov eax, edx
call fcn.00418b90
add esp, 8
pop ebp
pop edi
pop esi
pop ecx
ret
call dword [0x425c88]
mov dword [eax + 4], 4
mov eax, 0xffffffff
jmp 0x41ed9c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
jmp 0x41ed8d
cmp edi, dword [esp]
je 0x41edd4
call dword [0x425c88]
mov dword [eax + 4], 0xc
cmp ebx, 1
jne 0x41ede1
mov eax, esi
call dword [0x425dc8]
mov eax, dword [esp]
add esp, 8
pop ebp
pop edi
pop esi
pop ecx
ret
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
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

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 0x408cc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x408da6
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x408d95
jg 0x408d00
test edx, edx
je 0x408d95
nop dword [eax]
call fcn.0040a6a0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x408d54
jg 0x408d17
test esi, esi
je 0x408d54
cmp ebx, eax
jg 0x408d27
jl 0x408d21
cmp edi, esi
jae 0x408d27
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.004df730
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x408d79
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x408d8f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x408d00
jl 0x408d8f
test edi, edi
jne 0x408d00
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 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 + 0x10], eax
test eax, eax
je 0x408dc8
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x408dca
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x408e48
jg 0x408ddd
test esi, esi
je 0x408e48
test eax, eax
jl 0x408e2c
jg 0x408de7
test ebx, ebx
je 0x408e2c
cmp edi, eax
jg 0x408df7
jl 0x408df1
cmp esi, ebx
jae 0x408df7
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.004df730
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x408e48
jg 0x408e2f
test esi, esi
je 0x408e48
jmp 0x408e2f
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x408e48
push eax
push esi
push 1
push edx
call fcn.004e5139
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 0x408e60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x408e92
jl 0x408e85
test ecx, ecx
jne 0x408e92
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x408f52
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.0040a6c0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x408efe
jg 0x408ebd
test esi, esi
je 0x408efe
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x408ed5
mov eax, dword [esp + 0x10]
jl 0x408ecf
cmp eax, esi
jae 0x408ed5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.004df730
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x408f1f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x408f3b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x408ea4
jl 0x408f3b
test ecx, ecx
jne 0x408ea4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x408f91
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x408f91
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.004df730
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x409000
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x408fb7
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x408fe9
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.004e9534
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x409014
cmp edi, eax
ja 0x408fc5
test ecx, ecx
je 0x409000
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.004e9534
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409380
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x540020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4093b0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ddc19
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4093ec
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4093ec
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ddc19
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4094d4
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x409414
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 0x409447
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.004e237c
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.004ddc19
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
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 [edx + 0x1c]
sub eax, 0
je 0x4094a7
sub eax, 1
je 0x4094a7
sub eax, 2
jne 0x4094d4
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.004e237c
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.004ddc19
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4094c4
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004e5139
add esp, 0x10
cmp edi, eax
jne 0x4094d4
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x4093d7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ddc19
mov esp, ebp
pop ebp
ret 4
Function at 0x40a4c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x540020]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40a57a
cmp byte [esi + 0x3d], 0
je 0x40a57a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40a568
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40a530
sub eax, 1
je 0x40a534
sub eax, 2
jne 0x40a568
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ddc19
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40a551
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004e5139
add esp, 0x10
cmp edi, eax
jne 0x40a568
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ddc19
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ddc19
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004ddc19
mov esp, ebp
pop ebp
ret

Function at 0x40ac60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x500760
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x540020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004ddc2c
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004dc330
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413910
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x501167
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x540020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], esi
mov dword [esi + 4], 0x51274f
mov word [esi + 8], 0
mov byte [esi + 0xa], 0
mov dword [ebp - 4], 0
lea edi, [esi + 0xc]
mov dword [esi], vtable.Ioan::Json3::EnumBase_enum__int___cdecl_TestJson3Convert_void_::_566::En_.0
push 0x18
mov dword [edi], vtable.StrDict3_enum__int___cdecl_TestJson3Convert_void_::_566::En_.0
call fcn.004ddc2c
mov dword [ebp - 0x10], eax
xorps xmm0, xmm0
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
mov dword [eax], vtable.StrDict3_enum__int___cdecl_TestJson3Convert_void_::_566::En_::Allocator_16_.0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov byte [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
add esi, 0x28
mov byte [ebp - 4], 3
mov dword [ebp - 0x10], esi
push 0x2c
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004ddc2c
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x30], 0
push 0
push str.EN_ENUM1
mov dword [ebp - 4], 4
push ecx
mov ecx, edi
mov dword [eax], vtable.._AUMyEnum__CDG___TestJson3Convert__YAHXZ_.0
mov dword [ebp - 0x10], 0
call fcn.0040af20
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.004174f0
push 8
push str.EN_ENUM1
mov ecx, eax
call fcn.0040a7b0
push 1
push str.EN_ENUM2
push ecx
mov ecx, edi
mov dword [ebp - 0x10], 1
call fcn.0040af20
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.004174f0
push 8
push str.EN_ENUM2
mov ecx, eax
call fcn.0040a7b0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x415ef0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5015c3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x540020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0x519484
mov word [esi + 8], 1
mov byte [esi + 0xa], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.Ioan::Json3::StringValidated_256_.0
mov dword [esi + 0x10], 0x519484
mov word [esi + 0x14], 1
mov byte [esi + 0x16], 0
mov dword [esi + 0xc], vtable.Ioan::Json3::String.0
mov dword [esi + 0x18], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0xf
push ecx
mov byte [ebp - 4], 1
lea ecx, [esi + 0x34]
push str._AB__a_z_
mov byte [esi + 0x30], 1
call fcn.00417880
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 2
push 0xa
mov dword [ecx], 0
push str._AB__a_z_
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
call fcn.0040a7b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x416210
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50160e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x540020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx + 4], str.String
mov word [ebx + 8], 1
mov byte [ebx + 0xa], 0
mov dword [ebp - 4], 0
mov dword [ebx], vtable.Ioan::Json3::StringValidated_3_.0
mov dword [ebx + 0x10], str.String
mov word [ebx + 0x14], 1
mov byte [ebx + 0x16], 0
mov dword [ebx + 0xc], vtable.Ioan::Json3::String.0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0xf
lea eax, [ebx + 0x34]
mov byte [ebx + 0x30], 0
lea edi, [eax + 4]
mov dword [ebp - 0x14], eax
mov dword [eax], 0
lea esi, [edi + 8]
mov dword [ebp - 0x14], edi
push 1
mov byte [ebp - 4], 2
call fcn.004dc330
mov dword [esi + 4], eax
push esi
mov byte [ebp - 4], 3
call fcn.004199a0
push esi
mov dword [edi], eax
call fcn.0040b420
add esp, 0xc
mov dword [edi + 4], eax
lea ecx, [ebx + 0x48]
mov byte [ebp - 4], 4
push 0xc
mov dword [ecx], 0
push str._a_zA_Z0_9_
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
call fcn.0040a7b0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x419b70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x419ba1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x419b90
pop edi
mov eax, edx
pop esi
pop ebp
ret 8