joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42211b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42215a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42215a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42215a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42215a
cmp dword [ecx + 0x74], 0xe
jbe 0x42215a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4347a0
Capabilities:
Parse pe header

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

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 0x10001120
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10020bc2
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x1002d040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xac], esi
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0xc4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x98
mov edi, eax
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.10009de0
add esp, 8
lea ecx, [ebp - 0xa8]
call fcn.10001e30
mov dword [ebp - 4], 0
xor eax, eax
movaps xmm0, xmmword [0x10029cd0]
movups xmmword [ebp - 0xc0], xmm0
mov dword [ebp - 0xb0], 0x3a4115
nop
mov cl, byte [ebp - 0xc0]
xor byte [ebp + eax - 0xbf], cl
inc eax
cmp eax, 0x12
jb 0x100011b0
lea edx, [ebp - 0xbf]
mov byte [ebp - 0xad], 0
lea ecx, [ebp - 0xa8]
call fcn.10003ba0
mov edx, eax
push edi
mov eax, dword [edx]
mov eax, dword [eax + 4]
or dword [eax + edx + 0x14], 4
mov eax, dword [edx]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edx + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + edx + 0x14], eax
mov ecx, edx
call fcn.10002120
mov ecx, eax
mov byte [ebp - 0xaa], 0
mov dl, 0x3d
mov byte [ebp - 0xaa], 0
mov al, 0x60
mov byte [ebp - 0xac], dl
xor al, dl
lea edx, [ebp - 0xab]
mov byte [ebp - 0xab], al
call fcn.10003ba0
mov byte [ebp - 4], 1
xorps xmm0, xmm0
mov edx, dword [ebp - 0x68]
mov eax, edx
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
and al, 0x22
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 0xc4], 4
movq qword [ebp - 0xb8], xmm0
mov dword [ebp - 0xb0], 0
cmp al, 2
je 0x100012a2
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax]
test ecx, ecx
je 0x100012a2
mov eax, dword [ebp - 0x94]
cmp ecx, dword [ebp - 0x6c]
cmovb ecx, dword [ebp - 0x6c]
mov edx, dword [eax]
sub ecx, edx
jmp 0x100012d0
test dl, 4
jne 0x100012c4
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax]
test ecx, ecx
je 0x100012c4
mov eax, dword [ebp - 0x98]
mov edx, dword [eax]
sub ecx, edx
mov eax, dword [ebp - 0x78]
add ecx, dword [eax]
jmp 0x100012d0
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ebp - 0xb8]
test edx, edx
je 0x100012dd
push ecx
push edx
mov ecx, esi
call fcn.10005c60
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xa8], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xac], eax
lea ecx, [ebp - 0xa4]
call fcn.10001aa0
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xa8], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xa8]
mov edx, dword [eax + 4]
lea ecx, [edx - 8]
mov dword [ebp + edx - 0xac], ecx
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x58], vtable.std::ios_base.0
call fcn.10006486
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100080b4
mov esp, ebp
pop ebp
ret
Function at 0x1000cf17
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000cf56
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000cf56
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000cf56
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000cf56
cmp dword [ecx + 0x74], 0xe
jbe 0x1000cf56
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x100121bb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100258d8
push 0x100258d0
push str.FlsAlloc
push 0x1f
call fcn.10012083
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100121ef
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002212c]
call esi
jmp 0x100121f5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10012239
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100258e8
push 0x100258e0
push str.FlsGetValue
push 0x21
call fcn.10012083
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10012270
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002212c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10012278
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100258f0
push 0x100258e8
push str.FlsSetValue
push 0x22
call fcn.10012083
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100122b2
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002212c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001867e
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 0x1001871b
push ebx
push esi
call fcn.10018647
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.10017468
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100186c8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001871a
push edi
push eax
call fcn.10014805
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100186e8
call fcn.10011da4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10018719
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10017468
add esp, 0x20
test eax, eax
jne 0x10018707
push edi
call fcn.10011da4
jmp 0x1001870f
push ebx
call fcn.10011da4
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 0x1001bcbb
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10012e54
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 0x1001bd2a
cmp esi, dword [ebp - 4]
je 0x1001bd25
cmp dword [ebp + 0xc], 0
je 0x1001bd25
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1001bd02
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1001b80d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1001bd2c
xor eax, eax
inc eax
jmp 0x1001bd2c
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1001bd91
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1002d040]
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.10012e54
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.10012e54
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 0x1001be08
cmp word [ecx], dx
je 0x1001be08
mov eax, dword [0x10028664]
push edi
dec eax
push eax
push 0x10028550
call fcn.1001bd30
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1001be7b
cmp word [eax], dx
je 0x1001be7b
mov eax, dword [edi]
test eax, eax
je 0x1001be2c
cmp word [eax], dx
je 0x1001be2c
lea eax, [ebp - 0x10]
push eax
call fcn.1001b713
jmp 0x1001be35
lea eax, [ebp - 0x10]
push eax
call fcn.1001b7ae
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1001bea5
mov eax, dword [0x1002854c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10028240
call fcn.1001bd30
add esp, 0xc
test al, al
je 0x1001bea5
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1001be70
cmp word [eax], di
je 0x1001be70
lea eax, [ebp - 0x10]
push eax
call fcn.1001b713
pop ecx
jmp 0x1001bea7
lea eax, [ebp - 0x10]
push eax
call fcn.1001b7ae
jmp 0x1001be6d
mov eax, dword [edi]
test eax, eax
je 0x1001be92
cmp word [eax], dx
je 0x1001be92
lea eax, [ebp - 0x10]
push eax
call fcn.1001b6c8
pop ecx
jmp 0x1001bea5
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 0x1001bf70
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1001bbb5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1001bf70
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1001bf70
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1001bf70
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1001befd
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100123b8
test ebx, ebx
je 0x1001bf6b
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100123b8
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001bf70
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 0x1001bf70
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1001ea67
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1001bf72
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100080b4
leave
ret
Function at 0x100206b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100206dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100206dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x98a68c
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 0x98a6b3
call fcn.0092cbf8
mov dword [eax], esi
call fcn.0092cbe5
push 0x16
pop esi
mov dword [eax], esi
call fcn.0092d83a
mov eax, esi
jmp 0x98a708
test dword [ebp + 0xc], 0xfffffff9
jne 0x98a699
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x98a6e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0092cc0b
pop ecx
call fcn.0092cbe5
mov eax, dword [eax]
jmp 0x98a708
test al, 0x10
jne 0x98a706
test al, 1
je 0x98a706
test byte [ebp + 0xc], 2
je 0x98a706
call fcn.0092cbf8
mov dword [eax], 5
call fcn.0092cbe5
mov dword [eax], 0xd
jmp 0x98a6d7
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0x6f3973eb
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x63f8650f
nop
nop
nop
test eax, eax
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x5807f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x123000]
push edi
jmp 0x58080a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x580811
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x580800
mov eax, 1
add ebx, ebx
jne 0x580823
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x580834
jne 0x580853
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x580853
dec eax
add ebx, ebx
jne 0x580840
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x580818
add ebx, ebx
jne 0x58084f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5808a5
xor ecx, ecx
sub eax, 3
jb 0x58086b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5808da
sar eax, 1
mov ebp, eax
jmp 0x580876
add ebx, ebx
jne 0x580876
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x580844
inc ecx
add ebx, ebx
jne 0x580884
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x580844
add ebx, ebx
jne 0x580891
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x580886
jne 0x5808a2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x580886
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5808c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5808b6
jmp 0x580806
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5808c4
add edi, ecx
jmp 0x580806
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5808e2
cmp byte [edi], 0x11
jne 0x5808e2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5808e7
lea edi, [esi + 0x179000]
mov eax, dword [edi]
or eax, eax
je 0x58095f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x21b79c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x21b918]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x580914
mov ecx, edi
jns 0x580943
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x21b91c]
or eax, eax
je 0x580959
mov dword [ebx], eax
add ebx, 4
jmp 0x580931
call dword [esi + 0x21b92c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x580990
cmp al, 0xef
ja 0x580983
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x580965
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x580972
mov ebp, dword [esi + 0x21b920]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5809c4
sub esp, 0xffffff80
jmp 0x420577
Function at 0x40141e
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x214
lea eax, [esp]
push ebp
push esi
mov esi, dword [esp + 0x228]
push edi
mov edi, dword [esp + 0x22c]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or eax, 9
push eax
push dword [esp + 0x230]
push dword [esp + 0x230]
call fcn.004062b6
test eax, eax
jne 0x401527
xor ebp, ebp
test byte [esp + 0x22c], 2
je 0x401493
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebp
push eax
lea eax, [esp + 0x28]
push eax
push ebp
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x401503
push 0x105
lea eax, [esp + 0x18]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x4014ce
test edi, edi
jne 0x401503
push dword [esp + 0x22c]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call fcn.0040141e
test eax, eax
jne 0x4014d8
push 0x105
lea eax, [esp + 0x18]
push eax
push edi
push dword [esp + 0x18]
call ebp
test eax, eax
je 0x4014a6
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004068c4
test eax, eax
jne 0x401514
push dword [esp + 0x228]
push dword [esp + 0x228]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x401527
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x401527
push 0
push esi
push dword [esp + 0x230]
push dword [esp + 0x230]
call eax
pop edi
pop esi
pop ebp
add esp, 0x214
ret 0xc
Function at 0x403148
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x9c
mov ecx, dword [esp + 0xa0]
mov eax, 0x797200
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xb8]
mov ebx, 0x8000
test edi, edi
cmovne ebx, dword [esp + 0xbc]
xor esi, esi
test edi, edi
cmovne eax, edi
mov dword [esp + 0x1c], eax
test ecx, ecx
js 0x403190
mov eax, dword [0x7a8598]
add eax, ecx
push eax
call fcn.00403131
push 4
lea eax, [esp + 0x14]
push eax
push dword [0x40a010]
call fcn.00406926
test eax, eax
je 0x403357
mov eax, dword [esp + 0x10]
test eax, eax
jns 0x4032f9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [0x40c960], esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
and eax, 0x7fffffff
mov byte [0x40c948], 0xb
mov ecx, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ecx
jbe 0x4032f1
mov ebp, 0x4000
cmp ecx, ebp
cmovl ebp, ecx
push ebp
push 0x793200
call fcn.0040311b
test eax, eax
je 0x403357
sub dword [esp + 0x10], ebp
mov dword [0x40c93c], ebp
mov ebp, dword [esp + 0x1c]
mov dword [0x40c938], 0x793200
push 0x40c938
mov dword [0x40c940], ebp
mov dword [0x40c944], ebx
call fcn.00406e86
mov dword [esp + 0x28], eax
test eax, eax
js 0x4032f5
mov eax, dword [0x40c940]
sub eax, ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x7a8634], 1
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], eax
je 0x4032aa
sub eax, dword [esp + 0x14]
cmp eax, 0xc8
ja 0x40326e
test ecx, ecx
jne 0x4032aa
mov eax, dword [esp + 0x20]
push eax
push 0x64
sub eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [esp + 0x30]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
push 0
call fcn.00405d18
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4032e9
test edi, edi
jne 0x4032ce
push eax
push ebp
push dword [esp + 0xbc]
call fcn.004069e9
test eax, eax
je 0x40333c
mov eax, dword [esp + 0x18]
jmp 0x4032da
mov ebp, dword [0x40c940]
sub ebx, eax
mov dword [esp + 0x1c], ebp
add esi, eax
cmp dword [esp + 0x28], 4
jne 0x40321b
jmp 0x4032f1
test ecx, ecx
jg 0x4031e6
mov eax, esi
jmp 0x40335a
push 0xfffffffffffffffc
jmp 0x403359
test edi, edi
jne 0x403340
test eax, eax
jle 0x4032f1
mov ebp, 0x793200
cmp eax, ebx
mov edi, ebx
cmovl edi, eax
push edi
push ebp
call fcn.0040311b
test eax, eax
je 0x403357
push edi
push ebp
push dword [esp + 0xbc]
call fcn.004069e9
test eax, eax
je 0x40333c
mov eax, dword [esp + 0x10]
add esi, edi
sub eax, edi
mov dword [esp + 0x10], eax
test eax, eax
jg 0x403306
jmp 0x4032f1
push 0xfffffffffffffffe
jmp 0x403359
mov esi, dword [esp + 0xbc]
cmp eax, esi
cmovl esi, eax
push esi
push edi
call fcn.0040311b
test eax, eax
jne 0x4032f1
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret 0x10
Function at 0x403367
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 4], 0
je 0x403386
mov eax, dword [0x40c930]
test eax, eax
je 0x40337e
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x40c930], 0
ret
cmp dword [0x40c930], 0
je 0x403397
push 0
call fcn.004061ed
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x7a8540]
jbe 0x4033ca
push 0
push 0x40362d
push 0
push 0x6f
push dword [0x7a7534]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x40c930], eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x405dfc
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405e16
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4

Function at 0x405e1c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push 4
pop eax
mov word [ebp - 0x1e], ax
mov eax, 0x408760
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov word [ebp - 0x20], 1
mov dword [ebp - 0x10], 0x408750
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405e8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405e94
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
je 0x405e8e
xor eax, eax
jmp 0x405e94
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret 4