joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48a8e7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4e5180
cmp edx, dword [eax]
je 0x48a909
add eax, 8
inc ecx
cmp eax, 0x4e5210
jl 0x48a8fa
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4e5180]
jne 0x48aa37
mov eax, dword [0x4ec8a0]
cmp eax, 1
je 0x48aa11
test eax, eax
jne 0x48a93a
cmp dword [0x4e4a14], 1
je 0x48aa11
cmp edx, 0xfc
je 0x48aa37
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x48a971
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00483930
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00485f90
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x48a9b4
lea eax, [ebp - 0x1a4]
push eax
call fcn.00485f90
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c11d8
push edi
call fcn.00486420
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00483930
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00483940
lea eax, [ebp - 0xa0]
push 0x4c11b8
push eax
call fcn.00483940
push dword [esi + 0x4e5184]
lea eax, [ebp - 0xa0]
push eax
call fcn.00483940
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0048ea39
add esp, 0x2c
pop edi
jmp 0x48aa37
lea eax, [ebp + 8]
lea esi, [esi + 0x4e5184]
push 0
push eax
push dword [esi]
call fcn.00485f90
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 0x496160
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00484740
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x49622b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x49622b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4961de
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4961e9
or bh, 8
and edi, 0x8000000
je 0x496204
mov eax, dword [0x4ee09c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x49622b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x496600
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x49662b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x49664f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x49666a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x4999e8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x499a0a
cmp dword [edi + 0x3c], 0
jne 0x499a0a
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004a37ad
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00499a37
pop edi
pop esi
pop ebx
ret 8

Function at 0x49b033
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49b06b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049dd33
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049dd0b
jmp 0x49b077
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49c7db
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49c81d
call fcn.004a37ad
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49c81d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49c814
xor eax, eax
jmp 0x49c825
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049c82b
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a4edb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x4a4f8b
mov ecx, 0x4ec870
call fcn.004a49db
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, eax
cmp word [esi + 8], 0
jne 0x4a4f69
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x4a4f47
mov ecx, dword [ebp + 0x10]
push 5
neg ecx
sbb ecx, ecx
and ecx, 0xe
add ecx, 0x3ee
movzx ecx, cx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4a4f47
push ebx
push edi
push eax
call fcn.0049f6df
add esp, 0xc
mov eax, dword [edi]
mov eax, dword [eax - 8]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 4], eax
push dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ax, word [ebx]
mov word [esi + 8], ax
push dword [esi + 4]
mov ecx, edi
call fcn.0049da15
mov si, word [esi + 8]
xor eax, eax
mov word [ebx], si
cmp si, 0xffff
pop edi
pop esi
setne al
pop ebx
pop ebp
ret 0xc
Function at 0x86f150
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x760015
lea edi, [esi - 0x35f015]
mov dword [edi + 0x4615f0], 0x44e737d4
push edi
or ebp, 0xffffffff
jmp 0x86f17a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x86f181
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x86f170
mov eax, 1
add ebx, ebx
jne 0x86f193
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x86f1a4
jne 0x86f1c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x86f1c3
dec eax
add ebx, ebx
jne 0x86f1b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x86f188
add ebx, ebx
jne 0x86f1bf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x86f215
xor ecx, ecx
sub eax, 3
jb 0x86f1db
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x86f24a
sar eax, 1
mov ebp, eax
jmp 0x86f1e6
add ebx, ebx
jne 0x86f1e6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x86f1b4
inc ecx
add ebx, ebx
jne 0x86f1f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x86f1b4
add ebx, ebx
jne 0x86f201
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x86f1f6
jne 0x86f212
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x86f1f6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x86f234
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x86f226
jmp 0x86f176
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x86f234
add edi, ecx
jmp 0x86f176
pop esi
mov edi, esi
mov ecx, 0xb711
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x86f252
cmp byte [edi], 0x1c
jne 0x86f252
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 0x86f257
lea edi, [esi + 0x46c000]
mov eax, dword [edi]
or eax, eax
je 0x86f2c6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x46fb1c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x46fbe4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x86f284
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x46fbe8]
or eax, eax
je 0x86f2c0
mov dword [ebx], eax
add ebx, 4
jmp 0x86f2a1
call dword [esi + 0x46fbf8]
mov ebp, dword [esi + 0x46fbec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x46f321]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x86f312
sub esp, 0xffffff80
jmp 0x401500
Function at 0x10001c10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
push 0x40
push 0x3000
push dword [ebp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.KERNEL32.dll_VirtualAllocExNuma
push dword [ebp + 0xc]
mov ecx, dword [0x1001707c]
mov edi, eax
push dword [ebp + 8]
xor eax, eax
test edi, edi
push edi
cmovne ecx, eax
mov dword [0x1001707c], ecx
call fcn.10003360
add esp, 0xc
mov eax, edi
pop edi
pop ebp
ret

Function at 0x10002370
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 0
push esi
mov esi, dword [ebp + 0x10]
mov al, byte [esi]
mov cl, byte [esi + 1]
jle 0x10002426
push ebx
movzx ebx, cl
xor esi, esi
push edi
movzx eax, al
mov ecx, 0x1c
inc eax
cdq
idiv ecx
mov ecx, dword [0x100183f0]
mov al, dl
mov byte [ebp - 1], al
movzx eax, al
mov dword [ebp - 8], eax
lea edi, [eax + ecx]
movzx eax, byte [edi]
add eax, ebx
mov ebx, 0x1c
cdq
idiv ebx
mov al, dl
mov byte [ebp - 2], al
movzx eax, al
mov dword [ebp - 0xc], eax
add eax, ecx
push eax
push edi
call fcn.10002430
mov edi, dword [0x100183f0]
mov ebx, esi
mov eax, dword [ebp - 0xc]
inc esi
mov ecx, dword [ebp - 8]
add esp, 8
sub ebx, dword [0x1001707c]
add ebx, dword [ebp + 8]
movzx eax, byte [eax + edi]
movzx ecx, byte [ecx + edi]
add eax, ecx
mov ecx, 0x1c
cdq
idiv ecx
movzx eax, dl
mov al, byte [eax + edi]
xor byte [ebx], al
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
cmp esi, dword [ebp + 0xc]
jl 0x10002398
mov esi, dword [ebp + 0x10]
mov al, byte [ebp - 1]
pop edi
pop ebx
mov byte [esi], al
mov al, byte [ebp - 2]
mov byte [esi + 1], al
pop esi
mov esp, ebp
pop ebp
ret
mov byte [esi], al
mov byte [esi + 1], cl
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10002450
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10017090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.ntdll.dll
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0x17
mov dword [ebp - 0xc], 0x1e55
mov dword [ebp - 8], 0x407
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x11
push str.LdrFindResource_U
mov edi, eax
call fcn.10001c10
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 8
push eax
push edi
call esi
push str.LdrAccessResource
push edi
mov dword [0x100183e8], eax
call esi
mov dword [0x100183ec], eax
lea eax, [ebp - 0x24]
push eax
push 0x10010298
call fcn.10002e34
add esp, 4
push eax
lea eax, [ebp - 0x10]
push eax
push 0x10000000
call dword [0x100183e8]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov edi, eax
push 0
push 0
call esi
push 0
push 0
call esi
push 0
push 0
call esi
push 0
push 0
call esi
test edi, edi
js 0x10002518
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
push 0x10000000
call dword [0x100183ec]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteFileGather]
test eax, eax
je 0x1000253e
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10002f00
mov esp, ebp
pop ebp
ret
push 0x1001029c
call fcn.10002ee3
add esp, 4
push eax
push 0x1001029c
call fcn.10002ee3
push 0x1001029c
mov esi, eax
call fcn.10002ee3
add esp, 8
imul esi, eax
push esi
push dword [ebp - 0x18]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push dword [ebp - 0x18]
mov esi, eax
push dword [ebp - 0x20]
push esi
call fcn.10003360
lea eax, [ebp - 0x1c]
push eax
push 0x57
push str.DM2_IJ_U3k_nRsstuISg_DUHg6e_kOmbAt_ie_f3O1QW_s1iL_TWGim__njPpDR8_uTbw8FmY_0FbWLZ_j
call fcn.100022d0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push esi
call fcn.10002370
add esp, 0x24
lea ecx, [ebp - 0x11]
push dword [ebp - 0x18]
push esi
call fcn.100016f0
push 0x100102a4
push eax
lea ecx, [ebp - 0x11]
call fcn.100015e0
call eax
push 0
push 0
push dword [0x10017078]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10002f00
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46d008]
jne 0x40100a
repz ret
jmp fcn.00401d08

Function at 0x405b0a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00403331
and dword [ebp - 4], 0
cmp dword [0x46f134], 0
mov ebx, eax
jne 0x405bbb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405c6c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405c6c
push eax
call fcn.004032bf
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x46f134], eax
call esi
push eax
call fcn.004032bf
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x46f138], eax
call esi
push eax
call fcn.004032bf
mov dword [esp], 0x46a96c
push edi
mov dword [0x46f13c], eax
call esi
push eax
call fcn.004032bf
pop ecx
mov dword [0x46f144], eax
test eax, eax
je 0x405bbb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004032bf
pop ecx
mov dword [0x46f140], eax
mov eax, dword [0x46f140]
cmp eax, ebx
je 0x405c13
cmp dword [0x46f144], ebx
je 0x405c13
push eax
call fcn.0040333a
push dword [0x46f144]
mov esi, eax
call fcn.0040333a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405c13
test edi, edi
je 0x405c13
call esi
test eax, eax
je 0x405c0a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405c0a
test byte [ebp - 0xc], 1
jne 0x405c13
or dword [ebp + 0x10], 0x200000
jmp 0x405c4c
mov eax, dword [0x46f138]
cmp eax, ebx
je 0x405c4c
push eax
call fcn.0040333a
pop ecx
test eax, eax
je 0x405c4c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405c4c
mov eax, dword [0x46f13c]
cmp eax, ebx
je 0x405c4c
push eax
call fcn.0040333a
pop ecx
test eax, eax
je 0x405c4c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46f134]
call fcn.0040333a
pop ecx
test eax, eax
je 0x405c6c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405c6e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x469800
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.00407230
mov eax, dword [0x46d008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x100c], eax
cmp ebx, 0x182
jne 0x469839
lea ecx, [ebp - 0x102c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
jmp 0x469849
cmp ebx, 0x19f
jne 0x469849
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push edi
xor edi, edi
test ebx, ebx
jle 0x4698cd
push esi
jmp 0x469860
lea esi, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0
call fcn.004697f0
mov dl, byte [ebp - 0x1008]
mov eax, dword [ebp - 0x100c]
xor byte [eax + edi], dl
cmp ebx, 0xf
jne 0x4698c7
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1004]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push str.dihitevoxiniw
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push 0
lea edx, [ebp - 0x804]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, ebx
jl 0x469860
pop esi
pop edi
cmp ebx, 0x2d
jne 0x4698e7
mov dword [0x564e20], 0xa62e7790
mov dword [0x564e24], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x469900
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x564cec]
push ebx
push esi
mov esi, dword [0x564b34]
mov ebx, eax
cmp eax, 0x5dd
jne 0x469922
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov eax, dword [0x46def0]
call fcn.004697c0
cmp dword [0x564cec], 0x2f
jne 0x46993d
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push esi
call fcn.00469800
add esp, 4
cmp dword [0x564cec], 0x568
pop esi
pop ebx
jne 0x46996a
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
ret
Function at 0x402c48
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402c85
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryA
push esp
call sub.KERNEL32.DLL_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test bl, bl
je 0x402ca5
lea eax, [esp + 0x109]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404588
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403400
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x484024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403498
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403478
xor eax, eax
push ebp
push 0x403471
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4034b4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403478
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x484024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x484024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404194
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48d048], 0
je 0x4041f5
cmp word [0x48d21c], 0xd7b2
jne 0x4041bd
cmp dword [0x48d224], 0
jbe 0x4041bd
mov eax, 0x48d218
call dword [0x48d234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x484070
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40421c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x484034], 0
jne 0x404211
push 0
push 0x484068
push 0x484070
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret