joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465c9f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x465cd7
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00463d56
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00463d2e
jmp 0x465ce3
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46738d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4673cf
call fcn.0046cf0e
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4673cf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4673c6
xor eax, eax
jmp 0x4673d7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004673dd
pop edi
pop esi
pop ebx
ret 4

Function at 0x46d43e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46d46c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46d48a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046d3a4
jmp 0x46d48a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46d48a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046d3a4
test edi, edi
mov eax, edi
jne 0x46d474
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401c30
Capabilities:
Terminate process

Disassembly:
sub esp, 0x31c
lea eax, [esp + 0x114]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
push 0
call dword [0x407048]
lea ecx, [esp + 0x124]
push 0x408648
push ecx
call fcn.004022c5
mov edi, eax
add esp, 8
test edi, edi
jne 0x401c7e
push 0x408628
call fcn.004011c0
add esp, 4
push 1
call fcn.004021d0
push edi
call fcn.00406728
push eax
call fcn.004066b0
mov esi, eax
push esi
call fcn.00402195
push edi
mov ebp, eax
push 1
push esi
push ebp
call fcn.004020ad
push edi
call fcn.00402057
lea edi, [esi - 8]
add esp, 0x20
xor ecx, ecx
xor eax, eax
test edi, edi
mov dword [esp + 0x14], edi
jbe 0x401cc1
movsx edx, byte [eax + ebp]
add ecx, edx
inc eax
cmp eax, edi
jb 0x401cb6
cmp dword [esi + ebp - 4], ecx
je 0x401cdb
push 0x408604
call fcn.004011c0
add esp, 4
push 1
call fcn.004021d0
mov ebx, dword [esi + ebp - 8]
lea eax, [esp + 0x228]
push eax
push 0x104
call dword [0x407034]
cmp ebx, edi
jae 0x401db7
mov ecx, dword [ebx + ebp]
lea eax, [ebx + ebp]
lea edx, [ebx + ebp + 4]
mov dword [esp + 0x1c], eax
lea ebx, [ebx + ecx + 0x108]
lea edi, [esp + 0x228]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0x20]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x10], esi
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x18], edx
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
lea esi, [esp + 0x20]
push 0x408600
not ecx
mov eax, esi
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
call fcn.004022c5
mov esi, eax
add esp, 8
test esi, esi
je 0x401dc4
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push esi
push 1
mov eax, dword [edx]
add ecx, 0x104
push eax
push ecx
call fcn.00401f4d
push esi
call fcn.00402057
mov eax, dword [esp + 0x28]
add esp, 0x14
cmp ebx, eax
jb 0x401cfa
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret
push 1
call fcn.004021d0
nop
nop
nop
nop
nop

Function at 0x4060b5
Capabilities:
Encode data using xor

Disassembly:
out 0xc1, al
and byte [ecx - 0x7a], 0
insb byte es:[edi], dx
pushal
mov eax, dword [0x12dcb445]
invalid
cmp eax, 0xaf46729a
cmp eax, 0xde0e1a9e
and ch, byte [ebx]
jl 0x4060f5
ljmp 0xb121:0x116c723e
pop ds
js 0x40608d
or ah, bh
add ah, dl
push eax
invalid
Function at 0x44663f
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10037e68
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 8]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x14], 0
call fcn.00456173
mov eax, dword [esi + 0x1c]
lea ecx, [esi + 0x14]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.00455fcf
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x30]
lea ecx, [esi + 0x28]
push edx
push eax
call fcn.0045616d
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0x44]
lea ecx, [esi + 0x3c]
push edx
push eax
call fcn.00456167
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], 0xffffffff
call fcn.00455f6f
mov ecx, dword [esp + 4]
pop esi
mov dword fs:[0], ecx
add esp, 0xc
ret 0x10
Function at 0x44e9f1
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov eax, dword [esi]
mov edi, dword [esp + 0x14]
push ebp
push ebp
mov dword [eax + 4], ebp
mov ecx, dword [esi]
mov dword [ecx + 8], ebp
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x30]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x38]
test eax, eax
mov ebx, 0xffff
jbe 0x44ea5c
mov edx, dword [edi]
lea eax, [esp + 0x14]
push 1
push eax
mov ecx, edi
call dword [edx + 0x3c]
mov ecx, dword [esp + 0x14]
mov eax, dword [esi]
and ecx, 0xff
mov edx, dword [eax + 4]
xor ecx, 0x5483
add edx, ecx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov ecx, dword [eax + 4]
and ecx, ebx
inc ebp
mov dword [eax + 4], ecx
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x38]
cmp ebp, eax
jb 0x44ea1e
mov eax, dword [esi]
xor ecx, ecx
mov cl, byte [eax]
mov ebp, dword [eax + 8]
xor ecx, 0x5483
add ebp, ecx
xor ecx, ecx
mov dword [eax + 8], ebp
mov eax, dword [esi]
mov edi, dword [eax + 8]
and edi, ebx
mov dword [eax + 8], edi
mov eax, dword [esi]
cmp word [eax + 0x246], cx
jbe 0x44eabd
mov edx, 0xc
mov ebp, dword [eax + 8]
xor edi, edi
mov di, word [edx + eax]
add edx, 2
xor edi, 0x5483
add ebp, edi
xor edi, edi
mov dword [eax + 8], ebp
mov eax, dword [esi]
mov ebp, dword [eax + 8]
and ebp, ebx
inc ecx
mov dword [eax + 8], ebp
mov eax, dword [esi]
mov di, word [eax + 0x246]
cmp ecx, edi
jb 0x44ea8c
mov eax, dword [esi]
xor edi, edi
cmp word [eax + 0x248], di
jbe 0x44eafb
mov ebp, dword [eax + 8]
xor edx, edx
mov dl, byte [eax + edi + 0x214]
xor edx, 0x5483
add ebp, edx
mov dword [eax + 8], ebp
mov eax, dword [esi]
mov ecx, dword [eax + 8]
and ecx, ebx
inc edi
mov dword [eax + 8], ecx
mov eax, dword [esi]
xor ecx, ecx
mov cx, word [eax + 0x248]
cmp edi, ecx
jb 0x44eaca
mov eax, dword [esi]
xor edx, edx
mov dx, word [eax + 0x246]
mov ecx, dword [eax + 8]
xor edx, 0x5483
add ecx, edx
mov dword [eax + 8], ecx
mov eax, dword [esi]
xor ecx, ecx
mov ebp, dword [eax + 8]
and ebp, ebx
mov dword [eax + 8], ebp
mov eax, dword [esi]
mov cx, word [eax + 0x248]
mov edx, dword [eax + 8]
xor ecx, 0x5483
add edx, ecx
mov dword [eax + 8], edx
mov eax, dword [esi]
mov ecx, dword [eax + 8]
and ecx, ebx
mov dword [eax + 8], ecx
mov ecx, 0x24a
mov eax, dword [esi]
xor edx, edx
mov dx, word [ecx + eax]
mov ebp, dword [eax + 8]
xor edx, 0x5483
add ecx, 2
add ebp, edx
mov dword [eax + 8], ebp
mov eax, dword [esi]
mov edi, dword [eax + 8]
and edi, ebx
cmp ecx, 0x250
mov dword [eax + 8], edi
jl 0x44eb46
mov ecx, 0x250
mov eax, dword [esi]
xor edx, edx
mov dx, word [ecx + eax]
mov ebp, dword [eax + 8]
xor edx, 0x5483
add ecx, 2
add ebp, edx
mov dword [eax + 8], ebp
mov eax, dword [esi]
mov edi, dword [eax + 8]
and edi, ebx
cmp ecx, 0x256
mov dword [eax + 8], edi
jl 0x44eb76
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4ff1b4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
inc edx
xor eax, eax
mov al, byte [edx]
and eax, 0xff
test eax, eax
jne 0x4ff1df
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x325aa485
jmp 0x4ff34a
cmp eax, 0x30
jl 0x4ff34a
cmp eax, 0x7a
jg 0x4ff34a
movsx ebx, word [eax*2 + 0x325aa014]
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x4ff208
mov eax, dword [ebp - 4]
jmp 0x4ff34a
mov ebx, eax
sub ebx, 0x30
je 0x4ff27d
dec ebx
sub ebx, 9
jb 0x4ff22c
sub ebx, 0x29
je 0x4ff30d
sub ebx, 0x15
je 0x4ff2c5
jmp 0x4ff339
cmp dword [ebp + 0x18], 0
jne 0x4ff26c
mov esi, edx
sub eax, 0x30
jmp 0x4ff248
inc edx
add eax, eax
xor ebx, ebx
mov bl, byte [edx]
lea eax, [eax + eax*4]
add eax, ebx
add eax, 0xffffffd0
xor ebx, ebx
mov bl, byte [edx + 1]
mov edi, dword [ecx + 0xc]
test byte [edi + ebx], 4
jne 0x4ff239
cmp eax, 0xa
jl 0x4ff260
cmp eax, dword [ebp + 0x10]
jg 0x4ff26a
add eax, 0xc
neg eax
jmp 0x4ff34a
mov edx, esi
xor eax, eax
mov al, byte [edx]
cmp eax, 0x38
jl 0x4ff27d
dec edx
xor eax, eax
jmp 0x4ff34a
sub eax, 0x30
jmp 0x4ff28f
inc edx
shl eax, 3
xor ebx, ebx
mov bl, byte [edx]
add eax, ebx
add eax, 0xffffffd0
mov ebx, dword [ebp - 4]
inc dword [ebp - 4]
cmp ebx, 2
jge 0x4ff34a
xor ebx, ebx
mov bl, byte [edx + 1]
mov esi, dword [ecx + 0xc]
test byte [esi + ebx], 4
je 0x4ff34a
cmp byte [edx + 1], 0x38
je 0x4ff34a
cmp byte [edx + 1], 0x39
jne 0x4ff282
jmp 0x4ff34a
xor eax, eax
jmp 0x4ff2f2
inc edx
mov esi, 0x30
xor ebx, ebx
mov bl, byte [edx]
mov edi, dword [ecx + 0xc]
test byte [edi + ebx], 4
jne 0x4ff2df
add esi, 0x27
xor ebx, ebx
mov edi, dword [ecx]
mov bl, byte [edx]
shl eax, 4
movzx ebx, byte [edi + ebx]
add ebx, eax
sub ebx, esi
mov eax, ebx
mov ebx, dword [ebp - 4]
inc dword [ebp - 4]
cmp ebx, 2
jge 0x4ff34a
xor ebx, ebx
mov bl, byte [edx + 1]
mov esi, dword [ecx + 0xc]
test byte [esi + ebx], 8
jne 0x4ff2c9
jmp 0x4ff34a
inc edx
xor eax, eax
mov al, byte [edx]
test eax, eax
jne 0x4ff323
mov edx, dword [ebp + 0xc]
xor eax, eax
mov dword [edx], 0x325aa499
jmp 0x4ff34f
cmp eax, 0x61
jl 0x4ff334
cmp eax, 0x7a
jg 0x4ff334
mov ecx, dword [ecx + 4]
movzx eax, byte [ecx + eax]
xor eax, 0x40
jmp 0x4ff34a
test byte [ebp + 0x14], 0x40
je 0x4ff34a
mov ecx, eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x325aa4ae
mov ecx, dword [ebp + 8]
mov dword [ecx], edx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x5ef7d4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x4015f048], 0x8088405
inc edx
mov dword [0x4015f048], edx
fld qword [0x4015d034]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
ret

Function at 0x61efc8
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 0x61efce
ret

Function at 0x6bcfa4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
test dl, dl
je 0x6bcfbc
add esp, 0xfffffff0
call fcn.005f0170
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x400d0d9a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 8], ebx
mov eax, ebx
shl eax, 3
call fcn.005f9264
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
dec ebx
test ebx, ebx
jl 0x6bd0bc
inc ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
call fcn.0060665c
xor eax, eax
push ebp
push 0x400d0d71
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.0060665c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0xc]
lea ebx, [eax + edx*8]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov dword [ebx], eax
lea eax, [ebx + 4]
mov edx, dword [ebp - 0x14]
call fcn.005f1090
jmp 0x6bd07b
lea eax, [ebx + 4]
mov ecx, 1
mov edx, 1
call fcn.005f1310
mov eax, dword [ebx + 4]
call fcn.005f10c8
dec eax
jle 0x6bd08e
mov eax, dword [ebx + 4]
cmp byte [eax], 0x5f
je 0x6bd069
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x400d0d78
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x54]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x400d0da1
lea eax, [ebp - 0x14]
call fcn.005f1538
ret
Function at 0x8378d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 7
mov ax, word [esi + 0x20]
mov bx, word [esi + 0x22]
lea ecx, [esi + 0x46]
mov word [ebp - 8], ax
mov al, byte [esi + 0x24]
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ecx
pop edx
mov byte [ecx], al
mov ecx, dword [ebp + 8]
xor al, 0xa7
sub al, 0x35
inc ecx
dec edx
mov dword [ebp + 8], ecx
jne 0x8378f6
sub al, 0x59
mov byte [ecx], al
call fcn.00837d4a
mov edi, dword [ebp + 0xc]
push edi
push dword [ebp - 8]
push 7
call fcn.0083780e
push ebx
call fcn.00837bf0
push edi
lea eax, [ebp + 8]
push esi
push eax
push 0x10
call fcn.00837b6a
push ebx
call fcn.00837bf0
or byte [esi + 0x3e], 0xf
push edi
lea eax, [ebp + 8]
push esi
push eax
push 8
call fcn.00837b6a
mov ebx, 0x96
cmp ax, bx
jne 0x837956
xor word [esi + 0x3e], 5
push dword [ebp - 4]
call fcn.00837bf0
push edi
lea eax, [ebp + 8]
push esi
push eax
push 8
call fcn.00837b6a
and eax, 3
mov word [esi + 0x28], ax
mov al, byte [esi + 0x3e]
and al, 0xf
cmp al, 0xa
je 0x837986
mov word [esi + 0x2a], 0x80
jmp 0x837af0
push edi
push esi
push 0x28
call fcn.00837b10
test ax, ax
jne 0x83799f
mov word [esi + 0x2a], 0x81
jmp 0x837af0
or byte [esi + 0x34], 0xf
push edi
lea eax, [ebp + 8]
push esi
push eax
push 8
call fcn.00837b6a
cmp ax, bx
jne 0x8379ba
xor word [esi + 0x34], 5
push dword [ebp - 4]
call fcn.00837bf0
push edi
lea eax, [ebp + 8]
push esi
push eax
push 8
call fcn.00837b6a
test byte [esi + 0x26], 1
je 0x8379da
mov byte [esi + 0x35], al
jmp 0x8379e3
cmp ax, bx
je 0x8379e3
or byte [esi + 0x34], 0xf
push dword [ebp - 4]
call fcn.00837bf0
push edi
lea eax, [ebp + 8]
push esi
push eax
push 4
call fcn.00837b6a
and eax, 0xe
shl eax, 1
or word [esi + 0x28], ax
mov al, byte [esi + 0x34]
and al, 0xf
cmp al, 0xa
je 0x837a15
mov word [esi + 0x2a], 0x82
jmp 0x837af0
mov ax, word [esi + 0x26]
test al, 2
jne 0x837a30
push edi
push esi
push 0x28
call fcn.00837b10
and word [esi + 0x2a], 0
jmp 0x837af0
and al, 1
push edi
neg al
sbb eax, eax
push esi
and ax, 0xfb50
add eax, 0x640
push eax
call fcn.00837b10
test ax, ax
jne 0x837a57
mov word [esi + 0x2a], 0x83
jmp 0x837af0
push edi
lea eax, [ebp + 8]
push esi
push eax
push 8
call fcn.00837b6a
xor eax, 0x40
test al, 0xc0
mov word [esi + 0x2a], ax
je 0x837a77
mov word [esi + 0x2a], 0x84
jmp 0x837af0
test al, 4
je 0x837aa6
add dword [ebp + 8], 0x16
xor ebx, ebx
push edi
lea eax, [ebp + 8]
push esi
push eax
push 0x10
call fcn.00837b6a
movzx ecx, bx
push 0x19
pop edx
sub edx, ecx
inc ebx
mov word [esi + edx*2], ax
mov al, byte [esi + 0x2a]
and eax, 3
cmp bx, ax
jbe 0x837a81
test byte [esi + 0x26], 1
je 0x837af0
test byte [esi + 0x2a], 8
je 0x837af0
push edi
push dword [ebp - 8]
push 0xff
call fcn.0083780e
push edi
push esi
push 0x190
call fcn.00837b10
test ax, ax
jne 0x837ad9
mov word [esi + 0x2a], 0x85
jmp 0x837af0
push edi
lea eax, [ebp + 8]
push esi
push eax
push 1
call fcn.00837b6a
and eax, 1
shl eax, 6
or word [esi + 0x2a], ax
push edi
push dword [ebp - 8]
push 0xb
call fcn.0083780e
push dword [ebp - 4]
call fcn.00837bf0
call fcn.00837d4a
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x401320
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401332
mov eax, dword [0x46608b]
shl eax, 2
mov dword [0x46608f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0045b0d8
pop edx
call fcn.0045b03c
call fcn.0045b118
push 0
call fcn.0045c554
pop ecx
push 0x466034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x466093], eax
push 0
jmp fcn.00460398
Function at 0x412998
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x46bcf0
cmp dword [edi], 0
jne 0x412a14
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x46bcec]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4676f8
mov ecx, 2
call fcn.004263f0
mov edx, 0x412970
lea eax, [esi + 5]
call fcn.00412990
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00412990
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 0x4129e9
mov dword [0x46bcec], 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 0x413ef8
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
mov al, byte [ebp + 8]
call fcn.00413b48
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.00428124
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
je 0x413f56
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x46b880]
mov dl, 1
mov eax, dword [0x413a40]
call fcn.00419dc4
call fcn.004278d4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x413f60
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.00428124
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x413fb8
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x46b87c]
mov dl, 1
mov eax, dword [0x413a40]
call fcn.00419dc4
call fcn.004278d4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00413b78
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 0x419520
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x419559
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00427d64
jmp 0x419562
mov eax, ebx
mov edx, esi
call fcn.00427cc8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41956c
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
test eax, eax
jle 0x41958d
mov al, byte [esp]
jmp 0x41958f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x419c14
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x419a8c
mov eax, dword [0x46ba60]
cmp byte [eax], 0
je 0x419c81
mov eax, dword [0x46ba64]
call fcn.004268d4
call fcn.0042635c
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00416ae4
push eax
lea eax, [esp + 0x50]
push eax
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 0x419cc8
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x419cb7
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46b920]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46bbe0]
call fcn.00429390
push eax
call sub.USER32.DLL_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
add esp, 0x444
ret

Function at 0x41a9cc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x41aa30
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00427edc
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00416788
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41aa37
lea eax, [ebp - 0xc]
call fcn.00427c74
ret

Function at 0x42651c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00427c74
test esi, esi
jne 0x426552
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00427d64
jmp 0x426570
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00426430
mov edi, eax
test esi, esi
je 0x426570
cmp dword [ebx], 0
je 0x426570
dec esi
jmp 0x426559
add esp, 0x108
pop edi
pop esi
pop ebx
ret
Function at 0x426fb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x467c3c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x427048
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x427028
xor eax, eax
push ebp
push 0x427021
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 0x427064
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 0x427028
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x467c3c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x467c3c], ax
mov esp, ebp
pop ebp
ret

Function at 0x427af8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46c014], 0
je 0x427b59
cmp word [0x46c1e8], 0xd7b2
jne 0x427b21
cmp dword [0x46c1f0], 0
jbe 0x427b21
mov eax, 0x46c1e4
call dword [0x46c200]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x427b80
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x467c4c], 0
jne 0x427b75
push 0
push 0x467ca4
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret