joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10079370
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x100f0d14], 0
je 0x10079386
xor eax, eax
jmp 0x10079598
cmp dword [0x100f0d10], 0
je 0x10079399
mov eax, dword [0x100f0d10]
jmp 0x10079598
push 0x24
push 0
push 0x100f0cec
call fcn.1007e1f0
add esp, 0xc
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [0x100f0cec], eax
push 0
push 0
push str.dbghelp.dll
call sub.KERNEL32.dll_LoadLibraryExW
mov dword [0x100f0cf0], eax
cmp dword [0x100f0cf0], 0
jne 0x1007943b
mov dword [0x100f0d14], 1
cmp dword [0x100f0cf0], 0
je 0x100793ee
mov eax, dword [0x100f0cf0]
push eax
call sub.KERNEL32.dll_FreeLibrary
mov dword [0x100f0cf4], 0
mov dword [0x100f0cf8], 0
mov dword [0x100f0cfc], 0
mov dword [0x100f0d00], 0
mov dword [0x100f0d04], 0
mov dword [0x100f0d08], 0
mov dword [0x100f0d0c], 0
xor eax, eax
jmp 0x10079598
push str.ImagehlpApiVersionEx
mov ecx, dword [0x100f0cf0]
push ecx
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x100f0cf4], eax
push str.SymInitialize
mov edx, dword [0x100f0cf0]
push edx
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x100f0cf8], eax
push str.SymSetOptions
mov eax, dword [0x100f0cf0]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x100f0cfc], eax
push str.SymGetOptions
mov ecx, dword [0x100f0cf0]
push ecx
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x100f0d00], eax
push str.SymLoadModule64
mov edx, dword [0x100f0cf0]
push edx
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x100f0d04], eax
push str.SymGetModuleInfo64
mov eax, dword [0x100f0cf0]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x100f0d08], eax
push str.SymFromName
mov ecx, dword [0x100f0cf0]
push ecx
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x100f0d0c], eax
push 8
push 0
lea edx, [ebp - 0xc]
push edx
call fcn.1007e1f0
add esp, 0xc
mov eax, 0xc
mov word [ebp - 0xc], ax
cmp dword [0x100f0cf4], 0
je 0x10079519
cmp dword [0x100f0cf8], 0
je 0x10079519
cmp dword [0x100f0d04], 0
je 0x10079519
cmp dword [0x100f0d08], 0
je 0x10079519
cmp dword [0x100f0d0c], 0
jne 0x1007951e
jmp 0x100793d0
lea ecx, [ebp - 0xc]
push ecx
call dword [0x100f0cf4]
movzx edx, word [ebp - 0xc]
cmp edx, 0xc
jge 0x10079536
jmp 0x100793d0
push 0
push 0
mov eax, dword [0x100f0cec]
push eax
call dword [0x100f0cf8]
test eax, eax
jne 0x1007954f
jmp 0x100793d0
cmp dword [0x100f0d00], 0
je 0x10079589
cmp dword [0x100f0cfc], 0
je 0x10079589
call dword [0x100f0d00]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
and ecx, 0xfffffff8
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
or edx, 0x2704
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
call dword [0x100f0cfc]
mov dword [0x100f0d10], 0x100f0cec
mov eax, dword [0x100f0d10]
mov esp, ebp
pop ebp
ret
Function at 0x1007ba82
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x1007baa9
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x1007baac
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.1007ba5e
pop esi
leave
ret 8

Function at 0x1009065f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100d6ac0
push 0x100d6ab8
push str.FlsAlloc
push 0x1e
call fcn.100904cc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10090693
push dword [ebp + 8]
mov ecx, esi
call dword [0x100a6200]
call esi
jmp 0x10090699
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100906dd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100d6ad0
push 0x100d6ac8
push str.FlsGetValue
push 0x20
call fcn.100904cc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10090714
push dword [ebp + 8]
mov ecx, esi
call dword [0x100a6200]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10091dbe
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10091c2f

Function at 0x100921b8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1007c9d0
mov eax, dword [0x100edd00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10090c92
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100921fa
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10092356
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1007c920
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100f16d8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.10093388
mov ecx, dword [esi*4 + 0x100f16d8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x1009234f
cmp eax, dword [edi + ecx + 0x24]
jne 0x1009234f
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1009234f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10093388
add esp, 0x14
test edx, edx
jl 0x1009234f
jg 0x100922c5
test eax, eax
jb 0x1009234f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1009234f
jl 0x100922df
cmp dword [ebp - 0x1008], eax
ja 0x1009234f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100922fd
test ebx, ebx
je 0x10092336
cmp ecx, edi
jae 0x10092336
mov al, byte [ecx]
cmp al, 0xd
jne 0x10092317
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10092323
cmp byte [ecx + 1], 0xa
jne 0x10092323
inc ecx
jmp 0x10092323
movzx eax, al
movsx eax, byte [eax + 0x100edf98]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100922fd
cmp edx, ebx
jne 0x100922fd
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10092354
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1007cea5
leave
ret
Function at 0x10092826
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x100f16d8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10092866
cmp byte [ebx], 0xa
jne 0x10092866
or byte [eax + edi + 0x28], 4
jmp 0x1009286b
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10092969
mov al, byte [edx]
cmp al, 0x1a
je 0x1009294b
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1009289a
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x100928bf
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x100928c9
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x1009287c
jmp 0x10092969
push 0
lea eax, [ebp - 0xc]
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 0x10092946
cmp dword [ebp - 0xc], 0
je 0x10092946
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x100f16d8]
test byte [eax + edi + 0x28], 0x48
je 0x10092920
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1009290b
mov byte [esi], dl
jmp 0x1009291c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100f16d8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10092969
cmp byte [ebp - 1], 0xa
jne 0x1009292f
cmp esi, ebx
jne 0x1009292f
mov byte [esi], 0xa
jmp 0x10092968
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100933a6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10092969
mov byte [esi], 0xd
jmp 0x10092968
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x100f16d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10092965
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10092969
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10092972
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x100f16d8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100929b5
cmp word [esi], dx
jne 0x100929b5
or byte [edi + eax + 0x28], 4
jmp 0x100929ba
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x10092b0d
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x10092aed
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x100929fc
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10092a32
cmp eax, edx
jae 0x10092a3e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x100929d4
jmp 0x10092b0d
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10092ae9
cmp dword [ebp - 0x14], 0
je 0x10092ae9
mov eax, dword [ebx*4 + 0x100f16d8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10092ac1
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x10092a8a
mov word [esi], cx
jmp 0x10092abd
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x100f16d8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x100f16d8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x100f16d8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x10092b0d
pop ebx
cmp word [ebp - 4], bx
jne 0x10092ad2
cmp esi, dword [ebp + 0xc]
jne 0x10092ad2
mov word [esi], bx
jmp 0x10092b0a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100933a6
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10092b0d
push 0xd
jmp 0x10092b06
mov ecx, dword [ebx*4 + 0x100f16d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10092b04
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10092b0d
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10097760
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 0x100977fd
push ebx
push esi
call fcn.10097729
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.100964f1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100977aa
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100977fc
push edi
push eax
call fcn.10093585
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100977ca
call fcn.10090135
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100977fb
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100964f1
add esp, 0x20
test eax, eax
jne 0x100977e9
push edi
call fcn.10090135
jmp 0x100977f1
push ebx
call fcn.10090135
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 0x10097800
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10097811
pop esi
ret
push ebx
push edi
push esi
call fcn.10097729
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10093585
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10097839
push ebx
push esi
push edi
call fcn.1007dc70
add esp, 0xc
push 0
call fcn.10090135
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10097f85
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10097aac
Function at 0x1009f20d
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1009f189
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1009f385
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1009f385
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1009f334
jg 0x1009f266
test eax, eax
je 0x1009f32a
push 1
push 0x1000
call fcn.100900d8
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1009f28c
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x1009f321
push 0x8000
push ebx
call fcn.1009f0ba
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1009f2b8
jg 0x1009f2b3
cmp ecx, 0x1000
jb 0x1009f2b8
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10091a2f
add esp, 0x10
cmp eax, 0xffffffff
je 0x1009f2fd
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1009f2b3
jl 0x1009f2e4
test ecx, ecx
jne 0x1009f2a5
push dword [ebp - 0xc]
push ebx
call fcn.1009f0ba
push esi
call fcn.10090135
add esp, 0xc
xor edi, edi
jmp 0x1009f396
cmp byte [edi + 0x24], 0
je 0x1009f314
cmp dword [edi + 0x20], 5
jne 0x1009f314
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1009f31f
mov edi, dword [edi + 0x18]
jmp 0x1009f321
xor edi, edi
push esi
call fcn.10090135
pop ecx
jmp 0x1009f396
test ecx, ecx
jg 0x1009f2f6
jl 0x1009f334
test eax, eax
jae 0x1009f2f6
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100933a6
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1009f357
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1009f2f6
jmp 0x1009f38e
push ebx
call fcn.1009af9c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1009f2f6
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x1009f396
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1009f393
mov edi, dword [edi + 0x18]
jmp 0x1009f396
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100933a6
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100a0870
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100a089d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100a089d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x419800
Capabilities:
Get disk information

Disassembly:
push 0
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
push 0x4d3064
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, dword [0x4d6adc]
add ecx, eax
mov dword [0x4d6adc], ecx
mov eax, ecx
ret

Function at 0x4319f2
Capabilities:
Encode data using xor

Disassembly:
and byte [ecx + 0x58b10b01], bh
salc
lds edx, [edx]
adc bh, byte [eax + 0x55f7efd3]

Function at 0x4c8da5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4d3390
cmp edx, dword [eax]
je 0x4c8dc7
add eax, 8
inc ecx
cmp eax, 0x4d3420
jl 0x4c8db8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4d3390]
jne 0x4c8ef5
mov eax, dword [0x4d8dc0]
cmp eax, 1
je 0x4c8ecf
test eax, eax
jne 0x4c8df8
cmp dword [0x4d32bc], 1
je 0x4c8ecf
cmp edx, 0xfc
je 0x4c8ef5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c8e2f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004c9790
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c9c20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c8e72
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c9c20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cede4
push edi
call fcn.004cbaf0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004c9790
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c97a0
lea eax, [ebp - 0xa0]
push 0x4cedc4
push eax
call fcn.004c97a0
push dword [esi + 0x4d3394]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c97a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004cba64
add esp, 0x2c
pop edi
jmp 0x4c8ef5
lea eax, [ebp + 8]
lea esi, [esi + 0x4d3394]
push 0
push eax
push dword [esi]
call fcn.004c9c20
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
pushal
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x994cdc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x994d03
call fcn.00937288
mov dword [eax], esi
call fcn.00937275
push 0x16
pop esi
mov dword [eax], esi
call fcn.00937eca
mov eax, esi
jmp 0x994d58
test dword [ebp + 0xc], 0xfffffff9
jne 0x994ce9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x994d30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0093729b
pop ecx
call fcn.00937275
mov eax, dword [eax]
jmp 0x994d58
test al, 0x10
jne 0x994d56
test al, 1
je 0x994d56
test byte [ebp + 0xc], 2
je 0x994d56
call fcn.00937288
mov dword [eax], 5
call fcn.00937275
mov dword [eax], 0xd
jmp 0x994d27
xor eax, eax
pop esi
pop ebp
ret

Function at 0x503b67
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], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
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], 0x504088
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 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401b82
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebx
mov ebx, ecx
xor ecx, ecx
sub esp, 0x48
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], 0x20106
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 4], str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
sub esp, 0x24
test eax, eax
jne 0x401c18
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x401c18
mov eax, dword [ebx + 4]
inc eax
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
mov dword [esp], edx
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], str.WindowsUpdate
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub esp, 0x18
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
add esp, 0x48
pop ebx
ret

Function at 0x401c4e
Capabilities:
Create service
Persist via windows service

Disassembly:
push esi
mov esi, ecx
push ebx
xor ebx, ebx
sub esp, 0x44
mov dword [esp + 8], 2
mov dword [esp + 4], ebx
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
sub esp, 0xc
test eax, eax
je 0x401ce3
xor edx, edx
mov ebx, eax
xor eax, eax
mov dword [esp + 0x28], str.RpcSs
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 0x110
mov dword [esp + 0xc], 0xf01ff
mov dword [esp + 8], str.Windows_System_Update
mov dword [esp + 4], str.WindowsUpdate
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ecx, esi
sub esp, 0x34
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00401c1e
push ecx
push ecx
add esp, 0x44
pop ebx
pop esi
ret