joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44977c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x449927
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x449908
mov dl, 1
mov eax, dword [0x41180c]
call fcn.004031f4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403f5c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4498f7
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004377b0
test al, al
je 0x4498ea
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x449938
lea eax, [ebp - 0x254]
call fcn.0040898c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4498ea
xor eax, eax
push ebp
push 0x4498e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x449970
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4498cc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004041cc
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4498cc
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004041cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4498ea
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4497ed
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004152e8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44992e
lea eax, [ebp - 0x260]
call fcn.00403f5c
ret

Function at 0x44a25c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x453bb0]
cmp byte [eax + 0xa5], 0
jne 0x44a2cd
cmp dword [0x453bc8], 0
jne 0x44a28e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44a218
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x453bc8], eax
cmp dword [0x453bc4], 0
jne 0x44a2a9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x453bc4], eax
cmp dword [0x453bcc], 0
jne 0x44a2cd
push esp
push 0
push 0
push 0x44a1bc
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x453bcc], eax
pop edx
ret
Function at 0x44a3c4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44a3db
add esp, 0xfffffff0
call fcn.00403530
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004190f8
mov eax, dword [0x452b78]
cmp word [eax + 2], 0
jne 0x44a403
mov eax, dword [0x452b78]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044b930
mov eax, dword [0x452c20]
cmp word [eax + 2], 0
jne 0x44a41d
mov eax, dword [0x452c20]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044bb28
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4113f0]
call fcn.004031f4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4113f0]
call fcn.004031f4
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b2cc]
call fcn.00420f14
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44a5a4
mov eax, dword [0x452a9c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004212e4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44c0d8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x452a9c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040bfc8
test eax, eax
je 0x44a512
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408380
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040bff0
test eax, eax
je 0x44a526
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004041cc
mov eax, dword [0x4529a4]
cmp byte [eax], 0
jne 0x44a55a
mov eax, ebx
call fcn.0044a6cc
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0044c2b4
mov eax, ebx
call fcn.0044cc78
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44a59a
call fcn.00403588
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44a94c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x453bb0]
cmp dword [eax + 0x30], 0
je 0x44a9f6
cmp dword [ebx + 0x94], 0
jne 0x44a9f0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44a8dc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44a9f0
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44a9b6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44a9f0
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413758
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44a9c5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44b558
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44b58d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040404c
jmp 0x44b59a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403fb0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44c490
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44c4d1
mov eax, esi
call fcn.00432fb8
test al, al
je 0x44c4d1
mov eax, dword [ebx + 0x84]
call fcn.00432d58
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44c4d1
push 0
mov eax, dword [ebx + 0x84]
call fcn.00432d58
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45024f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4528de
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4502a7
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x4528ff
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x45029d
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4502ab
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x41f1a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x41f1c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41f1c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41f1b8
mov eax, 1
add ebx, ebx
jne 0x41f1db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41f1d0
jne 0x41f1ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41f1d0
xor ecx, ecx
sub eax, 3
jb 0x41f200
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41f272
mov ebp, eax
add ebx, ebx
jne 0x41f20b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41f218
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41f23c
inc ecx
add ebx, ebx
jne 0x41f228
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41f21d
jne 0x41f239
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41f21d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41f25c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41f24d
jmp 0x41f1be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41f25c
add edi, ecx
jmp 0x41f1be
pop esi
mov edi, esi
mov ecx, 0x202
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41f27a
cmp byte [edi], 6
jne 0x41f27a
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 eax, ebx
loop 0x41f27f
lea edi, [esi + 0x1d000]
mov eax, dword [edi]
or eax, eax
je 0x41f2f7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1ffc4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x20000]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41f2ac
mov ecx, edi
jns 0x41f2db
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 + 0x20004]
or eax, eax
je 0x41f2f1
mov dword [ebx], eax
add ebx, 4
jmp 0x41f2c9
call dword [esi + 0x20008]
popal
jmp 0x40290c

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403069
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x4065f8
call fcn.00403630
push 1
call fcn.004030ff
pop ecx
test al, al
je 0x403053
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.004030cd
mov byte [ebp - 0x24], al
mov eax, dword [0x4070b0]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x403053
test eax, eax
jne 0x402f71
mov dword [0x4070b0], ecx
push 0x401028
push 0x401018
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x402f54
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x403043
push 0x401014
push section..text
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x4070b0], 2
jmp 0x402f76
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00403253
pop ecx
call fcn.004033f5
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x402fa7
push esi
call fcn.004031bf
pop ecx
test al, al
je 0x402fa7
mov esi, dword [esi]
push edi
push 2
push edi
mov ecx, esi
call dword [0x4081d4]
call esi
call fcn.004033fb
mov esi, eax
cmp dword [esi], edi
je 0x402fc5
push esi
call fcn.004031bf
pop ecx
test al, al
je 0x402fc5
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_wide_environment
mov edi, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___wargv
mov esi, dword [eax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
push edi
push esi
push dword [eax]
call main
add esp, 0xc
mov esi, eax
call fcn.00403521
test al, al
je 0x40305a
test bl, bl
jne 0x402ff8
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push 0
push 1
call fcn.00403270
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x403043
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 7
call fcn.00403401
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push dword [ebp - 0x20]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
int3
call fcn.00497000
jmp 0x402ee7
Function at 0x408947
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
pop ecx
sub esp, 4
mov dword [esp], 0x8b5b7899
pop eax
add eax, eax
call fcn.00408983
sub esi, 0xd11fe4db
mov esi, esi
xor dword [ebx], ecx
add eax, 0x9322ce1e
inc eax
inc ebx
cmp ebx, edx
jne fcn.00408947
or esi, eax
push 0x9706e7c3
pop esi
ret
Function at 0x407ef0
Capabilities:
Encode data using xor

Disassembly:
xor byte [eax + 0x30], 0x99
push ss
inc esi
push es
arpl word [eax - 0xa616f2], cx
invalid
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0x10], 0xffffff8e
jl 0x407f03
mov dword [ebp + 0x10], 0x1d
fld qword [ebp + 8]
fcomp qword [0x40f830]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + ebp*4 + 0x56]
xor al, bh
inc eax
add byte [ebx - 0x74ace7b3], cl
pop esp
lodsd eax, dword [esi]
push esi
xor eax, dword [esi]
cmp ebp, dword [edx]
loopne 0x407ea3
jne 0x407f18
mov dword [ecx], esi
pop ebp
mov dword [0xe7ad08b], 0xd90845dd
loopne 0x407f08
mov edx, ebx
mov dword [ecx], 0x5a00bcac
mov ecx, dword [ebp + 0x52]
mov edx, dword [ebp - 0x3f]
lea eax, [ebp + 7]
push eax
push ecx
mov al, byte [0xc11815ff]
inc eax
add ch, bl
add ecx, dword [eax]
fld qword [ebp - 0x14]
fcomp qword [0x40c230]
add esp, 0xffffffce
fild word [eax - 0xa]
sub byte [ebx + edi*2 + 0x72], al
lea esi, [ebx + 0x50]
cmp esi, ebx
jbe 0x407fba
cmc
inc ebp
in al, dx
fcomp qword [0x40c2f6]
dec ecx
loopne 0x407f64
les ebx, [eax + 0x7b]
dec eax
fld qword [ebp - 0x14]
fmul qword [edx + 0x40ca10]
sub dword [esp + ebp*8 + 0x50], 0xffffff83
in al, dx
or ch, bl
sbb al, 0x24
call dword [0x81c197]
jb 0x407fea
hlt
push ebx
pop edx
push eax
cmp esi, eax
jae 0x40801d
mov dl, byte [esi]
sub dl, byte [edi]
loopne 0x40800d
cmp esi, eax
jb 0x408008
jmp 0x40801d
inc eax
add bh, bl
mov ah, byte [0x6c6200]
jne 0x408015
fld qword [ebp + 8]
test byte [0xc7a665f8], 0x34
push ebp
hlt
rcr ah, 0x1d
sub dl, al
inc eax
add byte [esi + 0x5c4f6e0], al
jnp 0x408062
loopne 0x408005
les eax, [0x2ddd4f7b]
invalid
hlt
mov eax, dword [ebp + 0x10]
loope 0x40806f
sbb byte [ebx + 0x48851c67], cl
jne 0x40802d
jno 0x407fd4
cld
hlt
add ch, bl
inc ebp
hlt

Function at 0x40a340
Capabilities:
Encode data using xor

Disassembly:
nop
nop
nop
push ebp
mov ebp, esp
mov ecx, dword [ebp - 0x73]
push esi
mov eax, dword [ecx + 4]
test eax, eax
mov bh, 0x11
add ecx, 0xfffffff4
push ecx
call dword [fcn.0040682c]
xor eax, eax
test byte [ebp - 0x3e], bl
add al, 0
mov esp, 0xc7501f8
mov eax, dword [ecx + 8]
push eax
rcl dword [0x40ad30], 0xeb
pop ecx
and al, 0xf8
add dh, byte [ebp - 0x1d]
mov ecx, dword [ecx + 8]
push ecx
xor bh, byte [eax + 0xda3934]
test eax, eax
jne 0x40a358
cdq
pop es
cwde
jnp 0x40a3c8
add bh, bh
salc
test eax, eax
jns 0x40a358
call esi
add eax, 0x2c0afc80
sub al, 0x5e
pop ebp
add al, 0
nop
push eax
nop
nop
nop
push ebp
js 0x40a38f
cmc
inc ebp
je 0x40a33d
and byte [edx - 0x74afff85], 0
push eax
call 0x3fabfa
pop ebp
ret 4
nop
nop
nop
jmp 0x90f23460
Function at 0x404847
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2068
call fcn.0040e800
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
xor esi, esi
cmp dword [0x4104d4], esi
push edi
mov dword [ebp - 8], esi
jne 0x40487d
jmp 0x404873
push 0x2710
call ebx
call fcn.00409193
cmp eax, 1
jne 0x40486c
cmp dword [ebp + 0x18], esi
jne 0x40488f
push 4
push esi
push 7
call fcn.0040c2d9
add esp, 0xc
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
cmp dword [ebp + 0x14], esi
jle 0x4048c8
push dword [ebp + 0x20]
lea eax, [ebp - 8]
push dword [ebp + 0x18]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004092d9
add esp, 0x14
test eax, eax
jne 0x4048cf
push 0xea60
inc edi
call ebx
cmp edi, dword [ebp + 0x14]
jl 0x40489f
xor eax, eax
jmp 0x40496e
cmp dword [ebp + 0x18], esi
jne 0x4048e1
push 4
push esi
push 8
call fcn.0040c2d9
add esp, 0xc
push 0x44
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.0040e780
lea eax, [ebp - 0x2064]
add esp, 0xc
push eax
mov edx, 0x4015c0
call fcn.0040779f
pop ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x2064]
call fcn.0040777b
mov ecx, 0x4015c4
call fcn.0040777b
cmp dword [ebp + 0x10], esi
je 0x40493e
mov edx, dword [ebp + 0x10]
mov eax, 0x40127c
call fcn.00407701
test eax, eax
je 0x40493e
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x2064]
call fcn.0040777b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x64]
push eax
push 0x41fce0
push esi
push 0x20
push esi
push esi
push esi
lea eax, [ebp - 0x2064]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40496b
or dword [ebp - 8], 8
jmp 0x40496e
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x1c]
cmp ecx, esi
je 0x40497a
mov edx, dword [ebp - 8]
mov dword [ecx], edx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4057a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ecx]
sub esp, 0x140
push ebx
push esi
xor esi, esi
test ax, ax
push edi
mov edx, ecx
je 0x4057cb
movzx eax, ax
cmp ax, 3
je 0x4057d3
inc edx
inc edx
movzx eax, word [edx]
test ax, ax
jne 0x4057bb
cmp word [edx], 3
je 0x4057d3
xor edx, edx
test edx, edx
je 0x4057e3
call fcn.0040d54d
mov dword [ebp - 4], eax
mov ebx, ecx
jmp 0x4057fb
lea ebx, [ebp - 0x40]
mov eax, ebx
push eax
mov edx, 0x402364
mov dword [ebp - 4], 0x1c
call fcn.0040779f
pop ecx
mov ecx, dword [ebp + 8]
call fcn.0040d54d
cdq
sub eax, edx
mov edi, eax
sar edi, 1
cmp edi, 0xff
jge 0x405868
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x140]
call fcn.0040d41c
test al, al
je 0x405868
dec edi
xor ecx, ecx
xor esi, esi
test edi, edi
jle 0x40585e
cmp esi, dword [ebp - 4]
jne 0x405834
xor esi, esi
mov al, byte [ebx + esi*2]
xor al, byte [ebp + ecx - 0x13f]
mov dl, byte [ebp + ecx - 0x140]
cmp al, dl
jae 0x40584b
dec al
sub al, dl
mov edx, dword [ebp + 8]
movzx ax, al
mov word [edx + ecx*2], ax
inc ecx
inc esi
cmp ecx, edi
jl 0x40582d
mov eax, dword [ebp + 8]
and word [eax + ecx*2], 0
mov esi, ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x405b0f
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
push ebx
push esi
push edi
push 8
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
call fcn.0040d086
lea eax, [ebp - 0x70]
push eax
mov edx, 0x4022d0
call fcn.0040779f
pop ecx
lea eax, [ebp - 0x30]
push eax
mov edx, 0x4022b8
call fcn.0040779f
pop ecx
mov esi, 0x104
push esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x70]
push eax
lea edi, [ebp - 0x278]
mov eax, 0x80000002
call fcn.0040a654
add esp, 0xc
cmp eax, 0xffffffff
je 0x405b94
cmp eax, ebx
jbe 0x405b94
push esi
lea eax, [ebp - 0x480]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x480]
push eax
call fcn.0040586f
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
jne 0x405c09
lea eax, [ebp - 0x48]
push eax
mov edx, 0x4022a0
call fcn.0040779f
lea eax, [ebp - 0x48]
pop ecx
mov dword [ebp - 0x18], 0x23
mov dword [ebp - 0x14], 0x1a
mov dword [ebp - 0x10], 0x26
mov dword [ebp - 0xc], eax
xor esi, esi
lea eax, [ebp - 0x278]
push eax
push ebx
push ebx
push dword [ebp + esi*4 - 0x18]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x405c00
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push 0x4058d6
push 2
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.0040a40d
add esp, 0x24
inc esi
cmp esi, 3
jb 0x405bc5
cmp dword [ebp - 4], ebx
jbe 0x405c15
mov esi, dword [ebp - 8]
call fcn.00405767
jmp 0x405c1e
push dword [ebp - 8]
call fcn.0040d023
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405c23
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [ecx]
imul eax, eax, 0x8088405
push 0x20
push 0
push dword [esp + 0xc]
inc eax
push 0
push eax
mov dword [ecx], eax
call fcn.0040a795
push edx
push eax
call fcn.0040a766
ret
Function at 0x405c46
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x108
push ebx
push esi
push edi
call fcn.0040d54d
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp esi, 0xff
jge 0x405d6b
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x108]
call fcn.0040d41c
test al, al
je 0x405d6b
sub esi, 4
xor ebx, ebx
test esi, esi
mov dword [ebp - 4], 0xcf671
jle 0x405cb3
push 8
lea ecx, [ebp - 4]
lea edi, [ebp + ebx - 0x108]
call fcn.00405c23
pop ecx
movsx ecx, al
mov al, byte [edi]
rol al, cl
inc ebx
cmp ebx, esi
mov byte [edi], al
jl 0x405c93
mov dword [ebp - 4], 0x3039
mov dword [ebp - 8], 0x100
push esi
lea ecx, [ebp - 4]
call fcn.00405c23
pop ecx
push esi
lea ecx, [ebp - 4]
movsx edi, al
call fcn.00405c23
dec dword [ebp - 8]
pop ecx
movsx ecx, al
lea ecx, [ebp + ecx - 0x108]
mov bl, byte [ecx]
lea eax, [ebp + edi - 0x108]
mov dl, byte [eax]
mov byte [eax], bl
mov byte [ecx], dl
jne 0x405cc1
xor edi, edi
test esi, esi
mov dword [ebp - 4], 0xa564
jle 0x405d1d
push 0x100
lea ecx, [ebp - 4]
call fcn.00405c23
xor byte [ebp + edi - 0x108], al
inc edi
cmp edi, esi
pop ecx
jl 0x405d03
xor edi, edi
test esi, esi
mov dword [ebp - 4], 0xd431
jle 0x405d44
push 0x100
lea ecx, [ebp - 4]
call fcn.00405c23
sub byte [ebp + edi - 0x108], al
inc edi
cmp edi, esi
pop ecx
jl 0x405d2a
xor eax, eax
test esi, esi
jle 0x405d5f
movzx cx, byte [ebp + eax - 0x108]
mov edx, dword [ebp + 8]
mov word [edx + eax*2], cx
inc eax
cmp eax, esi
jl 0x405d4a
mov eax, dword [ebp + 8]
and word [eax + esi*2], 0
mov eax, esi
jmp 0x405d6d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret