joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4254d7
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 0x425574
push ebx
push esi
call fcn.004254a0
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.004242ab
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x425521
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x425573
push edi
push eax
call fcn.0041d45e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x425541
call fcn.0041cbac
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x425572
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004242ab
add esp, 0x20
test eax, eax
jne 0x425560
push edi
call fcn.0041cbac
jmp 0x425568
push ebx
call fcn.0041cbac
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 0x425577
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x425588
pop esi
ret
push ebx
push edi
push esi
call fcn.004254a0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0041d45e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4255b0
push ebx
push esi
push edi
call fcn.0040da20
add esp, 0xc
push 0
call fcn.0041cbac
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x425974
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004255c5

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 0x17cea50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1341000]
push edi
jmp 0x17cea6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x17cea71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x17cea60
mov eax, 1
add ebx, ebx
jne 0x17cea83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x17cea94
jne 0x17ceab3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x17ceab3
dec eax
add ebx, ebx
jne 0x17ceaa0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x17cea78
add ebx, ebx
jne 0x17ceaaf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x17ceb05
xor ecx, ecx
sub eax, 3
jb 0x17ceacb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x17ceb3a
sar eax, 1
mov ebp, eax
jmp 0x17cead6
add ebx, ebx
jne 0x17cead6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x17ceaa4
inc ecx
add ebx, ebx
jne 0x17ceae4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x17ceaa4
add ebx, ebx
jne 0x17ceaf1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x17ceae6
jne 0x17ceb02
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x17ceae6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x17ceb24
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x17ceb16
jmp 0x17cea66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x17ceb24
add edi, ecx
jmp 0x17cea66
pop esi
mov edi, esi
mov ecx, 0x40e1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x17ceb42
cmp byte [edi], 0x11
jne 0x17ceb42
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 0x17ceb47
lea edi, [esi + 0x13c7000]
mov eax, dword [edi]
or eax, eax
je 0x17cebbf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x268e5a4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x268e748]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x17ceb74
mov ecx, edi
jns 0x17ceba3
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 + 0x268e750]
or eax, eax
je 0x17cebb9
mov dword [ebx], eax
add ebx, 4
jmp 0x17ceb91
call dword [esi + 0x268e74c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x17cebf0
cmp al, 0xef
ja 0x17cebe3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x17cebc5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x17cebd2
mov ebp, dword [esi + 0x268e754]
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 0x17cec24
sub esp, 0xffffff80
jmp 0x420627
Function at 0x401370
Capabilities:
Get hostname
Get session user name

Disassembly:
sub esp, 0x410
mov dword [esp + 8], 0xff
lea eax, [esp + 0x210]
lea ecx, [esp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
sub esp, 8
cmp dword [esp + 8], 8
jne 0x401415
lea eax, [esp + 0x210]
mov dword [esp], eax
call fcn.004012b0
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0x56cf7626
jne 0x401415
jmp 0x4013bf
mov dword [esp + 8], 0xff
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
sub esp, 8
cmp dword [esp + 8], 7
sete al
test al, 1
jne 0x4013ed
jmp 0x401415
lea eax, [esp + 0x10]
mov dword [esp], eax
call fcn.004012b0
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0xb09406c7
jne 0x401413
mov eax, dword [esp + 0xc]
mov dword [esp], eax
call fcn.00401000
jmp 0x401415
xor eax, eax
add esp, 0x410
ret

Function at 0x402350
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
jmp 0x40235b
push eax
mov eax, esp
push eax
mov ebx, esp
push eax
mov esi, esp
push eax
mov dword [ebp - 0x14], esp
push eax
mov edi, esp
mov dword [eax], edx
mov dword [ebx], ecx
mov dword [esi], 0x1505
mov dword [edi], 0
mov dword [edi], 0
jmp 0x402383
mov ecx, dword [edi]
cmp ecx, dword [eax]
jae 0x402448
jmp 0x40238f
mov ecx, dword [ebx]
mov edx, dword [edi]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x14]
mov byte [edx], cl
movzx ecx, byte [edx]
cmp ecx, 0
sete cl
test cl, 1
jne 0x4023ab
jmp 0x4023b0
jmp 0x40244a
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], eax
mov ebx, dword [esi]
shl ebx, 5
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
mov edx, ebx
and edx, eax
mov ecx, edx
xor ecx, 0xffffffff
and ecx, 2
mov eax, edx
and eax, 0xfffffffd
imul eax, ecx
mov ecx, edx
and ecx, 2
or edx, 2
imul edx, ecx
add edx, eax
mov ecx, ebx
xor ecx, 0xffffffff
mov eax, ebx
xor eax, 0xffffffff
and ecx, eax
mov eax, dword [ebp - 0x10]
or eax, eax
xor eax, 0xffffffff
xor ecx, 0xffffffff
xor eax, 0xffffffff
and ecx, eax
or ebx, dword [ebp - 0x10]
xor ebx, 0xffffffff
xor ecx, 0xffffffff
xor ebx, 0xffffffff
and ecx, ebx
add ecx, edx
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
mov edx, ecx
xor edx, 0xffffffff
and edx, 0xd8ef833
and ecx, 0xf27107cc
sub ecx, edx
mov edx, ecx
and edx, eax
or ecx, eax
add edx, ecx
add edx, 0xd8ef833
mov dword [esi], edx
mov eax, dword [edi]
sub eax, 0xffffffff
mov dword [edi], eax
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
jmp 0x402383
jmp 0x40244a
mov eax, dword [esi]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x406450
Capabilities:
Link many functions at runtime
Parse pe header

Disassembly:
mov dword [0x4745dc], 0x4666e4
mov dword [0x4745e0], 0x4666fa
mov dword [0x4745e4], 0x466710
mov dword [0x4745e8], 0x466724
mov dword [0x4745ec], 0x46673c
jmp fcn.00405430
Function at 0x406490
Capabilities:
Get file size
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
mov eax, 0x1050
call fcn.0044b6d0
lea eax, [0x470170]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
mov dword [esp], ecx
mov dword [esp + 4], 0x1c
mov dword [esp + 8], eax
call fcn.004071b0
mov eax, dword [esp + 0x1c]
add eax, 0x1c
lea ecx, [esp + 0x3c]
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [esp + 8], 0x14
call fcn.0044c64e
cmp eax, 0
je 0x4064fb
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [esp + 0x1c]
cmp dword [eax], 1
jne 0x406519
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], 1
jmp 0x4066c1
lea eax, [esp + 0x50]
xor ecx, ecx
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], 0x800
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
sub esp, 0xc
lea eax, [esp + 0x50]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0x80000000
mov dword [esp + 8], 3
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 0x80
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
mov dword [esp + 0x20], eax
mov eax, 0xffffffff
cmp dword [esp + 0x20], eax
sete al
test al, 1
jne 0x406593
jmp 0x4065a8
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], 1
jmp 0x4066c1
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x30]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
call eax
sub esp, 8
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 4]
sub ecx, 0xffffffd0
cmp eax, ecx
jae 0x4065f8
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], 1
jmp 0x4066c1
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00453774
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
lea esi, [esp + 0x38]
xor edi, edi
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [esp + 0x1c]
add eax, 8
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
add ecx, dword [edx + 4]
add ecx, 8
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [esp + 8], 0x14
call fcn.0044c64e
cmp eax, 0
jne 0x4066a5
jmp 0x406682
call fcn.004066d0
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.004536d5
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 1
jmp 0x4066c1
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.004536d5
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], 1
mov eax, dword [esp + 0x24]
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
Function at 0x42cb90
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
sub esp, 0x2c
mov eax, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x24]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.0042c740
mov eax, dword [esp + 0x3c]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0x40000000
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], 0x80
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
mov dword [esp + 0x20], eax
mov eax, 0xffffffff
cmp dword [esp + 0x20], eax
je 0x42cc7b
jmp 0x42cc1c
cmp dword [esp + 0x1c], 0
setne al
test al, 1
jne 0x42cc2a
jmp 0x42cc7b
cmp dword [esp + 0x24], 0
jle 0x42cc7b
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
lea esi, [esp + 0x28]
xor edi, edi
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
cmp dword [esp + 0x1c], 0
je 0x42cc8e
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.004536d5
add esp, 0x2c
pop esi
pop edi
ret
Function at 0x4430e0
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebx
push edi
push esi
sub esp, 0x860
mov eax, dword [esp + 0x870]
lea eax, [esp + 0x40]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x820
call fcn.0044e7d0
lea eax, [esp + 0x40]
cmp eax, 0
je 0x44328e
lea eax, [esp + 0x40]
mov dword [esp], eax
mov dword [esp + 4], 0x104
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
sub esp, 8
cmp eax, 0
setne al
xor al, 0xff
and al, 1
movzx eax, al
cmp eax, 0
setg al
test al, 1
jne 0x44314c
jmp 0x443155
mov word [esp + 0x28], 0x43
jmp 0x443162
jmp 0x443157
mov eax, dword [esp + 0x40]
mov word [esp + 0x28], ax
jmp 0x443162
mov word [esp + 0x2a], 0x3a
mov word [esp + 0x2c], 0x5c
mov word [esp + 0x2e], 0
mov dword [esp + 0x20], 0
lea eax, [esp + 0x28]
xor ecx, ecx
lea ecx, [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
sub esp, 0x20
cmp eax, 0
je 0x44328e
lea eax, [esp + 0x20]
mov dword [esp], eax
call fcn.004430c0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x20]
mov dword [esp], eax
call fcn.004430c0
mov word [esp + 0x34], ax
lea eax, [esp + 0x20]
mov dword [esp], eax
call fcn.004430c0
mov word [esp + 0x36], ax
mov dword [esp + 0x24], 1
jmp 0x44320e
cmp dword [esp + 0x24], 9
jl 0x443217
jmp 0x44324e
lea eax, [esp + 0x20]
mov dword [esp], eax
call fcn.004430c0
mov ecx, dword [esp + 0x24]
sub ecx, 0x8bfaabad
sub ecx, 1
mov byte [esp + ecx - 0x7405541b], al
mov eax, dword [esp + 0x24]
sub eax, 0xfa607aba
add eax, 1
add eax, 0xfa607aba
mov dword [esp + 0x24], eax
jmp 0x44320e
jmp 0x443250
mov eax, dword [esp + 0x38]
movzx ecx, word [esp + 0x34]
movzx edx, word [esp + 0x36]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x870]
lea ebx, str.l2_08x_08x_04x_xu
mov dword [esp], edi
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_wsprintfW]
jmp 0x44328e
add esp, 0x860
pop esi
pop edi
pop ebx
ret
Function at 0x4432a0
Capabilities:
Decode data using base64 via winapi

Disassembly:
push edi
push esi
sub esp, 0x30
mov eax, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.00453c80
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
xor edx, edx
lea edx, [esp + 0x20]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
sub esp, 0x1c
cmp eax, 0
jne 0x443319
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 1
jmp 0x4433bb
mov eax, dword [esp + 0x20]
add eax, 1
mov dword [esp], eax
call fcn.00453774
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov byte [eax + ecx], 0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
lea esi, [esp + 0x20]
xor edi, edi
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
sub esp, 0x1c
cmp eax, 0
jne 0x44339d
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.004536d5
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 1
jmp 0x4433bb
jmp 0x44339f
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x40]
mov dword [ecx], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 1
jmp 0x4433bb
mov eax, dword [esp + 0x24]
add esp, 0x30
pop esi
pop edi
ret
Function at 0x44ad50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
sub esp, 0x3c
mov eax, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov ecx, dword [esp + 4]
mov eax, dword [esp + 4]
mov esi, dword [eax + 0x3c]
mov eax, ecx
and eax, esi
mov edx, ecx
or edx, esi
xor edx, 0xffffffff
or ecx, esi
xor ecx, 0xffffffff
xor edx, 0xffffffff
xor ecx, 0xffffffff
and edx, ecx
add eax, edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx + 0x78]
xor edx, edx
sub edx, ecx
add edx, 0
sub eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x10]
add eax, dword [ecx + 0x20]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x24]
sub eax, 0xe60fc7aa
sub eax, 0x57f955f7
add eax, 0xe60fc7aa
add eax, ecx
add eax, 0x57f955f7
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx + 0x18]
jb 0x44ae0b
mov dword [esp + 8], 2
jmp 0x44ae8d
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0xc]
mov ecx, dword [ecx + edx*4]
xor ecx, 0xffffffff
and ecx, 0xffffffff
or ecx, 0
add ecx, 0
add ecx, 1
sub eax, ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.0044af10
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x24]
jne 0x44ae66
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
movzx eax, word [eax + ecx*2]
mov dword [esp + 0x14], eax
mov dword [esp + 8], 2
jmp 0x44ae6e
mov dword [esp + 8], 0
cmp dword [esp + 8], 0
jne 0x44ae8b
jmp 0x44ae77
jmp 0x44ae79
jmp 0x44ae7b
mov eax, dword [esp + 0xc]
sub eax, 0xffffffff
mov dword [esp + 0xc], eax
jmp 0x44adf1
jmp 0x44ae8d
jmp 0x44ae8f
cmp dword [esp + 0x14], 0
sete al
test al, 1
jne 0x44ae9d
jmp 0x44aeb1
jmp 0x44ae9f
mov dword [esp + 0x18], 0
mov dword [esp + 8], 1
jmp 0x44aefb
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x10]
add eax, dword [ecx + 0x1c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov ecx, dword [ecx + edx*4]
and ecx, ecx
xor ecx, 0xffffffff
and ecx, 0xffffffff
xor ecx, 0xffffffff
xor ecx, 0xffffffff
or ecx, 0
sub ecx, 0xffffffff
sub eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov dword [esp + 8], 1
jmp 0x44aefb
mov eax, dword [esp + 0x18]
add esp, 0x3c
pop esi
ret
Function at 0x44b410
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
sub esp, 0x24
mov dword [esp + 0x1c], 0xc
mov dword [esp + 0x18], 0x10
mov dword [esp + 0x20], 0x10
mov eax, dword fs:[0x30]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, eax
and edx, ecx
shl edx, 1
xor eax, ecx
add eax, edx
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
add eax, 0x8d6516c2
add eax, ecx
sub eax, 0x8d6516c2
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 0
je 0x44b4a8
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x30]
lea ecx, str.kernel32.dll
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
sub esp, 8
cmp eax, 0
jne 0x44b4a8
jmp 0x44b4c1
jmp 0x44b4aa
jmp 0x44b4ac
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
cmp eax, ecx
setne al
test al, 1
jne 0x44b470
jmp 0x44b4bf
jmp 0x44b4c1
jmp 0x44b4c3
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x18]
add esp, 0x24
ret

Function at 0x44bcef
Capabilities:
Parse pe header

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

Function at 0x457b50
Capabilities:
Parse pe header

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

Function at 0x45d728
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045d733
Function at 0x40d4a7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push edx
mov eax, dword [ebp + 0xc]
shl eax, 2
mov dword [ebp - 0x10], eax
xor eax, eax
mov edx, eax
and edx, 3
mov edi, eax
sar edi, 2
lea ecx, [edx*8]
lea esi, [edi + edx*4]
mov edx, 0xff
shl edx, cl
mov ebx, dword [ebp - 0x10]
lea edi, [edi + ebx + 4]
mov ebx, dword [ebp + 8]
and edx, dword [ebx + edi*4 + 8]
shr edx, cl
xor byte [ebx + esi], dl
inc eax
cmp eax, 0x10
jne 0x40d4b9
pop eax
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40d80d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov al, 1
xor ebx, ebx
movzx edx, al
mov byte [edx + 0x4159d8], bl
mov byte [ebx + 0x415ad8], al
mov dword [esp + 4], 3
mov dword [esp], edx
call fcn.0040d11c
inc ebx
cmp ebx, 0xff
jne 0x40d81a
xor edx, edx
xor ecx, ecx
jmp 0x40d85c
movzx eax, byte [edx + 0x4159d8]
mov ecx, 0xff
sub ecx, eax
mov cl, byte [ecx + 0x415ad8]
mov byte [edx + 0x4157d8], 0
mov byte [ebp - 0xd], 0
xor eax, eax
movzx edi, cl
lea ecx, [eax + 4]
mov dword [ebp - 0x20], ecx
lea esi, [eax + 5]
lea ecx, [eax + 6]
mov dword [ebp - 0x18], ecx
lea ecx, [eax + 7]
mov dword [ebp - 0x1c], ecx
mov ebx, edi
xor ebx, 0x63
mov cl, al
sar ebx, cl
mov dword [ebp - 0x14], ebx
and dword [ebp - 0x20], 7
mov ebx, edi
mov cl, byte [ebp - 0x20]
sar ebx, cl
mov ecx, dword [ebp - 0x14]
xor ebx, ecx
mov dword [ebp - 0x20], ebx
and esi, 7
mov ebx, edi
mov ecx, esi
sar ebx, cl
mov esi, dword [ebp - 0x20]
xor esi, ebx
and dword [ebp - 0x18], 7
mov ebx, edi
mov cl, byte [ebp - 0x18]
sar ebx, cl
xor ebx, esi
and dword [ebp - 0x1c], 7
mov esi, edi
mov cl, byte [ebp - 0x1c]
sar esi, cl
xor esi, ebx
and esi, 1
mov cl, al
shl esi, cl
mov ebx, esi
or byte [ebp - 0xd], bl
inc eax
cmp eax, 8
jne 0x40d86c
movzx eax, byte [ebp - 0xd]
mov byte [edx + 0x4157d8], al
mov byte [eax + 0x4158d8], dl
inc edx
cmp edx, 0x100
jne 0x40d848
mov byte [0x4157d9], 0x7c
mov byte [0x415954], 1
mov byte [0x41593b], 0
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40dbdc
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 8
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov dword [ecx + 4], 0
xor eax, eax
mov byte [ecx + eax + 8], al
inc eax
cmp eax, 0x100
jne 0x40dbf7
mov ebx, ecx
lea edi, [ecx + 0x100]
mov dword [ebp - 0x14], edi
xor edx, edx
xor esi, esi
mov al, byte [ebx + 8]
mov byte [ebp - 0xe], al
mov edi, dword [ebp + 0xc]
add al, byte [edi + edx]
add esi, eax
and esi, 0xff
mov al, byte [ecx + esi + 8]
mov byte [ebx + 8], al
mov al, byte [ebp - 0xe]
mov byte [ecx + esi + 8], al
lea eax, [edx + 1]
cdq
idiv dword [ebp + 0x10]
inc ebx
cmp ebx, dword [ebp - 0x14]
jne 0x40dc12
pop eax
pop edx
pop ebx
pop esi
pop edi
pop ebp
ret