joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10032130
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 0xc]
mov ecx, dword [ecx + 4]
push 0x10
push eax
mov eax, dword [esp + 0x10]
push 0
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x10032172
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Send_Error:_d
push 1
push 0x10069158
call fcn.10017d90
add esp, 0x10
xor al, al
ret 0xc
mov al, 1
ret 0xc
Function at 0x10032c70
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x100524fe
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100638a4]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov ebx, 7
xor edi, edi
xor eax, eax
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], edi
mov word [esi + 0x28], ax
lea ebp, [esi + 0x40]
xor ecx, ecx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x14], edi
mov dword [esp + 0x3c], edi
mov word [ebp + 4], cx
xor edx, edx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x70], edi
mov word [esi + 0x60], dx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x8c], edi
mov word [esi + 0x7c], ax
mov dword [esi + 0xac], ebx
mov dword [esi + 0xa8], edi
mov word [esi + 0x98], cx
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xc4], edi
mov word [esi + 0xb4], dx
lea ecx, [esi + 0xd0]
mov byte [esp + 0x3c], 5
call fcn.10036c20
lea ecx, [esi + 0xe0]
mov byte [esp + 0x3c], 6
call fcn.100369d0
xor eax, eax
mov dword [esi + 2], eax
mov dword [esi + 6], eax
mov dword [esi + 0xa], eax
mov dword [esi + 0xe], eax
mov dword [esi + 0x12], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [eax]
mov dword [esi + 2], ecx
mov edx, dword [eax + 4]
mov dword [esi + 6], edx
mov ecx, dword [eax + 8]
mov dword [esi + 0xa], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xe], edx
mov ecx, dword [eax + 0x10]
mov dword [esi + 0x12], ecx
mov cx, word [esp + 0x44]
xor edx, edx
cmp cx, 1
setne dl
mov dword [esi + 0x20], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov word [esi], cx
mov dword [esi + 0xcc], edi
lea edx, [edx*4 + 0x10]
push edx
push eax
lea eax, [esp + 0x20]
push eax
call fcn.10018700
add esp, 0xc
push 0xffffffffffffffff
push edi
push eax
mov ecx, ebp
mov byte [esp + 0x48], bl
call fcn.10009230
cmp dword [esp + 0x30], 8
jb 0x10032db0
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.100386ec
add esp, 4
lea edx, [esi + 0x174]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x4c]
mov dword [esi + 0x170], eax
mov dword [esi + 0x184], edi
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0xc
Function at 0x10033090
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x10]
push eax
mov esi, ecx
mov ecx, dword [esi + 0x10c]
push ebx
push ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x100330ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x100330ff
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x5c]
push edx
push eax
push edi
push ebx
push ecx
push 0x10058218
push 1
push 0x10069158
call fcn.10017d90
add esp, 0x20
pop edi
pop esi
xor al, al
pop ebx
add esp, 8
ret 0x10
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push 0
lea edx, [esp + 0x14]
push edx
mov edx, dword [esi + 0x10c]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov al, 1
pop ebx
add esp, 8
ret 0x10

Function at 0x10033490
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x38
mov eax, dword [0x100638a4]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
mov ebx, dword [esp + 0x40]
push esi
mov esi, ecx
mov ecx, dword [esi + 0xa0]
mov edx, dword [esi + 0xa4]
mov eax, ecx
or eax, edx
je 0x100334c9
cmp dword [esi + 0x70], 0
je 0x100334c9
cmp byte [esp + 0x48], 0
je 0x1003357e
mov eax, dword [esi + 0x110]
push edi
mov edi, dword [esi + 0x298]
sub eax, ecx
cmp eax, edi
jle 0x100334de
mov eax, edi
fld qword [0x10054d08]
mov edi, 0x34
mov word [esp + 0xc], di
fstp qword [esp + 0x14]
mov edi, 2
mov word [esp + 0xe], di
movzx edi, word [esi]
mov dword [esp + 0x1c], edi
mov edi, dword [esi + 2]
mov dword [esp + 0x20], edi
mov edi, dword [esi + 6]
push 0x10
push ebx
mov dword [esp + 0x2c], edi
mov edi, dword [esi + 0xa]
push 0
mov dword [esp + 0x34], edi
mov edi, dword [esi + 0xe]
mov dword [esp + 0x40], ecx
push 0x34
lea ecx, [esp + 0x1c]
mov dword [esp + 0x48], edx
mov edx, dword [0x1006958c]
mov dword [esp + 0x3c], edi
mov edi, dword [esi + 0x12]
push ecx
push edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x54], eax
call dword [sym.imp.WS2_32.dll_sendto]
pop edi
cmp eax, 0xffffffff
jne 0x1003356c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Send_Error:_d
push 1
push 0x10069158
call fcn.10017d90
add esp, 0x10
mov eax, dword [esi + 0x294]
push eax
lea ecx, [esi + 0xfc]
call fcn.10036c40
mov ecx, dword [esp + 0x3c]
pop esi
pop ebx
xor ecx, esp
call fcn.10038723
add esp, 0x38
ret 8
Function at 0x100335f0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x10c]
cmp eax, 0xffffffff
je 0x1003361c
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [esi + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10c], 0xffffffff
mov ecx, dword [esi + 0x90]
cmp ecx, 0xa
je 0x10033639
mov edx, dword [esi + 0x90]
cmp edx, 2
je 0x10033639
cmp byte [esp + 8], 0
je 0x10033681
cmp byte [esi + 0x60], 0
jne 0x10033681
mov byte [esi + 0x60], 1
cmp dword [esi + 0x1ec], 8
jb 0x10033654
mov eax, dword [esi + 0x1d8]
jmp 0x1003365a
lea eax, [esi + 0x1d8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi + 0x90]
mov edx, dword [esi + 0x5c]
push ecx
push eax
push edx
push 0x100582b8
push 1
push 0x10069158
call fcn.10017d90
add esp, 0x18
mov al, 1
pop esi
ret 4
Function at 0x10034260
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10052708
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x100638a4]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebp
push esi
push edi
mov eax, dword [0x100638a4]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
inc dword [esi + 0x2d4]
mov eax, dword [esi + 0x2d4]
cmp eax, dword [esi + 0x2b0]
jg 0x10034434
xor ebp, ebp
cmp dword [esi + 0x2d0], ebp
je 0x10034415
mov edi, dword [esi + 0x2cc]
mov eax, dword [esi + 0x2d0]
add eax, edi
cmp edi, eax
jbe 0x100342d0
call fcn.10039cd0
mov ecx, dword [esi + 0x2b4]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], edi
call fcn.10033150
mov edx, dword [eax]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x2d0]
cmp eax, ebp
je 0x10034337
inc dword [esi + 0x2cc]
mov ecx, dword [esi + 0x2cc]
cmp dword [esi + 0x2c8], ecx
ja 0x10034326
mov dword [esi + 0x2cc], ebp
dec eax
mov dword [esi + 0x2d0], eax
cmp eax, ebp
jne 0x10034337
mov dword [esi + 0x2cc], ebp
push edx
lea ecx, [esp + 0x54]
push ecx
call fcn.10019b50
add esp, 8
mov edi, dword [esp + 0x54]
mov dword [esp + 0x78], ebp
mov ebp, 8
cmp dword [esp + 0x68], ebp
jae 0x1003435c
lea edi, [esp + 0x54]
mov edx, dword [esp + 0x1a]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esi + 0x5c]
movzx eax, ax
push eax
push edi
push ecx
push 0x10058500
push 1
push 0x10069158
call fcn.10017d90
movzx ecx, word [esi]
fld qword [0x10054d08]
mov edx, 0x28
fstp qword [esp + 0x48]
mov word [esp + 0x40], dx
mov edx, dword [esi + 2]
mov dword [esp + 0x50], ecx
mov ecx, dword [esi + 0xa]
add esp, 0x18
mov eax, 0x16
mov dword [esp + 0x3c], edx
mov edx, dword [esi + 0xe]
mov word [esp + 0x2a], ax
mov eax, dword [esi + 6]
mov dword [esp + 0x44], ecx
push 0x28
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], edx
push ecx
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x12]
lea edx, [esp + 0x20]
push edx
mov ecx, 0x10069588
mov dword [esi + 0x8c], 3
mov dword [esp + 0x58], eax
call fcn.10032130
mov eax, dword [esi + 0x2ac]
push eax
lea ecx, [esi + 0xfc]
call fcn.10036c40
cmp dword [esp + 0x68], ebp
jb 0x10034411
mov ecx, dword [esp + 0x54]
push ecx
call fcn.100386ec
add esp, 4
mov al, 1
jmp 0x10034436
mov edx, dword [esi + 0x8c]
mov eax, dword [esi + 0x5c]
push edx
push eax
push 0x100584c0
push 1
push 0x10069158
call fcn.10017d90
add esp, 0x14
xor al, al
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.10038723
add esp, 0x6c
ret
Function at 0x10034b00
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x5c]
push eax
push 0x100586b4
push 1
push 0x10069158
call fcn.10017d90
add esp, 0x10
mov ecx, esi
call fcn.100349a0
mov byte [esi + 0x6c], 1
cmp dword [esi + 0x1ec], 8
jb 0x10034b40
mov esi, dword [esi + 0x1d8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
pop esi
ret
add esi, 0x1d8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
pop esi
ret

Function at 0x10034c60
Capabilities:
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x10052770
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x100638a4]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x100638a4]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x5c]
mov esi, ecx
lea edi, [esi + 0x1f0]
mov dword [esi + 0x90], 1
cmp dword [edi + 0x18], 8
jb 0x10034cb2
mov eax, dword [edi + 4]
jmp 0x10034cb5
lea eax, [edi + 4]
push ebx
push eax
call fcn.100393f1
add esp, 8
test eax, eax
je 0x10034da1
push 0
mov ecx, esi
call fcn.100335f0
cmp dword [edi + 0x18], 8
jb 0x10034cdb
mov eax, dword [edi + 4]
jmp 0x10034cde
lea eax, [edi + 4]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x10034d2a
mov eax, dword [esi + 0x5c]
push eax
push 0x10058798
push 1
push 0x10069158
call fcn.10017d90
add esp, 0x10
mov dword [esi + 0x68], 4
push 0x10058208
lea ecx, [esi + 0x210]
mov dword [esi + 0x90], 2
call fcn.1001e650
jmp 0x10034e1a
push 0x10058204
lea ecx, [esi + 0x210]
call fcn.1001e650
xor ecx, ecx
push 0xffffffffffffffff
push ecx
mov word [esp + 0x1c], cx
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
call fcn.10009230
push 4
push str..p2p
lea ecx, [esp + 0x18]
mov dword [esp + 0x5c], 0
call fcn.1000b310
mov eax, dword [esp + 0x14]
mov esi, 8
cmp dword [esp + 0x28], esi
jae 0x10034d89
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x28], esi
jb 0x10034e1a
mov edx, dword [esp + 0x14]
push edx
jmp 0x10034e12
push 0x10058204
lea ecx, [esi + 0x210]
call fcn.1001e650
xor eax, eax
push 0xffffffffffffffff
push eax
push edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
call fcn.10009230
push 4
push str..p2p
lea ecx, [esp + 0x34]
mov dword [esp + 0x5c], 1
call fcn.1000b310
mov eax, dword [esp + 0x30]
mov esi, 8
cmp dword [esp + 0x44], esi
jae 0x10034e00
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x44], esi
jb 0x10034e1a
mov ecx, dword [esp + 0x30]
push ecx
call fcn.100386ec
add esp, 4
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.10038723
add esp, 0x48
ret 4
Function at 0x10036a30
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push ebp
push esi
xor eax, eax
push edi
mov esi, ecx
cmp dword [esp + 0x18], eax
je 0x10036a49
mov ecx, dword [esp + 0x14]
add dword [esi], ecx
adc dword [esi + 4], eax
jmp 0x10036a53
mov edx, dword [esp + 0x14]
add dword [esi + 8], edx
adc dword [esi + 0xc], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov eax, dword [esi + 0x10]
shr edx, 6
add eax, edx
xor edx, edx
mov ecx, 0xa
div ecx
mov edi, edx
call ebx
lea edx, [edi + edi*2 + 6]
lea ebx, [esi + edx*4]
mov ebp, eax
sub eax, dword [ebx]
cmp eax, 0x1f40
jbe 0x10036a9b
lea ecx, [edi + edi*2]
lea eax, [esi + ecx*4]
xor ecx, ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [ebx], ecx
push ebp
mov ecx, esi
call fcn.100368d0
cmp dword [esp + 0x18], 0
mov ecx, dword [esp + 0x14]
lea edx, [edi + edi*2]
lea eax, [esi + edx*4 + 0x1c]
jne 0x10036ab9
lea eax, [esi + edx*4 + 0x20]
add dword [eax], ecx
cmp dword [ebx], 0
jne 0x10036ac2
mov dword [ebx], ebp
pop edi
pop esi
pop ebp
pop ebx
ret 8

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

Disassembly:
push esi
push edi
push 0
push 0
mov esi, ecx
call fcn.10036a30
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x10036bdc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
sub edi, dword [esi + 0x14]
jne 0x10036bb9
pop edi
xor eax, eax
pop esi
ret 4
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push 0
push 0x3e8
push eax
push ecx
call fcn.1003acd0
push 0
push edi
push edx
push eax
call fcn.1003b330
pop edi
pop esi
ret 4
cmp edi, 0xa
jbe 0x10036be6
mov edi, 0xa
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
sub edx, dword [esi + 0x14]
mov eax, 0x10624dd3
mul edx
shr edx, 6
mov ecx, esi
cmp edx, edi
ja 0x10036c0b
call fcn.10036890
pop edi
pop esi
ret 4
push 0
push edi
call fcn.10036ad0
xor edx, edx
div edi
pop edi
pop esi
ret 4
Function at 0x10036d40
Capabilities:
Check for time delay via gettickcount
Read file on windows

Disassembly:
sub esp, 0xa4
mov eax, dword [0x100638a4]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xac]
push edi
mov edi, dword [esp + 0xac]
lea ecx, [esp + 0x18]
push ecx
push 0
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x10036d91
xor al, al
pop edi
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.10038723
add esp, 0xa4
ret
cmp dword [esp + 0x34], 0
jne 0x10036d79
push ebx
push ebp
push esi
mov esi, dword [esp + 0x44]
push esi
call fcn.10036cb0
mov ebp, eax
lea eax, [esi + ebp - 1]
xor edx, edx
div ebp
push 0x10058e80
push edi
mov esi, eax
mov dword [esp + 0x24], esi
call fcn.1003b820
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x10036f04
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
mov dword [esp + 0x24], eax
call fcn.10038336
mov edi, eax
xor ecx, ecx
mov eax, esi
mov edx, 0x14
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10038336
add esp, 8
lea ecx, [esp + 0x48]
mov dword [esp + 0x10], eax
call fcn.10038150
push ebx
push ebp
push 1
push edi
call fcn.1003be4a
mov esi, eax
add esp, 0x10
test esi, esi
jle 0x10036e87
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
cmp dword [esp + 0xc0], 0
je 0x10036e4b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0xc0]
sub eax, dword [esp + 0x20]
imul ecx, ecx, 0x3e8
cmp eax, ecx
ja 0x10036eeb
lea ecx, [esp + 0x48]
call fcn.10038160
push esi
push edi
lea ecx, [esp + 0x50]
call fcn.100382b0
mov esi, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x4c]
call fcn.10038290
push ebx
push ebp
push 1
add esi, 0x14
push edi
mov dword [esp + 0x24], esi
call fcn.1003be4a
mov esi, eax
add esp, 0x10
test esi, esi
jg 0x10036e22
push ebx
call fcn.1003b6de
add esp, 4
lea ecx, [esp + 0x48]
call fcn.10038160
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
push eax
push esi
lea ecx, [esp + 0x50]
call fcn.100382b0
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x4c]
call fcn.10038290
push edi
call fcn.1003a67b
push esi
call fcn.1003a67b
add esp, 8
mov al, 1
mov ecx, dword [esp + 0xb0]
pop esi
pop ebp
pop ebx
pop edi
xor ecx, esp
call fcn.10038723
add esp, 0xa4
ret
push ebx
call fcn.1003b6de
push edi
call fcn.1003a67b
mov edx, dword [esp + 0x18]
push edx
call fcn.1003a67b
add esp, 0xc
xor al, al
jmp 0x10036ed2
Function at 0x10036f10
Capabilities:
Check for time delay via gettickcount
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x10052976
mov eax, dword fs:[0]
push eax
mov eax, 0x4090
call fcn.10038740
mov eax, dword [0x100638a4]
xor eax, esp
mov dword [esp + 0x408c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100638a4]
xor eax, esp
push eax
lea eax, [esp + 0x40a4]
mov dword fs:[0], eax
mov esi, dword [esp + 0x40b4]
mov eax, dword [esp + 0x40b8]
xor ebp, ebp
push ebp
push 0x80
push 3
push ebp
push 3
push closesocket
push esi
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10036f8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x1003709e
push esi
call fcn.1001bed0
mov ebx, edx
add esp, 4
mov dword [esp + 0x20], eax
or eax, ebx
jne 0x10036faf
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1003709e
lea ecx, [esp + 0x44]
call fcn.10008d20
push 0x3fff
lea ecx, [esp + 0xa5]
push ebp
push ecx
mov dword [esp + 0x40b8], ebp
mov byte [esp + 0xac], 0
call fcn.10038ae0
add esp, 0xc
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
mov dword [esp + 0x18], eax
test ebx, ebx
jb 0x10037068
ja 0x10036ff9
cmp dword [esp + 0x20], esi
jbe 0x10037068
cmp dword [esp + 0x40bc], 0
je 0x1003701e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x40bc]
sub eax, dword [esp + 0x18]
imul edx, edx, 0x3e8
cmp eax, edx
ja 0x10036fa1
push 0
lea eax, [esp + 0x18]
push eax
push 0x4000
lea ecx, [esp + 0xac]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10036f81
mov eax, dword [esp + 0x14]
push eax
lea edx, [esp + 0xa4]
add ebp, eax
push edx
lea ecx, [esp + 0x4c]
adc esi, 0
call fcn.10008dc0
cmp esi, ebx
jb 0x10036ff9
ja 0x10037068
cmp ebp, dword [esp + 0x20]
jb 0x10036ff9
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x48]
call fcn.10009460
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
push 0
push eax
mov byte [esp + 0x40b8], 1
call fcn.10009230
lea ecx, [esp + 0x28]
call fcn.10010e30
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x40a4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x408c]
xor ecx, esp
call fcn.10038723
add esp, 0x409c
ret
Function at 0x100370d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x100529c8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x100638a4]
xor eax, esp
mov dword [esp + 0x38], eax
push esi
push edi
mov eax, dword [0x100638a4]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x5c]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1003723a
test al, 0x10
jne 0x1003723a
mov eax, 1
cmp ax, word [esp + 0x58]
jne 0x100371ce
xor ecx, ecx
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], cx
push 0xa
lea edx, [esp + 0x10]
push edx
push esi
mov dword [esp + 0x5c], ecx
call fcn.10036f10
add esp, 0xc
mov esi, 8
test al, al
je 0x100371b9
push edi
lea ecx, [esp + 0x2c]
call fcn.10009420
mov eax, dword [esp + 0x10]
mov byte [esp + 0x50], 1
cmp dword [esp + 0x24], esi
jae 0x10037181
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
push ecx
push eax
push edx
push 0
lea ecx, [esp + 0x38]
call fcn.1000f680
lea ecx, [esp + 0x28]
test eax, eax
jne 0x100371b4
call fcn.10010e30
lea ecx, [esp + 0xc]
call fcn.10010e30
mov al, 1
jmp 0x1003723c
call fcn.10010e30
cmp dword [esp + 0x24], esi
jb 0x1003723a
mov eax, dword [esp + 0x10]
push eax
call fcn.100386ec
add esp, 4
jmp 0x1003723a
xor eax, eax
push 0xa
lea ecx, [esp + 0x10]
push ecx
push esi
mov byte [esp + 0x18], 0
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov word [esp + 0x29], ax
mov byte [esp + 0x2b], al
call fcn.10036d40
add esp, 0xc
test al, al
je 0x1003723a
push 0x14
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.10018700
lea ecx, [esp + 0x34]
push edi
push ecx
mov dword [esp + 0x64], 2
call fcn.10019620
add esp, 0x14
lea ecx, [esp + 0x28]
test al, al
jne 0x100371a8
call fcn.10010e30
xor al, al
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.10038723
add esp, 0x48
ret
Function at 0x100377c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x10052a28
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100638a4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
lea ebx, [esi + 0x28]
push ebx
mov edi, eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [esi + 0x44], 0
mov dword [esp + 0x20], 0
jne 0x10037840
cmp dword [esi + 4], 0
jne 0x10037818
call ebp
mov dword [esi + 4], eax
mov eax, dword [esi]
inc eax
imul eax, dword [esi + 0x20]
mov dword [esi + 0x40], edi
sub edi, dword [esi + 0x48]
sub edi, dword [esi + 4]
cmp edi, eax
jbe 0x10037833
mov ecx, esi
call fcn.100377b0
mov ecx, esi
call fcn.10037790
mov ecx, dword [esp + 0x28]
add dword [eax], ecx
test ebx, ebx
je 0x1003784b
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4

Function at 0x10037b40
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp eax, ecx
jne 0x10037b50
mov eax, 1
ret
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
xor eax, eax
ret