joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10084cf
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
xor ebx, ebx
push 0x38
lea eax, [ebp - 0x40]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x44], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [ebp + 8]
test eax, eax
je 0x1008512
xor esi, esi
jmp 0x1008530
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1008526
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x10085b1
lea eax, [ebp - 8]
push eax
push 2
push dword [ebp - 4]
call fcn.010098a5
cmp dword [ebp - 8], ebx
je 0x10085ad
cmp dword [0x100e350], ebx
je 0x1008552
mov esi, 0x800702e4
jmp 0x10085b1
mov eax, dword [0x100e34c]
xor esi, esi
inc esi
dec eax
mov dword [ebp - 0x44], 0x3c
mov dword [ebp - 0x40], 0x600
mov dword [ebp - 0x38], 0x1001b4c
mov dword [ebp - 0x34], 0x1001b08
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x3c], edi
je 0x1008593
dec eax
dec eax
je 0x100858a
mov esi, 0x80004005
jmp 0x10085b1
mov dword [ebp - 0x30], 0x1001ae4
jmp 0x100859a
mov dword [ebp - 0x30], 0x1001ac8
push 2
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp esi, ebx
jge 0x10085b8
push esi
push edi
call fcn.01007200
cmp dword [ebp - 4], ebx
je 0x10085cc
cmp dword [ebp - 4], 0xffffffff
je 0x10085cc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x10085da
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
and dword [ebp - 4], 0
and dword [ebp - 0x40], 0
push esi
push edi
push 0x38
lea eax, [ebp - 0x3c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov edi, dword [ebp + 8]
test eax, eax
je 0x1008618
xor esi, esi
jmp 0x1008632
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100862c
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jl 0x100868a
cmp dword [ebp - 4], 0
je 0x1008686
mov eax, dword [0x100e34c]
xor esi, esi
inc esi
dec eax
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x600
mov dword [ebp - 0x34], 0x1001b4c
mov dword [ebp - 0x30], 0x1001b68
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x38], edi
je 0x100866c
mov esi, 0x80004005
jmp 0x100868a
push 2
push edi
mov dword [ebp - 0x2c], 0x1001b58
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test esi, esi
jge 0x1008691
push esi
push edi
call fcn.01007200
pop edi
mov eax, esi
pop esi
leave
ret 4
Function at 0x1009196
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x100ca50
call fcn.0100925c
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x100e750
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1008f51
cmp eax, esi
jne 0x1008f44
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1008f54
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1008f2b
xor esi, esi
inc esi
mov eax, dword [0x100e74c]
cmp eax, esi
jne 0x1008f67
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1008f96
mov eax, dword [0x100e74c]
test eax, eax
jne 0x1008f90
mov dword [0x100e74c], esi
push 0x1001334
push 0x1001328
call fcn.01008e8d
pop ecx
pop ecx
test eax, eax
je 0x1008f96
jmp 0x10090ba
mov dword [0x100e3c8], esi
mov eax, dword [0x100e74c]
cmp eax, esi
jne 0x1008fba
push 0x1001324
push 0x10012fc
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100e74c], 2
cmp dword [ebp - 0x20], ebx
jne 0x1008fc7
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100e754], ebx
je 0x1008fe8
push 0x100e754
call fcn.010093b9
pop ecx
test eax, eax
je 0x1008fe8
push ebx
push 2
push ebx
call dword [0x100e754]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x10090ba
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1009052
cmp cx, bx
je 0x100900d
cmp dword [ebp - 0x1c], ebx
jne 0x1009052
movzx ecx, word [eax]
cmp cx, bx
je 0x1009022
cmp cx, 0x20
ja 0x1009022
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x100900d
test byte [ebp - 0x40], 1
je 0x100902e
movzx ecx, word [ebp - 0x3c]
jmp 0x1009031
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x100e3c4], eax
cmp dword [0x100e3b8], ebx
jne 0x1009097
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1009063
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1008ff7
cmp dword [0x100e3c8], ebx
jne 0x10090a5
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100e3c4]
jmp 0x10090c6
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010092a1
ret
call fcn.01009506
jmp 0x1008eee
Function at 0x1009939
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100e318]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1001e48
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1009a0e
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10099fd
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x10099e7
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x10099fd
push eax
push edi
push dword [ebp - 0x110]
call fcn.010098d1
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x1009a10
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.010091bd
leave
ret 4
Function at 0x100a990
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push 0xfffffffffffffff5
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, eax
mov dword [ebp - 8], ebx
cmp ebx, 0xffffffff
je 0x100aad9
cmp ebx, edi
je 0x100aad9
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.0100a908
mov esi, eax
test esi, esi
jl 0x100ab07
push ebx
call fcn.0100b3d2
test eax, eax
je 0x100aa1c
push dword [ebp - 4]
push dword [ebp + 0xc]
push ebx
call fcn.0100a7ce
test eax, eax
je 0x100a9f8
xor esi, esi
jmp 0x100ab07
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x100aa10
jle 0x100aa15
and eax, 0xffff
or eax, 0x80070000
jmp 0x100aa15
mov eax, 0x80004005
mov esi, eax
jmp 0x100ab07
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push 2
pop ecx
inc eax
mul ecx
push edx
push eax
call fcn.01009df5
mov esi, eax
test esi, esi
jl 0x100ab07
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x100aa5c
mov esi, 0x8007000e
jmp 0x100aaf3
push edi
push dword [ebp + 0xc]
mov byte [edi], 0
call dword [sym.imp.USER32.dll_CharToOemW]
mov ebx, 0x80070000
test eax, eax
jne 0x100aa92
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x100aa87
jle 0x100aa8c
and eax, 0xffff
or eax, ebx
jmp 0x100aa8c
mov eax, 0x80004005
mov esi, eax
test eax, eax
jl 0x100aaf3
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push edi
call fcn.0100a83d
mov esi, eax
test esi, esi
jl 0x100aaf3
xor esi, esi
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100aaf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x100aad2
jle 0x100aaf1
and eax, 0xffff
or eax, ebx
jmp 0x100aaf1
mov eax, 0x80004005
jmp 0x100aaf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x100aa15
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test edi, edi
je 0x100ab07
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x100ac91
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x100e318]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 0x3a
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x800
push 0
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0x100ace6
mov dword [ebp - 0x1c], 0x8007000e
jmp 0x100adcb
push esi
push 8
push ebx
push 0x1e
xor eax, eax
mov esi, 0x400
push esi
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 1
jle 0x100ad19
push ebx
push 8
lea eax, [ebp - 0x14]
push eax
call fcn.010065dd
mov dword [ebp - 0x1c], eax
test eax, eax
jl 0x100adba
push dword [ebp - 0x18]
push esi
push ebx
call fcn.010065dd
mov dword [ebp - 0x1c], eax
test eax, eax
jl 0x100adba
mov esi, dword [sym.imp.msvcrt.dll_wcstok]
lea eax, [ebp - 0x14]
push eax
push ebx
call esi
and dword [ebp - 0x18], 0
pop ecx
pop ecx
lea edi, [ebp - 0x2c]
test eax, eax
je 0x100ad6c
push edi
push eax
call fcn.0100ac1f
inc dword [ebp - 0x18]
add edi, 4
mov dword [ebp - 0x1c], eax
test eax, eax
jl 0x100adba
lea eax, [ebp - 0x14]
push eax
push 0
call esi
cmp dword [ebp - 0x18], 3
pop ecx
pop ecx
jb 0x100ad44
mov eax, dword [ebp - 0x18]
dec eax
je 0x100adaf
dec eax
je 0x100ad9a
dec eax
je 0x100ad81
mov dword [ebp - 0x1c], 0x80070057
jmp 0x100adba
mov cx, word [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
mov word [eax + 0x64], cx
mov cx, word [ebp - 0x28]
mov word [eax + 0x66], cx
mov cx, word [ebp - 0x24]
jmp 0x100ada9
mov cx, word [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
mov word [eax + 0x66], cx
mov cx, word [ebp - 0x28]
mov word [eax + 0x68], cx
jmp 0x100adba
mov ax, word [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
mov word [ecx + 0x68], ax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
pop edi
xor ecx, ebp
pop ebx
call fcn.010091bd
leave
ret 8
Function at 0x100b91d
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x100e318]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp dword [0x100e738], edi
jne 0x100ba39
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x100b984
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
mov eax, dword [ebp - 0x110]
dec eax
mov dword [0x100e738], edi
pop esi
je 0x100ba0c
dec eax
jne 0x100ba39
cmp dword [ebp - 0x11c], 5
jne 0x100b9f9
mov eax, dword [ebp - 0x118]
sub eax, edi
je 0x100b9ed
dec eax
je 0x100b9da
dec eax
je 0x100b9c0
mov dword [0x100e738], 0x14
jmp 0x100ba39
cmp word [ebp - 0xc], 1
jb 0x100b9d1
mov dword [0x100e738], 0x10
or dword [0x100e738], 4
jmp 0x100ba39
cmp word [ebp - 0xc], 2
jb 0x100b9d1
mov dword [0x100e738], 8
jmp 0x100b9d1
mov dword [0x100e738], 4
jmp 0x100ba39
cmp dword [ebp - 0x11c], 4
ja 0x100ba4b
mov dword [0x100e738], 2
cmp dword [ebp - 0x11c], 4
jne 0x100ba39
cmp dword [ebp - 0x118], edi
je 0x100ba2f
cmp dword [ebp - 0x118], 0xa
je 0x100ba2f
cmp dword [ebp - 0x118], 0x5a
jne 0x100ba39
mov dword [0x100e738], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x100e738]
xor ecx, ebp
pop edi
call fcn.010091bd
leave
ret
mov dword [0x100e738], 0x20
jmp 0x100ba39

Function at 0x100ba5c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x100e318]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 8
push 0x404
mov esi, 0xc04
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100bab0
push 3
lea eax, [ebp - 0x44]
push 0x10023c8
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffff800
add esi, 0xc04
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.010091bd
leave
ret

Function at 0x100bac5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100e318]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [0x100e73c]
jne 0x100bb60
push esi
lea eax, [ebp - 0x10]
push eax
push 1
xor esi, esi
push esi
push 0x10022f8
push 0x80000002
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100bb5f
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x10023b0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x100bb5f
push 3
push dword [esi*8 + 0x1002148]
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x100bb51
inc esi
cmp esi, 0x1c
jb 0x100bb30
jmp 0x100bb5f
mov ax, word [esi*8 + 0x100214c]
mov word [0x100e73c], ax
pop esi
mov ecx, dword [ebp - 4]
mov ax, word [0x100e73c]
xor ecx, ebp
call fcn.010091bd
leave
ret
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0x1001609
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1001a90
call fcn.010017b4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1002370
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10013c4
cmp eax, esi
jne 0x10013b7
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10013c7
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100139e
xor esi, esi
inc esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x10013da
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001409
mov eax, dword [0x100236c]
test eax, eax
jne 0x1001403
mov dword [0x100236c], esi
push 0x10010b8
push 0x10010ac
call fcn.01001300
pop ecx
pop ecx
test eax, eax
je 0x1001409
jmp 0x100152d
mov dword [0x1002034], esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x100142d
push 0x10010a8
push 0x10010a0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100236c], 2
cmp dword [ebp - 0x20], ebx
jne 0x100143a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1002374], ebx
je 0x100145b
push 0x1002374
call fcn.01001729
pop ecx
test eax, eax
je 0x100145b
push ebx
push 2
push ebx
call dword [0x1002374]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x100152d
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x10014c5
cmp cx, bx
je 0x1001480
cmp dword [ebp - 0x1c], ebx
jne 0x10014c5
movzx ecx, word [eax]
cmp cx, bx
je 0x1001495
cmp cx, 0x20
ja 0x1001495
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1001480
test byte [ebp - 0x40], 1
je 0x10014a1
movzx ecx, word [ebp - 0x3c]
jmp 0x10014a4
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1002030], eax
cmp dword [0x1002024], ebx
jne 0x100150a
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x10014d6
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x100146a
cmp dword [0x1002034], ebx
jne 0x1001518
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1002030]
jmp 0x1001539
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010017f9
ret
call fcn.01001901
jmp 0x1001361
Function at 0x401045
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp + 8]
mov esi, eax
lea eax, [ebp - 0x108]
mov dword [ebp - 4], esi
push eax
call fcn.004039b0
lea eax, [ebp + esi - 0x109]
pop ecx
xor ebx, ebx
pop ecx
cmp byte [eax], 0x5c
jne 0x401082
dec dword [ebp - 4]
mov byte [eax], bl
lea eax, [ebp - 0x108]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40109b
mov al, 1
jmp 0x40116e
cmp byte [ebp - 0x108], 0x5c
jne 0x4010c6
cmp byte [ebp - 0x107], 0x5c
jne 0x4010c6
lea eax, [ebp - 0x106]
push 0x5c
push eax
call fcn.004038f0
pop ecx
cmp eax, ebx
pop ecx
je 0x4010da
push 0x5c
inc eax
jmp 0x4010ce
push 0x5c
lea eax, [ebp - 0x108]
push eax
call fcn.004038f0
pop ecx
cmp eax, ebx
pop ecx
jne 0x4010e1
xor al, al
jmp 0x40116e
lea ecx, [ebp - 0x108]
push edi
sub eax, ecx
mov byte [ebp + 0xb], bl
inc eax
mov edi, eax
lea eax, [ebp + edi - 0x108]
push 0x5c
push eax
call fcn.004038f0
pop ecx
cmp eax, ebx
pop ecx
jne 0x40111c
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004039b0
pop ecx
pop ecx
jmp 0x40114c
mov esi, eax
lea eax, [ebp - 0x108]
sub esi, eax
lea eax, [ebp - 0x108]
push esi
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004037e0
lea edi, [esi + 1]
add esp, 0xc
cmp edi, dword [ebp - 4]
mov byte [ebp + esi - 0x20c], bl
jl 0x401150
mov byte [ebp + 0xb], 1
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp byte [ebp + 0xb], bl
je 0x4010f0
xor ecx, ecx
cmp eax, 1
sete cl
mov al, cl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401a08
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 8]
push eax
push 4
push dword [ebp + 8]
push 0x401aa4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x4101cc], eax
je 0x401a61
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x401a4a
push dword [0x4101cc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x401a65
mov eax, dword [0x4101cc]
test eax, eax
je 0x401a61
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x4101cc], 0
xor al, al
pop ebp
ret
mov al, 1
pop ebp
ret

Function at 0x403010
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
lea edi, [ebp - 0x40]
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
jmp 0x403033
mov eax, dword [ebp + 0xc]
sub eax, 1
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jbe 0x403067
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 0x10]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 0x10]
shr ecx, 8
mov edx, dword [eax*4 + 0x40d23c]
xor edx, ecx
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
jmp 0x40302a
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 8
push ebx
push esi
push str.LCDTestMutex
push 1
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401030
cmp esi, ebx
je 0x401030
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
call edi
push 1
mov esi, eax
call edi
mov ecx, dword [esp + 0x18]
mov edi, eax
lea eax, [esp + 0xc]
push eax
push ecx
push ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [0x406344], ebx
mov dword [0x406348], ebx
mov dword [0x40634c], esi
mov dword [0x406350], edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push edi
push esi
push ebx
push ebx
push 0x42000000
push 0x406030
push str.MDICLIENT
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp eax, ebx
mov dword [0x406358], eax
jne 0x4010a0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov edx, dword [0x406358]
push edx
call dword [sym.imp.USER32.dll_GetDC]
cmp eax, ebx
mov dword [0x406354], eax
je 0x401097
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x406358]
push eax
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x406358]
push 0x40
push edi
push esi
push ebx
push ebx
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [0x4061c0]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [0x406354]
mov esi, eax
push esi
push 0x406344
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov edx, dword [0x406358]
mov edi, dword [sym.imp.USER32.dll_UpdateWindow]
push edx
call edi
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x406358]
push eax
call edi
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret