joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100cd01
Capabilities:
Create process on windows
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x390
mov eax, dword [0x101203c]
push esi
push 1
push 0x1005d9c
mov dword [ebp - 4], eax
call fcn.0100cbd8
lea eax, [ebp - 0x338]
push eax
push 1
xor esi, esi
push esi
push 0x1001f78
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100ce74
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x334]
push eax
push esi
push 0x100210c
push dword [ebp - 0x338]
mov dword [ebp - 0x33c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100ce68
cmp dword [ebp - 0x334], 2
push edi
jne 0x100cdb4
push 0x41
pop ecx
lea edi, [ebp - 0x108]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x108]
jmp 0x100cdba
lea eax, [ebp - 0x20c]
cmp dword [ebp + 8], esi
mov ecx, 0x10056b4
jne 0x100cdc9
mov ecx, 0x10056a4
push dword [0x1005d60]
push eax
push ecx
lea eax, [ebp - 0x330]
push 0x124
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x390]
rep stosd dword es:[edi], eax
push esi
lea eax, [ebp - 0x330]
push eax
mov dword [ebp - 0x390], 0x44
call fcn.0100cbd8
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x390]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x330]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x100ce68
push 0xffffffffffffffff
push dword [ebp - 0x34c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x334]
push eax
push dword [ebp - 0x34c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x348]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x34c]
call esi
push dword [ebp - 0x338]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0100d058
leave
ret 4
Function at 0x100ce86
Capabilities:
Get common file path
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x101203c]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, eax
lea ebx, [ebp + esi - 0x108]
push ebx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x5c
je 0x100cecf
mov byte [ebx], 0x5c
inc esi
sub edi, esi
push edi
push 0x100577c
lea eax, [ebp + esi - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor esi, esi
push esi
push 0x8000080
push 4
push esi
push esi
push 0xc0000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x1016ca8], eax
je 0x100cfa6
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x100cf20
xor eax, eax
cmp eax, 0x19000
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jb 0x100cf44
push esi
push esi
push esi
push dword [0x1016ca8]
call edi
push dword [0x1016ca8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 2
push esi
push esi
push dword [0x1016ca8]
call edi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x10e]
push eax
movzx eax, word [ebp - 0x110]
push eax
movzx eax, word [ebp - 0x118]
push eax
movzx eax, word [ebp - 0x112]
push eax
movzx eax, word [ebp - 0x116]
push eax
push 0x1005db0
push 0x100
mov esi, 0x10164c8
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x20
push 1
push esi
call fcn.0100cbd8
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100d058
leave
ret
Function at 0x100d19f
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x1005e10
call fcn.0100e060
mov edi, 0x94
mov eax, edi
call fcn.0100d410
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x1016ddc], ecx
mov eax, dword [esi + 4]
mov dword [0x1016de8], eax
mov edx, dword [esi + 8]
mov dword [0x1016dec], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x1016de0], esi
cmp ecx, 2
je 0x100d1ff
or esi, 0x8000
mov dword [0x1016de0], esi
shl eax, 8
add eax, edx
mov dword [0x1016de4], eax
cmp word [0x1000000], 0x5a4d
jne 0x100d23b
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x100d23b
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x100d254
cmp ecx, 0x20b
je 0x100d241
and dword [ebp - 0x1c], 0
jmp 0x100d268
cmp dword [eax + 0x84], 0xe
jbe 0x100d23b
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x100d262
cmp dword [eax + 0x74], 0xe
jbe 0x100d23b
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 0
call fcn.0100e004
pop ecx
test eax, eax
jne 0x100d295
cmp dword [0x1016dcc], 1
jne 0x100d282
call fcn.0100d7e0
push 0x1c
call fcn.0100d5f3
push 0xff
call fcn.0100d452
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.0100de34
test eax, eax
jge 0x100d2aa
push 0x1b
call fcn.0100d170
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10173f4], eax
call fcn.0100dd07
mov dword [0x1016dc4], eax
call fcn.0100dc5e
test eax, eax
jge 0x100d2d0
push 8
call fcn.0100d170
pop ecx
call fcn.0100da04
test eax, eax
jge 0x100d2e1
push 9
call fcn.0100d170
pop ecx
call fcn.0100d4ac
mov dword [ebp - 0x28], eax
test eax, eax
je 0x100d2f4
push eax
call fcn.0100d170
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0100d996
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x100d316
movzx eax, word [ebp - 0x40]
jmp 0x100d319
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.01007a18
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x100d33a
push esi
call fcn.0100d58c
call fcn.0100d5c4
jmp 0x100d36c
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x7c]
call fcn.0100e09b
ret
Function at 0x100d5f3
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x101203c]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1012050]
je 0x100d61d
inc eax
cmp eax, 0x12
jb 0x100d60e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1012050]
mov dword [ebp - 0x110], esi
jne 0x100d7c8
mov eax, dword [0x1016dcc]
cmp eax, 1
je 0x100d796
test eax, eax
jne 0x100d653
cmp dword [0x1012044], 1
je 0x100d796
cmp ecx, 0xfc
je 0x100d7c8
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100d68e
push 5
pop ecx
mov esi, 0x1006184
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebx, [ebp - 0x10c]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100d699
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x100d6d1
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100d6b1
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x1006180
push ebx
call fcn.0100e3a0
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100d6d6
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x1012054]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100d6f0
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.0100d410
mov edx, esp
push 6
pop ecx
mov esi, 0x1006164
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100d71c
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100d728
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100d741
mov eax, dword [ebp - 0x110]
mov esi, 0x1006160
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x1012054]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100d75f
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100d76b
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1006138
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0100e291
add esp, 0xc
jmp 0x100d7c8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x100d7c8
mov esi, dword [esi + 0x1012054]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x100d7ad
push 0
sub ecx, edx
lea edx, [ebp - 0x114]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x120]
mov ecx, dword [ebp - 4]
call fcn.0100d058
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100dd07
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1016f30]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x100dd53
call esi
mov edi, eax
cmp edi, ebx
je 0x100dd39
mov dword [0x1016f30], 1
jmp 0x100dd58
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100dd4e
push 2
pop eax
mov dword [0x1016f30], eax
jmp 0x100dd53
mov eax, dword [0x1016f30]
cmp eax, 1
jne 0x100ddd0
cmp edi, ebx
jne 0x100dd64
call esi
mov edi, eax
cmp edi, ebx
je 0x100ddd9
cmp word [edi], bx
mov eax, edi
je 0x100dd79
inc eax
inc eax
cmp word [eax], bx
jne 0x100dd6b
inc eax
inc eax
cmp word [eax], bx
jne 0x100dd6b
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x100ddc7
push eax
call fcn.0100e9cc
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x100ddc7
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x100ddc4
push dword [ebp - 4]
call fcn.0100e907
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x100de28
cmp eax, 2
je 0x100dddd
cmp eax, ebx
je 0x100dddd
xor eax, eax
jmp 0x100de2a
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x100ddd9
cmp byte [esi], bl
je 0x100ddfa
inc eax
cmp byte [eax], bl
jne 0x100ddf0
inc eax
cmp byte [eax], bl
jne 0x100ddf0
sub eax, esi
inc eax
mov edi, eax
push edi
call fcn.0100e9cc
cmp eax, ebx
pop ecx
je 0x100de21
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100e291
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1016f34], ebx
push esi
push edi
jne 0x100e313
push 0x1006200
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100e34e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10061f4
push edi
call esi
test eax, eax
mov dword [0x1016f34], eax
je 0x100e34e
push 0x10061e4
push edi
call esi
push 0x10061d0
push edi
mov dword [0x1016f38], eax
call esi
cmp dword [0x1016ddc], 2
mov dword [0x1016f3c], eax
jne 0x100e313
push 0x10061b4
push edi
call esi
test eax, eax
mov dword [0x1016f44], eax
je 0x100e313
push 0x100619c
push edi
call esi
mov dword [0x1016f40], eax
mov eax, dword [0x1016f40]
test eax, eax
je 0x100e358
call eax
test eax, eax
je 0x100e33f
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1016f44]
test eax, eax
je 0x100e33f
test byte [ebp - 8], 1
jne 0x100e358
cmp dword [0x1016de8], 4
jb 0x100e352
or byte [ebp + 0x12], 0x20
jmp 0x100e377
xor eax, eax
jmp 0x100e387
or byte [ebp + 0x12], 4
jmp 0x100e377
mov eax, dword [0x1016f38]
test eax, eax
je 0x100e377
call eax
mov ebx, eax
test ebx, ebx
je 0x100e377
mov eax, dword [0x1016f3c]
test eax, eax
je 0x100e377
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1016f34]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100f376
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x100f3a7
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x100f3ae
cmp ebx, dword [ebp + 8]
jae 0x100f3ae
xor eax, eax
jmp 0x100f59e
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x100f3bf
xor eax, eax
inc eax
jmp 0x100f59d
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x100f3d5
cmp ecx, edx
jae 0x100f51a
cmp dword [eax + 4], 0
je 0x100f3de
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x100f3c6
cmp dword [ebp + 8], 0
je 0x100f400
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x100f51a
cmp eax, esi
jae 0x100f51a
mov eax, dword [0x1016f50]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x100f425
cmp dword [esi*4 + 0x1016f58], edi
je 0x100f51e
inc esi
cmp esi, eax
jl 0x100f413
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100f59a
cmp dword [ebp - 8], 0x1000000
jne 0x100f59a
test byte [ebp - 0xc], 0xcc
je 0x100f4a3
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x100f59a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100f59a
cmp word [eax + 0x18], 0x10b
jne 0x100f59a
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x100f59a
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x100f4a3
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x100f4a3
test byte [ecx + 0x27], 0x80
jne 0x100f51a
push 1
push 0x1016f98
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x100f3b7
mov ecx, dword [0x1016f50]
test ecx, ecx
mov edx, ecx
jle 0x100f4d7
lea eax, [ecx*4 + 0x1016f54]
cmp dword [eax], edi
je 0x100f4d7
dec edx
sub eax, 4
test edx, edx
jg 0x100f4cb
test edx, edx
jne 0x100f508
push 0xf
pop ebx
cmp ecx, ebx
jg 0x100f4e4
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x100f4fc
lea eax, [edx*4 + 0x1016f58]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x100f4ea
cmp ecx, 0x10
jge 0x100f508
inc ecx
mov dword [0x1016f50], ecx
push 0
push 0x1016f98
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x100f3b7
xor eax, eax
jmp 0x100f59d
test esi, esi
jle 0x100f3b7
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x1016f98
call ebx
test eax, eax
jne 0x100f3b7
cmp dword [esi*4 + 0x1016f58], edi
je 0x100f574
mov eax, dword [0x1016f50]
lea esi, [eax - 1]
test esi, esi
jl 0x100f562
cmp dword [esi*4 + 0x1016f58], edi
je 0x100f55e
dec esi
jns 0x100f552
test esi, esi
jge 0x100f572
cmp eax, 0x10
jge 0x100f56d
inc eax
mov dword [0x1016f50], eax
lea esi, [eax - 1]
jmp 0x100f574
je 0x100f58c
xor ecx, ecx
test esi, esi
jl 0x100f58c
lea eax, [ecx*4 + 0x1016f58]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x100f57a
push 0
push 0x1016f98
call ebx
jmp 0x100f3b7
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10100e3
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.0100d410
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1010149
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1016ddc]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x101014d
xor eax, eax
jmp 0x101015a
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1010436
Capabilities:
Check os version
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x101203c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x21c], eax
xor eax, eax
cmp dword [0x10122b0], eax
push esi
push edi
mov dword [ebp - 0x218], eax
je 0x1010490
push 0x1016fd0
mov dword [0x10122b0], eax
mov dword [0x1016fd0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1010490
mov dword [0x1016fe0], 1
cmp dword [0x1016fe0], 2
jne 0x10105a5
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, 0x104
push esi
lea eax, [ebp - 0x110]
push eax
push 0x1006854
call edi
test eax, eax
je 0x10104d9
push 0x1006844
lea eax, [ebp - 0x110]
push eax
push ebx
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.01010389
test eax, eax
jne 0x1010544
cmp dword [0x1016fd4], 5
jb 0x1010513
push esi
lea eax, [ebp - 0x110]
push eax
push 0x10067f8
call edi
test eax, eax
je 0x1010513
push 0x1006834
lea eax, [ebp - 0x110]
push eax
push ebx
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.01010389
test eax, eax
jne 0x1010544
push esi
lea eax, [ebp - 0x110]
push eax
push 0x1006828
call edi
test eax, eax
je 0x1010579
push 0x1006818
lea eax, [ebp - 0x110]
push eax
push ebx
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.01010389
test eax, eax
je 0x1010579
mov dword [ebp - 0x218], 1
lea ebx, [ebp - 0x214]
push dword [ebp + 0x10]
push ebx
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
pop edi
pop esi
pop ebx
call fcn.0100d058
leave
ret 0xc
push 5
lea eax, [ebp - 0xc]
push eax
push 0x10067ec
call edi
test eax, eax
je 0x10105a5
push 0x1006808
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.01010389
test eax, eax
jne 0x1010544
cmp dword [ebp - 0x21c], ebx
je 0x1010564
jmp 0x1010554
Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x9ee740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x9ee78c
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x9ee752
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9ee7f0
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9ee842
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9ee848
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0xa06d37
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a069f7

Function at 0xa0bb31
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a0b9b0

Function at 0xa110e0
Capabilities:
Parse pe header

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

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x6a57285
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x1191017a
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x613370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x61338e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x63c074
push ecx
mov edi, eax
call fcn.00627198
mov esi, eax
add esp, 8
test esi, esi
jne 0x6133cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0062702e
push esi
call fcn.00626fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret