joyce8/EMBER2024-capa huggingface dataset:
Function at 0x900819
Capabilities:
Execute anti-debugging instructions

Disassembly:
call fcn.0090008f
rcl si, 5
jmp 0x90084a
xchg word [esp + 1], si
inc dh
push word [esp + 8]
jmp 0x900895
mov word [esp + 7], di
setno bl
lea ebp, [ebp + 0x76]
add esp, 2
xchg word [esp + 1], ax
xchg dl, ah
jmp 0x90081f
mov dh, byte [esp + 3]
ror esi, cl
pop si
pushal
push word [esp + 0xb]
jmp 0x9008e5
mov edx, 0x770df1b9
pop dword [esp]
setne cl
bsf cx, sp
pop si
cmc
jmp 0x90087f
pop word [esp + 7]
add al, dh
lea ebp, reloc.iphlpapi.dll_GetAdaptersInfo
xchg bl, bh
call fcn.009008cf
cld
xchg cx, ax
sub esp, 0x11
pop ecx
sbb ebx, edi
lea edx, reloc.iphlpapi.dll_GetAdaptersInfo
jmp 0x900913
bswap edx
pop dword [esp + 0x23]
shr cl, 0
lea esp, [esp + 0x1c]
and bx, bp
mov dword [esp + 0xd], edi
jmp 0x900c0b
mov ch, 0xf5
xor esi, ebx
mov eax, esi
push word [esp + 7]
push dword [esp + 0xd]
jmp 0x900ae1
bswap esi
lea edi, [ecx*4]
mov byte [esp + 2], ch
mov ecx, dword [esp + 0xb]
jmp 0x90094f
stc
xchg dword [esp + 0xa], ebp
pop word [esp + 6]
xchg edi, ebp
setbe dh
pop dword [esp + 8]
jmp 0x900965
mov word [esp + 0x13], bx
setl bl
push word [esp + 7]
jmp 0x9009bc
mov byte [esp + 9], bh
xchg word [esp + 5], cx
xchg dword [esp + 0xe], eax
cpuid
mov edi, ecx
not esi
jmp 0x900991
lea esp, [esp + 1]
lea esi, [ecx + ebx]
mov dl, 0x60
call fcn.00900a21
rol byte [ebp - 0x2b], cl
mov esp, 0xf66ce44f
add edi, esi
inc eax
mov ds, word [bx + di]
js 0x900a36
xchg dword [esp + 0x13], ebx
mov ah, 0x8f
dec bp
cld
rdtsc
lea esi, [ecx + ebx]
jmp 0x9009a7
jmp 0x900a8e
push cx
mov dx, word [esp + 0x1b]
mov bp, word [esp + 4]
bts ebp, eax
stc
pop word [esp + 0xd]
jmp 0x9009db
mov bp, sp
lea esp, [esp + 2]
popal
push edi
push word [esp]
jmp 0x900ab4
mov dx, 0xe33c
stc
rdtsc
push esp
xchg byte [esp + 1], bh
pop cx
jmp 0x900a78
push bp
lea esp, [esp + 2]
push eax
push di
mov word [esp], bp
jmp 0x900ac5
push word [esp + 5]
pushfd
lea esp, [esp + 0xc]
popfd
lea esp, [esp + 4]
jmp 0x900a9e
mov byte [esp], cl
lea esp, [esp + 2]
push ecx
push sp
pushal
call fcn.00900b73
movsb byte es:[edi], byte es:[esi]
cmp bl, byte [ebp - 0x54]
js 0x900b2d
rcl byte [ebx - 0x36]
xchg esp, eax
sub esp, 3
xchg ebp, eax
mov bx, dx
shl ebp, 1
setne cl
mov ch, dh
jmp 0x900a5e
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], esp
call fcn.00900b0b
call 0x900b5b
daa
mov eax, dword [reloc.iphlpapi.dll_GetAdaptersInfo]
loop 0x900bb8
pop ss
loop 0x900b56
mov dword [reloc.iphlpapi.dll_GetAdaptersInfo], eax
pushfd
mov dword [esp + 0x1c], esi
pushal
call 0x900b3a
mov byte [esp + 7], dh
mov dword [esp + 0x40], edi
lea esp, [esp + 0x40]
jmp 0x900b8f
mov eax, dword [eax]
jmp 0x900bb3
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x900b79
mov eax, dword [eax + 8]
push eax
jmp 0x90008a
into
hlt
lea esi, [edx*4]
xchg ch, dh
std
mov ah, 0xb5
mov edi, ecx
dec di
jmp 0x90097c

Function at 0x9008cf
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg dword [esp], ebp
call fcn.0090090f
ja 0x9008c0
ja 0x9008ed
loope 0x900937
invalid
scasd eax, dword es:[edi]
push eax
movsd dword es:[edi], dword [esi]
add byte [eax], al
ret
Function at 0x900a21
Capabilities:
Execute anti-debugging instructions

Disassembly:
call 0x900a01
xchg dx, bp
not cx
mov ebx, dword [esp]
xchg esi, edx
rol eax, cl
mov edi, dword [esp]

Function at 0x900b73
Capabilities:
Access peb ldr_data

Disassembly:
mov dword [esp + 0x20], edx
lea esp, [esp + 2]
jmp 0x900b29
Function at 0x401000
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1bc
mov eax, dword [0x408018]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esp + 0x30]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x401050
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.004045ec
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x4084f0
push 0x67
push esi
call edi
push 0x64
push 0x408428
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00401140
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov edx, dword [ebp + 0x14]
push edx
mov eax, esi
call fcn.004011d0
add esp, 4
test eax, eax
jne 0x4010b9
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.004045ec
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
mov esi, eax
push 0
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
je 0x401119
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorW]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
push esi
push edx
call ebx
test eax, eax
jne 0x401108
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea edx, [esp + 0x20]
push edx
call edi
test eax, eax
jne 0x4010e1
mov ecx, dword [esp + 0x1c4]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004045ec
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4011d0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
push edi
push 0
mov ebx, dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebp, dword [esp + 0x58]
mov edi, eax
push edi
push 0
push 0
push 0x190
push 0x190
push 0
push accept
push 0xcf0000
push 0x4084f0
push 0x408428
push 0
mov dword [0x408424], edi
call ebx
mov esi, eax
test esi, esi
jne 0x401222
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
push 0
push edi
push 0
push esi
push accept
push accept
push accept
push accept
push 0x40000000
push 0x40622c
push str.msctls_statusbar32
push 0
mov dword [0x408420], esi
call ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push ebp
push eax
mov dword [0x40841c], eax
call ebx
mov ecx, dword [0x40841c]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
add eax, dword [esp + 0x1c]
sub ecx, dword [esp + 0x10]
push 0
push edi
push 0
push esi
push eax
push ecx
push 0
push 0
push 0x40000001
push str.Port_Redirections
push str.SysListView32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x21
push 0
push 0x1036
push eax
mov dword [0x408418], eax
call edi
mov eax, dword [0x408418]
lea edx, [esp + 0x30]
push edx
push 0
push 0x1061
push eax
mov dword [esp + 0x40], 6
mov dword [esp + 0x4c], str.Local_Port
mov dword [esp + 0x48], 0x64
call edi
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x10]
mov eax, dword [0x408418]
lea edx, [esp + 0x30]
push edx
push 1
push 0x1061
sub ecx, 0x12c
push eax
mov dword [esp + 0x4c], str.Destination
mov dword [esp + 0x48], ecx
call edi
or dword [esp + 0x30], 1
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], 2
mov dword [esp + 0x3c], str.Destination_Port
mov dword [esp + 0x38], 0x64
push ecx
mov edx, dword [0x408418]
push 2
push 0x1061
push edx
call edi
mov ecx, dword [0x408418]
lea eax, [esp + 0x30]
push eax
push 3
push 0x1061
push ecx
mov dword [esp + 0x4c], str._Connections
mov dword [esp + 0x48], 0x64
call edi
mov edx, dword [0x408418]
push ebp
push edx
call ebx
push ebp
push esi
call ebx
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
Function at 0x401c20
Capabilities:
Create tcp socket
Create thread
Create udp socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40502b
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x408018]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edi
call fcn.004026e0
mov ebx, eax
test ebx, ebx
je 0x401cf3
push 0x24
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
mov dword [esp + 0x28], 0
je 0x401ca1
call fcn.00404020
mov dword [esi + 0x1c], eax
mov byte [eax + 0x11], 1
mov eax, dword [esi + 0x1c]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [eax], eax
mov eax, dword [esi + 0x1c]
mov dword [eax + 8], eax
mov dword [esi + 0x20], 0
jmp 0x401ca3
xor esi, esi
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [ebp + 8]
push edi
mov dword [esi], eax
mov dword [esi + 4], ecx
call dword [sym.imp.MSVCR80.dll__strdup]
mov edx, dword [ebp + 0x10]
add esp, 4
push 0
push 1
push 2
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], edx
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [esi + 4]
push ecx
push eax
mov dword [esi + 0x14], eax
call fcn.00401ba0
add esp, 8
test al, al
jne 0x401d08
mov edi, esi
call fcn.00401d50
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x14]
push 5
push edx
call dword [sym.imp.WS2_32.dll_listen]
lea ebx, [ebp + 8]
call fcn.00402d40
mov ecx, dword [ebp + 8]
mov dword [eax], esi
lea eax, [esp + 0x18]
push eax
push 0
push ecx
push 0x4027d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402110
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x57c
mov eax, dword [0x408018]
xor eax, esp
mov dword [esp + 0x574], eax
mov eax, dword [0x408420]
mov ecx, dword [0x408424]
push ebx
push ebp
push esi
xor esi, esi
mov dword [esp + 0x20], eax
push edi
lea eax, [esp + 0x20]
lea edx, [esp + 0x78]
push eax
mov dword [esp + 0x24], 0x58
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], str..txt
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], 1
mov byte [esp + 0x7c], 0
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 0x104
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], str.Save_redirections_to..
mov dword [esp + 0x58], esi
mov dword [esp + 0x60], 0x406588
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
call dword [sym.imp.comdlg32.dll_GetSaveFileNameA]
test eax, eax
je 0x40229b
push 0x4065f4
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], esi
call dword [sym.imp.MSVCR80.dll_fopen_s]
add esp, 0xc
cmp dword [esp + 0x14], esi
jne 0x4021ef
mov eax, dword [0x408420]
push esi
push 0x406434
push 0x4065f8
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40229b
mov ecx, dword [0x4085c0]
mov edi, dword [ecx]
mov ebx, dword [sym.imp.MSVCR80.dll_sprintf_s]
mov esi, 0x4085bc
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
lea ebx, [ebx]
test esi, esi
mov ebp, dword [0x4085c0]
je 0x402222
cmp esi, 0x4085bc
je 0x402228
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, ebp
je 0x40228d
test esi, esi
jne 0x402236
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [esi + 4]
jne 0x402241
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 0x10]
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 8]
push edx
mov edx, dword [eax + 4]
push ecx
push edx
push str._i__s__i
lea eax, [esp + 0x190]
push 0x400
push eax
call ebx
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x19c]
push edx
call dword [sym.imp.MSVCR80.dll_fputs]
add esp, 0x20
lea esi, [esp + 0x18]
call fcn.004041e0
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x402210
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
mov ecx, dword [esp + 0x584]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004045ec
add esp, 0x57c
ret

Function at 0x4026e0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
lea eax, [esp]
push eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push str._d._d._d._d
push esi
call dword [sym.imp.MSVCR80.dll_sscanf_s]
add esp, 0x18
cmp eax, 4
jne 0x402726
mov eax, dword [esp]
shl eax, 8
or eax, dword [esp + 4]
shl eax, 8
or eax, dword [esp + 8]
shl eax, 8
or eax, dword [esp + 0xc]
add esp, 0x10
ret
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x402735
add esp, 0x10
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
add esp, 0x10
ret
Function at 0x4045ec
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408018]
jne 0x4045f6
repz ret
jmp fcn.00404a23
Function at 0x10037f80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x10037fac
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 + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x10037fd4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x10037fda
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x10038042
jg 0x10037ff1
test esi, esi
je 0x10038042
test ecx, ecx
jl 0x1003803d
jg 0x10037ffb
test eax, eax
je 0x1003803d
cmp edi, ecx
jg 0x1003800f
jl 0x10038005
cmp esi, eax
jae 0x1003800f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x10038045
mov ecx, dword [ebp + 8]
jmp 0x1003804f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10038069
jg 0x1003804f
test esi, esi
je 0x10038069
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10038069
push eax
push esi
push 1
push ecx
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 + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10038080
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x100380ac
jl 0x100380a0
test ecx, ecx
jne 0x100380ac
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x100380c5
push eax
push ecx
push esi
mov ecx, ebx
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 esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x10038113
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x10038119
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], 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
mov esi, dword [ebp - 4]
jmp 0x10038119
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x10038186
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10038142
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x10038174
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10038186
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10038150
test edi, edi
je 0x10038186
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
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 0x10038510
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10124040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10038540
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100f4f36
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1003857c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1003857c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100f4f36
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10038653
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x100385a4
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 0x100385b0
movsx eax, bl
jmp 0x100385e8
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x10038612
sub eax, 1
je 0x10038612
sub eax, 2
jne 0x10038653
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
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100f4f36
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10038630
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 0x10038653
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100f4f36
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.100f4f36
mov esp, ebp
pop ebp
ret 4
Function at 0x10038950
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10124040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10038a0c
cmp byte [esi + 0x3d], 0
je 0x10038a0c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x100389fa
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x100389c1
sub eax, 1
je 0x100389c5
sub eax, 2
jne 0x100389fa
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100f4f36
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100389e3
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 0x100389fa
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100f4f36
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100f4f36
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.100f4f36
mov esp, ebp
pop ebp
ret
Function at 0x1003b980
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [0x101d750c], 0
push ebx
push esi
push edi
je 0x1003bb38
mov ecx, dword [0x101e0b8c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x68]
call eax
test al, al
je 0x1003bb38
mov esi, dword [0x101e0c10]
xor ebx, ebx
mov dword [ebp - 4], esi
mov eax, dword [esi + 0x28]
mov dword [ebp - 8], eax
test eax, eax
je 0x1003bb38
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
cmp ebx, dword [esi + 0x28]
jl 0x1003b9e7
push 0x410
push str.D:csgo_rax_sourcelegacyutlvector.h
push str.i___m_Size
call eax
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
cmp dword [esi + 0x24], 0xfffffffe
jne 0x1003ba01
push 0x272
push str.D:csgo_rax_sourcelegacyutlvector.h
push str._IsReadOnly__
call eax
add esp, 0xc
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + ebx*4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov esi, eax
mov edi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [esi + ecx], 0
jne 0x1003ba17
xor edx, edx
test ecx, ecx
je 0x1003ba3d
movsx eax, byte [esi + edx]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x1003ba24
cmp edi, 0x5ff56dc5
je 0x1003ba4f
inc ebx
cmp ebx, dword [ebp - 8]
jae 0x1003bb38
mov esi, dword [ebp - 4]
jmp 0x1003b9c4
mov edi, dword [ebp - 4]
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
cmp ebx, dword [edi + 0x28]
jl 0x1003ba71
push 0x410
push str.D:csgo_rax_sourcelegacyutlvector.h
push str.i___m_Size
call esi
add esp, 0xc
cmp dword [edi + 0x24], 0xfffffffe
jne 0x1003ba8b
push 0x272
push str.D:csgo_rax_sourcelegacyutlvector.h
push str._IsReadOnly__
call esi
add esp, 0xc
mov eax, dword [edi + 0x1c]
mov edi, dword [eax + ebx*4]
test edi, edi
je 0x1003bb38
mov eax, dword [edi + 0x88]
mov dword [ebp - 8], eax
test eax, eax
je 0x1003bb38
xor esi, esi
test eax, eax
jle 0x1003bb38
xor edx, edx
mov dword [ebp - 4], edx
nop dword [eax]
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
cmp esi, dword [edi + 0x88]
jl 0x1003bae5
push 0x410
push str.D:csgo_rax_sourcelegacyutlvector.h
push str.i___m_Size
call ebx
mov edx, dword [ebp - 4]
add esp, 0xc
cmp dword [edi + 0x84], 0xfffffffe
jne 0x1003bb05
push 0x272
push str.D:csgo_rax_sourcelegacyutlvector.h
push str._IsReadOnly__
call ebx
mov edx, dword [ebp - 4]
add esp, 0xc
mov ecx, dword [edi + 0x7c]
movss xmm0, dword [ecx + edx + 0x418]
ucomiss xmm0, dword [0x10116e48]
lahf
test ah, 0x44
jp 0x1003bb29
mov dword [ecx + edx + 0x418], 0x7f7fffff
inc esi
add edx, 0x420
mov dword [ebp - 4], edx
cmp esi, dword [ebp - 8]
jl 0x1003bac0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret