joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b7a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov byte [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x20212e2f
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0x14
ja 0x43b832
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + ecx]
add edx, 0xa79f63a6
add eax, 0xa6
and eax, ecx
add eax, eax
mov ecx, eax
xor ecx, edx
not eax
and eax, edx
add eax, eax
sub eax, ecx
add al, 0x76
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0x15
jb 0x43b7f0
mov eax, dword [esp + 0x10]
mov edi, dword [0x44a94c]
test edi, edi
je 0x43b88d
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [0x44a950]
nop
nop
cmp dword [esi + ebx*8], 0xea176b69
je 0x43b860
inc ebx
cmp edi, ebx
jne 0x43b850
jmp 0x43b88d
mov edi, dword [esi + ebx*8 + 4]
cmp edi, eax
je 0x43b88d
lea eax, [esp + 8]
push 0
push 0
push edx
push ecx
push eax
push 0
push 0
push 0
push dword [ebp + 8]
push 9
push dword [0x44a954]
push edi
call fcn.004384a0
add esp, 0x30
mov edi, dword [ebp + 0x14]
cmp eax, 0x103
jne 0x43b978
mov byte [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x20212e2f
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x14
ja 0x43b922
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + ecx]
add edx, 0xa79f63a6
add eax, 0xa6
and eax, ecx
add eax, eax
mov ecx, eax
xor ecx, edx
not eax
and eax, edx
add eax, eax
sub eax, ecx
add al, 0x76
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x15
jb 0x43b8e0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x44a94c]
test ecx, ecx
je 0x43b970
xor edx, edx
mov esi, dword [0x44a950]
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x7a1a689f
je 0x43b950
inc edx
cmp ecx, edx
jne 0x43b940
jmp 0x43b970
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x43b970
push 0
push 0
push dword [ebp + 8]
push 3
push dword [0x44a954]
push ecx
call fcn.004384a0
add esp, 0x18
test eax, eax
js 0x43b978
mov eax, dword [esp + 8]
test edi, edi
je 0x43b982
mov ecx, dword [esp + 0xc]
mov dword [edi], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43b990
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
xor ebx, ebx
nop
nop
nop
nop
nop
nop
cmp word [edi + ebx], 0
lea ebx, [ebx + 2]
jne 0x43b9b0
add ebx, 0xfffffffe
and ebx, 0xfffe
mov word [esp + 0x10], bx
add ebx, 2
mov word [esp + 0x12], bx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 0x18
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], 0x40
lea eax, [esp + 0x10]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov byte [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0x20212e2f
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
cmp eax, 0x14
ja 0x43ba82
nop
nop
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
movzx ecx, byte [esp + ecx + 0x30]
lea edi, [eax + ecx]
add edi, 0xa79f63a6
add eax, 0xa6
and eax, ecx
add eax, eax
mov ecx, eax
xor ecx, edi
not eax
and eax, edi
add eax, eax
sub eax, ecx
add al, 0x76
mov ecx, dword [esp + 0xc]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, 0x15
jb 0x43ba40
mov eax, dword [esp + 0x30]
mov edi, dword [0x44a94c]
test edi, edi
je 0x43bad3
xor ebx, ebx
mov ecx, dword [0x44a950]
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ecx + ebx*8], 0x8ea7b332
je 0x43bab0
inc ebx
cmp edi, ebx
jne 0x43baa0
jmp 0x43bad3
mov ecx, dword [ecx + ebx*8 + 4]
cmp ecx, eax
je 0x43bad3
lea eax, [esp + 0x18]
push esi
push eax
push edx
push dword [ebp + 0xc]
push 4
push dword [0x44a954]
push ecx
call fcn.004384a0
add esp, 0x1c
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40672b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x40673a
pop dword [ebp - 0x14]
mov eax, 0x80b1f1ba
sub eax, 0x80718a80
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x2f27c6d7
add dword [ebp - 0x24], 0x1f2a7e74
mov dword [ebp - 0x20], 0x9ccb1862
add dword [ebp - 0x20], 0x956833e3
mov dword [ebp - 0x1c], 0xb28846dd
add dword [ebp - 0x1c], 0x99c3fd51
mov dword [ebp - 0x18], 0xce20c6b2
sub dword [ebp - 0x18], 0xce20c6b2
lea eax, [ebp - 0x24]
push eax
mov eax, 0xcc78b0db
add eax, 0x33c7d029
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x677ee891
add dword [ebp - 0x24], 0xcf380c5
mov dword [ebp - 0x20], 0x9b6b0ba8
sub dword [ebp - 0x20], 0x59feaa33
mov dword [ebp - 0x1c], 0x9e91a45d
add dword [ebp - 0x1c], 0xc4ddc80f
mov dword [ebp - 0x18], 0x6bcf41a7
sub dword [ebp - 0x18], 0x6bcf41a7
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0xf34a4d49
add eax, 0xcf633b7
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x3679d
push 0
call eax
mov ecx, 0x43d7
xor edx, edx
add edx, eax
mov edi, 0x46e400
add edi, dword [ebp - 0x14]
mov esi, 0xdbf57ca5
sub esi, 0xb0844ce1
sub dword [ebp - 4], 0x50cdbc0f
mov ebx, dword [edi]
xor dword [ebp - 0xc], 0x94d35859
add ebx, esi
xor dword [ebp - 4], ecx
mov dword [edx], ebx
add edx, 4
add edi, 0x970b02b8
add edi, 0x68f4fd4c
loop 0x406852
add eax, 0x1022f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x7db1c36a
add ecx, 0x828e3c96
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x401414
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401426
mov eax, dword [0x48608f]
shl eax, 2
mov dword [0x486093], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00478488
pop edx
call fcn.0047806c
call fcn.004789c4
push 0
call fcn.00479abc
pop ecx
push 0x486038
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x486097], eax
push 0
jmp fcn.00481fb8
Function at 0x4037e8
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
mov eax, 0x486eb4
call fcn.00478ebc
xor edx, edx
mov dword [ebp - 0x28], edx
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
lea eax, [ebp - 0x28]
push eax
push 0x20008
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.ADVAPI32.DLL_OpenProcessToken
test eax, eax
je 0x403902
mov edx, dword [0x4860cd]
mov dword [ebp - 0x34], edx
mov dx, word [0x4860d1]
mov word [ebp - 0x30], dx
mov word [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x38], ecx
lea eax, [ebp - 0x38]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea edx, [ebp - 0x34]
push edx
call sub.ADVAPI32.DLL_AllocateAndInitializeSid
test eax, eax
je 0x4038ef
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
push 0
push 2
push dword [ebp - 0x28]
call sub.ADVAPI32.DLL_GetTokenInformation
push dword [ebp - 0x3c]
call fcn.00474028
pop ecx
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0x3c]
push edx
push dword [ebp - 0x3c]
push dword [ebp - 0x44]
push 2
push dword [ebp - 0x28]
call sub.ADVAPI32.DLL_GetTokenInformation
test eax, eax
je 0x4038dc
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
xor eax, eax
mov dword [ebp - 0x40], eax
jmp 0x4038d2
push dword [ebp - 0x38]
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x48]
push dword [ecx + edx*8 + 4]
call sub.ADVAPI32.DLL_EqualSid
test eax, eax
je 0x4038cf
mov dword [ebp - 0x2c], 1
jmp 0x4038dc
inc dword [ebp - 0x40]
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x48]
cmp eax, dword [edx]
jb 0x4038b0
push dword [ebp - 0x44]
call fcn.0046d040
pop ecx
push dword [ebp - 0x38]
call sub.ADVAPI32.DLL_FreeSid
jmp 0x4038fa
push str._Install__Unable_to_create_administrator_SID__n
call fcn.0047b564
pop ecx
mov word [ebp - 0x14], 0
jmp 0x40390d
push str._Install__Unable_to_open_process_token__n
call fcn.0047b564
pop ecx
cmp dword [ebp - 0x28], 0
je 0x40391b
push dword [ebp - 0x28]
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x403d0c
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov eax, 0x487098
call fcn.00478ebc
mov dword [ebp - 0xc], 2
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.0040392c
add dword [ebp - 0xc], 2
mov word [ebp - 0x18], 0xc
mov word [ebp - 0x18], 0x18
lea edx, [ebp + 8]
lea eax, [ebp - 4]
call fcn.004021a4
inc dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.0041a608
push eax
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00484efc
pop ecx
test cl, cl
je 0x403db9
call fcn.00403254
test al, al
je 0x403d98
mov eax, 1
push eax
sub dword [ebp - 0xc], 2
lea eax, [ebp + 8]
mov edx, 2
call fcn.0040173c
pop eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x403dd8
push 0x80
lea eax, [ebp + 8]
call fcn.004022a8
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
lea eax, [ebp + 8]
call fcn.004022a8
push eax
call sub.KERNEL32.DLL_DeleteFileA
xor eax, eax
push eax
sub dword [ebp - 0xc], 2
lea eax, [ebp + 8]
mov edx, 2
call fcn.0040173c
pop eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret

Function at 0x403ddc
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff68
push 0x94
push 0
lea eax, [ebp - 0x98]
push eax
call fcn.00478abc
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea edx, [ebp - 0x98]
push edx
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
jne 0x403e19
xor eax, eax
jmp 0x403e28
cmp dword [ebp - 0x94], 5
jbe 0x403e26
mov al, 1
jmp 0x403e28
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x404574
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x48e8d0
push 0xa
push 0x404608
mov eax, dword [0x48e8b8]
push eax
call sub.KERNEL32.DLL_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x404598
call fcn.004200bc
push ebx
mov eax, dword [0x48e8b8]
push eax
call sub.KERNEL32.DLL_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x4045af
call fcn.004200bc
push ebx
call sub.KERNEL32.DLL_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x4045c1
call fcn.004200bc
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x48e8d4], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x48e8d8], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x48e8dc], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x48e8e0], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x48e8e4], ecx
add edx, dword [eax + 0x14]
mov dword [0x48e8e8], edx
pop esi
pop ebx
ret

Function at 0x4120fc
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.00411e00
dec esi
jne 0x41211e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x4132c8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x48ebd0
cmp dword [edi], 0
jne 0x413344
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x48ebcc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x487580
mov ecx, 2
call fcn.0042b230
mov edx, 0x4132a0
lea eax, [esi + 5]
call fcn.004132c0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004132c0
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 0x413319
mov dword [0x48ebcc], 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 0x414adc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.00414500
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.0042d894
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExW
test eax, eax
je 0x414b3b
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x48e48c]
mov dl, 1
mov eax, dword [0x414378]
call fcn.0041e650
call fcn.0042c6b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x414b44
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0042d894
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
je 0x414b9c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x48e488]
mov dl, 1
mov eax, dword [0x414378]
call fcn.0041e650
call fcn.0042c6b0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00414530
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41975c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x419805
test eax, edx
je 0x419808
push 0
push 0
cmp word [eax - 0xa], 2
je 0x419785
push edx
mov edx, eax
mov eax, esp
call fcn.0042da0c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x41979b
push eax
lea eax, [esp + 8]
call fcn.0042da0c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4197aa
movzx eax, word [eax]
sub eax, ecx
jmp 0x4197d1
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 0x4197eb
add ecx, 4
js 0x4197c2
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x4197e8
push eax
mov eax, ecx
mov edx, 2
call fcn.0042ce0c
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4197cf
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4197d1
xor eax, eax
ret
test eax, eax
je 0x419818
test edx, edx
jne 0x41976c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.0042d894
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41a626
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x41a647
cmp ebx, 3
je 0x41a647
cmp ebx, 0x7b
je 0x41a647
mov eax, esi
call fcn.0041a5c8
test al, al
jne 0x41a64b
xor eax, eax
jmp 0x41a64d
mov al, 1
pop esi
pop ebx
ret

Function at 0x41dc1c
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 0x100
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x41dc55
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0042d944
jmp 0x41dc5e
mov eax, ebx
mov edx, esi
call fcn.0042d808
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41dc68
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
test eax, eax
jle 0x41dc8a
movzx eax, word [esp]
jmp 0x41dc8c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x41e414
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x41e539
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041e228
mov esi, eax
mov eax, dword [0x48e6b8]
cmp byte [eax], 0
je 0x41e4e1
mov eax, dword [0x48e6bc]
call fcn.0042b4f8
call fcn.0042b1e0
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41e3f0]
call fcn.0042efb8
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x41e554
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x41e51d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x48e540]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x48e8b8]
call fcn.0042f0ac
push eax
call sub.USER32.DLL_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.USER32.DLL_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e540
lea eax, [ebp - 4]
mov edx, dword [0x41e3f0]
call fcn.0042efc4
ret

Function at 0x41f164
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 0x41f23a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0042d85c
lea eax, [ebp - 4]
call fcn.0042e260
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0042d894
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x41f224
mov eax, ebx
call fcn.0042aff0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41f21d
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.0042d894
push eax
call sub.VERSION.DLL_GetFileVersionInfoW
test eax, eax
je 0x41f207
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41f24c
mov eax, dword [ebp - 0x10]
push eax
call sub.VERSION.DLL_VerQueryValueW
test eax, eax
je 0x41f207
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 0x41f224
mov eax, dword [ebp - 0x10]
call fcn.0042b00c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f241
lea eax, [ebp - 4]
call fcn.0042d7f8
ret
Function at 0x41fef3
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.0042d130
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_MultiByteToWideChar
mov edi, eax
cmp edi, 0x104
jbe 0x41ff16
mov eax, edi
add eax, eax
call fcn.0042aff0
mov esi, eax
jmp 0x41ff18
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_MultiByteToWideChar
push edi
push esi
call sub.USER32.DLL_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x41ff51
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 0x41ff3b
mov eax, esp
cmp esi, eax
je 0x41ff5e
mov eax, esi
call fcn.0042b00c
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 0x41ff98
cmp bl, 0
je 0x41ff94
cmp bl, 0x41
jl 0x41ff8f
cmp bl, 0x5a
jg 0x41ff8f
or bl, 0x20
xor al, bl
inc esi
jmp 0x41ff73
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41fed8

Function at 0x42b3ec
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.0042d808
test esi, esi
jne 0x42b424
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0042d944
jmp 0x42b442
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0042b330
mov edi, eax
test esi, esi
je 0x42b442
cmp dword [ebx], 0
je 0x42b442
dec esi
jmp 0x42b42b
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x42baa4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x487938]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x42bb3c
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x42bb1c
xor eax, eax
push ebp
push 0x42bb15
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 0x42bb74
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42bb1c
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
movzx eax, word [0x487938]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x487938], ax
mov esp, ebp
pop ebp
ret
Function at 0x42cb60
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x490f5c], 0
je 0x42cbc1
cmp word [0x491238], 0xd7b2
jne 0x42cb89
cmp dword [0x491240], 0
jbe 0x42cb89
mov eax, 0x491234
call dword [0x491250]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x42cbec
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x487944], 0
jne 0x42cbdd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret

Function at 0x42cd6c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x487924], 0
je 0x42cd92
mov edx, esi
mov eax, ebx
call dword [0x487924]
jmp 0x42cda1
mov eax, 8
call fcn.0042aff0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x490f5d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x42cd34
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc