joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100f3440
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x101d8724]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x15], 0
cmp dword [0x101d65bc], 0xffffffff
jne 0x100f360e
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, byte [0x101d65c0]
test ecx, ecx
je 0x100f3527
mov dword [ebp - 0x128], 0
cmp dword [0x101d65b8], 0xffffffff
jne 0x100f34bc
mov edx, dword [ebp - 0x128]
mov eax, dword [ebp - 0x128]
add eax, 1
mov dword [ebp - 0x128], eax
cmp edx, 0x96
jl 0x100f34af
jmp 0x100f34bc
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100f3487
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov dword [ebp - 0x128], 0
jmp 0x100f34e1
mov edx, dword [ebp - 0x128]
add edx, 1
mov dword [ebp - 0x128], edx
cmp dword [ebp - 0x128], 0xa
jge 0x100f351e
push 1
mov eax, dword [0x101d65b8]
push eax
call dword [0x101e6034]
add esp, 8
xor ecx, ecx
test eax, eax
setge cl
mov byte [ebp - 0x15], cl
movzx edx, byte [ebp - 0x15]
test edx, edx
je 0x100f3511
jmp 0x100f351e
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100f34d2
mov byte [0x101d65c0], 0
jmp 0x100f3542
push 1
mov eax, dword [0x101d65b8]
push eax
call dword [0x101e6034]
add esp, 8
xor ecx, ecx
test eax, eax
setge cl
mov byte [ebp - 0x15], cl
mov dword [ebp - 0x124], 0
push 0x101
lea edx, [ebp - 0x120]
push edx
push str.U3_DEVICE_SERIAL
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x100f360c
mov dword [ebp - 0x12c], 0
jmp 0x100f3586
mov eax, dword [ebp - 0x12c]
add eax, 1
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0x20
jge 0x100f360c
mov edx, 1
mov ecx, dword [ebp - 0x12c]
shl edx, cl
and edx, dword [0x101e6048]
je 0x100f3607
mov eax, dword [ebp - 0x124]
add eax, 1
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x12c]
push ecx
call fcn.100f33c0
add esp, 4
mov dword [ebp - 0x130], eax
mov edx, dword [ebp - 0x130]
push edx
call fcn.1014e8a0
add esp, 4
test eax, eax
je 0x100f3607
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
call fcn.100f4640
add esp, 8
test eax, eax
jne 0x100f3607
mov edx, dword [ebp - 0x12c]
mov dword [0x101d65bc], edx
mov byte [ebp - 0x15], 1
jmp 0x100f360c
jmp 0x100f3577
jmp 0x100f362a
mov eax, 1
mov ecx, dword [0x101d65bc]
shl eax, cl
and eax, dword [0x101e6048]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x15], al
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
jne 0x100f363e
mov dword [0x101d65bc], 0xffffffff
jmp 0x100f3662
cmp dword [0x101d65bc], 0xffffffff
jne 0x100f3662
cmp dword [0x101d65b8], 0xffffffff
jne 0x100f3656
mov byte [ebp - 0x15], 0
jmp 0x100f3662
mov edx, dword [0x101d65b8]
mov dword [0x101d65bc], edx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov al, byte [ebp - 0x15]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014c68a
mov esp, ebp
pop ebp
ret
Function at 0x100fc5b0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101942f3
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x101d8724]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], pe_nt_image_headers32
mov dword [ebp - 0x4c], 0x24
mov byte [ebp - 0x51], 0
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x100fc6c5
push str.SystemFunction036
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x100fc6bb
mov byte [ebp - 0x10d], 0
lea ecx, [ebp - 0x10d]
push ecx
push 0x24
lea ecx, [ebp - 0x6c]
call fcn.100e4540
mov dword [ebp - 4], 0
push 0x24
push 0
lea ecx, [ebp - 0x6c]
call fcn.100e45e0
push eax
call dword [ebp - 0x5c]
movzx edx, al
test edx, edx
je 0x100fc6ac
push 0
lea ecx, [ebp - 0x6c]
call fcn.100e45e0
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
add eax, 0x24
push eax
mov ecx, dword [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.100e4fb0
mov dword [ebp - 0x114], eax
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0x118], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x118]
push eax
call fcn.100fc780
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.1003b690
mov byte [ebp - 0x51], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.1005dd40
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx edx, byte [ebp - 0x51]
test edx, edx
jne 0x100fc75d
push 1
push 2
lea ecx, [ebp - 0x10c]
call fcn.100f2f90
mov dword [ebp - 4], 2
call fcn.10153658
push eax
push 0
call fcn.100f0bc0
add esp, 4
push edx
push eax
lea ecx, [ebp - 0x10c]
call fcn.100fcfd0
mov ecx, eax
call fcn.100fce40
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x10c]
call fcn.100f30d0
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x11c]
mov dword [ebp - 0x120], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x120]
push edx
call fcn.100fc780
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.1003b690
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10c]
call fcn.100f2f60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014c68a
mov esp, ebp
pop ebp
ret
Function at 0x100fd1e0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x9c0], 0x270
jne 0x100fd200
mov ecx, dword [ebp - 8]
call fcn.100fd2f0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x9c0]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x9c0]
add eax, 1
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x9c0], eax
mov edx, dword [ebp - 4]
shr edx, 0xb
xor edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
shl eax, 7
and eax, 0x9d2c5680
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
shr edx, 0x12
xor edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x100fd8c0
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
movzx eax, byte [0x101e6f48]
test eax, eax
je 0x100fd8d7
jmp 0x100fd986
mov dword [ebp - 8], 0x80000000
mov byte [ebp - 2], 0x80
mov byte [ebp - 1], 0
mov dword [ebp - 0xc], 0
mov byte [ebp - 0xd], 0x80
jmp 0x100fd8fb
mov cl, byte [ebp - 0xd]
shr cl, 1
mov byte [ebp - 0xd], cl
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x100fd945
movzx eax, byte [ebp - 1]
movzx ecx, byte [ebp - 0xd]
and eax, ecx
je 0x100fd91b
mov edx, dword [ebp - 0xc]
xor edx, 0x80000000
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
and eax, 0x80000000
je 0x100fd93b
mov ecx, dword [ebp - 0xc]
shl ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
xor edx, 0x4c11db7
mov dword [ebp - 0xc], edx
jmp 0x100fd943
mov eax, dword [ebp - 0xc]
shl eax, 1
mov dword [ebp - 0xc], eax
jmp 0x100fd8f3
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.100fd820
add esp, 4
mov esi, eax
movzx edx, byte [ebp - 1]
push edx
call fcn.100fda10
add esp, 4
movzx eax, al
mov dword [eax*4 + 0x101e6b48], esi
mov cl, byte [ebp - 1]
add cl, 1
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
test edx, edx
jne 0x100fd8e6
mov byte [0x101e6f48], 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100fdad0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
call fcn.100f0c00
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 0x9c0], 1
jmp 0x100fdb12
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x9c0]
add edx, 1
mov eax, dword [ebp - 8]
mov dword [eax + 0x9c0], edx
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x9c0], 0x270
jae 0x100fdb67
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x9c0]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x9c0]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + edx*4 - 4]
shr edx, 0x1e
mov ecx, dword [ebp - 8]
xor edx, dword [ecx + eax*4 - 4]
imul edx, edx, 0x6c078965
mov eax, dword [ebp - 8]
add edx, dword [eax + 0x9c0]
and edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x9c0]
mov ecx, dword [ebp - 8]
mov dword [ecx + eax*4], edx
jmp 0x100fdafd
mov esp, ebp
pop ebp
ret 4
Function at 0x10115ab0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x101d8724]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x101e73e0], 0
jne 0x10115ae0
push 0x4cf
call fcn.100c2440
add esp, 4
xor eax, eax
jmp 0x10115c79
cmp dword [ebp + 8], 0
jl 0x10115aec
cmp dword [ebp + 8], 7
jle 0x10115b00
push 0x585
call fcn.100c2440
add esp, 4
xor eax, eax
jmp 0x10115c79
push 0xffffffffffffffff
mov ecx, 0x101e74e8
call fcn.10083bc0
mov eax, dword [str.___]
mov dword [ebp - 0x118], eax
mov cx, word [0x101a5d68]
mov word [ebp - 0x114], cx
lea edx, [ebp - 0x118]
push edx
push 0x101e72d0
call fcn.1014e930
add esp, 8
mov al, byte [0x101a0fc1]
mov byte [ebp - 0x108], al
push 0xff
push 0
lea ecx, [ebp - 0x107]
push ecx
call fcn.1014e270
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, 0x30
push edx
push str.U__c
lea eax, [ebp - 0x108]
push eax
call fcn.1014ea28
add esp, 0xc
push 3
lea ecx, [ebp - 0x108]
push ecx
mov ecx, dword [0x101e73e0]
call fcn.101684a0
mov dword [ebp - 0x10c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x2710
mov dword [ebp - 0x110], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [ebp - 0x110]
jae 0x10115bd6
lea edx, [ebp - 0x118]
push edx
push 0x101e72d0
call fcn.1014f3a0
add esp, 8
test eax, eax
je 0x10115bcc
jmp 0x10115bd6
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10115ba4
lea eax, [ebp - 0x118]
push eax
push 0x101e72d0
call fcn.1014f3a0
add esp, 8
test eax, eax
je 0x10115c50
push 0x101e72d0
call fcn.1014e8a0
add esp, 4
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x11c]
cmp ecx, dword [ebp + 0x10]
jb 0x10115c27
push 0x7a
call fcn.100c2440
add esp, 4
mov edx, dword [ebp - 0x11c]
add edx, 1
mov dword [ebp - 0x10c], edx
jmp 0x10115c4e
push 0
call fcn.100c2440
add esp, 4
push 0x101e72d0
mov eax, dword [ebp + 0xc]
push eax
call fcn.1014e930
add esp, 8
mov ecx, dword [ebp - 0x11c]
mov dword [ebp - 0x10c], ecx
jmp 0x10115c5d
push 0x5b4
call fcn.100c2440
add esp, 4
call fcn.100c2450
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 0x101e74e8
call fcn.10083b70
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014c68a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x101166e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
cmp dword [0x101e75a0], 0
jne 0x10116822
mov dword [0x101e75a0], 1
push 0xffffffffffffffff
push 0x101e7708
call fcn.1014e8a0
add esp, 4
push eax
push 0x101e7708
call fcn.101153c0
add esp, 0xc
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x10116731
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 3
jge 0x10116785
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov eax, ecx
imul eax, dword [ebp - 4]
xor edx, edx
mov ecx, 0xac78
div ecx
add edx, 0x1388
mov eax, dword [ebp - 0xc]
mov word [eax*2 + 0x101e71bc], dx
mov ecx, dword [ebp - 0xc]
add ecx, 4
mov eax, ecx
imul eax, dword [ebp - 4]
xor edx, edx
mov ecx, 0xac78
div ecx
add edx, 0x1388
mov eax, dword [ebp - 0xc]
mov word [eax*2 + 0x101e71b4], dx
jmp 0x10116728
mov ecx, 0x101dafb0
call fcn.1007dda0
push eax
push 0
push str.TIMEOUT
push str.LICENSE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1011680b
mov cx, word [ebp - 8]
mov word [0x101d7bd4], cx
mov edx, 0x12
shl edx, 2
mov eax, dword [0x101db5fc]
mov ecx, dword [0x101db5fc]
mov esi, dword [0x101db5fc]
mov ebx, dword [esi + 0x6c]
xor ebx, dword [ecx + 0x64]
xor ebx, dword [eax + edx]
and ebx, 0x80
neg ebx
sbb ebx, ebx
neg ebx
movzx edx, bl
test edx, edx
je 0x101167f4
mov dword [ebp - 0x10], 0xffffffff
jmp 0x101167fe
movzx eax, word [0x101d7bd4]
mov dword [ebp - 0x10], eax
mov cx, word [ebp - 0x10]
mov word [0x101d7bd8], cx
jmp 0x10116822
mov edx, 0xffff
mov word [0x101d7bd8], dx
mov eax, 3
mov word [0x101d7bd4], ax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10138380
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x101d8724]
xor eax, ebp
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [ebp - 8]
add ecx, 0xc8
mov dword [ebp - 8], ecx
mov byte [ebp - 1], 0
cmp dword [ebp + 0xc], 0
jne 0x101383b9
lea edx, [ebp - 0xd]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov dword [ebp - 0x14], 0
jmp 0x101383d1
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 2
jge 0x101385a0
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
test eax, eax
jne 0x101385a0
cmp dword [ebp - 0x14], 0
jne 0x10138453
push 0x104
lea ecx, [ebp - 0x268]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0
lea edx, [ebp - 0x268]
push edx
call fcn.1014f220
add esp, 8
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x270]
movsx ecx, byte [eax - 1]
cmp ecx, 0x5c
je 0x1013843d
push 0x101a7068
lea edx, [ebp - 0x268]
push edx
call fcn.1014e940
add esp, 8
jmp 0x10138451
push 0x101a189c
lea eax, [ebp - 0x268]
push eax
call fcn.1014e940
add esp, 8
jmp 0x10138467
push str.C:
lea ecx, [ebp - 0x268]
push ecx
call fcn.1014e930
add esp, 8
lea edx, [ebp - 0x160]
push edx
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x1013859b
mov ecx, dword [ebp - 0x160]
and ecx, 0x10
jne 0x1013856e
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x1013856e
mov byte [ebp - 0x26a], 0
mov byte [ebp - 0x269], 0
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x14c]
push edx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x101384da
mov byte [ebp - 0x26a], 1
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x101384f6
mov byte [ebp - 0x269], 1
movzx edx, byte [ebp - 0x26a]
test edx, edx
je 0x1013850d
mov dword [ebp - 0x274], str.__write
jmp 0x10138517
mov dword [ebp - 0x274], 0x101a0fc1
movzx eax, byte [ebp - 0x269]
test eax, eax
je 0x1013852e
mov dword [ebp - 0x278], str.__create
jmp 0x10138538
mov dword [ebp - 0x278], 0x101a0fc1
movzx ecx, byte [ebp + 8]
test ecx, ecx
je 0x1013856a
mov edx, dword [ebp + 0x10]
push edx
movzx eax, byte [ebp - 0x269]
push eax
movzx ecx, byte [ebp - 0x26a]
push ecx
lea edx, [ebp - 0x134]
push edx
lea eax, [ebp - 0x268]
push eax
call fcn.101385c0
add esp, 0x14
mov byte [ebp - 1], 1
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
test eax, eax
jne 0x10138591
lea ecx, [ebp - 0x160]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10138488
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x101383c8
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1014c68a
mov esp, ebp
pop ebp
ret
Function at 0x101385c0
Capabilities:
Get file attributes
Read file on windows
Set file attributes
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x101d8724]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x120]
push ecx
call fcn.1014e930
add esp, 8
push 0x5c
lea edx, [ebp - 0x120]
push edx
call fcn.1014f580
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10138607
xor al, al
jmp 0x101387b8
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 1
push ecx
call fcn.1014e930
add esp, 8
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
and ecx, 1
neg ecx
sbb ecx, ecx
neg ecx
mov byte [ebp - 5], cl
movzx edx, byte [ebp - 5]
test edx, edx
je 0x10138676
mov eax, dword [ebp - 4]
and eax, 0xfffffffe
push eax
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x10138676
push 1
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 0x18]
call fcn.10071520
jmp 0x101387b8
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0xffffffff
je 0x10138779
push 0
lea ecx, [ebp - 0x128]
push ecx
push 0x10
lea edx, [ebp - 0x138]
push edx
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x120]
push edx
call fcn.101387d0
add esp, 4
movzx eax, al
test eax, eax
jne 0x10138777
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0xffffffff
jne 0x10138729
push 1
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 0x18]
call fcn.10071520
jmp 0x101387b8
movzx eax, byte [ebp + 0x10]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x14]
and eax, ecx
push eax
lea edx, [ebp - 0x14]
push edx
movzx eax, byte [ebp + 0x14]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x14]
and eax, ecx
push eax
mov edx, dword [ebp - 0x13c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x1013876a
push 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x18]
call fcn.10071520
jmp 0x101387b8
mov ecx, dword [ebp - 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10138789
push 1
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 0x18]
call fcn.10071520
jmp 0x101387b8
movzx eax, byte [ebp - 5]
test eax, eax
je 0x101387b6
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x101387b6
push 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x18]
call fcn.10071520
jmp 0x101387b8
mov al, 1
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.1014c68a
mov esp, ebp
pop ebp
ret
Function at 0x10138f90
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.10138f40
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10138fe5
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 4]
mov byte [eax], 1
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xc], 0
je 0x10138fd0
push 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
jmp 0x10138fe7
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1013c720
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x101a7254
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetPropA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1013c77d
push 0x13
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push 0x101a7254
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetPropA]
push 4
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x1013c789
push 5
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret

Function at 0x1013ca10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x101d8724]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x30], ecx
mov byte [ebp - 1], 0
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x34], 0xffffffff
jne 0x1013cadc
movzx ecx, byte [ebp - 1]
test ecx, ecx
jne 0x1013cadc
mov dword [ebp - 0x24], 0xe1
mov dword [ebp - 0x20], 0x89
mov dword [ebp - 0x1c], 0x8a
mov dword [ebp - 0x18], 0x8b
mov dword [ebp - 0x14], 0x8c
mov dword [ebp - 0x10], 0x88
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [ebp - 0x28], 0
jmp 0x1013ca89
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 6
jge 0x1013cabd
mov edx, dword [0x101db61c]
mov dword [ebp - 0x2c], edx
push 0x10
push 0x10
mov eax, dword [ebp - 0x28]
movzx ecx, word [ebp + eax*4 - 0x24]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.1008cf20
add esp, 0x10
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
mov dword [edx + ecx*4 + 0x3c], eax
jmp 0x1013ca80
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp - 0x30]
push ecx
push 0x1013c920
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x34], eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.1014c68a
mov esp, ebp
pop ebp
ret

Function at 0x1013ef00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x101d8724]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x2c], 2
lea eax, [ebp - 0x28]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dx, word [ebp + 0xc]
mov word [ecx], dx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x26]
push ecx
call fcn.1014e930
add esp, 8
push 0
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x26]
push eax
call fcn.1014e8a0
add esp, 4
add eax, 3
push eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x31], al
mov al, byte [ebp - 0x31]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1014c68a
mov esp, ebp
pop ebp
ret
Function at 0x1013ef90
Capabilities:
Check for time delay via gettickcount
Read file on windows
Read from mailslot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x101d8724]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x2c], 2
lea eax, [ebp - 0x28]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x30], eax
mov ecx, 1
test ecx, ecx
je 0x1013f060
mov dword [ebp - 0x34], 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
lea edx, [ebp - 0x34]
push edx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
test eax, eax
je 0x1013f041
cmp dword [ebp - 0x34], 0
je 0x1013f041
push 0
lea ecx, [ebp - 0x38]
push ecx
push 0x1f
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1013f041
push 3
push 0x101a6360
lea ecx, [ebp - 0x26]
push ecx
call fcn.10164467
add esp, 0xc
test eax, eax
jne 0x1013f041
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov cx, word [eax]
mov word [edx], cx
lea edx, [ebp - 0x23]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.1014e930
add esp, 8
mov al, 1
jmp 0x1013f062
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x30]
cmp eax, 0x2ee
jbe 0x1013f053
jmp 0x1013f060
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1013efb6
xor al, al
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1014c68a
mov esp, ebp
pop ebp
ret