joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55654e
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor dword [eax + 0x11], edx
mov ch, 0x1c
cmpsd dword [esi], dword es:[edi]
mov ebp, 0x3c034fe7
adc bl, byte [esi + 0x52215204]
xor bh, byte [ebx - 0x55a00aac]
not dword [edi]
fadd st(7)
out dx, al
mov cl, 0x1f
mov eax, 0xaf59de6f
pop ecx
scasd eax, dword es:[edi]
mov bl, 0x5e
sub al, 0x37
scasd eax, dword es:[edi]
cmp al, ah
push 0x1ad4bf77
adc bl, byte [edi + 0xf5f3bbb]
mov ebx, 0xe70f5f3b
je 0x55659c
cmc
cli
mov dh, 0xba
add al, 0x98
jo 0x55651d
cld
sub eax, dword [0x4f37896a]
test dword [ebp + 0x4b], esp
inc ebp
dec edi
push esp
call 0x468a1b3
out 0x5f, eax
inc edx
fimul dword [ecx - 0x14]
test eax, 0xa080f06a
invalid

Function at 0x590dea
Capabilities:
Encode data using xor

Disassembly:
push es
mov bl, 0x5a
push ebx
jl 0x590de7
mov al, 0xda
add byte [eax + 0x22], ah
push ebp
jl 0x590dbb
movsd dword es:[edi], dword [esi]
adc dword [ebx], esi
push cs
call dword [esi]
cmp dword [0x261dc32c], esp
into
movsd dword es:[edi], dword [esi]
or dword [ecx], edi
pushal
mov byte [0x6491477e], al
sahf
lodsb al, byte [esi]
and byte [edi - 0x69], cl
aaa
jp 0x590de7
in al, dx
and ch, dl
invalid
cmp byte [edx], ch
lahf
add byte [ebp - 0x4e41851d], 0xb9
fsub st(2), st(0)
div edi
test dword [ebx + ebx*8 + 6], ebx
xchg edx, eax
sub ecx, dword [edi]
push esi
mov dh, byte [ecx + esi*4 - 0x1f]
outsb dx, byte [esi]
fisubr word [ebp + 2]
pop eax
and dh, byte ds:[eax + 0x29]
out 0xf6, al
mov es, word [ecx - 0x70]
invalid
fidiv dword [ecx]
hlt
push es
sbb dword [edi + ecx + 0x635ca17e], ebx
mov edi, 0xfc1e2559
and eax, 0x609034a2
xor dword [ebx + 0x21], ebp
add esi, eax
in al, 0xc0
je 0x590d88
rcr byte [esi - 0x4a30740a], cl
js 0x590dfd
inc ebp
push edi
in eax, dx
add dword [ebx], ebp
fld xword [ecx + 0x39d59980]
das
fimul word [eax - 0x3f8c7abc]
cmp bh, al
cmp eax, 0xf2e0c0d1
shl al, 0xf2
xchg esi, eax
inc edx
push edx
rcl dword [eax + eax*4 + 0x356a32dd], cl
xchg edx, eax
xor bl, byte [eax + 0x34572621]
cmp eax, 0xaaa764a0
fidiv dword [ebx + 0x22]
adc dword [ecx + 0x79], 0x35586286
sal byte [ebx + 0x1ab0c19e], 0xa0
mov bh, 1
push ss
je 0x590e25
nop
mov edi, 0x1c5e7827
push cs
dec eax
invalid
Function at 0x5e4cfa
Capabilities:
Encode data using xor

Disassembly:
xor byte [ebp - 0x5f81dbdf], dl
cmc
js 0x5e4c81
and dword [esi + edi*2], esp
mov al, byte [0xc4f978f5]
add dl, bh
les eax, [edx]
xlatb
loope 0x5e4c7f
mov dl, 0xa5
enter 0x4b06, 0xffffffffffffff8f
ret 0x3684
push ebx
push edx
and al, 0xf5
and byte [ecx + 0x50], 0x2c
loopne 0x5e4c8a
inc ebp
push ecx
sub eax, 0xec141a7d
push ds
xchg byte [ecx + eax*8 + 0x34], bl
test byte [bx + di], dl
and byte [esi], dl
cmp esp, dword [ebp + 0x5d9355e1]
arpl word [esi - 0x59c09a5c], cx
loop 0x5e4cbb
out dx, al
inc eax
out dx, eax
sbb al, 0x61
lodsd eax, dword [esi]
add al, 0xe7
push ss
dec eax
push ebx
xchg edx, eax
stosd dword es:[edi], eax
imul eax, dword [0x935a6534], 0xe46b0917

Function at 0x5f31c4
Capabilities:
Encode data using xor

Disassembly:
pop ecx
push esp
ror dword [edi], 0x62
xchg esi, eax
xchg edx, eax
stc
push 0x6d8b0b3
mov al, byte [0x345c921]
dec edx
in eax, dx
ficom dword [ecx]
jp 0x5f31bd
pop es
push edi
sub eax, 0x74d0445
xor eax, 0x9b77a263
popal
invalid
push edx
mov word [eax + 0x6ded6d3], es
push es
push es
neg byte [esi - 0x4649085d]
push cs
fisub dword [ebp + 0x46075b07]
xchg esp, eax
mov dword [0x4bce68c2], eax
div byte [edi + 0x24]
push ebp
shr byte [edx], cl
ja 0x5f317f
cmp al, 0xf8
js 0x5f3217
mov dl, 0xb6
and dword [0xaa4d23b7], eax
jmp dword [ecx]
jg 0x5f3255
sahf
dec edx
test edx, ebp
lea ebp, [eax]
movsb byte es:[edi], byte [esi]
push ds
lea esi, [esi - 0x65]
pop ecx
xor dword [esi + 0x549c682c], esi
sal esi, cl
loop 0x5f323c
and byte [eax + eax + 0x135b26df], al
dec edi
xor ebx, eax
out 0x82, al
lcall 0xd314, 0x2cc7b186
out 0xb2, al
jae 0x5f3239
scasd eax, dword es:[edi]
stosb byte es:[edi], al
arpl di, ax
invalid
xor dword [edi + 0xa], edi
jle 0x5f31e4
rcr dword [edx - 0x4d], 1
sub esp, dword [eax - 0x7d]
dec eax
jnp 0x5f31fd
dec ebp
dec esi
adc esi, dword [eax - 0x7d]
out 0x1f, eax
sub eax, 0x2d59aa12
mov ebx, 0xcf9a8bb3
inc edx
xchg esp, eax
mov ebx, dword [edx - 0x6bd1bd31]
xchg edx, eax
std
cmpsd dword [esi], dword es:[edi]
sar byte [ecx - 0x21f836a5], cl
mov edx, 0xbe1a08c0
push ss
and eax, 0xada2a75d
pop esi
daa
jecxz 0x5f3200
adc edx, ebx
mov cl, 0x24
mov bl, 0x4b
pop ss
adc eax, 0x7ced6598
xor esi, dword [esi - 0x3e36599a]
loop 0x5f3279
xlatb
in eax, 0xf3
bound ecx, qword [ebp + 0x1537cff2]
pop ss
pop esi
and eax, 0xe441b16c
cmp eax, 0x9d34ee97
sbb dword es:[ecx - 0x4a], edx
mov cl, 0x10
into
out 0xf6, eax
and al, 0xe4
push edi
fistp word [edx + 0x781aadcc]
mov ch, 0xb2
nop
lahf
xor bh, byte [ebx + 0x732dc1a4]
cmp byte [edx + edx*4], ah
add dh, byte [edx - 0x38]
dec ebx
push ebp
jge 0x5f32a0
fnstcw word [ebx + 0x5a]
mov ch, 0xa0
popfd
sub byte [esi - 0x2a050676], dl
cli
int 0x2e
cmp al, 0x62
mov ebx, 0x239809ec
push ds
jb 0x5f32e8
shl dword [esi], 0x2a
push 0x2a
into
sub esi, ebx
nop
jmp 0xbc881bb7
mov esp, 0xf3cd50b3
hlt
Function at 0x41cd10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x11000]
push edi
or ebp, 0xffffffff
jmp 0x41cd32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41cd39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41cd28
mov eax, 1
add ebx, ebx
jne 0x41cd4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41cd40
jne 0x41cd5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41cd40
xor ecx, ecx
sub eax, 3
jb 0x41cd70
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41cde2
mov ebp, eax
add ebx, ebx
jne 0x41cd7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41cd88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41cdac
inc ecx
add ebx, ebx
jne 0x41cd98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41cd8d
jne 0x41cda9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41cd8d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41cdcc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41cdbd
jmp 0x41cd2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41cdcc
add edi, ecx
jmp 0x41cd2e
pop esi
mov edi, esi
mov ecx, 0x47e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41cdea
cmp byte [edi], 0xa
jne 0x41cdea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41cdef
lea edi, [esi + 0x1a000]
mov eax, dword [edi]
or eax, eax
je 0x41ce5e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1c3b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1c408]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41ce1c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1c40c]
or eax, eax
je 0x41ce58
mov dword [ebx], eax
add ebx, 4
jmp 0x41ce39
call dword [esi + 0x1c414]
mov ebp, dword [esi + 0x1c410]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41ce92
sub esp, 0xffffff80
jmp 0x406202
Function at 0x402820
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.004041cc
test esi, esi
jne 0x402856
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.004042bc
jmp 0x402874
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004026d4
mov edi, eax
test esi, esi
je 0x402874
cmp dword [ebx], 0
je 0x402874
dec esi
jmp 0x40285d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x424008], 0x8088405
inc edx
mov dword [ebx + 0x424008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4036e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x424018]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40377c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40375c
xor eax, eax
push ebp
push 0x403755
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 0x403798
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 0x40375c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x424018]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x424018], ax
mov esp, ebp
pop ebp
ret

Function at 0x404050
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x426044], 0
je 0x4040b1
cmp word [0x426218], 0xd7b2
jne 0x404079
cmp dword [0x426220], 0
jbe 0x404079
mov eax, 0x426214
call dword [0x426230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x424290
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 0x4040d8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x424024], 0
jne 0x4040cd
push 0
push 0x424288
push 0x424290
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405634
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40569a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404420
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402dc8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405684
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4056a1
lea eax, [ebp - 0x10]
call fcn.004041cc
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404670
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x406f55
test al, 0x10
jne 0x406f59
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4091a0
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 0x4091d9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004042bc
jmp 0x4091e2
mov eax, ebx
mov edx, esi
call fcn.00404220
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4091ec
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 0x40920d
mov al, byte [esp]
jmp 0x40920f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x409894
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40970c
mov eax, dword [0x425e08]
cmp byte [eax], 0
je 0x409910
mov eax, dword [0x425d38]
call fcn.00402c64
call fcn.00402644
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407520
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x409958
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409946
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x425d10]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x426660]
call fcn.00405084
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40a5cc
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 0x40a630
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_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404420
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00406d78
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a637
lea eax, [ebp - 0xc]
call fcn.004041cc
ret

Function at 0x40b3dc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404660
mov eax, dword [ebp - 8]
call fcn.00404660
xor eax, eax
push ebp
push 0x40b44e
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
push 0
mov eax, dword [ebp - 8]
call fcn.00404670
push eax
mov eax, dword [ebp - 4]
call fcn.00404670
push eax
push 0
call sub.user32.dll_GetDesktopWindow
push eax
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
seta al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b455
lea eax, [ebp - 8]
mov edx, 2
call fcn.004041f0
ret

Function at 0x40cc3c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x104], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ccb0
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00404420
mov eax, dword [ebp - 0x104]
mov ecx, esi
mov edx, ebx
call fcn.0040cb1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ccb7
lea eax, [ebp - 0x104]
call fcn.004041cc
ret

Function at 0x40ccc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x104], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cd34
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00404420
mov eax, dword [ebp - 0x104]
mov ecx, esi
mov edx, ebx
call fcn.0040cb1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd3b
lea eax, [ebp - 0x104]
call fcn.004041cc
ret
Function at 0x40cd44
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x104], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cdb8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x100]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00404420
mov eax, dword [ebp - 0x104]
mov ecx, esi
mov edx, ebx
call fcn.0040cb1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cdbf
lea eax, [ebp - 0x104]
call fcn.004041cc
ret

Function at 0x40d724
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7e0
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404660
mov eax, dword [ebp - 8]
call fcn.00404660
mov eax, dword [ebp - 0xc]
call fcn.00404660
xor eax, eax
push ebp
push 0x40d84e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 0xc]
call fcn.00404220
lea ecx, [ebp - 4]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0040d638
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00404670
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x40d833
xor edx, edx
push ebp
push 0x40d82c
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x20], 0x800
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404670
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40d815
cmp dword [ebp - 0x1c], 4
jne 0x40d808
cmp dword [ebp - 0x20], 4
jne 0x40d808
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x820]
mov ecx, 4
call fcn.00402694
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
mov eax, ebx
call fcn.00406d50
jmp 0x40d815
mov edx, ebx
lea eax, [ebp - 0x820]
call fcn.00407628
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d833
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d855
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004041f0
ret

Function at 0x40d900
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x40d909
mov eax, dword [ebp - 4]
add esp, 0xfffff800
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.00404670
push eax
push 0x2801
lea eax, [ebp - 0x2801]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00404670
push eax
mov eax, edi
call fcn.00404670
push eax
mov eax, esi
call fcn.00404670
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
mov ecx, eax
lea edx, [ebp - 0x2801]
mov eax, dword [ebp + 8]
call fcn.004042bc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40db80
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
xor edx, edx
mov dword [ebp - 0x108], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40dbfb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004041cc
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x40dbe2
lea edx, [ebp - 0x108]
lea eax, [ebp - 0x104]
call fcn.00407628
mov eax, dword [ebp - 0x108]
mov edx, ebx
call fcn.00406bc8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dc02
lea eax, [ebp - 0x108]
call fcn.004041cc
ret

Function at 0x40dc08
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
xor edx, edx
mov dword [ebp - 0x108], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40dc83
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004041cc
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x40dc6a
lea edx, [ebp - 0x108]
lea eax, [ebp - 0x104]
call fcn.00407628
mov eax, dword [ebp - 0x108]
mov edx, ebx
call fcn.00406bc8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dc8a
lea eax, [ebp - 0x108]
call fcn.004041cc
ret

Function at 0x40de78
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40df74
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx]
call fcn.00404670
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404670
mov edi, eax
push edi
push 0
call sub.advapi32.dll_LookupAccountNameA
mov edx, dword [ebp - 8]
inc edx
mov eax, ebx
call fcn.004047fc
mov eax, dword [ebp - 4]
call fcn.00406b6c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x40df57
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx]
call fcn.00404670
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
push edi
push 0
call sub.advapi32.dll_LookupAccountNameA
test eax, eax
je 0x40df3a
mov eax, dword [ebx]
call fcn.00404670
lea edx, [ebp - 0x14]
call fcn.00407628
mov edx, dword [ebp - 0x14]
mov eax, ebx
call fcn.00404220
jmp 0x40df41
mov eax, ebx
call fcn.004041cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40df5e
mov eax, dword [ebp - 0xc]
call fcn.00402570
ret
Function at 0x40dfd0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffc00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.004041cc
test ebx, ebx
je 0x40e009
push 0x3e8
lea eax, [esp + 4]
push eax
test ebx, ebx
jns 0x40dffa
call fcn.004037b4
push ebx
call sub.user32.dll_GetWindowTextA
mov edx, esi
mov eax, esp
call fcn.00407628
add esp, 0x400
pop esi
pop ebx
ret

Function at 0x4129c4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404660
xor eax, eax
push ebp
push 0x412b57
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004028c4
mov eax, 0x1869f
call fcn.00402d4c
mov edx, dword [ebp - 8]
call fcn.00406c64
mov eax, dword [ebp - 4]
call fcn.00404470
mov ebx, eax
test ebx, ebx
jle 0x412a2f
mov esi, 1
lea eax, [ebp - 4]
call fcn.004046c8
sub byte [eax + esi - 1], 0x32
inc esi
dec ebx
jne 0x412a1e
lea eax, [ebp - 0x10]
call fcn.004041cc
lea eax, [ebp - 0x18]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004046d0
mov eax, dword [ebp - 0x18]
call fcn.0040d49c
mov edx, eax
lea eax, [ebp - 0x14]
call fcn.00404398
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.00404478
lea eax, [ebp - 4]
mov ecx, 2
mov edx, 1
call fcn.00404710
cmp dword [ebp - 4], 0
jne 0x412a37
mov eax, dword [ebp - 0x10]
call fcn.00404470
mov edi, eax
cmp edi, 4
jle 0x412b34
mov eax, dword [ebp - 0x10]
mov al, byte [eax + edi - 2]
mov byte [ebp - 0xa], al
xor eax, eax
mov ebx, edi
test ebx, ebx
jle 0x412abe
mov esi, 1
mov edx, edi
dec edx
cmp esi, edx
je 0x412aba
mov edx, dword [ebp - 0x10]
add al, byte [edx + esi - 1]
inc esi
dec ebx
jne 0x412aac
cmp al, byte [ebp - 0xa]
jne 0x412b34
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
mov edx, dword [ebp - 0x10]
mov dl, byte [edx + edi - 1]
xor al, dl
mov byte [ebp - 9], al
mov ebx, edi
dec ebx
sub ebx, 2
jl 0x412afc
inc ebx
mov esi, 2
lea eax, [ebp - 0x10]
call fcn.004046c8
mov edx, dword [ebp - 0x10]
mov dl, byte [edx + esi - 1]
xor dl, byte [ebp - 9]
mov byte [eax + esi - 1], dl
inc esi
dec ebx
jne 0x412ae2
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 1]
mov edx, dword [ebp - 0x10]
mov dl, byte [edx + 2]
mov esi, eax
and esi, 0xff
add esi, 3
inc esi
and eax, 0xff
sub edi, eax
xor eax, eax
mov al, dl
sub edi, eax
sub edi, 4
mov eax, dword [ebp - 8]
push eax
mov ecx, edi
mov edx, esi
mov eax, dword [ebp - 0x10]
call fcn.004046d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412b5e
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004041f0
lea eax, [ebp - 4]
call fcn.004041cc
ret