joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405880
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409308
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x40f3d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x44], 0
je 0x4059a7
cmp byte [edi + 0x49], 0
je 0x4059a7
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x40599b
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x4058f6
lea eax, [ebp - 0x2c]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
lea ebx, [edi + 0x4c]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
mov ecx, eax
cmp edx, 0x10
jae 0x405916
lea ecx, [ebp - 0x2c]
mov eax, ecx
add ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
push edx
push ecx
mov ecx, dword [edi + 0x44]
push eax
push ebx
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x40593b
dec eax
je 0x40593f
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x405996
jmp 0x4059a2
mov byte [edi + 0x49], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp edx, 0x10
jae 0x40594f
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x405979
cmp edx, 0x10
jae 0x40595e
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x405993
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x40599f
test esi, esi
jne 0x40590a
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004054d0
jmp 0x405904
lea ecx, [ebp - 0x2c]
call fcn.004053b0
xor al, al
jmp 0x4059a9
lea ecx, [ebp - 0x2c]
call fcn.004053b0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408422
mov esp, ebp
pop ebp
ret
Function at 0x4061d0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40942b
mov eax, dword fs:[0]
push eax
sub esp, 0x3d0
mov eax, dword [0x40f3d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 1
push 0x40
push 0x20
push eax
lea ecx, [ebp - 0x3dc]
call fcn.00405fa0
push 0
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [ebp - 0x3dc]
mov ecx, dword [eax + 4]
test byte [ebp + ecx - 0x3d0], 6
mov dword [ebp - 4], 0
je 0x406267
lea ecx, [ebp - 0x37c]
mov dword [ebp - 4], 0xffffffff
call fcn.004060a0
mov edx, dword [sym.imp.MSVCP100.dll_const_std::ios_base::vftable]
lea eax, [ebp - 0x37c]
mov dword [ebp - 0x37c], edx
push eax
jmp 0x40634c
mov ecx, dword [ebp + 0x10]
push 0
push ecx
push esi
lea ecx, [ebp - 0x3dc]
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___long_long___int64__]
lea edx, [ebp - 0x334]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov esi, dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0
push 0x100
lea eax, [ebp - 0x210]
push eax
push 0
push 0xfb
push 0
push 0x1000
call esi
lea ecx, [ebp - 0x330]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push 0
push 0x100
lea edx, [ebp - 0x110]
push edx
push 0
push 0x319
push 0
push 0x1000
call esi
push 0
push 0x100
lea eax, [ebp - 0x310]
push eax
push 0
push 0x356
push 0
push 0x1000
call esi
lea ecx, [ebp - 0x3dc]
mov dword [ebp - 4], 0
call fcn.00405df0
mov esi, dword [sym.imp.USER32.dll_GetDC]
push 0
call esi
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
call edi
push 0
call esi
push eax
call edi
lea ecx, [ebp - 0x37c]
mov dword [ebp - 4], 0xffffffff
call fcn.004060a0
mov ecx, dword [sym.imp.MSVCP100.dll_const_std::ios_base::vftable]
lea edx, [ebp - 0x37c]
mov dword [ebp - 0x37c], ecx
push edx
call dword [sym.imp.MSVCP100.dll_private:_static_void___cdecl_std::ios_base::_Ios_base_dtor_class_std::ios_base__]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408422
mov esp, ebp
pop ebp
ret
Function at 0x408422
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f3d4]
jne 0x40842c
repz ret
jmp fcn.004088bd
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x40288e
pop dword [ebp - 8]
mov eax, 0x40288e
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x8bd1803c
sub dword [ebp - 0x18], 0x3d7f3af1
mov dword [ebp - 0x14], 0xf498ec5d
sub dword [ebp - 0x14], 0xc265a018
mov dword [ebp - 0x10], 0x9b95df35
add dword [ebp - 0x10], 0xb0b664f9
mov dword [ebp - 0xc], 0x6de33346
add dword [ebp - 0xc], 0x921cccba
lea eax, [ebp - 0x18]
push eax
mov eax, 0x183a6ba8
add eax, 0xe80614e4
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x12358bf9
sub dword [ebp - 0x18], 0x9dc322a3
mov dword [ebp - 0x14], 0xcfcb26e0
sub dword [ebp - 0x14], 0x8e5ec56b
mov dword [ebp - 0x10], 0x6ecbcad1
sub dword [ebp - 0x10], 0xb5c5e65
mov dword [ebp - 0xc], 0x5b024c99
add dword [ebp - 0xc], 0xa4fdb367
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0x12b507b
sub eax, 0xeacfa7
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3c296
push 0
call eax
mov ecx, 0xaed673f2
add ecx, 0x5129ea51
xor edi, edi
add edi, eax
mov edx, 0x4f38dc6d
sub edx, 0x4ef7cc6d
add edx, dword [ebp - 8]
mov esi, 0x19ab2c47
mov dword [ebp - 4], 0x8f2f282b
mov ebx, dword [edx]
sub ebx, esi
sub dword [ebp - 4], 0x9f361b8d
mov dword [edi], ebx
xor dword [ebp - 4], 0xc513416c
add edi, 0xff0b24b6
sub edi, 0xff0b24b2
add edx, 0x62f5ca0a
sub edx, 0x62f5ca06
loop 0x4029a7
add eax, 0x645cb76f
sub eax, 0x645b4b90
xor ebx, ebx
add ebx, eax
add eax, 0xe46772cf
sub eax, 0xe46772ca
mov ecx, 0x400000
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x1004997
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0xc]
push eax
push 0x20006
push 0
push dword [ebp + 0xc]
mov esi, 0x80004005
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10049e9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, 2
jne 0x10049d0
xor eax, eax
test eax, eax
jle 0x10049de
and eax, 0xffff
or eax, 0x80070000
push dword [ebp + 0xc]
mov esi, eax
call dword [entry0]
mov eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x10049f5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp + 8]
push eax
push 0x20019
xor edi, edi
push edi
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004a5a
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x10013d0
push dword [ebp + 8]
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004a51
cmp dword [ebp - 8], 4
jne 0x1004a51
cmp dword [ebp - 0xc], edi
sete al
inc eax
mov edi, eax
push dword [ebp + 8]
call dword [entry0]
mov eax, edi
pop edi
leave
ret 4

Function at 0x1004a66
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor eax, eax
cmp dword [ebp + 8], eax
push esi
push edi
je 0x1004b33
cmp dword [ebp + 8], 0xffffffff
je 0x1004b33
mov ebx, dword [ebp + 0xc]
cmp ebx, eax
je 0x1004b33
cmp ebx, 0xffffffff
je 0x1004b33
mov edi, dword [ebp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp + 0xc]
push ecx
push eax
lea ecx, [ebp + 0x10]
push ecx
push eax
push edi
push ebx
call esi
test eax, eax
jne 0x1004b10
push dword [ebp + 0xc]
call fcn.01005ca0
test eax, eax
pop ecx
mov dword [ebp - 4], eax
jne 0x1004aca
mov esi, 0x8007000e
jmp 0x1004b38
lea ecx, [ebp + 0xc]
push ecx
push eax
lea eax, [ebp + 0x10]
push eax
push 0
push edi
push ebx
call esi
xor esi, esi
cmp eax, esi
jne 0x1004af7
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp + 0x10]
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
je 0x1004b05
jle 0x1004b03
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push dword [ebp - 4]
call fcn.01005c94
pop ecx
jmp 0x1004b38
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, 2
jne 0x1004b21
xor eax, eax
test eax, eax
jle 0x1004b2f
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x1004b38
mov esi, 0x80070006
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1004b46
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x1004c3a
push ebx
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
mov ebx, 0x80070000
jne 0x1004bcb
push 0x10013f8
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.01004a66
push 0x10013e8
push dword [ebp - 8]
mov edi, eax
push dword [ebp - 4]
call fcn.01004a66
cmp edi, esi
jl 0x1004bc0
mov edi, eax
push dword [ebp - 8]
call dword [entry0]
jmp 0x1004bd6
jle 0x1004bd4
and eax, 0xffff
or eax, ebx
mov edi, eax
cmp edi, esi
jl 0x1004c29
push esi
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1004c29
cmp dword [ebp - 0xc], esi
jne 0x1004c29
cmp dword [ebp - 0x10], esi
jne 0x1004c29
push dword [ebp - 4]
call dword [entry0]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, esi
jle 0x1004c27
and eax, 0xffff
or eax, ebx
mov edi, eax
cmp dword [ebp - 4], esi
pop ebx
je 0x1004c48
push dword [ebp - 4]
call dword [entry0]
jmp 0x1004c48
jle 0x1004c46
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x1004e47
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1009008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push 0x1001408
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.01004de6
add esp, 0x10
test eax, eax
jl 0x1004ec0
lea eax, [ebp - 0x20c]
push eax
call fcn.010049f5
test eax, eax
je 0x1004ea0
cmp eax, 2
je 0x1004ea0
lea eax, [ebp - 0x20c]
push eax
call fcn.01004b46
jmp 0x1004ec0
lea eax, [ebp - 0x20c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jle 0x1004ec0
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01005c74
leave
ret 4
Function at 0x1006000
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1006013
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100600f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x1006040
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x100607f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1006075
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1006081
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1006065
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10068bf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1009008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp word [0x100967c], si
jne 0x1006957
lea eax, [ebp - 0x10]
push eax
push 1
push esi
push 0x1001e68
push 0x80000002
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1006957
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x1001f20
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [entry0]
cmp edi, esi
pop edi
jne 0x1006957
push 3
push dword [esi*8 + 0x1001cb8]
lea eax, [ebp - 0xc]
push eax
call fcn.01007756
add esp, 0xc
test eax, eax
je 0x1006949
inc esi
cmp esi, 0x1c
jb 0x1006928
jmp 0x1006957
mov ax, word [esi*8 + 0x1001cbc]
mov word [0x100967c], ax
mov ecx, dword [ebp - 4]
mov ax, word [0x100967c]
xor ecx, ebp
pop esi
call fcn.01005c74
leave
ret

Function at 0x10075d7
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1009008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x234]
xor ebx, ebx
push eax
mov byte [ebp - 0x20d], bl
call dword [0x10010a0]
cmp word [ebp - 0x234], bx
jne 0x100761b
cmp edi, 0x2a
jne 0x100761b
push 0x26
pop edi
push ebx
push edi
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [0x10010f4]
test eax, eax
je 0x1007679
push 0x10047a4
lea eax, [ebp - 0x20c]
push eax
call fcn.010075cc
test eax, eax
je 0x1007679
cmp byte [ebp + 0x14], bl
je 0x100765e
push 0x1004788
lea eax, [ebp - 0x20c]
push eax
call fcn.010075cc
test eax, eax
je 0x1007679
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push esi
call fcn.01004d78
test eax, eax
jl 0x1007679
mov byte [ebp - 0x20d], 1
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x20d]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01005c74
leave
ret 0x10
Function at 0x10076b2
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor ebx, ebx
call fcn.01007786
mov esi, eax
cmp esi, ebx
je 0x1007724
push edi
push esi
push 0x40
call dword [fcn.01001098]
mov edi, eax
cmp edi, ebx
je 0x1007723
push edi
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0100777a
test eax, eax
je 0x100771c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x10019dc
push edi
call fcn.0100776e
test eax, eax
je 0x100771c
cmp dword [ebp - 8], ebx
je 0x100771c
mov ecx, dword [ebp - 0xc]
mov eax, 0x6ffff
cmp eax, dword [ecx + 8]
sbb bl, bl
inc bl
push edi
call dword [fcn.0100109c]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4
Function at 0x40f510
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], ebx
mov ebx, 1
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 0
push 1
push 0x501c50
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x40f59c
mov eax, 0x51eb851f
mov ecx, ebx
imul ebx
sar edx, 5
mov eax, ebx
sar ecx, 0x1f
sub edx, ecx
imul esi, edx, 0x64
sub eax, esi
jne 0x40f59c
cmp ebx, 0x15f90
jl 0x40f593
cmp ebx, 0x1d4c0
jge 0x40f570
mov eax, 0x32
jmp 0x40f595
cmp ebx, 0x2bf20
jge 0x40f57f
mov eax, 0x64
jmp 0x40f595
mov eax, 0x1482
cmp ebx, 0x57d78
jl 0x40f595
mov eax, 0xfa
jmp 0x40f595
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
test eax, eax
je 0x40f5b0
inc ebx
cmp ebx, 0x57e40
jl 0x40f528
mov eax, dword [ebp - 4]
test eax, eax
je 0x40f5ca
mov dword [ebp - 0x14], 0x98
lea eax, [ebp - 0x14]
push eax
call fcn.00424ab0
add esp, 4
mov eax, dword [0x501c54]
test eax, eax
jne 0x40f600
cmp dword [0x4fe1e0], 1
je 0x40f684
xor ebx, ebx
xor esi, esi
cmp dword [0x501c4c], 0
je 0x40f644
mov dword [0x501c54], 1
cmp dword [0x4fe1e0], 1
je 0x40f62f
mov dword [0x501c50], 0
push dword [0x501c48]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40f6a2
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov dword [edx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret
push esi
push 2
call fcn.0046af10
push ebx
push 0x16
call fcn.0046af10
add esp, 0x10
jmp 0x40f600
mov dword [0x501c4c], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x501c48], eax
cmp eax, 0xffffffff
jne 0x40f668
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40f5ed
push 0x40f4a0
call fcn.0046b930
push 0x40f460
call fcn.0046b930
add esp, 8
jmp 0x40f5ed
push 1
push 2
call fcn.0046af10
mov esi, eax
push 1
push 0x16
call fcn.0046af10
add esp, 0x10
mov ebx, eax
jmp 0x40f5e4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x70
call fcn.0040fe90
add esp, 0xc
test eax, eax
je 0x40f6cc
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edx, 0x70
mov ecx, dword [edx + 0x4fe13c]
mov dword [eax + edx - 4], ecx
mov ebx, dword [edx + 0x4fe138]
mov dword [eax + edx - 8], ebx
mov esi, dword [edx + 0x4fe134]
mov dword [eax + edx - 0xc], esi
mov ecx, dword [edx + 0x4fe130]
mov dword [eax + edx - 0x10], ecx
sub edx, 0x10
jne 0x40f6d4
push dword [ebp - 0x10]
push dword [0x501c48]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0x10]
jmp 0x40f61e
Function at 0x40f720
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], ebx
mov ebx, 1
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 0
push 1
push 0x501c50
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x40f7ac
mov eax, 0x51eb851f
mov ecx, ebx
imul ebx
sar edx, 5
mov eax, ebx
sar ecx, 0x1f
sub edx, ecx
imul esi, edx, 0x64
sub eax, esi
jne 0x40f7ac
cmp ebx, 0x15f90
jl 0x40f7a3
cmp ebx, 0x1d4c0
jge 0x40f780
mov eax, 0x32
jmp 0x40f7a5
cmp ebx, 0x2bf20
jge 0x40f78f
mov eax, 0x64
jmp 0x40f7a5
mov eax, 0x1482
cmp ebx, 0x57d78
jl 0x40f7a5
mov eax, 0xfa
jmp 0x40f7a5
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
test eax, eax
je 0x40f7c0
inc ebx
cmp ebx, 0x57e40
jl 0x40f738
mov eax, dword [ebp - 4]
test eax, eax
je 0x40f7da
mov dword [ebp - 0x14], 0x98
lea eax, [ebp - 0x14]
push eax
call fcn.00424ab0
add esp, 4
mov eax, dword [0x501c54]
test eax, eax
jne 0x40f810
cmp dword [0x4fe1e0], 1
je 0x40f8a9
xor ebx, ebx
xor esi, esi
cmp dword [0x501c4c], 0
je 0x40f866
mov dword [0x501c54], 1
cmp dword [0x4fe1e0], 1
je 0x40f851
mov dword [0x501c50], 0
push dword [0x501c48]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x40f8e7
mov eax, dword [ebp + 8]
mov dword [eax], ebx
cmp dword [0x4fe1e0], 1
je 0x40f8c7
xor eax, eax
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push esi
push 2
call fcn.0046af10
push ebx
push 0x16
call fcn.0046af10
add esp, 0x10
jmp 0x40f810
mov dword [0x501c4c], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x501c48], eax
cmp eax, 0xffffffff
jne 0x40f88d
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40f7fd
push 0x40f4a0
call fcn.0046b930
push 0x40f460
call fcn.0046b930
add esp, 8
jmp 0x40f7fd
push 1
push 2
call fcn.0046af10
mov esi, eax
push 1
push 0x16
call fcn.0046af10
add esp, 0x10
mov ebx, eax
jmp 0x40f7f4
push 1
push 2
call fcn.0046af10
push 1
push 0x16
mov dword [ebx + 0x64], eax
call fcn.0046af10
add esp, 0x10
mov dword [ebx + 0x68], eax
jmp 0x40f845
lea eax, [ebp - 0x10]
push eax
push 0
push 0x70
call fcn.0040fe90
add esp, 0xc
test eax, eax
je 0x40f90e
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edx, 0x70
mov ecx, dword [edx + 0x4fe13c]
mov dword [eax + edx - 4], ecx
mov ebx, dword [edx + 0x4fe138]
mov dword [eax + edx - 8], ebx
mov esi, dword [edx + 0x4fe134]
mov dword [eax + edx - 0xc], esi
mov ecx, dword [edx + 0x4fe130]
mov dword [eax + edx - 0x10], ecx
sub edx, 0x10
jne 0x40f916
push dword [ebp - 0x10]
push dword [0x501c48]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp - 0x10]
jmp 0x40f833
Function at 0x41a4d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 0x10], edi
mov edx, dword [ebx + 0x13c]
test edx, edx
mov ecx, edx
mov eax, dword [ebx + 0x38]
mov edi, dword [ebx + 0x40]
jne 0x41a4f5
mov ecx, 0x20000
sub edi, eax
cmp edi, ecx
ja 0x41a523
push 0
lea edx, [ebp - 8]
push edx
push edi
push eax
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xffffffff
test eax, eax
je 0x41a598
mov ecx, 1
jmp 0x41a598
test edx, edx
mov ecx, edi
mov dword [ebp - 0x18], edi
mov edi, eax
jne 0x41a533
mov edx, 0x20000
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], esi
mov esi, ecx
push 0
lea edx, [ebp - 8]
push edx
push dword [ebp - 4]
push edi
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41a562
mov edi, dword [ebp - 0x18]
mov ecx, 0xffffffff
mov esi, dword [ebp - 0x14]
jmp 0x41a598
mov edx, dword [ebx + 0x13c]
test edx, edx
mov eax, dword [ebp - 8]
jne 0x41a574
mov edx, 0x20000
sub esi, eax
add edi, eax
cmp esi, edx
jae 0x41a585
mov dword [ebp - 4], esi
test esi, esi
jne 0x41a589
jmp 0x41a58d
test esi, esi
je 0x41a58d
test eax, eax
ja 0x41a53b
mov edi, dword [ebp - 0x18]
mov ecx, 1
mov esi, dword [ebp - 0x14]
mov edx, dword [ebx + 0x38]
mov eax, dword [ebx + 0xf8]
mov dword [ebx + 0x40], edx
add edx, eax
xor eax, eax
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], eax
mov eax, edi
mov dword [ebx + 0x44], edx
cdq
mov eax, dword [ebx + 0xc0]
add edi, eax
mov dword [ebx + 0xc0], edi
adc edx, dword [ebx + 0xc4]
and byte [ebx + 0x16d], 0xfb
mov dword [ebx + 0xc4], edx
cmp ecx, 0xffffffff
mov dword [ebx + 0xb8], edi
mov dword [ebx + 0xbc], edx
je 0x41a5f8
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xe8], eax
mov eax, 0x26
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret