joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c9a4
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004095ac
xor eax, eax
push ebp
push 0x40ca64
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a330
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a4e0
mov eax, dword [ebx]
call fcn.0040c86c
test al, al
jne 0x40ca41
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a330
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a4e0
mov eax, dword [ebx]
call fcn.0040c86c
test al, al
jne 0x40ca41
mov eax, ebx
call fcn.004094c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca6b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409528
lea eax, [ebp - 4]
call fcn.004094c8
ret

Function at 0x40d428
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x420fb4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4210dd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetLogicalDriveStringsW
mov esi, eax
test esi, esi
jle 0x4210b7
lea ebx, [ebp - 0x218]
lea eax, [ebx + 4]
mov word [eax], 0
push 0x104
lea eax, [ebp - 0x424]
push eax
push ebx
call sub.kernel32.dll_QueryDosDeviceW
mov esi, eax
test esi, esi
jle 0x4210a0
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.0040a330
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a7fc
test eax, eax
jle 0x4210a0
mov eax, dword [ebp - 4]
test eax, eax
je 0x421054
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x421062
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x428]
push eax
mov ecx, edi
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.0040a650
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.0040a2f4
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0040a4e0
jmp 0x4210b7
add ebx, 2
cmp word [ebx], 0
jne 0x42109d
add ebx, 4
test ebx, ebx
je 0x4210b1
cmp word [ebx], 0
jne 0x421006
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4210e4
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.00409528
lea eax, [ebp - 4]
call fcn.004094c8
ret
Function at 0x4211d0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc4
push ebx
xor ebx, ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42140d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.004094c8
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ebx, eax
test ebx, ebx
jne 0x4212a7
cmp dword [ebp - 0x14], 0
jne 0x4212a7
xor edx, edx
mov eax, 6
call fcn.00428d5c
test al, al
je 0x4212a7
push 2
push 0x104
lea eax, [ebp - 0x224]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFinalPathNameByHandleW
test eax, eax
jbe 0x4212a7
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.0040a330
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.00420fb4
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 8]
call fcn.004098a8
mov byte [ebp - 9], 1
jmp 0x4213ef
test ebx, ebx
jne 0x4212b5
cmp dword [ebp - 0x14], 0
je 0x4213a3
push 0
push 1
push 0
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3ee
je 0x4213a3
xor eax, eax
push ebp
push 0x42139c
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x421385
xor eax, eax
push ebp
push 0x42137e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
call sub.kernel32.dll_GetCurrentProcess
lea ecx, [ebp - 0x224]
mov edx, dword [ebp - 0x18]
call fcn.004126c0
test eax, eax
jbe 0x421367
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.0040a330
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x230]
call fcn.00420fb4
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 8]
call fcn.004098a8
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421385
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4213a3
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
cmp byte [ebp - 9], 0
jne 0x4213ef
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 4]
call fcn.004210ec
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 8]
call fcn.004098a8
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x4213ef
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00420fb4
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 8]
call fcn.004098a8
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421414
lea eax, [ebp - 0x23c]
mov edx, 6
call fcn.00409528
ret
Function at 0x421420
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov byte [ebp - 1], 0
xor edx, edx
mov eax, 6
call fcn.00428d5c
test al, al
je 0x4214e8
xor edx, edx
mov eax, ebx
call fcn.00422db8
test al, al
je 0x4214e8
mov eax, ebx
call fcn.00422b88
test al, 0x20
je 0x4214e8
mov eax, ebx
call fcn.0040a28c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4214e8
test ah, 4
je 0x4214e8
test al, 0x10
je 0x421487
mov edi, 0x2000000
jmp 0x421489
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040a28c
push eax
call sub.kernel32.dll_CreateFileW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4214e8
xor eax, eax
push ebp
push 0x4214e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.004211d0
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4214e8
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4217cc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x421825
test eax, edx
je 0x421828
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4217e3
movzx eax, word [eax]
sub eax, ecx
jmp 0x42180a
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x42180b
add ecx, 4
js 0x4217fb
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x421808
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x42180a
xor eax, eax
ret
test eax, eax
je 0x421834
test edx, edx
jne 0x4217d4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x421ff8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, edx
mov ebp, eax
mov byte [esp], 0
mov eax, ebp
test eax, eax
je 0x422010
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x422018
mov al, 1
jmp 0x422035
movzx esi, word [ebp]
mov eax, esi
call fcn.004129ec
test al, al
jne 0x422031
cmp si, 0x5f
je 0x422031
xor eax, eax
jmp 0x422033
mov al, 1
xor al, 1
test al, al
jne 0x4220c5
test bl, bl
je 0x422085
mov eax, ebp
test eax, eax
je 0x42204c
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x4220c1
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.00412a78
test al, al
jne 0x422079
cmp di, 0x5f
je 0x422079
cmp di, 0x2e
je 0x422079
xor eax, eax
jmp 0x42207b
mov al, 1
test al, al
je 0x4220c5
inc esi
dec ebx
jne 0x422059
jmp 0x4220c1
mov eax, ebp
test eax, eax
je 0x422090
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x4220c1
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.00412a78
test al, al
jne 0x4220b7
cmp di, 0x5f
je 0x4220b7
xor eax, eax
jmp 0x4220b9
mov al, 1
test al, al
je 0x4220c5
inc esi
dec ebx
jne 0x42209d
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x422b88
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x422cbc
push dword fs:[eax]
mov dword fs:[eax], esp
movzx ebx, byte [0x422ccc]
mov dl, 1
mov eax, esi
call fcn.00422e50
test al, al
jne 0x422bd9
mov dl, 1
mov eax, esi
call fcn.00422db8
test al, al
je 0x422c6f
lea edx, [ebp - 0x424]
mov eax, esi
call fcn.004230cc
mov eax, dword [ebp - 0x424]
lea edx, [ebp - 4]
call fcn.0042921c
push 0x104
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a28c
mov esi, eax
push esi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x422c6a
test byte [ebp - 0xc], 1
je 0x422c35
or bl, 1
test byte [ebp - 0xc], 2
je 0x422c3e
or bl, 2
test byte [ebp - 0xc], 0x80
je 0x422c47
or bl, 0x20
push esi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x422c5b
dec eax
je 0x422c60
dec eax
je 0x422c65
dec eax
jne 0x422c96
or bl, 0x10
jmp 0x422c96
or bl, 4
jmp 0x422c96
or bl, 8
jmp 0x422c96
call fcn.00429a64
lea edx, [ebp - 0x428]
mov eax, dword [0x59dc5c]
call fcn.0040d374
mov ecx, dword [ebp - 0x428]
mov dl, 1
mov eax, dword [0x41cbfc]
call fcn.00427d48
call fcn.00408bfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422cc3
lea eax, [ebp - 0x428]
mov edx, 2
call fcn.00409528
lea eax, [ebp - 4]
call fcn.004094c8
ret
Function at 0x422db8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040a28c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x422e22
test ah, 4
je 0x422e1b
test bl, bl
jne 0x422de0
mov al, 1
jmp 0x422e49
test al, 0x10
je 0x422de8
xor eax, eax
jmp 0x422e49
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x422e0c
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x422e49
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x422e49
test al, 0x10
sete al
jmp 0x422e49
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x422e43
cmp ebx, 3
je 0x422e43
cmp ebx, 0x7b
je 0x422e43
mov eax, esi
call fcn.00422d78
test al, al
jne 0x422e47
xor eax, eax
jmp 0x422e49
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x422e50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.0040a28c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x422ef7
test esi, 0x400
jne 0x422e8c
test esi, 0x10
setne bl
jmp 0x422f16
cmp byte [esp], 0
je 0x422ec0
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x422f16
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x422f16
test esi, 0x10
je 0x422ecc
mov bl, 1
jmp 0x422f16
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x422ef3
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x422f16
mov bl, 1
jmp 0x422f16
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x422f10
cmp eax, 3
je 0x422f10
cmp eax, 0x7b
je 0x422f10
cmp eax, 0x35
jne 0x422f14
xor ebx, ebx
jmp 0x422f16
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x422f20
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x422ff3
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004098f0
cmp byte [ebp - 9], 0
je 0x422fb1
mov eax, ebx
call fcn.0040a28c
push eax
call sub.kernel32.dll_GetFileAttributesW
test ah, 4
je 0x422fb1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00421420
test al, al
je 0x422fb1
mov eax, dword [ebp - 8]
call fcn.004232b0
test al, al
je 0x422fa6
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00423090
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0042921c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.0040a4e0
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004098f0
push edi
mov eax, dword [ebp - 4]
call fcn.0040a28c
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x422fcb
call sub.kernel32.dll_GetLastError_2
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422ffa
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409528
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409528
ret

Function at 0x426eb4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x426eed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409650
jmp 0x426ef6
mov eax, ebx
mov edx, esi
call fcn.004098a8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x426f00
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x426f22
movzx eax, word [esp]
jmp 0x426f24
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x428d7c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x428e52
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004098f0
lea eax, [ebp - 4]
call fcn.00409a90
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a28c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x428e3c
mov eax, ebx
call fcn.00404554
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x428e35
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a28c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x428e1f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x428e64
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x428e1f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428e3c
mov eax, dword [ebp - 0x10]
call fcn.00404570
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428e59
lea eax, [ebp - 4]
call fcn.004094c8
ret

Function at 0x429908
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004099d0
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040d408
mov edi, eax
cmp edi, 0x104
jbe 0x4298af
mov eax, edi
add eax, eax
call fcn.00404554
mov esi, eax
jmp 0x4298b1
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040d408
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4298ec
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4298d6
mov eax, esp
cmp esi, eax
je 0x4298f9
mov eax, esi
call fcn.00404570
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x429934
cmp bl, 0
je 0x429930
cmp bl, 0x41
jl 0x42992b
cmp bl, 0x5a
jg 0x42992b
or bl, 0x20
xor al, bl
inc esi
jmp 0x42990f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x429870

Function at 0x42a13c
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0040a330
add esp, 0x800
pop ebx
ret
Function at 0x454838
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4548d6
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x45489a
cmp byte [ebx + 0x10], 0
jne 0x45489a
cmp byte [ebx + 0x3c], 0
jne 0x45489a
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4548bb
lea edx, [ebp - 4]
mov eax, dword [0x59da88]
call fcn.0040d374
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x442b00]
call fcn.00427d48
call fcn.00408bfc
jmp 0x4548bb
lea edx, [ebp - 8]
mov eax, dword [0x59da88]
call fcn.0040d374
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x442b00]
call fcn.00427d48
call fcn.00408bfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4548dd
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409528
ret

Function at 0x4551d8
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x455226
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00454770
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45523f
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x455248
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00454770
dec esi
jne 0x45526a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x4574ec
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5a3020
cmp dword [edi], 0
jne 0x457568
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5a301c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x59a9b4
mov ecx, 2
call fcn.004047a0
mov edx, 0x4574c4
lea eax, [esi + 5]
call fcn.004574e4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004574e4
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x45753d
mov dword [0x5a301c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x45c1c8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x45c21a
test eax, edx
je 0x45c21d
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x45c1dd
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x45c203
add ecx, 4
js 0x45c1f3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x45c200
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x45c229
test edx, edx
jne 0x45c1d0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x45f86c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x45fa27
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004098f0
mov eax, dword [ebp - 4]
call fcn.0045f1bc
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x45f8be
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.0040a698
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004604a8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x45f99d
xor eax, eax
push ebp
push 0x45f996
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0045f45c
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.0045fa5c
test al, al
je 0x45f974
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00409650
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x45f974
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.0040a28c
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0045f3bc
test al, al
je 0x45f96e
mov eax, dword [ebp - 8]
call fcn.0040a28c
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0040a2f4
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.0045f86c
dec ebx
cmp ebx, 0xffffffff
jne 0x45f91d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f99d
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0045f45c
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
cmp byte [0x5a3088], 0
je 0x45f9dd
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.0040a28c
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0045f448
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0045f3bc
mov ebx, eax
jmp 0x45fa04
mov eax, dword [ebp - 4]
call fcn.0040a28c
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0045f448
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0045f3bc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fa2e
lea eax, [ebp - 0x3c]
call fcn.004094c8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409528
ret