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

Disassembly:
dec dword [ecx]
pop es
sbb ebx, dword [edi - 0x35]
add ecx, eax
jp 0x418385
inc edi
mov esp, 0x38f0bea9
invalid
test eax, 0xfe38f0be
cmp byte [esi - 0x4a5b691], bh
sti
cli
insb byte es:[edi], dx
push es
mov dh, al
cdq
mov ebx, 0xde166845
sbb byte [ecx], 0x82
xor dh, byte [eax + 0x219a46f0]
test dword [eax], edi
jae 0x41836f
div byte [edx + 0x37]
aaa
jns 0x4183a1
movsd dword es:[edi], dword [esi]
pushfd
test al, 0x77
jmp dword [0xf4444c38]
jbe 0x41837b
xor byte [eax + 9], bh
xchg ebp, eax
adc eax, 0x33ea11a2
jl 0x41844b
xchg edi, eax
push ebp
invalid
sub byte [ecx + 0x3dcd90d1], dl
int 0x3d
push 0x7d4b7919
jge 0x4183e3
invalid
xchg esi, eax
cmc
clc
mov ebp, dword [edx + 0x59d0f6f3]
pop dx
loope 0x4184f4
adc ah, bh
bound ebx, qword [ebx]
sahf
pop edx
jae 0x418447
iretd
sub dl, al
int3
ret
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
scasd eax, dword es:[edi]
jl 0x4184a2
push ss
xchg esi, eax
loopne 0x418527
ficom word [esi - 0x72561129]
cmc
jle 0x418519
test eax, 0xed7ef58d
xchg esp, eax
add dword [esi - 0x36b585c5], esp
inc ecx
loope 0x4184c4
insb byte es:[edi], dx
cwde
cmp dword [eax - 0x1b93600a], ebx
mov dword [bp + si], esi
mov ebx, 0xb65dd2b5
cwde
neg byte [edi - 0x76981b94]
xor bh, byte [ebx - 0x49a22d4b]
fisub dword [edi]
and eax, 0xeb338fd1
and byte [eax - 0x6b], bl
cmpsd dword [esi], dword es:[edi]
mov eax, 0x311b49c0
out 0x37, al
dec ebx
xchg esi, eax
mul dword [edx + ecx*4 - 0x62]
pop edi
cmp byte [ebx + 0x69], dh
dec ebp
and dh, dh
push eax
sti
insd dword es:[edi], dx
imul ecx, dword [ebp + 0x20], 0x36fb50f6
insd dword es:[edi], dx
dec dword [edx - 0x36558fa5]
arpl word [ecx - 0x6258d820], si
stosb byte es:[edi], al
mov ecx, 0x8fc992fc
adc al, 0xa1
scasb al, byte es:[edi]
sahf
xor ebp, dword [ecx + 0x5ad06a21]
mov edx, 0xe1c753fd
or byte [bp - 0x43], bl
jle 0x418562
invalid
fisub word [ecx + 0x33]
pushal
add bl, dl
loop 0x4185e3
jmp 0x4185d1
das
js 0x418539
invalid
fisub word fs:[edx - 3]
mov dl, 0x59
ror ecx, cl
mov bl, 0x5c
adc byte [edi - 0x3d4ea2ca], ch
mov bl, 0xf2
xor byte [ebx + 0x2f546f8], bh
mov ebx, 0x2f546f8
lea esp, [0xa254051]
lea esp, [ecx + 7]
jl 0x4185be
mov ebp, 0xeb2e1391
rcr ah, 0x91
sar ch, 1
push eax
add al, 0x1c
add dh, byte [esi + ecx*8]
mov ebx, 0x4681d581
loop 0x41857b
adc ebp, dword [esi]
jmp 0x4185a7
mov edx, 0xc8017451
enter 0xffffffffffffba31, 0xffffffffffffff9d
cmp dl, byte [ecx + esi*2 + 0x39]
sbb eax, 0xe0051bdf
pushfd
mov al, byte [0xa6313ad6]
or al, 0xbd
imul esp, dword [ecx + 0x2f8bb72d], 0xffffffb6
sub dh, ah
loope 0x418668
dec edx
out 0x30, eax
pop ebx
sub dl, byte [eax]
stc
add eax, 0xac7e4069
cli
out 0xab, al
push edx
xlatb
and byte [edi], al
pop eax
imul edi, ebx, 0x4d
pop esp
dec esp
push edi
mov word [ebp - 0x5509cc3b], ss
pop esp
jnp 0x41861d
inc edx
aaa
pop ebp
jb 0x418683
cmc
add eax, 0x937af59c
call ecx
add esi, dword [ecx]
sub dword [ebx + 0x68], ebx
adc ecx, esp
mov esi, 0x455823b6
xor dword [esi], edi
fcmovbe st(0), st(4)
xchg esp, eax
pop ebx
out dx, eax
dec ebx
mov esp, edx
hlt
jmp 0xd44d53ee
ret
Function at 0x425e73
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x425fd4
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x425fd4
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x252]
push ecx
mov word [ebp - 0x254], ax
call fcn.0042e0f3
push 0x80
push esi
call fcn.0042e0a3
push edi
call fcn.0042e293
mov esi, eax
lea edx, [esi + esi]
push edx
lea eax, [ebp - 0x254]
push edi
push eax
call fcn.0042e073
mov ebx, dword [ebp + 8]
xor eax, eax
add esp, 0x24
mov dword [ebp - 0x40], 0x6f004c
mov dword [ebp - 0x3c], 0x610063
mov dword [ebp - 0x38], 0x20006c
mov dword [ebp - 0x34], 0x740053
mov dword [ebp - 0x30], 0x740061
mov dword [ebp - 0x2c], 0x65
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x4c], 0xafb5aeea
xor edi, edi
lea ebx, [ebx]
cmp esi, 5
jbe 0x425f49
cmp word [ebp + esi*2 - 0x254], 0x5c
je 0x425f49
dec esi
cmp esi, 5
ja 0x425f38
lea ecx, [ebp - 0x40]
push ecx
call fcn.0042e293
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp + esi*2 - 0x252]
push ecx
call fcn.0042e073
lea edx, [ebp - 0x4c]
push edx
push 0
push 0x15
lea eax, [ebp - 0x254]
push eax
push ebx
call fcn.00428153
add esp, 0x24
test eax, eax
jne 0x425f9d
xor ecx, ecx
inc edi
mov word [ebp + esi*2 - 0x254], cx
cmp edi, 3
jb 0x425f33
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x254]
xor edx, edx
push eax
mov word [ebp + esi*2 - 0x252], dx
call fcn.0042e293
lea ecx, [eax + eax + 2]
mov eax, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x254]
push edx
push eax
call fcn.0042e073
add esp, 0x10
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42d653
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 4]
test edi, edi
je 0x42d6b9
cmp dword [esi + 0x18], 0
je 0x42d6d4
lea ecx, [ecx]
mov edx, dword [esi + 0x30]
push edi
push edx
call fcn.0042ee23
add esp, 8
test eax, eax
jne 0x42d6b1
mov esi, dword [esi]
cmp dword [esi + 0x18], eax
jne 0x42d693
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x42d6d4
mov eax, dword [esi + 0x18]
test eax, eax
je 0x42d6d4
cmp eax, ecx
je 0x42d6b1
mov esi, dword [esi]
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x42d6c7
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402568
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x402576
call dword [0x40b004]
or eax, eax
je 0x402577
ret
mov al, 1
jmp fcn.004025e8

Function at 0x402580
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x40258e
call dword [0x40b008]
or eax, eax
jne 0x40258f
ret
mov al, 2
jmp fcn.004025e8

Function at 0x402598
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [eax]
test ecx, ecx
je 0x4025d0
test edx, edx
je 0x4025ba
push eax
mov eax, ecx
call dword [0x40b00c]
pop ecx
or eax, eax
je 0x4025c9
mov dword [ecx], eax
ret
mov al, 2
jmp fcn.004025e8
mov dword [eax], edx
mov eax, ecx
call dword [0x40b008]
or eax, eax
jne 0x4025b3
ret
mov al, 1
jmp fcn.004025e8
test edx, edx
je 0x4025e4
push eax
mov eax, edx
call dword [0x40b004]
pop ecx
or eax, eax
je 0x4025c9
mov dword [ecx], eax
ret

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

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

Function at 0x405198
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
test eax, eax
jle 0x4051d1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403230
jmp 0x4051da
mov eax, ebx
mov edx, esi
call fcn.004031e4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x406978
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4069c0
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406914
mov eax, dword [ebp - 4]
call fcn.004033cc
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4069c7
lea eax, [ebp - 4]
call fcn.00403150
ret
Function at 0x406bc8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406c56
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406c13
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403230
jmp 0x406c40
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406c27
lea eax, [ebp - 4]
call fcn.00403150
jmp 0x406c36
lea edx, [ebp - 4]
call fcn.00406a8c
test ebx, ebx
je 0x406c36
dec ebx
jmp 0x406c18
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004031e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406c5d
lea eax, [ebp - 4]
call fcn.00403150
ret

Function at 0x406c64
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404d6c
add esp, 0x104
pop ebx
ret

Function at 0x406dac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x406ee4
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x406ece
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x406e09
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x406ece
cmp dword [ebp - 0x10], 0
jne 0x406e1e
mov eax, dword [ebp - 8]
call fcn.00403150
mov bl, 1
jmp 0x406ece
cmp dword [ebp - 0x10], 0x70000000
jb 0x406e2c
call fcn.00405810
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
lea eax, [ebp - 0x14]
mov ecx, esi
xor edx, edx
call fcn.00403230
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
call fcn.004033d8
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
cmp eax, 0xea
je 0x406dd2
test eax, eax
jne 0x406ece
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x406e7c
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x406ece
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
jmp 0x406e87
dec esi
test esi, esi
je 0x406e95
mov eax, dword [ebp - 0x14]
cmp byte [eax + esi - 1], 0
je 0x406e86
cmp dword [ebp - 0xc], 7
jne 0x406ea0
test esi, esi
je 0x406ea0
inc esi
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.004034a8
cmp dword [ebp - 0xc], 7
jne 0x406ec1
test esi, esi
je 0x406ec1
lea eax, [ebp - 0x14]
call fcn.004033d8
mov byte [eax + esi - 1], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.004031a0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406eeb
lea eax, [ebp - 0x14]
call fcn.00403150
ret
Function at 0x40782c
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40c558
mov eax, esi
mov edx, 8
test al, 1
je 0x407848
shr eax, 1
xor eax, 0xedb88320
jmp 0x40784a
shr eax, 1
dec edx
jne 0x40783b
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x407834
pop esi
ret

Function at 0x407877
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40c554], 0
jne 0x407883
call fcn.0040782c
push 1
push 0x40c554
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x4078ae
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40c558]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x407889
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x408f08
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00408ebc
test al, al
jne 0x408f29
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x408f75
xor eax, eax
push ebp
push 0x408f65
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004033cc
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408f6c
lea eax, [ebp - 0xc]
call fcn.00408ef8
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40927c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x40936b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00406c90
mov edx, dword [ebp - 8]
mov ecx, 0x409384
xor eax, eax
call fcn.00409170
push 0
mov eax, dword [ebp - 4]
call fcn.004033cc
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x409339
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je 0x40929c
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov al, 0x35
call fcn.00408d44
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00404c20
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00407220
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
mov ecx, 2
mov al, 0x67
call fcn.00408d14
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, 0x4045ec
call fcn.0040581c
call fcn.00402e88
jmp 0x40929c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004031e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409372
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00403170
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403170
ret
Function at 0x41c500
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x427850], 0
jne 0x41c581
cmp dword [0x427870], 0
jne 0x41c530
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x427870], eax
test eax, eax
jne 0x41c530
push str.GetEnvironmentStrings_failed
call fcn.0041bd1c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x427870]
jmp 0x41c544
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c53c
lea edi, [ebp + 1]
push edi
call fcn.004161a8
pop ecx
mov ebx, eax
mov dword [0x427854], ebx
test ebx, ebx
jne 0x41c56e
xor eax, eax
jmp 0x41c644
push edi
mov edx, dword [0x427870]
push edx
push ebx
call fcn.00416754
add esp, 0xc
jmp 0x41c5a1
xor esi, esi
mov ebx, dword [0x427850]
jmp 0x41c59b
push eax
call fcn.004168a4
pop ecx
test eax, eax
jne 0x41c597
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c58b
lea ebx, [esi + 4]
push 4
mov dword [0x427858], ebx
inc ebx
push ebx
call fcn.00415c80
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41c5c4
xor eax, eax
jmp 0x41c644
cmp dword [0x427850], 0
jne 0x41c5f5
xor esi, esi
mov ebx, dword [0x427854]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41c5e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c5dc
jmp 0x41c626
xor esi, esi
mov ebx, dword [0x427850]
mov eax, dword [esp]
mov edi, eax
jmp 0x41c620
push eax
call fcn.004168a4
pop ecx
test eax, eax
je 0x41c615
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41c619
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c604
mov eax, dword [0x427850]
test eax, eax
je 0x41c636
push eax
call fcn.004161b8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x427850], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x433002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00431219
Function at 0x401308
Capabilities:
Query or enumerate registry value

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

Function at 0x401a58
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x407034], 0
je 0x401ab9
cmp word [0x407208], 0xd7b2
jne 0x401a81
cmp dword [0x407210], 0
jbe 0x401a81
mov eax, 0x407204
call dword [0x407220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x406040
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 0x401ae0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x406018], 0
jne 0x401ad5
push 0
push 0x406060
push 0x406040
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40236c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff7d8
mov edi, edx
mov esi, eax
push esi
call sub.kernel32.dll_lstrlenA
mov ebx, eax
push esi
lea eax, [esp + 0x2c]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x40243c
lea eax, [esp + 0x42c]
push eax
call sub.kernel32.dll_lstrcpyA
cmp ebx, 1
jl 0x40241c
call sub.kernel32.dll_GetTickCount
and eax, 0xff
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
push 0x402440
lea eax, [esp + 0x10]
push eax
call sub.user32.dll_wvsprintfA
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x42c]
push eax
call sub.kernel32.dll_lstrcpyA
mov esi, ebx
dec esi
test esi, esi
jl 0x40241c
inc esi
lea ebx, [esp + 0x28]
xor eax, eax
mov al, byte [ebx]
mov dword [esp], eax
mov eax, dword [esp + 4]
xor eax, 0x9e
xor dword [esp], eax
push esp
push 0x402440
lea eax, [esp + 0x10]
push eax
call sub.user32.dll_wvsprintfA
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x42c]
push eax
call sub.kernel32.dll_lstrcatA
inc ebx
dec esi
jne 0x4023e3
lea eax, [esp + 0x428]
push eax
push edi
call sub.kernel32.dll_lstrcpyA
push edi
call sub.kernel32.dll_lstrlenA
add esp, 0x828
pop edi
pop esi
pop ebx
ret
Function at 0x40268c
Capabilities:
Enumerate processes

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffed8
mov ebx, edx
mov esi, eax
xor edi, edi
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov ebp, eax
mov dword [esp], 0x128
push esp
push ebp
call sub.kernel32.dll_Process32First
jmp 0x4026d5
lea eax, [esp + 0x24]
push eax
push esi
call sub.kernel32.dll_lstrcmpiA
test eax, eax
jne 0x4026ce
mov edi, dword [esp + 8]
test bl, bl
je 0x4026df
push esp
push ebp
call sub.kernel32.dll_Process32Next
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
je 0x4026b7
push ebp
call sub.kernel32.dll_CloseHandle
mov eax, edi
add esp, 0x128
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4026f4
Capabilities:
Enumerate process modules

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffddc
mov edi, ecx
mov ebx, edx
mov esi, eax
xor ebp, ebp
push 0x104
push edi
call sub.kernel32.dll_RtlZeroMemory
push esi
push 8
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp], 0x224
push esp
push esi
call sub.kernel32.dll_Module32First
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x402771
push ebx
call sub.kernel32.dll_lstrlenA
test eax, eax
je 0x40274c
lea eax, [esp + 0x20]
push eax
push ebx
call sub.kernel32.dll_lstrcmpiA
test eax, eax
jne 0x402760
lea eax, [esp + 0x120]
push eax
push edi
call sub.kernel32.dll_lstrcpyA
mov ebp, dword [esp + 0x14]
jmp 0x402771
push esp
push esi
call sub.kernel32.dll_Module32Next
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
je 0x402733
push esi
call sub.kernel32.dll_CloseHandle
mov eax, ebp
add esp, 0x224
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x402838
Capabilities:
Get file size

Disassembly:
push ebx
push esi
xor esi, esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40286b
push 0
push ebx
call sub.kernel32.dll_GetFileSize
mov esi, eax
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, esi
pop esi
pop ebx
ret

Function at 0x402870
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
push 0x80
push esi
call sub.kernel32.dll_SetFileAttributesA
push esi
call sub.kernel32.dll_DeleteFileA
mov eax, esi
call fcn.00402810
test al, al
jne 0x402894
mov bl, 1
mov eax, ebx
pop esi
pop ebx
ret