joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a1a3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xac
mov dword [ebp - 0x98], 0
mov dword [esp + 4], 0x452992
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebp - 0x8c], eax
mov eax, 0
cmp dword [ebp - 0x8c], 0
je 0x41a39f
mov eax, 0
cmp dword [0x455170], 0
jle 0x41a39f
mov ecx, dword [0x455170]
mov edx, 0xb21642c9
mov eax, ecx
imul edx
add edx, ecx
sar edx, 6
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov dword [ebp - 0x90], edx
imul eax, edx, 0x5c
sub ecx, eax
mov dword [ebp - 0x94], ecx
jmp 0x41a361
cmp byte [ebp - 0x78], 0
je 0x41a323
mov dword [esp], 0x48
call fcn.00405785
mov dword [ebp - 0x9c], eax
mov edx, dword [ebp + 8]
mov dword [eax + 0x44], edx
mov dword [ebp + 8], eax
movzx eax, byte [ebp - 0x78]
mov dword [esp + 8], eax
lea eax, [ebp - 0x77]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
add eax, 0x20
mov dword [esp], eax
call fcn.0041899a
mov eax, dword [ebp - 0x58]
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp - 0x54]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x44]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x1c], eax
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x20]
mov dword [ebp - 0xa0], eax
lea ebx, [ebp - 0x88]
mov ecx, 0
cmp byte [edx], 0x20
je 0x41a2c4
movzx eax, byte [edx]
mov byte [ebx], al
inc ecx
inc edx
inc ebx
cmp ecx, 7
jle 0x41a2b2
lea eax, [ebp - 0x20]
mov edi, 0x452aa4
mov ecx, 3
cld
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
cmp dl, al
je 0x41a309
mov byte [ebx], 0x2e
inc ebx
mov ecx, 0
mov eax, dword [ebp - 0xa0]
cmp byte [eax], 0x20
je 0x41a309
mov edx, eax
movzx eax, byte [eax]
mov byte [ebx], al
inc ecx
inc edx
mov dword [ebp - 0xa0], edx
inc ebx
cmp ecx, 2
jle 0x41a2e9
mov byte [ebx], 0
lea eax, [ebp - 0x88]
mov dword [esp], eax
call sub.msvcrt.dll__strdup
mov esi, dword [ebp - 0x9c]
mov dword [esi + 0x40], eax
inc dword [ebp - 0x98]
mov eax, dword [ebp - 0x90]
cmp dword [ebp - 0x98], eax
jne 0x41a361
mov dword [ebp - 0x98], 0
mov dword [esp + 8], 1
mov edx, dword [ebp - 0x94]
mov dword [esp + 4], edx
mov esi, dword [ebp - 0x8c]
mov dword [esp], esi
call sub.msvcrt.dll_fseek
mov eax, dword [ebp - 0x8c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x5c
mov dword [esp + 4], 1
lea edx, [ebp - 0x78]
mov dword [esp], edx
call sub.msvcrt.dll_fread
test eax, eax
jne 0x41a227
mov esi, dword [ebp - 0x8c]
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov eax, dword [ebp + 8]
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x41a3aa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14c
mov esi, dword [ebp + 8]
mov dword [esp + 4], 0x452992
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov edi, eax
mov eax, 0
test edi, edi
je 0x41a486
jmp 0x41a452
mov dword [esp], 0x48
call fcn.00405785
mov dword [eax + 0x44], esi
mov esi, eax
mov dword [esp + 8], 0x1f
lea eax, [ebp - 0x4a]
mov dword [esp + 4], eax
lea ebx, [esi + 0x20]
mov dword [esp], ebx
call fcn.0041899a
mov eax, dword [ebp - 0x140]
mov dword [esi], eax
mov eax, dword [ebp - 0x13c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x138]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x134]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x130]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x12c]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x128]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x124]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x40], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x12c
mov dword [esp + 4], 1
lea eax, [ebp - 0x148]
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
jne 0x41a3dd
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov eax, esi
add esp, 0x14c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x41eb63
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14c
mov esi, dword [ebp + 8]
mov byte [ebp - 0x138], 0
mov dword [esp], 0xc
call fcn.00405785
mov ebx, eax
cld
mov ecx, 3
mov eax, 0
mov edi, ebx
rep stosd dword es:[edi], eax
cmp dword [ebp + 0xc], 0
je 0x41ebc9
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._s_VIDEO_TS_VTS__02d_0.IFO
mov dword [esp + 4], 0x104
lea eax, [ebp - 0x128]
mov dword [esp], eax
call fcn.0042cbdf
jmp 0x41ebed
mov eax, dword [esi]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x453093
mov dword [esp + 4], 0x104
lea eax, [ebp - 0x128]
mov dword [esp], eax
call fcn.0042cbdf
mov dword [esp + 4], 0x8000
lea esi, [ebp - 0x128]
mov dword [esp], esi
call sub.msvcrt.dll__open
mov edi, eax
cmp eax, 0xffffffff
jne 0x41ec2c
mov dword [esp + 4], esi
mov dword [esp], str.Faild_to_open__s_n
call fcn.0042c4b6
mov dword [esp], ebx
call sub.msvcrt.dll_free
mov eax, 0
jmp 0x41ecfe
mov dword [esp + 8], 0xd
lea eax, [ebp - 0x138]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.msvcrt.dll__read
cmp eax, 0xd
je 0x41ec61
mov dword [esp], str.Faild_to_read_VIDEO_TS.IFO_n
call fcn.0042c4b6
mov eax, 0
jmp 0x41ecfe
lea eax, [ebp - 0x138]
mov dword [esp + 4], eax
mov dword [esp], str.DVDVIDEO_VMG
call sub.msvcrt.dll_strstr
test eax, eax
je 0x41ec9b
cmp dword [ebp + 0xc], 0
jne 0x41ec9b
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.0041e5ae
mov ebx, eax
mov dword [esp], edi
call sub.msvcrt.dll__close
mov eax, ebx
jmp 0x41ecfe
lea eax, [ebp - 0x138]
mov dword [esp + 4], eax
mov dword [esp], str.DVDVIDEO_VTS
call sub.msvcrt.dll_strstr
test eax, eax
je 0x41ecd5
cmp dword [ebp + 0xc], 0
je 0x41ecd5
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.0041e290
mov ebx, eax
mov dword [esp], edi
call sub.msvcrt.dll__close
mov eax, ebx
jmp 0x41ecfe
mov dword [esp + 4], str.Giving_up_this_is_not_a_valid_IFO_file_n
mov dword [esp], 0xffffffff
call fcn.0042c4e6
mov dword [esp], edi
call sub.msvcrt.dll__close
mov dword [esp], ebx
call sub.msvcrt.dll_free
mov eax, 0
add esp, 0x14c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x421090
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret
Function at 0x426b7d
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_strcpy
mov eax, dword [ebp + 8]
mov dword [ebx + 0x28], eax
movsx eax, byte [esi]
cmp eax, 1
je 0x426bb6
cmp eax, 2
je 0x426c4a
jmp 0x426cde
mov dword [ebx + 0x20], 1
mov eax, dword [esi + 8]
mov dword [ebx + 0x24], eax
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call fcn.00421cf5
mov dword [ebx + 0x2c], eax
mov eax, dword [esi + 0x10]
mov dword [esp], eax
call fcn.00421cf5
mov dword [ebx + 0x30], eax
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call fcn.00421cf5
mov dword [ebx + 0x34], eax
movzx eax, word [esi + 0x20]
mov word [ebx + 0x38], ax
movzx eax, word [esi + 0x22]
mov word [ebx + 0x3a], ax
movzx eax, word [esi + 0x24]
mov word [ebx + 0x3c], ax
movzx eax, word [esi + 6]
mov word [ebx + 0x40], ax
movzx eax, word [esi + 0x18]
mov word [ebx + 0x42], ax
movzx eax, word [esi + 0x1a]
mov word [ebx + 0x44], ax
movzx eax, word [esi + 0x1c]
mov word [ebx + 0x46], ax
movzx eax, word [esi + 0x1e]
mov word [ebx + 0x48], ax
movzx eax, word [esi + 0x28]
mov word [ebx + 0x4c], ax
movzx eax, word [esi + 0x2a]
mov word [ebx + 0x4e], ax
movzx eax, word [esi + 0x26]
mov word [ebx + 0x4a], ax
jmp 0x426cde
movsx eax, byte [esi + 4]
and eax, 1
cmp eax, 1
sbb eax, eax
not eax
and eax, 2
mov dword [ebx + 0x20], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x24], eax
mov eax, dword [esi + 0x34]
mov dword [esp], eax
call fcn.00421cf5
mov dword [ebx + 0x2c], eax
mov eax, dword [esi + 0x38]
mov dword [esp], eax
call fcn.00421cf5
mov dword [ebx + 0x30], eax
mov eax, dword [esi + 0x3c]
mov dword [esp], eax
call fcn.00421cf5
mov dword [ebx + 0x34], eax
movzx eax, word [esi + 0x10]
mov word [ebx + 0x38], ax
movzx eax, word [esi + 0x12]
mov word [ebx + 0x3a], ax
movzx eax, word [esi + 0x14]
mov word [ebx + 0x3c], ax
mov eax, dword [esi + 0x20]
mov dword [ebx + 0x40], eax
mov eax, dword [esi + 0x2c]
mov dword [ebx + 0x44], eax
mov eax, dword [esi + 8]
mov dword [esp + 4], eax
lea eax, [ebx + 0x48]
mov dword [esp], eax
call fcn.00421a48
mov eax, dword [esi + 0xc]
mov dword [esp + 4], eax
lea eax, [ebx + 0x4d]
mov dword [esp], eax
call fcn.00421a48
mov byte [ebx + 0x51], 0
mov byte [ebx + 0x4c], 0
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x42a590
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov eax, 0x2060
call fcn.0042ee60
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x2058]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0042e8a4
mov edx, 0
test eax, eax
jne 0x42a658
mov eax, dword [ebp - 0x203c]
or eax, dword [ebp - 0x2040]
je 0x42a5e2
movzx eax, word [ebp - 0x2052]
and eax, 0xf000
cmp eax, 0x8000
je 0x42a5e9
mov edx, 0
jmp 0x42a658
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.msvcrt.dll__open
mov esi, eax
mov edx, 0
test eax, eax
js 0x42a658
mov dword [esp + 8], 0x2000
lea eax, [ebp - 0x2018]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll__read
mov edx, 0
cmp eax, 0xffffffff
je 0x42a658
mov edx, 0
test eax, eax
je 0x42a658
mov byte [eax + ebp - 0x2018], 0
inc eax
mov dword [esp + 4], eax
lea eax, [ebp - 0x2018]
mov dword [esp], eax
call fcn.0042b3d0
mov ebx, eax
mov dword [esp], esi
call sub.msvcrt.dll__close
mov edx, ebx
mov eax, edx
add esp, 0x2060
pop ebx
pop esi
pop ebp
ret
Function at 0x42b6ee
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x10], eax
cmp word [edi + 0x14], 0x78
jne 0x42b742
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 5
mov dword [esp + 4], 1
mov dword [esp], str.BOINK
call sub.msvcrt.dll_fwrite
mov eax, 1
jmp 0x42b85e
movsx eax, byte [edi + 0x11]
cmp eax, 0xc
ja case.0x42b74b.0
jmp dword [eax*4 + 0x453d2c]
movzx eax, byte [edx]
jmp 0x42b795
movzx eax, word [edx]
jmp 0x42b795
mov eax, dword [edx]
jmp 0x42b795
mov dword [ebp - 0x10], 0
mov eax, 0
lea esi, [edi + 0x14]
mov ebx, edx
movsx ecx, byte [edi + 0x12]
dec ecx
js 0x42b795
movzx edx, byte [ebx]
movzx eax, byte [esi]
inc esi
inc ebx
sub edx, eax
mov eax, edx
jne 0x42b795
dec ecx
jns 0x42b778
jmp 0x42b795
mov eax, 0
jmp 0x42b85e
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.0042a7cf
and eax, dword [edi + 0x34]
movzx ecx, byte [edi + 0x10]
cmp ecx, 0x3d
je 0x42b7fc
cmp ecx, 0x3d
jg 0x42b7d4
cmp ecx, 0x26
je 0x42b83d
cmp ecx, 0x26
jg 0x42b7ca
cmp ecx, 0x21
je 0x42b7f1
jmp 0x42b859
cmp ecx, 0x3c
je 0x42b822
jmp 0x42b859
cmp ecx, 0x5e
je 0x42b84b
cmp ecx, 0x5e
jg 0x42b7e5
cmp ecx, 0x3e
je 0x42b807
jmp 0x42b859
mov eax, 1
cmp ecx, 0x78
je 0x42b85e
jmp 0x42b859
cmp eax, dword [ebp - 0x10]
setne al
movzx eax, al
jmp 0x42b85e
cmp eax, dword [ebp - 0x10]
sete al
movzx eax, al
jmp 0x42b85e
test byte [edi], 2
je 0x42b817
cmp eax, dword [ebp - 0x10]
seta al
movzx eax, al
jmp 0x42b85e
cmp eax, dword [ebp - 0x10]
setg al
movzx eax, al
jmp 0x42b85e
test byte [edi], 2
je 0x42b832
cmp eax, dword [ebp - 0x10]
setb al
movzx eax, al
jmp 0x42b85e
cmp eax, dword [ebp - 0x10]
setl al
movzx eax, al
jmp 0x42b85e
and eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x10]
sete al
movzx eax, al
jmp 0x42b85e
and eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x10]
setne al
movzx eax, al
jmp 0x42b85e
mov eax, 0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x42f440
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push edi
push esi
push ebx
sub esp, 0x120
mov ebx, dword [esp + 0x130]
call sub.msvcrt.dll__errno
mov dword [eax], 0
test ebx, ebx
je 0x42f669
cmp byte [ebx], 0
je 0x42f634
mov dword [esp], ebx
call sub.KERNEL32.dll_GetFileAttributesA
sub esp, 4
cmp eax, 0xffffffff
je 0x42f65a
test al, 0x10
je 0x42f634
mov dword [esp + 4], ebx
mov eax, 0x104
lea esi, [esp + 0x10]
mov dword [esp + 8], eax
mov dword [esp], esi
call sub.msvcrt.dll__fullpath
mov ecx, esi
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x42f4b0
test edx, 0x8080
jne 0x42f4d5
shr edx, 0x10
add ecx, 2
add dl, dl
sbb ecx, 3
sub ecx, esi
lea eax, [ecx + 0x233]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov ebx, eax
je 0x42f64b
mov dword [esp + 4], esi
lea esi, [eax + 0x22c]
mov dword [esp], esi
call sub.msvcrt.dll_strcpy
cmp byte [ebx + 0x22c], 0
je 0x42f5d0
mov dword [esp], esi
mov eax, 0x2f
mov dword [esp + 4], eax
call sub.msvcrt.dll_strrchr
mov edi, eax
mov ecx, esi
nop
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x42f530
test edx, 0x8080
jne 0x42f555
shr edx, 0x10
add ecx, 2
add dl, dl
sbb ecx, 3
sub ecx, esi
lea eax, [ecx + ebx + 0x22b]
cmp edi, eax
je 0x42f5d0
mov dword [esp], esi
mov eax, 0x5c
mov dword [esp + 4], eax
call sub.msvcrt.dll_strrchr
mov edi, eax
mov ecx, esi
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x42f580
test edx, 0x8080
jne 0x42f5a5
shr edx, 0x10
add ecx, 2
add dl, dl
sbb ecx, 3
sub ecx, esi
lea eax, [ecx + ebx + 0x22b]
cmp edi, eax
je 0x42f5d0
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov word [eax + esi], 0x5c
lea esi, [esi]
lea edi, [edi]
mov dword [esp], esi
xor edi, edi
call sub.msvcrt.dll_strlen
mov word [eax + esi], 0x2a
mov eax, 0xffffffff
xor esi, esi
mov dword [ebx + 0x224], eax
xor eax, eax
mov ecx, 0x104
mov dword [ebx + 0x228], eax
xor eax, eax
xor edx, edx
mov dword [ebx + 0x118], eax
lea eax, [ebx + 0x120]
mov word [ebx + 0x11c], di
mov word [ebx + 0x11e], si
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memset
add esp, 0x120
mov eax, ebx
pop ebx
pop esi
pop edi
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x14
xor eax, eax
add esp, 0x120
pop ebx
pop esi
pop edi
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0xc
xor eax, eax
jmp 0x42f641
call sub.msvcrt.dll__errno
mov dword [eax], 2
xor eax, eax
jmp 0x42f641
call sub.msvcrt.dll__errno
mov dword [eax], 0xe
xor eax, eax
jmp 0x42f641
Function at 0x402894
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4028c3
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403ab4
jmp 0x4028e1
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402828
mov edi, eax
test ebx, ebx
je 0x4028e1
cmp dword [esi], 0
je 0x4028e1
dec ebx
jmp 0x4028ca
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

Disassembly:
imul edx, dword [0x486040], 0x8088405
inc edx
mov dword [0x486040], edx
mul edx
mov eax, edx
ret

Function at 0x402cb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402d48
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402d28
xor eax, eax
push ebp
push 0x402d21
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402d64
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402d28
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x404ce8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404ea0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404d49
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404ebc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404db6
xor eax, eax
push ebp
push 0x404daf
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404d98
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404edc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404db6
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404e97
cmp byte [ebp - 0xd], 0
jne 0x404df8
cmp byte [ebp - 0x12], 0
je 0x404e97
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404e11
dec ebx
cmp byte [ebx], 0x2e
je 0x404e20
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404e10
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404e97
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404e4d
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404e97
cmp byte [ebp - 0xd], 0
je 0x404e97
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404e97
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4053f4
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x405450
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_ReadFile
dec eax
pop eax
pop ecx
jne 0x405442
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x405437
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x405432
mov eax, 0x64
jmp 0x405447
call sub.kernel32.dll_GetLastError
call fcn.004027b4
xor eax, eax
jmp 0x405432
mov eax, 0x67
jmp 0x405447
Function at 0x405458
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov eax, dword [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x4054b3
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_WriteFile
dec eax
pop eax
pop ecx
jne 0x4054a5
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x40549a
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x405495
mov eax, 0x65
jmp 0x4054aa
call sub.kernel32.dll_GetLastError
call fcn.004027b4
xor eax, eax
jmp 0x405495
mov eax, 0x67
jmp 0x4054aa

Function at 0x4054f8
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x405528
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x40551e
xor edx, edx
div dword [ebx + 8]
pop ebx
ret
call fcn.004027c4
or eax, 0xffffffff
jmp 0x40551c
mov eax, 0x67
call fcn.004027b4
or eax, 0xffffffff
jmp 0x40551c

Function at 0x4056f4
Capabilities:
Clear file content

Disassembly:
mov edx, dword [eax + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x405711
push dword [eax]
call sub.kernel32.dll_SetEndOfFile
dec eax
jne fcn.004027c4
ret
mov eax, 0x67
jmp fcn.004027b4

Function at 0x40a6fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a735
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403ab4
jmp 0x40a73e
mov eax, ebx
mov edx, esi
call fcn.00403a68
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a748
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a769
mov al, byte [esp]
jmp 0x40a76b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x415e04
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x415e0a
ret

Function at 0x418530
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x418581
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x418568
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x418558
jmp 0x418581
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x418569
pop ebx
mov esp, ebp
pop ebp
ret