joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4136f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], 0
mov dword [0x5e5260], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, eax
xor edx, edx
mov eax, ebp
call fcn.004138d0
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x5e5260]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00403610
call sub.kernel32.dll_GetCommandLineA
mov dword [0x56e4d0], eax
mov ebx, eax
jmp 0x413893
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x413778
cmp byte [ebx], 0
je 0x41389c
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x4137f3
mov al, byte [ebx]
cmp al, 1
jb 0x4137e8
sub al, 0x20
jbe 0x4137b8
sub al, 2
je 0x4137cc
jmp 0x4137e8
mov al, byte [ebp - 0x114]
test al, al
je 0x4137f8
add dword [ebp - 0x110], 1
jmp 0x4137f0
cmp byte [ebx + 1], 0x22
je 0x4137e3
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x4137f0
add ebx, 1
jmp 0x4137f0
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x4137a8
test dword [ebp - 0x10c], 0xffffffff
je 0x41388c
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.004138d0
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x5e5260]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x413883
mov al, byte [ebx]
cmp al, 1
jb 0x413878
sub al, 0x20
jbe 0x413848
sub al, 2
je 0x41385c
jmp 0x413878
mov al, byte [ebp - 0x114]
test al, al
je 0x413888
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x413880
cmp byte [ebx + 1], 0x22
je 0x413873
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x413880
add ebx, 1
jmp 0x413880
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x413838
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x41377b
mov ebx, dword [ebp - 0x10c]
mov dword [0x5e5250], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x5e5260
call fcn.00410da0
mov eax, dword [0x5e5260]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x428a40
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.00428a30
push ebp
push 0x4145a0
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 1
mov eax, 0x5e3028
call fcn.0056cd80
mov dword [ebp - 8], eax
mov edx, 0x80000001
call fcn.0056cd40
mov eax, dword [ebp - 8]
xor cl, cl
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
call fcn.0056cf50
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0xc]
mov edx, str.Personal
call fcn.0056d130
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, str.Documents
call fcn.004289e0
mov eax, dword [ebp - 8]
call fcn.0040d390
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00428a30
mov esp, ebp
pop ebp
ret
Function at 0x42b2e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov byte [ebp - 0xc], cl
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.kernel32.dll_GetLocaleInfoW
mov dword [ebp - 0x1c], eax
cmp eax, 2
jle 0x42b38a
mov eax, dword [ebp - 0x1c]
sub eax, 2
test eax, eax
jl 0x42b3a6
mov dword [ebp - 0x20], 0xffffffff
lea esi, [esi]
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov dx, word [ebp + edx*2 - 0x18]
mov word [ebp - 0x24], dx
mov edx, dword [ebp - 0x20]
mov dx, word [ebp + edx*2 - 0x18]
cmp dx, 0x20
jb 0x42b3a6
sub dx, 0x20
je 0x42b380
sub dx, 0x80
je 0x42b380
sub dx, 0x1f62
jb 0x42b3a6
sub dx, 1
jbe 0x42b380
sub dx, 6
je 0x42b380
sub dx, 0x26
jne 0x42b3a6
nop
jmp 0x42b380
cmp eax, dword [ebp - 0x20]
jg 0x42b328
lea esi, [esi]
jmp 0x42b3a6
cmp dword [ebp - 0x1c], 2
jne 0x42b39a
mov ax, word [ebp - 0x18]
mov word [ebp - 0x24], ax
jmp 0x42b3a6
mov al, byte [ebp - 0xc]
call fcn.0040b290
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x24]
sub ax, 0x7f
jbe 0x42b424
sub ax, 0x21
je 0x42b438
sub ax, 0x17
je 0x42b444
sub ax, 0x222
je 0x42b450
sub ax, 0x392
je 0x42b458
sub ax, 1
je 0x42b460
sub ax, 0x1996
je 0x42b468
sub ax, 1
je 0x42b470
sub ax, 6
je 0x42b478
sub ax, 0xb
je 0x42b488
sub ax, 0x1b
je 0x42b480
sub ax, 0x367
je 0x42b490
jmp 0x42b498
mov ax, word [ebp - 0x24]
call fcn.0040b330
mov byte [ebp - 0x10], al
jmp 0x42b4a0
mov byte [ebp - 0x10], 0x20
jmp 0x42b4a0
mov byte [ebp - 0x10], 0x2e
jmp 0x42b4a0
mov byte [ebp - 0x10], 0x27
jmp 0x42b4a0
mov byte [ebp - 0x10], 0x2c
jmp 0x42b4a0
mov byte [ebp - 0x10], 0x27
jmp 0x42b4a0
mov byte [ebp - 0x10], 0x20
jmp 0x42b4a0
mov byte [ebp - 0x10], 0x20
jmp 0x42b4a0
mov byte [ebp - 0x10], 0x20
jmp 0x42b4a0
mov byte [ebp - 0x10], 0x20
jmp 0x42b4a0
mov byte [ebp - 0x10], 0x2d
jmp 0x42b4a0
mov byte [ebp - 0x10], 0x27
jmp 0x42b4a0
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x10], al
mov esi, esi
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x438c90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x118]
push ebx
push esi
push edi
mov esi, eax
mov edi, edx
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x110], al
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.00438c80
push ebp
push 0x4145a0
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push edi
call sub.kernel32.dll_FindResourceA
mov dword [esi + 0x10], eax
test eax, eax
jne 0x438da0
mov al, byte [ebp - 0x110]
test al, al
je 0x438d69
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00404dd0
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.00409210
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.0040a000
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x595b60
call fcn.004524d0
mov edx, 0x438cfa
mov ecx, ebp
call fcn.00414440
jmp 0x438da0
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x595b60
call fcn.004524d0
mov edx, 0x438d69
mov ecx, ebp
call fcn.00414440
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x438e64
mov al, byte [ebp - 0x110]
test al, al
je 0x438e2d
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00404dd0
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.00409210
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.0040a000
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x595b60
call fcn.004524d0
mov edx, 0x438dbe
mov ecx, ebp
call fcn.00414440
jmp 0x438e64
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x595b60
call fcn.004524d0
mov edx, 0x438e2d
mov ecx, ebp
call fcn.00414440
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_SizeofResource
mov ebx, eax
push dword [esi + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
mov ecx, ebx
call fcn.00438610
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00438c80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x43c100
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, 0x5967ec
call fcn.0040d180
test al, al
je 0x43c1e6
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
call fcn.0043c200
xor eax, eax
push fcn.0043c0f0
push ebp
push 0x4145a0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0xc4]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x18]
mov byte [edx + 0x18], al
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x1a]
mov byte [edx + 0x1a], al
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x1b]
mov byte [edx + 0x1b], al
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x1c]
mov byte [edx + 0x1c], al
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 8]
add eax, 0x30
call fcn.00408980
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 8]
call fcn.0043b2f0
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 8]
call fcn.0043ad90
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
call dword [ecx + 0xb0]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0043c0f0
jmp 0x43c1f1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0043e410
mov esp, ebp
pop ebp
ret
Function at 0x4487a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc20]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc10], 0
xor eax, eax
push fcn.00448790
push ebp
push 0x4145a0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xfffffff
mov edx, dword [ebp - 4]
lea eax, [ebp - 0xc10]
call fcn.00408980
lea eax, [ebp - 0xc10]
call fcn.00403b20
lea eax, [ebp - 0xc1c]
push eax
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x448800
mov eax, 0x5e52f0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc18], eax
cmp eax, 0xc00
jbe 0x4488aa
mov edx, dword [ebp - 0xc18]
lea eax, [ebp - 0xc0c]
call fcn.0040fd70
xor eax, eax
push fcn.00448780
push ebp
push 0x4145a0
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0xc0c]
push dword [ebp - 0xc18]
push dword [ebp - 0xc1c]
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x44885c
mov eax, 0x5e52f0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x448898
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
mov eax, 0x59b36c
push eax
push dword [ebp - 0xc0c]
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x448898
mov eax, dword [ebp - 0xc20]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
lea esi, [esi]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00448780
jmp 0x448908
lea eax, [ebp - 0xc08]
push eax
push dword [ebp - 0xc18]
push dword [ebp - 0xc1c]
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x4488cc
mov eax, 0x5e52f0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x448908
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
mov eax, 0x59b36c
push eax
lea eax, [ebp - 0xc08]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x448908
mov eax, dword [ebp - 0xc20]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
mov esi, esi
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00448790
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x453a20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x26c]
push ebx
push esi
mov dword [ebp - 4], eax
mov byte [ebp - 8], dl
mov bl, cl
mov edx, 0x59c290
lea eax, [ebp - 0x268]
call fcn.0040ead0
xor eax, eax
push fcn.00453a00
push ebp
push 0x4145a0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
jne 0x453a63
mov eax, 0x5e52f0
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
jne 0x453aab
call sub.kernel32.dll_GetLastError
cmp eax, 0xa1
jbe 0x453a7f
clc
jmp 0x453a86
bt dword [0x59b860], eax
jb 0x453a9f
mov eax, ebp
call fcn.00453b50
test al, al
je 0x453a9f
mov byte [ebp - 0x26c], 1
jmp 0x453b30
mov byte [ebp - 0x26c], 0
jmp 0x453b30
mov eax, esi
and eax, 0x10
movzx edx, byte [ebp - 8]
cmp eax, dword [edx*4 + 0x56fe40]
sete byte [ebp - 0x26c]
mov al, bl
and al, byte [ebp - 0x26c]
je 0x453b30
and esi, 0x400
je 0x453b30
lea ebx, [ebp - 0x268]
mov edx, 0x59c290
mov eax, ebx
call fcn.0040eb90
mov edx, ebx
mov eax, dword [ebp - 4]
xor cl, cl
call fcn.004536c0
test eax, eax
je 0x453b04
sub eax, 1
je 0x453b1c
jmp 0x453b28
mov dl, byte [ebp - 8]
mov eax, dword [ebp - 0x268]
xor cl, cl
call fcn.00453a20
mov byte [ebp - 0x26c], al
jmp 0x453b30
mov byte [ebp - 0x26c], 1
jmp 0x453b30
mov byte [ebp - 0x26c], 0
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00453a00
mov al, byte [ebp - 0x26c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x453d40
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
test eax, eax
jne 0x453d4c
mov eax, 0x5e52f0
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esp, ebp
pop ebp
ret

Function at 0x453e10
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov edi, eax
mov esi, edx
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
xor eax, eax
push fcn.00453e00
push ebp
push 0x4145a0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
test ebx, ebx
jle 0x453e80
lea edx, [ebx - 1]
lea eax, [ebp - 4]
call fcn.0040b640
cmp ebx, 1
jle 0x453e70
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
xor dx, dx
call fcn.0040ad70
jmp 0x453e8b
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00408980
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00453e00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x454290
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.00454280
push ebp
push 0x4145a0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea esi, [esi]
add ebx, 1
lea eax, [ebx*4 + 0x5e6c8c]
xor edx, edx
call fcn.00408980
mov dword [ebx*4 + 0x5e6cac], 0xffffffff
cmp ebx, 7
jl 0x4542b8
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push esi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x454344
lea esi, [esi]
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.00409380
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.0044a870
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x454344
push 4
push ebx
push esi
mov eax, 0x454160
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x4541f0
push eax
call sub.kernel32.dll_EnumCalendarInfoA
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00454280
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4549a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x1c]
push ebx
push esi
push edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
xor edx, edx
push fcn.00454970
push ebp
push 0x4145a0
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0xc]
call fcn.0044a030
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.00408980
lea eax, [ebp - 4]
mov cl, 1
mov dx, 1
call fcn.0040a000
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.00408980
call sub.kernel32.dll_GetEnvironmentStringsA
mov dword [ebp - 0x1c], eax
mov ebx, eax
jmp 0x454aac
lea ecx, [ebp - 8]
mov eax, ebx
xor dx, dx
call fcn.004092e0
mov eax, dword [ebp - 8]
test eax, eax
je 0x454a37
mov eax, dword [eax - 4]
mov edi, eax
lea eax, [ebp - 8]
xor cl, cl
mov dx, 1
call fcn.0040a000
mov edx, dword [ebp - 8]
mov ecx, 1
mov al, 0x3d
call fcn.00409900
mov esi, eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi - 1]
mov eax, dword [ebp - 8]
mov edx, 1
call fcn.004097b0
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0044a030
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00409550
test eax, eax
jne 0x454aa4
push dword [ebp - 0x18]
mov eax, dword [ebp - 8]
test eax, eax
je 0x454a93
mov eax, dword [eax - 4]
sub eax, esi
mov ecx, eax
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.004097b0
jmp 0x454ab5
lea eax, [ebx + edi]
add eax, 1
mov ebx, eax
cmp byte [ebx], 0
jne 0x454a20
push dword [ebp - 0x1c]
call sub.kernel32.dll_FreeEnvironmentStringsA
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00454970
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454af0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x5e6cf0], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x5e6b50], eax
mov eax, dword [ebp - 0x90]
mov dword [0x5e6b60], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x5e6b70], eax
mov eax, dword [ebp - 0x88]
mov dword [0x5e6b80], eax
mov edx, 0x5e6b91
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.00403610
lea eax, [ebp - 0x80]
call fcn.00404770
mov byte [0x5e6b90], al
mov eax, 0x59b930
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x5e6d00], eax
test eax, eax
je 0x454b90
mov eax, 0x59b93c
push eax
push dword [0x5e6d00]
call sub.kernel32.dll_GetProcAddress
mov dword [0x5e6cf0], eax
nop
cmp dword [0x5e6b60], 6
jae 0x454ba4
mov dword [0x56f700], 0
nop
cmp dword [0x5e6b60], 6
jb 0x454bc0
cmp dword [0x5e6b70], 1
jb 0x454bc0
mov dword [0x56f710], 2
mov esp, ebp
pop ebp
ret

Function at 0x45eee0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.0045eed0
push ebp
push 0x4145a0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xc]
call fcn.0040ade0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x45ef1b
mov eax, 0x5e52f0
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
or eax, eax
setne al
mov byte [ebp - 8], al
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.0045eed0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x469090
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov edx, eax
xor eax, eax
lea ebx, [edx + 1]
movzx ecx, byte [edx]
add ecx, 1
and ecx, 0xff
add edx, ecx
jmp 0x4690c1
mov ecx, eax
shl ecx, 5
sub ecx, eax
movzx esi, byte [ebx]
xor ecx, esi
mov eax, ecx
add ebx, 1
cmp edx, ebx
ja 0x4690b0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x498c70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
lea esi, [ecx - 1]
test esi, esi
jl 0x498cac
mov edi, 0xffffffff
lea esi, [esi]
add edi, 1
mov cl, al
xor cl, byte [edx]
and ecx, 0xff
mov ebx, ecx
mov ecx, eax
shr ecx, 8
xor ecx, dword [ebx*4 + 0x5e74c0]
mov eax, ecx
add edx, 1
cmp esi, edi
jg 0x498c88
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49a810
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x20]
mov dword [ebp - 8], eax
lea esi, [esi]
mov edx, edi
mov eax, dword [edx + 0x30]
mov ecx, dword [edx + 0x68]
sub eax, ecx
sub eax, dword [edx + 0x60]
mov dword [ebp - 4], eax
test eax, eax
jne 0x49a855
mov eax, edi
cmp dword [eax + 0x60], 0
jne 0x49a855
cmp dword [eax + 0x68], 0
jne 0x49a855
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x49a944
cmp dword [ebp - 4], 0xffffffff
jne 0x49a864
sub dword [ebp - 4], 1
jmp 0x49a944
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, eax
mov eax, edx
mov edx, ecx
mov esi, eax
sub edx, 0x106
sbb esi, 0
add edx, ecx
adc esi, eax
mov eax, dword [edi + 0x60]
xor ecx, ecx
cmp esi, ecx
jl 0x49a895
jg 0x49a944
cmp edx, eax
ja 0x49a944
mov eax, dword [edi + 0x2c]
add eax, dword [ebp - 8]
mov edx, dword [edi + 0x2c]
mov ecx, dword [ebp - 8]
call fcn.00403610
mov eax, dword [ebp - 8]
sub dword [edi + 0x64], eax
mov eax, dword [ebp - 8]
sub dword [edi + 0x60], eax
mov eax, dword [ebp - 8]
sub dword [edi + 0x50], eax
mov ebx, dword [edi + 0x40]
mov eax, dword [edi + 0x38]
lea eax, [eax + ebx*2]
mov dword [ebp - 0x10], eax
lea esi, [esi]
sub dword [ebp - 0x10], 2
mov eax, dword [ebp - 0x10]
movzx edx, word [eax]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
ja 0x49a8eb
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov word [edx], ax
jmp 0x49a8f3
mov eax, dword [ebp - 0x10]
mov word [eax], 0
sub ebx, 1
jne 0x49a8c8
mov ebx, dword [ebp - 8]
mov eax, dword [edi + 0x34]
lea eax, [eax + ebx*2]
mov dword [ebp - 0x10], eax
lea esi, [esi]
sub dword [ebp - 0x10], 2
mov eax, dword [ebp - 0x10]
movzx edx, word [eax]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
ja 0x49a92b
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov word [eax], dx
jmp 0x49a933
mov eax, dword [ebp - 0x10]
mov word [eax], 0
sub ebx, 1
jne 0x49a908
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov dword [ebp - 4], eax
lea esi, [esi]
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x49a9b3
mov eax, edi
mov edx, dword [eax + 0x2c]
mov ecx, dword [eax + 0x60]
mov eax, dword [eax + 0x68]
add eax, ecx
add edx, eax
mov eax, dword [edi]
mov ecx, dword [ebp - 4]
call fcn.0049a490
mov ebx, eax
add dword [edi + 0x68], ebx
cmp dword [edi + 0x68], 3
jb 0x49a99c
mov eax, edi
mov edx, dword [eax + 0x2c]
mov eax, dword [eax + 0x60]
movzx eax, byte [edx + eax]
mov dword [edi + 0x3c], eax
mov eax, edi
mov edx, dword [eax + 0x2c]
mov ecx, dword [eax + 0x60]
movzx edx, byte [edx + ecx + 1]
mov esi, dword [eax + 0x3c]
mov ecx, dword [eax + 0x4c]
shl esi, cl
xor edx, esi
and edx, dword [eax + 0x48]
mov dword [edi + 0x3c], edx
mov eax, edi
cmp dword [eax + 0x68], 0x106
jae 0x49a9b3
mov eax, dword [eax]
cmp dword [eax + 4], 0
jne 0x49a828
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret