joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006b235
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10075748]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1005c538
mov dword [ebp - 0x14], eax
cmp dword [0x10619840], esi
jne 0x1006b328
push 0x800
push esi
push 0x10008004
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1006b2b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1006b408
push esi
push esi
push 0x10008004
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1006b408
push 0x1000801c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1006b408
push eax
call ebx
push 0x10008028
push edi
mov dword [0x10619840], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10008038
push edi
mov dword [0x10619844], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x1000804c
push edi
mov dword [0x10619848], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10619850], eax
test eax, eax
je 0x1006b325
push 0x10008068
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1061984c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1006b34d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1006b340
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1006b362
push 4
pop eax
jmp 0x1006b40a
cmp dword [ebp - 0x14], esi
je 0x1006b362
push dword [0x10619840]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1006b347
mov eax, dword [0x1061984c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1006b3c0
cmp dword [0x10619850], edi
je 0x1006b3c0
push eax
call ebx
push dword [0x10619850]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1006b3c0
test eax, eax
je 0x1006b3c0
call ecx
test eax, eax
je 0x1006b3b5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1006b3b5
test byte [ebp - 8], 1
jne 0x1006b3c0
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1006b3f0
mov eax, dword [0x10619844]
cmp eax, edi
je 0x1006b3ed
push eax
call ebx
test eax, eax
je 0x1006b3ed
call eax
mov esi, eax
test esi, esi
je 0x1006b3ed
mov eax, dword [0x10619848]
cmp eax, edi
je 0x1006b3ed
push eax
call ebx
test eax, eax
je 0x1006b3ed
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10619840]
call ebx
test eax, eax
je 0x1006b408
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1006b40a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10059a17
mov esp, ebp
pop ebp
ret
Function at 0x4012b6
Capabilities:
Hide graphical window

Disassembly:
push ebp
push 0x10000
push 0x1000
push 1
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x403eb4], eax
push 0x64
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, 0x30
push eax
mov dword [eax], ecx
add eax, 0x4c
mov ebp, eax
mov eax, 0x400000
mov dword [0x403eb0], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], 0x401191
mov dword [ebp - 0x24], str.resiliency
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor eax, eax
push eax
push dword [0x403eb0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.abasement
push str.resiliency
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403eb8], eax
push eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401380
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401367
mov eax, dword [0x403eb4]
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
pop ebp
ret 0x10
Function at 0x403240
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
imul eax
mov edx, 0x57
or edx, 0x6c
dec eax
sub ebx, 0x73
or eax, 0x80
rcl ebx, 0xb2
sub esi, 0xac
ror edi, 0xf2
add ebx, 0xb3
bswap ebx
bswap ebx
neg ebx
ror edi, 0xd8
rcr esi, 0x79
not esi
not edi
mov edx, 0x94
bswap edi
ror edi, 0xc2
rol eax, 0xfa
dec esi
sbb edi, 0xfa
sub ebx, 0x3d
sbb edi, 0x7a
dec edi
inc ebx
sub esi, 0x87
imul edx
mov eax, 0x95
inc edi
rcl esi, 0xf6
rol esi, 0x64
add edi, 0xaa
dec esi
bswap esi
mov edi, 0x9d
bswap ebx
ror eax, 0x61
imul edi
dec edi
add edi, 0xa4
or eax, 0xe5
imul edx
rcl eax, 0x29
and edx, 0xca
bswap edx
not edx
ror eax, 0xf1
bswap eax
xor ecx, ecx
xor edi, edi
inc edx
bswap eax
dec eax
neg edi
imul edx
imul edi
bswap edx
ror edi, 0x49
inc esi
sbb esi, 0xb9
sub edx, 0xea
not eax
dec ebx
imul ebx
add edi, 0x65
inc edx
imul edi
dec ebx
neg esi
bswap edi
bswap edi
bswap ebx
rcl eax, 0x48
add esi, 0xda
bswap edi
rol edi, 0x16
rol eax, 0x4f
mov esi, 0xd5
ror ebx, 0xc
inc edx
sub ebx, 0xcd
bswap ebx
neg edx
not ebx
add edi, 0x6c
not ebx
imul edi
and eax, 0x7e
rcr edx, 0xa7
bswap edi
dec eax
sub edx, 0xc0
imul edx
imul edx
inc eax
rcr edi, 0x8e
dec edi
dec esi
not edx
and ebx, 0x27
mov ecx, dword [ebp + 0xc]
sbb edi, 0xbb
and edx, 0xbb
or edi, 0xb7
ror esi, 0x90
rol eax, 0x72
neg eax
not eax
rol ebx, 0x88
neg eax
not eax
rcr edi, 0xcc
imul edi
and eax, 0xf1
not esi
rol edx, 0xc0
sbb edi, 0xbb
or eax, 0xdd
or esi, 0xbd
sub eax, 0xf4
inc eax
not edi
rcl eax, 0x60
imul eax
and ebx, 0xc7
inc esi
sbb esi, 0xee
rcr esi, 0x60
not esi
rcr eax, 0x8a
ror edx, 0x8c
inc ebx
and ebx, 0xa2
not edi
inc ebx
add edx, 0x5b
not esi
inc ebx
mov eax, 0xd4
rcr esi, 0x71
rcr esi, 0x63
ror ebx, 0xbf
bswap eax
mov edi, 0x14
dec edx
inc ebx
sub ebx, 7
bswap esi
rol esi, 0x91
mov edx, 0x5a
rcl ebx, 0xec
mov edi, dword [ebp + 8]
mov esi, eax
xor ebx, ebx
xor eax, eax
not byte [edi]
mov esi, esi
mov esi, esi
xor esi, eax
mov eax, esi
xor ebx, esi
xor esi, ebx
mov eax, ebx
xor esi, esi
mov ebx, esi
add byte [edi], 0x54
mov eax, eax
mov ebx, esi
mov esi, eax
xor ebx, eax
xor esi, esi
xor eax, ebx
mov esi, esi
xor eax, eax
xor eax, ebx
sub byte [edi], 0x29
mov eax, ebx
xor eax, esi
mov eax, esi
mov ebx, eax
xor eax, eax
xor esi, eax
xor esi, eax
mov ebx, eax
mov esi, esi
imul byte [edi]
inc edi
loop 0x40340a
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4063e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x81008b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4046c4
call fcn.00407041
push 4
mov dword [esp + 0x18], 0
call fcn.00407ee6
mov edi, eax
add esp, 4
test edi, edi
je 0x406454
push ebx
call fcn.00406f19
mov dword [edi], eax
call fcn.00406cd8
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00407002
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406448
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.0040702a
pop ebx
jmp 0x406456
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x408951
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x813520]
jne 0x40895b
repz ret
jmp fcn.0040d0ac
Function at 0x411cf2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x813520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040b051
and dword [ebp - 0x14], 0
cmp dword [0x818a94], 0
mov dword [ebp - 0x18], eax
jne 0x411da5
push GetEnvironmentStringsW
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je LoadLibraryW
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push WriteConsoleInputA
push ebx
call edi
test eax, eax
je LoadLibraryW
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403918
push ebx
mov dword [0x818a94], eax
call edi
push eax
call esi
push OpenSemaphoreA
push ebx
mov dword [0x818a98], eax
call edi
push eax
call esi
push SetTapeParameters
push ebx
mov dword [0x818a9c], eax
call edi
push eax
call esi
mov dword [0x818aa4], eax
test eax, eax
je MoveFileWithProgressA
push 0x4038d0
push ebx
call edi
push eax
call esi
mov dword [0x818aa0], eax
mov eax, dword [0x818aa0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x411dfe
cmp dword [0x818aa4], ecx
je 0x411dfe
push eax
call esi
push dword [0x818aa4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x411dfe
test ebx, ebx
je 0x411dfe
call edi
test eax, eax
je 0x411df5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x411df5
test byte [ebp - 8], 1
jne 0x411dfe
or dword [ebp + 0x10], 0x200000
jmp 0x411e31
mov eax, dword [0x818a98]
cmp eax, dword [ebp - 0x18]
je 0x411e31
push eax
call esi
test eax, eax
je 0x411e31
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x411e31
mov eax, dword [0x818a9c]
cmp eax, dword [ebp - 0x18]
je 0x411e31
push eax
call esi
test eax, eax
je 0x411e31
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x818a94]
call esi
test eax, eax
je 0x411e4d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp LoadLibraryW
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408951
leave
ret
Function at 0x80ebd0
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0xc0c
cmp dword [0xb9d820], 0x37
jne 0x80ec70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
push 0
lea eax, [esp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0x404174
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0x4041b0
push 0x404248
push 0x4042c8
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov ecx, dword [0xb9d824]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x81d884]
mov byte [ecx + esi], al
add esp, 0xc0c
ret
Function at 0x80eec0
Capabilities:
Accept command line arguments
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0xb9d820]
sub esp, 0x434
push ebx
push ebp
push esi
shr eax, 3
xor ebx, ebx
push edi
mov edi, dword [0x81d884]
cmp eax, ebx
jbe 0x80f0a8
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], eax
jmp 0x80eef6
mov edi, dword [esp + 0x1c]
xor ebx, ebx
cmp dword [0xb9d820], 0x1c
jne 0x80ef0d
lea eax, [esp + 0x38]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov ecx, dword [edi + 4]
mov edx, dword [0x814700]
mov eax, dword [0x814704]
mov esi, dword [edi]
mov ebp, dword [0x814708]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x81470c]
mov edi, 0xc6ef3720
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], 0x20
jmp 0x80ef4a
xor ebx, ebx
mov eax, esi
mov edx, esi
shl eax, 4
shr edx, 5
add edx, dword [esp + 0x28]
add eax, ebp
lea ecx, [edi + esi]
xor eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
mov dword [0xb9c7a4], ebx
mov eax, dword [esp + 0x18]
add dword [0xb9c7a4], eax
mov edx, dword [0xb9c7a4]
mov dword [esp + 0x34], edx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x34]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
sub dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
shl ecx, 4
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x30]
add dword [esp + 0x10], eax
cmp dword [0xb9d820], 0x1be
mov eax, dword [esp + 0x14]
lea ebx, [edi + eax]
jne 0x80efe4
lea edx, [esp + 0x3c]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov eax, dword [esp + 0x14]
shr eax, 5
add eax, dword [esp + 0x2c]
cmp dword [0xb9d820], 0x979
mov dword [0xb9c7a8], 0xff6b3619
mov dword [0xb9c7ac], 0xffffffff
mov dword [esp + 0x18], eax
jne 0x80f028
push 0
lea eax, [esp + 0x44]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
xor dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
xor dword [esp + 0x10], eax
mov eax, dword [0xb9d820]
sub esi, dword [esp + 0x10]
cmp eax, 0x93
je 0x80f04a
add edi, 0x61c88647
dec dword [esp + 0x20]
jne 0x80ef48
cmp eax, 0x8d4
jne 0x80f061
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], ecx
cmp dword [0xb9d820], 0x17
jne 0x80f097
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea edx, [esp + 0x40]
push edx
push 0x404100
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add edi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x1c], edi
jne 0x80eef0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x434
ret
Function at 0x10004b94
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], eax
jmp 0x10004c58
xor esi, esi
lea ecx, [ebp - 8]
call fcn.10001d4e
mov ecx, eax
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x10004bc1
mov ecx, eax
jmp 0x10004bfb
lea eax, [ecx - 0x61]
cmp eax, 0x19
ja 0x10004bce
sub ecx, 0x47
jmp 0x10004bfb
lea eax, [ecx - 0x30]
cmp eax, 9
ja 0x10004bdb
add ecx, 4
jmp 0x10004bfb
cmp ecx, 0x2b
jne 0x10004be4
push 0x3e
jmp 0x10004beb
cmp ecx, 0x2f
jne 0x10004bee
push 0x3f
pop ecx
jmp 0x10004bfb
cmp ecx, 0x3d
jne 0x10004c68
push 0x40
pop ecx
cmp esi, 1
jle 0x10004c68
mov byte [ebp + esi - 4], cl
inc esi
cmp esi, 4
jl 0x10004bab
mov cl, byte [ebp - 3]
mov al, byte [ebp - 4]
mov edx, dword [edi]
shr cl, 4
shl al, 2
or cl, al
movzx eax, cl
mov ecx, edi
push eax
call dword [edx + 0x14]
mov bl, byte [ebp - 2]
cmp bl, 0x40
jae 0x10004c55
mov al, byte [ebp - 3]
mov cl, bl
mov edx, dword [edi]
shr cl, 2
shl al, 4
or cl, al
movzx eax, cl
mov ecx, edi
push eax
call dword [edx + 0x14]
mov al, byte [ebp - 1]
cmp al, 0x40
jae 0x10004c55
mov edx, dword [edi]
mov ecx, edi
shl bl, 6
or bl, al
movzx eax, bl
push eax
call dword [edx + 0x14]
mov eax, dword [ebp - 8]
cmp byte [eax], 0
jne 0x10004ba9
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
xor al, al
jmp 0x10004c63
Function at 0x10005fbd
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edi
mov ebx, dword [edi + 0x2c]
lea edx, [edi + 0x38]
mov dword [ebp - 0x18], ebx
mov eax, dword [edi + 0x2c]
mov ecx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub ecx, dword [edi + 0x74]
add eax, ebx
sub ecx, dword [edi + 0x6c]
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], ecx
cmp dword [edi + 0x6c], eax
jb 0x1000606e
mov ecx, dword [edx]
push ebx
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.1000df50
mov ecx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
sub dword [edi + 0x5c], ebx
mov edi, ecx
mov dword [ebp - 0xc], ecx
lea esi, [eax + ecx*2]
lea esi, [esi - 2]
movzx ecx, bx
movzx eax, word [esi]
mov edx, eax
mov dword [ebp - 0x10], ecx
sub eax, ecx
xor ecx, ecx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [esi], cx
sub edi, 1
jne 0x10006019
mov edi, dword [ebp - 8]
mov dword [ebp - 0xc], ebx
mov eax, dword [edi + 0x40]
mov edi, ebx
lea esi, [eax + ebx*2]
lea esi, [esi - 2]
xor ecx, ecx
movzx eax, word [esi]
mov edx, eax
sub eax, dword [ebp - 0x10]
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [esi], cx
sub edi, 1
jne 0x10006049
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 8]
add ecx, ebx
mov esi, dword [edi]
mov eax, dword [esi + 4]
test eax, eax
je 0x10006128
mov ebx, dword [ebp - 4]
mov edx, dword [edi + 0x74]
add edx, dword [edi + 0x6c]
add edx, dword [ebx]
mov ebx, eax
mov dword [ebp - 0x14], edx
cmp ebx, ecx
jbe 0x10006095
mov ebx, ecx
test ebx, ebx
je 0x100060e1
sub eax, ebx
mov dword [esi + 4], eax
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x100060b2
mov edx, dword [esi]
mov ecx, dword [esi + 0x30]
push ebx
call fcn.100058c4
jmp 0x100060ca
cmp eax, 2
jne 0x100060ce
mov edx, dword [esi]
test edx, edx
jne 0x100060c1
xor eax, eax
jmp 0x100060cb
mov ecx, dword [esi + 0x30]
push ebx
call fcn.10005b04
pop ecx
mov dword [esi + 0x30], eax
push ebx
push dword [esi]
push dword [ebp - 0x14]
call fcn.1000df50
add dword [esi], ebx
add esp, 0xc
add dword [esi + 8], ebx
add ebx, dword [edi + 0x74]
mov dword [edi + 0x74], ebx
cmp ebx, 3
jb 0x1000610d
mov eax, dword [ebp - 4]
mov edx, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
mov eax, dword [eax]
movzx esi, byte [edx + eax]
mov dword [edi + 0x48], esi
movzx eax, byte [edx + eax + 1]
shl esi, cl
xor esi, eax
and esi, dword [edi + 0x54]
mov dword [edi + 0x48], esi
cmp ebx, 0x106
jae 0x10006128
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x10006128
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
jmp 0x10005fd4
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000bb1b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x1000bb3c
jl 0x1000bb33
test edi, edi
jne 0x1000bb3c
xor eax, eax
xor edx, edx
jmp 0x1000bbfd
cmp dword [ebx + 0x38], 0
je 0x1000bb51
push eax
push edi
push dword [ebp + 8]
call fcn.10008085
jmp 0x1000bbfd
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000bb98
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x1000bb98
cmp eax, edi
jb 0x1000bb72
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.1000df50
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x1000bb9e
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x1000bbf2
mov ecx, ebx
call fcn.1000b44b
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x1000bbdd
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.1001a12e
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x1000bbf2
jmp 0x1000bbb0
test edx, edx
je 0x1000bbf2
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.1001a12e
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x1001beb7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001bef6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001bef6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001bef6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001bef6
cmp dword [ecx + 0x74], 0xe
jbe 0x1001bef6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1001d7f5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10031c50
push 0x10031c48
push str.FlsAlloc
push 0x1f
call fcn.1001d6bd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d829
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002e14c]
call esi
jmp 0x1001d82f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001d873
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10031c60
push 0x10031c58
push str.FlsGetValue
push 0x21
call fcn.1001d6bd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d8aa
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002e14c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1001d8b2
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10031c68
push 0x10031c60
push str.FlsSetValue
push 0x22
call fcn.1001d6bd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d8ec
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002e14c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x100226c3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1001d12d
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10022732
cmp esi, dword [ebp - 4]
je 0x1002272d
cmp dword [ebp + 0xc], 0
je 0x1002272d
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1002270a
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10022215
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10022734
xor eax, eax
inc eax
jmp 0x10022734
xor eax, eax
pop edi
pop esi
leave
ret