joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405660
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xfc], 0
jg 0x405688
push 0x6d1
push str.C:UsersAdminDesktopImGui_Loader_Base_masterimguiimgui.h
push str.Size___0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov ecx, dword [esi + 0xfc]
mov edi, 4
mov eax, dword [esi + 0x104]
lea esi, [ebp + 8]
mov eax, dword [eax + ecx*4 - 4]
not eax
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x4505f8]
sub edi, 1
jne 0x4056a2
mov ecx, dword [0x45a808]
not eax
pop edi
pop esi
cmp dword [ecx + 0x1c84], eax
jne 0x4056d4
mov dword [ecx + 0x1c88], eax
cmp dword [ecx + 0x1cbc], eax
jne 0x4056e3
mov byte [ecx + 0x1cc0], 1
pop ebp
ret 4
Function at 0x411810
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x45a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x45a808]
push ebx
mov dword [ebp - 8], ecx
mov ebx, dword [eax + 0x1c48]
cmp dword [ebx + 0xfc], 0
jg 0x411850
push 0x6d1
push str.C:UsersAdminDesktopImGui_Loader_Base_masterimguiimgui.h
push str.Size___0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov ecx, dword [ebx + 0xfc]
mov eax, dword [ebx + 0x104]
push esi
push edi
lea esi, [ebp - 8]
mov edi, 4
mov eax, dword [eax + ecx*4 - 4]
not eax
nop dword [eax]
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x4505f8]
sub edi, 1
jne 0x411870
not eax
lea ecx, [ebx + 0xfc]
pop edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
pop esi
push eax
call fcn.00425160
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004483fb
mov esp, ebp
pop ebp
ret

Function at 0x412db0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x45a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [0x45a808]
mov ebx, edx
cmp byte [edi + 0x1f5d], 0
jne 0x412e04
cmp byte [edi + 0x1f5e], 0
jne 0x412e04
push dword [edi + 0x2f80]
lea eax, [ebp - 0x14]
push str.Tooltip__02d
push 0x10
push eax
call fcn.00402f10
add esp, 0x10
test bl, 1
je 0x412f25
jmp 0x412e9c
movss xmm1, dword [edi + 0x164c]
lea eax, [ebp - 0x14]
movaps xmm0, xmm1
mulss xmm1, dword [0x457514]
mulss xmm0, dword [0x457520]
addss xmm1, dword [edi + 0xe8]
addss xmm0, dword [edi + 0xe4]
mov dword [edi + 0x1cec], 0
mov dword [edi + 0x1cf0], 0
movss dword [edi + 0x1ce8], xmm1
mov dword [edi + 0x1cd4], 1
movss dword [edi + 0x1ce4], xmm0
mov byte [edi + 0x1d0c], 1
movss xmm0, dword [edi + 0x16a8]
mulss xmm0, dword [0x457474]
or dword [edi + 0x1cd0], 0x41
movss dword [edi + 0x1d28], xmm0
push dword [edi + 0x2f80]
push str.Tooltip__02d
push 0x10
push eax
call fcn.00402f10
add esp, 0x10
mov al, byte [ebp - 0x14]
lea esi, [ebp - 0x13]
or edx, 0xffffffff
test al, al
je 0x412ed7
or ebx, 0xffffffff
nop dword [eax]
cmp al, 0x23
jne 0x412ebe
cmp byte [esi], al
jne 0x412ebe
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x4505f8]
test al, al
jne 0x412eb0
mov ecx, dword [0x45a808]
not edx
push edx
lea ecx, [ecx + 0x1c30]
call fcn.00403540
test eax, eax
je 0x412f25
cmp byte [eax + 0xc3], 0
je 0x412f25
mov byte [eax + 0xca], 1
mov byte [eax + 0xe4], 1
lea eax, [ebp - 0x14]
inc dword [edi + 0x2f80]
push dword [edi + 0x2f80]
push str.Tooltip__02d
push 0x10
push eax
call fcn.00402f10
add esp, 0x10
push 0x22c0347
xor edx, edx
lea ecx, [ebp - 0x14]
call fcn.0040d410
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004483fb
mov esp, ebp
pop ebp
ret
Function at 0x417dc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x3030], 0
lea esi, [edi + 0x3034]
je 0x417e42
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x417dfc
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.00426030
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.004037a0
mov edx, dword [esi]
mov ecx, 0x45a804
push dword [edi + 0x3030]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x303c]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.004037a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x418300
Capabilities:
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
or ecx, 0xffffffff
mov al, byte [edi]
lea esi, [edi + 1]
test al, al
je 0x41833c
push ebx
or ebx, 0xffffffff
cmp al, 0x23
jne 0x418322
cmp byte [esi], al
jne 0x418322
cmp byte [esi + 1], al
cmove ecx, ebx
movzx edx, cl
movzx eax, al
xor edx, eax
shr ecx, 8
mov al, byte [esi]
inc esi
xor ecx, dword [edx*4 + 0x4505f8]
test al, al
jne 0x418314
pop ebx
not ecx
call fcn.00418250
test eax, eax
jne 0x418350
mov ecx, edi
pop edi
pop esi
jmp fcn.00418170
pop edi
pop esi
ret
Function at 0x42dbd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x42dc0a
mov eax, dword [0x45a808]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x42dbfd
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x42dc3b
mov eax, dword [0x45a808]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x42dc2e
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x42dc6c
mov eax, dword [0x45a808]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x42dc5f
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x42dcb9
mov eax, dword [0x45a808]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x42dcac
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x42dcea
mov eax, dword [0x45a808]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x42dcdd
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x42dd1b
mov eax, dword [0x45a808]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x42dd0e
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.00430620
Function at 0x4454e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov ebx, edx
je 0x445574
test dword [ecx + 0xc], 0x100000
jne 0x445513
push 0x1cd9
push str.C:UsersAdminDesktopImGui_Loader_Base_masterimguiimgui_widgets.cpp
push str.tab_bar__Flags__ImGuiTabBarFlags_DockNode
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov cl, byte [ebx]
lea esi, [ebx + 1]
or eax, 0xffffffff
test cl, cl
je 0x44554a
or edi, 0xffffffff
cmp cl, 0x23
jne 0x445531
cmp byte [esi], cl
jne 0x445531
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x4505f8]
test cl, cl
jne 0x445522
mov ecx, dword [0x45a808]
not eax
cmp dword [ecx + 0x1c84], eax
jne 0x445560
mov dword [ecx + 0x1c88], eax
cmp dword [ecx + 0x1cbc], eax
jne 0x4455e0
pop edi
pop esi
mov byte [ecx + 0x1cc0], 1
pop ebx
pop ebp
ret
mov esi, dword [0x45a808]
mov edi, dword [esi + 0x1c48]
cmp dword [edi + 0xfc], 0
jg 0x4455a7
push 0x6d1
push str.C:UsersAdminDesktopImGui_Loader_Base_masterimguiimgui.h
push str.Size___0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov esi, dword [0x45a808]
add esp, 0xc
mov ecx, dword [edi + 0xfc]
xor edx, edx
mov eax, dword [edi + 0x104]
push dword [eax + ecx*4 - 4]
mov ecx, ebx
call fcn.00402f50
add esp, 4
cmp dword [esi + 0x1c84], eax
jne 0x4455d1
mov dword [esi + 0x1c88], eax
cmp dword [esi + 0x1cbc], eax
jne 0x4455e0
mov byte [esi + 0x1cc0], 1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x44910f
Capabilities:
Parse pe header

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

Function at 0x408944
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4085d8
sub ebx, 0x55359196
call fcn.00408971
add ecx, 0x164f7174
xor dword [edx], eax
inc ebx
dec ecx
inc edx
and ebx, ebx
sub ecx, 0x8b07e8cc
cmp edx, esi
jne fcn.00408944
add ebx, ebx
ret
Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret

Function at 0x44112a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x441139
pop dword [ebp - 0x14]
mov eax, 0x441139
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x4f882
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0x45b9
xor edx, edx
add edx, eax
mov ebx, 0x475e00
add ebx, dword [ebp - 0x14]
mov edi, 0x45c90431
add edi, 0xed33da4f
sub dword [ebp - 4], esi
mov esi, dword [ebx]
sub dword [ebp - 0xc], edi
add esi, edi
xor dword [ebp - 0xc], ebx
mov dword [edx], esi
xor dword [ebp - 0xc], 0x6610f9fc
add edx, 0xe33d8123
add edx, 0x1cc27ee1
add ebx, 0xbf9160ac
add ebx, 0x406e9f58
loop 0x441184
add eax, 0x109b7
xor ebx, ebx
add ebx, eax
add eax, 0x2bebe438
sub eax, 0x2bebe433
mov ecx, 0x400000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x401460
Capabilities:
Connect socket
Create thread
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1cc
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1c8], eax
push ebx
push esi
push edi
push 0
call fcn.00404813
add esp, 4
push eax
call fcn.00404801
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], esi
mov edi, 3
call fcn.004047e0
xor edx, edx
mov dword [esp + 0x14], 0
div edi
mov ecx, dword [edx*8 + 0x4168c4]
lea eax, [edx*8 + 0x4168c0]
mov eax, dword [eax]
or edi, 0xffffffff
mov dword [esp + 0x18], eax
lea eax, [esp + 0x40]
push eax
push 0x202
mov dword [esp + 0x18], ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x401588
mov dword [esp + 0x20], eax
xorps xmm0, xmm0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x24]
movlpd qword [esp + 0x34], xmm0
push eax
push dword [esp + 0x18]
movlpd qword [esp + 0x44], xmm0
push dword [esp + 0x24]
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], 6
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x401582
mov esi, dword [esp + 0x14]
test esi, esi
je 0x401572
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x40157e
push dword [esi + 0x10]
push dword [esi + 0x18]
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40156e
push edi
call ebx
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x401530
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x40157e
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp edi, 0xffffffff
jne 0x4015a4
mov esi, dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1388
call edi
inc esi
mov dword [esp + 0xc], esi
cmp esi, 0xa
jge 0x4015d8
jmp 0x40149c
push 8
lea eax, [esp + 0x1c]
mov dword [0x4168d8], edi
push eax
push 0x1006
push 0xffff
push edi
mov dword [esp + 0x2c], 0x2710
mov dword [esp + 0x30], 0
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push 0x401160
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, 0xffffffff
je 0x4015f9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x4173e8], 0
jne 0x40160f
push 0x64
call edi
cmp byte [0x4173e8], 0
je 0x401602
mov ecx, dword [esp + 0x1d4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401983
mov esp, ebp
pop ebp
ret

Function at 0x402213
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402252
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402252
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402252
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402252
cmp dword [ecx + 0x74], 0xe
jbe 0x402252
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4069af
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4105a8
push 0x4105a0
push str.FlsAlloc
push 0x1f
call fcn.0040686e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4069e3
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f144]
call esi
jmp 0x4069e9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x406a2d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4105b8
push 0x4105b0
push str.FlsGetValue
push 0x21
call fcn.0040686e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x406a64
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x406a6c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4105c0
push 0x4105b8
push str.FlsSetValue
push 0x22
call fcn.0040686e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x406aa6
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40f144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40825e
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 0x4082fb
push ebx
push esi
call fcn.00408227
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.004081bb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4082a8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4082fa
push edi
push eax
call fcn.00406c71
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4082c8
call fcn.00406cbf
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4082f9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004081bb
add esp, 0x20
test eax, eax
jne 0x4082e7
push edi
call fcn.00406cbf
jmp 0x4082ef
push ebx
call fcn.00406cbf
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 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x34a13982
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x740d3410
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40196f
Capabilities:
Clear file content
Get common file path
Get keyboard layout

Disassembly:
sub esp, 0x800
push esi
push edi
xor esi, esi
xor edi, edi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp edi, 0x58ced85
jg 0x401995
inc edi
cmp edi, 0x1f6502b1
jl 0x40197b
cmp dword [0x2810ac4], 0x400
jne 0x4019de
push str.sadahoziyofejonoh_niforapo_pihekezavokigubodatojup_rafepigojamulexiwodugaxexude_jam
push str.nelugidoneyari
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
call dword [sym.imp.USER32.dll_DdeKeepStringHandle]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
push esi
push esi
call fcn.00401dd1
push esi
call fcn.00401f47
push esi
call fcn.00401f56
add esp, 0x10
xor edi, edi
cmp edi, 0xd09a
jge 0x4019ef
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp edi, 0xd2ced2
jg 0x401a17
inc edi
cmp edi, 0x263ff
jl 0x4019e0
mov eax, dword [0x422c14]
mov dword [0x2810ac4], eax
call fcn.004016e4
mov edi, 0x3078f
cmp dword [0x2810ac4], 0x51f
jne 0x401a43
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec edi
jne 0x401a2b
pop edi
xor eax, eax
pop esi
add esp, 0x800
ret 0x10
Function at 0x404f8b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x422a80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403343
and dword [ebp - 0x14], 0
cmp dword [0x42d784], 0
mov dword [ebp - 0x18], eax
jne 0x40503e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4050e6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4050e6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42d784], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42d788], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42d78c], eax
call edi
push eax
call esi
mov dword [0x42d794], eax
test eax, eax
je 0x40503e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42d790], eax
mov eax, dword [0x42d790]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405097
cmp dword [0x42d794], ecx
je 0x405097
push eax
call esi
push dword [0x42d794]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405097
test ebx, ebx
je 0x405097
call edi
test eax, eax
je 0x40508e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40508e
test byte [ebp - 8], 1
jne 0x405097
or dword [ebp + 0x10], 0x200000
jmp 0x4050ca
mov eax, dword [0x42d788]
cmp eax, dword [ebp - 0x18]
je 0x4050ca
push eax
call esi
test eax, eax
je 0x4050ca
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4050ca
mov eax, dword [0x42d78c]
cmp eax, dword [ebp - 0x18]
je 0x4050ca
push eax
call esi
test eax, eax
je 0x4050ca
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42d784]
call esi
test eax, eax
je 0x4050e6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4050e8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004052f6
leave
ret

Function at 0x4052f6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422a80]
jne 0x405300
repz ret
jmp fcn.004060af
Function at 0x41b2d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x2fa9da8]
xor edx, edx
cmp eax, edx
jne 0x41b2f6
xor eax, eax
mov byte [eax + 0x2fa9ca8], al
inc eax
cmp eax, 0x100
jl 0x41b2de
mov dword [0x2fa9da8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x2fa9ca8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41b387
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x41b35a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x41b328
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41b400
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x41b453
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x41b43a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret