joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10034980
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x1014092c], 0x2282
mov dword [ebp - 0xc], 0
mov dword [0x1014092c], 0x3e3
mov eax, dword fs:[0x30]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x10034a1a
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2 - 0x18]
cmp eax, 0x6f
je 0x10034a9a
jmp 0x10034b0c
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx eax, word [ecx + eax*2 - 0x12]
cmp eax, 0x64
je 0x10034abc
jmp 0x10034b06
mov dword [0x1014092c], 0xab8
mov dword [ebp - 0x10], 0
jmp 0x10034b11
mov dword [0x1014092c], 0x1747
jmp 0x10034a68
cmp dword [ebp - 4], 0x104
jl 0x10034a46
jmp 0x10034a75
mov dword [0x1014092c], 0x1be4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2 - 0x14]
cmp eax, 0x64
je 0x100349dd
jmp 0x10034b08
mov eax, dword [0x1014092c]
add eax, 0x14df
mov dword [0x1014092c], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2]
cmp eax, 0
jne 0x10034a0e
jmp 0x10034a75
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x10034a1a
mov dword [0x10140930], 0x1508
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2 - 0x1a]
cmp eax, 0x6c
je 0x100349c2
jmp 0x100349f8
mov dword [0x1014092c], 0x591
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2 - 0x16]
cmp eax, 0x61
je 0x10034a25
jmp 0x10034b0a
mov dword [0x1014092c], 0x12df
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2 - 0x10]
cmp eax, 0x6c
jne 0x10034b04
mov eax, dword [0x1014092c]
sub eax, 0x22df
mov dword [0x10140930], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2 - 0xe]
cmp eax, 0x6c
jne 0x10034b02
mov dword [ebp - 0x10], 1
jmp 0x10034b11
jmp 0x10034b04
jmp 0x10034b06
jmp 0x10034b08
jmp 0x10034b0a
jmp 0x10034b0c
jmp 0x100349f8
mov eax, dword [ebp - 0x10]
add esp, 0x10
pop ebp
ret

Function at 0x10034d30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [fcn.10034d30]
mov dword [ebp - 8], eax
mov dword [0x1014092c], 0x181f
jmp 0x10034d77
mov al, 1
test al, 1
jne 0x10034d77
jmp 0x10034da4
mov eax, dword [ebp - 4]
add esp, 8
pop ebp
ret
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x10034d53
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
je 0x10034d5b
jmp 0x10034d86
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x10034d63
jmp 0x10034d88
jmp 0x10034d88
mov eax, dword [ebp - 8]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 8], eax
mov dword [0x10140930], 0x16bf
jmp 0x10034d4b
mov dword [0x10140930], 0x1dc5
mov dword [ebp - 4], 0
jmp 0x10034d53
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x40c063]
shl eax, 2
mov dword [0x40c067], eax
push edi
push ecx
xor eax, eax
mov edi, 0x40e5b8
mov ecx, 0x411ab4
cmp ecx, edi
jbe 0x401024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
push 0
call fcn.004016e7
pop ecx
push 0x40c02c
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x40c06b], eax
push 0
jmp fcn.0040a198
Function at 0x405900
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.00405330
test byte [ebp + 0xd], 0xc0
jne 0x405924
mov eax, dword [0x40d470]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x405931
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x40595e
je 0x405970
sub ecx, 0x100
je 0x40597e
sub ecx, 0x100
je 0x405985
sub ecx, 0x100
je 0x405977
jmp 0x40598c
sub ecx, 0x600
je 0x405985
sub ecx, 0x100
je 0x405970
jmp 0x40598c
mov edi, 1
jmp 0x405991
mov edi, 2
jmp 0x405991
mov edi, 4
jmp 0x405991
mov edi, 5
jmp 0x405991
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4059b8
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x40d9c4]
test al, 0x80
je 0x4059b1
mov ebx, 0x80
jmp 0x4059ca
mov ebx, 1
jmp 0x4059ca
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4059ca
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4059dc
je 0x4059e5
dec eax
je 0x4059ee
jmp 0x4059f7
mov dword [ebp - 4], 0x80000000
jmp 0x405a06
mov dword [ebp - 4], 0x40000000
jmp 0x405a06
mov dword [ebp - 4], 0xc0000000
jmp 0x405a06
push 1
call fcn.004056f0
pop ecx
mov ebx, eax
jmp 0x405af2
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x405a22
sub eax, 0x10
je 0x405a29
sub eax, 0x10
je 0x405a32
sub eax, 0x10
je 0x405a3b
jmp 0x405a3b
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x405a42
mov dword [ebp - 8], 1
jmp 0x405a42
mov dword [ebp - 8], 2
jmp 0x405a42
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x405aab
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x405aa0
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x405aa0
add ebx, 0xffffffb2
push ebx
call fcn.004056f0
pop ecx
mov ebx, eax
jmp 0x405af2
mov edi, esi
push edi
call fcn.00405864
pop ecx
test eax, eax
je 0x405abf
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x405acb
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00405430
add esp, 8
mov ebx, eax
inc eax
jne 0x405af2
push 4
call fcn.004056f0
pop ecx
push esi
call sub.KERNEL32.dll_CloseHandle
call fcn.00405364
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409034
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.dll_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x4094c8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x40e2e8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x409580
cmp byte [0x40c062], 0
je 0x40953a
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.00408540
add esp, 8
mov ebx, eax
test eax, eax
jne 0x409523
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.00408540
add esp, 8
mov ebx, eax
test eax, eax
jne 0x409523
lea ebx, [ebp - 0x54]
jmp 0x409524
inc ebx
call fcn.00409480
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x4095a1
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x40e2ec
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00401348
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x40e2ef
push ebx
call sub.KERNEL32.dll_WriteFile
jmp 0x4095a1
cmp dword [0x40e2e8], 0xffffffff
je 0x4095a1
mov eax, dword [0x40e2e8]
test eax, eax
je 0x4095a1
cmp byte [eax], 0
je 0x4095a1
push esi
push eax
call fcn.00409630
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409b8c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x40ea48], 0
jne 0x409c0d
cmp dword [0x40ea64], 0
jne 0x409bbc
call sub.KERNEL32.dll_GetEnvironmentStrings
mov dword [0x40ea64], eax
test eax, eax
jne 0x409bbc
push 0x40e40c
call fcn.004095b8
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x40ea64]
jmp 0x409bd0
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00401348
pop ecx
mov edi, eax
test eax, eax
jne 0x409bc8
lea edi, [ebp + 1]
push edi
call fcn.00408d34
pop ecx
mov ebx, eax
mov dword [0x40ea4c], ebx
test ebx, ebx
jne 0x409bfa
xor eax, eax
jmp 0x409cd0
push edi
mov edx, dword [0x40ea64]
push edx
push ebx
call fcn.00401128
add esp, 0xc
jmp 0x409c2d
xor esi, esi
mov ebx, dword [0x40ea48]
jmp 0x409c27
push eax
call fcn.00401348
pop ecx
test eax, eax
jne 0x409c23
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x409c17
lea ebx, [esi + 4]
push 4
mov dword [0x40ea50], ebx
inc ebx
push ebx
call fcn.00408598
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x409c50
xor eax, eax
jmp 0x409cd0
cmp dword [0x40ea48], 0
jne 0x409c81
xor esi, esi
mov ebx, dword [0x40ea4c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x409c72
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00401348
pop ecx
mov edi, eax
test eax, eax
jne 0x409c68
jmp 0x409cb2
xor esi, esi
mov ebx, dword [0x40ea48]
mov eax, dword [esp]
mov edi, eax
jmp 0x409cac
push eax
call fcn.00401348
pop ecx
test eax, eax
je 0x409ca1
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x409ca5
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x409c90
mov eax, dword [0x40ea48]
test eax, eax
je 0x409cc2
push eax
call fcn.00408c20
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x40ea48], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40b148
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
call sub.KERNEL32.dll_lstrcpyA
push 0x5c
lea edx, [ebp - 0x114]
push edx
call fcn.00401278
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x40b181
mov edx, dword [ebp - 4]
mov byte [edx + 1], 0
jmp 0x40b1a0
push 0x3a
lea ecx, [ebp - 0x114]
push ecx
call fcn.00401278
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x40b1a0
mov edx, dword [ebp - 4]
mov byte [edx + 1], 0
lea ecx, [ebp - 0x14]
push ecx
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 8]
push ecx
lea eax, [ebp - 0x114]
push eax
call sub.KERNEL32.dll_GetDiskFreeSpaceA
test eax, eax
jne 0x40b1c8
fld xword [0x40b218]
jmp 0x40b211
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x118], ecx
fild qword [ebp - 0x11c]
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], edx
fild qword [ebp - 0x124]
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x128], eax
fmulp st(1)
fild qword [ebp - 0x12c]
fmulp st(1)
mov esp, ebp
pop ebp
ret
Function at 0x40b43c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcac
push 0x44
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.00401198
add esp, 0xc
mov dword [ebp - 0x44], 0x44
push 0x40c0f0
lea edx, [ebp - 0x354]
push edx
call fcn.00401318
add esp, 8
cmp dword [ebp + 8], 0
je 0x40b4a0
push pe_nt_image_headers32
lea ecx, [ebp - 0x154]
push ecx
push dword [ebp + 8]
call sub.KERNEL32.dll_GetShortPathNameA
lea eax, [ebp - 0x154]
push eax
lea edx, [ebp - 0x354]
push edx
call fcn.0040123c
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x40b4d2
cmp dword [ebp + 8], 0
je 0x40b4c0
push 0x40c0f1
lea ecx, [ebp - 0x354]
push ecx
call fcn.0040123c
add esp, 8
push dword [ebp + 0xc]
lea eax, [ebp - 0x354]
push eax
call fcn.0040123c
add esp, 8
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x44]
push edx
push ecx
push 0
push 0
push 0
push 1
push 0
lea eax, [ebp - 0x354]
push 0
push eax
push 0
call sub.KERNEL32.dll_CreateProcessA
test eax, eax
je 0x40b50f
cmp dword [ebp + 0x10], 0
je 0x40b508
push 0xffffffffffffffff
push dword [ebp - 0x54]
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, 1
jmp 0x40b511
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40b9c5
Capabilities:
Get common file path
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffce0
xor eax, eax
mov dword [ebp - 0x10], 0x2000
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x118]
push 0x104
push edx
call sub.KERNEL32.dll_GetWindowsDirectoryA
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x118]
add ecx, 0xe
lea edx, [ebp - 0x21c]
push ecx
push eax
push edx
call fcn.0040ac80
add esp, 0xc
lea ecx, [ebp - 0x21c]
push 1
push 0x80
push ecx
call fcn.0040b567
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40ba31
mov eax, 2
jmp 0x40bb5f
push 0
mov edx, dword [ebp + 0xc]
push dword [edx]
call sub.KERNEL32.dll_GetFileSize
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
sub eax, dword [ecx + 0xa]
movsx ecx, word [edx + 4]
mov edx, dword [ebp + 8]
sub eax, 0xe
sub eax, ecx
movsx ecx, word [edx + 6]
mov edx, dword [ebp + 8]
sub eax, ecx
movsx ecx, word [edx + 8]
sub eax, ecx
mov dword [ebp - 0xc], eax
push 0
mov eax, dword [ebp + 8]
push dword [eax + 0xa]
push dword [ebp + 0xc]
call fcn.0040b6a7
add esp, 0xc
push dword [ebp - 0x10]
call fcn.00408d34
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40bae9
mov dword [ebp - 0x14], 0xe
jmp 0x40bafe
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jge 0x40ba9f
lea edx, [ebp - 0x10]
jmp 0x40baa2
lea edx, [ebp - 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
sub dword [ebp - 0xc], ecx
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.0040b659
add esp, 0xc
cmp eax, dword [ebp - 0x10]
je 0x40bacc
mov dword [ebp - 0x14], 4
jmp 0x40bae9
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0040b680
add esp, 0xc
cmp eax, dword [ebp - 0x10]
je 0x40bae9
mov dword [ebp - 0x14], 5
cmp dword [ebp - 0x14], 0
jne 0x40baf5
cmp dword [ebp - 0xc], 0
jg 0x40ba92
push dword [ebp - 8]
call fcn.00408c20
pop ecx
push dword [ebp - 4]
call fcn.0040b639
cmp dword [ebp - 0x14], 0
pop ecx
je 0x40bb1c
lea eax, [ebp - 0x21c]
push eax
call fcn.0040b6be
pop ecx
jmp 0x40bb5c
push 0x104
lea edx, [ebp - 0x320]
push edx
lea ecx, [ebp - 0x21c]
push ecx
call sub.KERNEL32.dll_GetShortPathNameA
push 0x40c21e
lea eax, [ebp - 0x320]
push eax
push 0x40c211
push 0x40c20c
call sub.KERNEL32.dll_WritePrivateProfileStringA
push 3
push 0
push 1
push 0x11
call sub.USER32.dll_SystemParametersInfoA
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x10001557
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
mov ebx, ecx
mov ecx, 0x1017c79c
push esi
push edi
mov dword [ebx], vtable.VthreadContext.0
mov word [ebx + 4], dx
mov dword [ebx + 8], 1
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x18], edx
mov word [ebx + 0x1c], 0x101
mov byte [ebx + 0x1e], dl
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], edx
mov dword [ebx + 0x28], edx
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x40], edx
mov dword [ebx + 0x44], edx
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x4c], edx
mov dword [ebx + 0x50], edx
mov dword [ebx + 0x54], edx
mov dword [ebx + 0x58], edx
mov dword [ebx + 0x5c], edx
mov dword [ebx + 0x60], ecx
lock inc dword [0x1017c790]
xor eax, eax
mov dword [ebx + 0x64], edx
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x6c], ecx
lock inc dword [0x1017c790]
or dword [ebx + 0x70], 0xffffffff
lea edi, [ebx + 0x9c]
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebx + 0x78], eax
mov esi, 0x100ea4e4
mov dword [ebx + 0x74], edx
inc ecx
mov word [ebx + 0x7c], dx
mov dword [ebx + 0x80], 0x1017ccc8
mov eax, dword [ebx + 0x2c]
mov dword [ebx + 0x84], ecx
mov dword [ebx + 0x88], edx
mov dword [ebx + 0x8c], edx
mov byte [ebx + 0x90], dl
mov dword [ebx + 0x94], edx
mov byte [ebx + 0x98], dl
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test cl, al
je 0x10001639
or eax, 2
mov dword [ebx + 0x2c], eax
mov cl, byte [ebx + 0x2c]
and cl, 1
mov byte [ebp + 0xf], cl
cmp byte [0x1017bdd8], dl
jne 0x10001678
mov esi, 0x1017bde0
push esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
cmp byte [0x1017bdd8], 0
jne 0x1000166e
mov al, byte [ebp + 0xf]
mov byte [0x1017bdd7], al
mov byte [0x1017bdd8], 1
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebx + 0x2c]
shr eax, 1
mov ecx, 0x10178fec
and al, 1
movzx eax, al
push eax
call fcn.1000b2b4
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x10004524
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 4], esi
push dword [esi + 0x58]
call dword [sym.imp.kernel32.dll_TlsSetValue]
test eax, eax
je 0x10004597
cmp dword [0x1017ca10], 0
push ebx
push 0xc
je 0x10004552
pop ecx
call fcn.1000b2b4
jmp 0x10004559
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov ebx, eax
test ebx, ebx
je 0x10004591
push edi
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov ecx, dword [ebp + 8]
mov edi, eax
add esi, 0x40
mov dword [ebx + 8], ecx
push esi
and edi, 0xf
mov dword [ebx + 4], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 4]
push esi
mov eax, dword [ecx + edi*4]
mov dword [ebx], eax
mov dword [ecx + edi*4], ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
inc eax
pop ebx
jmp 0x10004599
xor eax, eax
pop esi
leave
ret 4

Function at 0x1000621d
Capabilities:
Get thread local storage value

Disassembly:
push 4
mov eax, 0x100dc457
call fcn.1000131b
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [0x10150ddc]
xor ebx, ebx
mov word [esi], bx
call dword [sym.imp.kernel32.dll_TlsGetValue]
or dword [esi + 0xc], 0xffffffff
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov byte [esi + 8], bl
mov dword [esi + 0x10], ebx
mov eax, dword [eax]
mov dword [esi + 0x14], eax
add eax, 0xfffffff4
lock inc dword [eax]
mov al, byte [ebp + 0xc]
mov dword [ebp - 4], ebx
mov byte [esi + 0x18], al
call fcn.10092dd4
push esi
mov ecx, eax
call fcn.100067a4
mov eax, esi
call fcn.100013b7
ret 8
Function at 0x1000748f
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dc694
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.100db939
mov eax, dword [0x10148250]
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 esi, ecx
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1018], eax
test ebx, ebx
je 0x100074e6
push eax
push ebx
lea ecx, [ebp - 0x1010]
call fcn.1000b2b4
pop ecx
pop ecx
test eax, eax
jns 0x100074ea
mov byte [ebp - 0x11], 0
mov eax, dword [ebp + 0x10]
movzx eax, ax
cmp eax, dword [0x1017ca38]
jg 0x10007658
push dword [0x10150ddc]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10007658
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
mov edi, eax
test edi, edi
je 0x10007658
mov ecx, dword [edi]
cmp dword [ecx - 4], 0
je 0x10007658
mov edx, dword [0x1014af80]
inc edx
mov dword [0x1014af80], edx
cmp edx, 0x64
jb 0x10007546
mov ecx, esi
call fcn.100894ff
cmp dword [0x1017ca10], 0
push 0x38
je 0x10007559
pop ecx
call fcn.1000b2b4
jmp 0x10007560
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov dword [ebp - 0x1014], eax
xor ecx, ecx
mov dword [ebp - 4], ecx
test eax, eax
je 0x1000758e
push ecx
push 0xea60
push ecx
push ecx
push 0x180
push 0x100ec734
push dword [edi]
mov ecx, eax
call sym.fpsrvutl.dll_Ordinal_800
mov esi, eax
jmp 0x10007590
mov esi, ecx
or dword [ebp - 4], 0xffffffff
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x14]
mov edi, eax
test edi, edi
jne 0x10007644
cmp dword [esi + 0x1c], 3
je 0x100075b2
mov dword [esi + 0x1c], 2
push dword [ebp + 0x10]
mov ecx, esi
call fcn.1000b2b4
lea ecx, [ebp - 0x1028]
call sym.fpsrvutl.dll_Ordinal_4931
push str.__m__d__H:_M:_S
lea ecx, [ebp - 0x1014]
push ecx
mov ecx, eax
call sym.fpsrvutl.dll_Ordinal_5768
push 0
lea eax, [ebp - 0x1014]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call sym.fpsrvutl.dll_Ordinal_3754
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1014]
lea ecx, [ecx - 0xc]
call sym.fpsrvutl.dll_Ordinal_5727
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
mov ecx, esi
call fcn.1000b2b4
push 0x100ef584
mov ecx, eax
call sym.fpsrvutl.dll_Ordinal_1561
push dword [ebp - 0x1018]
mov ecx, esi
push ebx
call fcn.1000b2b4
mov edi, eax
test edi, edi
jne 0x10007644
push 0x100efbc8
mov ecx, esi
call sym.fpsrvutl.dll_Ordinal_1561
mov ecx, esi
call sym.fpsrvutl.dll_Ordinal_5512
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
test edi, edi
je 0x10007658
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
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.100013a8
leave
ret 0x14
Function at 0x1000b2b4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x1000b2c3
pop dword [ebp - 0x34]
mov eax, 0x1000b2c3
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x7bee5
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x251ebfae
add ecx, 0xdae17ea7
xor esi, esi
add esi, eax
mov edi, 0x1018e400
add edi, dword [ebp - 0x34]
mov ebx, 0xd69314e4
add dword [ebp - 0x18], ecx
mov edx, dword [edi]
xor dword [ebp - 0x14], 0x4ed29e29
sub edx, ebx
mov dword [ebp - 0xc], 0xe4fe413b
mov dword [esi], edx
sub dword [ebp - 0x2c], ebx
add esi, 0x26211c54
sub esi, 0x26211c50
add edi, 0xd46befca
add edi, 0x2b94103a
loop 0x1000b30e
add eax, 0xec27
mov ebx, eax
add eax, 0xaf7c682a
add eax, 0x508397db
mov ecx, sym.fpsrvutl.dll_Ordinal_2028
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x100130c6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
xor esi, esi
mov edx, esi
mov dword [ebp - 4], edx
cmp dword [edi + 0x34], esi
jne 0x100131af
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x100131ae
cmp dword [edi + 0x28], 0xffffffff
je 0x100131ae
cmp byte [edi + 0x30], dl
je 0x1001311c
xorps xmm0, xmm0
push 2
movlpd qword [ebp - 0xc], xmm0
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.1000b2b4
mov edx, dword [ebp - 4]
cmp dword [edi + 0x34], esi
jne 0x100131ae
cmp dword [edi + 0x1c], 3
mov ecx, esi
jne 0x1001314b
push esi
lea eax, [ebp - 4]
push eax
mov eax, ebx
shr eax, 1
push eax
push dword [ebp + 8]
push dword [edi + 0x28]
call dword [sym.imp.kernel32.dll_WriteConsoleW]
mov ecx, eax
test ecx, ecx
je 0x10013148
mov eax, dword [ebp - 4]
lea edx, [eax + eax]
jmp 0x100131a3
mov edx, dword [ebp - 4]
mov eax, ebx
mov dword [ebp - 8], esi
mov dword [ebp + 0xc], eax
jmp 0x10013190
mov esi, 0x100000
cmp eax, esi
push 0
cmovb esi, eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 0x28]
call dword [sym.imp.kernel32.dll_WriteFile]
mov edx, dword [ebp - 4]
mov ecx, eax
mov eax, dword [ebp - 8]
add edx, eax
add dword [ebp + 8], eax
sub dword [ebp + 0xc], eax
mov dword [ebp - 4], edx
cmp eax, esi
jb 0x10013194
test ecx, ecx
je 0x10013198
mov eax, dword [ebp + 0xc]
cmp edx, ebx
jb 0x10013155
test ecx, ecx
jne 0x100131a3
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [edi + 0x34], eax
xor edx, edx
cmp edx, ebx
jae 0x100131ae
mov dword [edi + 0x34], 0x70
pop ebx
pop edi
mov eax, edx
pop esi
leave
ret 8