joyce8/EMBER2024-capa huggingface dataset:
Function at 0x778ebab0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x778ebaee
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x778ebae6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x778ebaf0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x778ebad6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x778ebbc0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x778ebbf1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x778ebbf1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x778ebbf1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x7791631a
Capabilities:
Encode data using xor

Disassembly:
call 0x77916293
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x779162c3
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x779162df
xor edx, 0
jmp 0x779162ea
xor edx, edx
jmp 0x77916301
jmp 0x7791630d
xor eax, eax
push 0x8427d7c0
call 0x7791631a
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x77916356
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x7791632f
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x7791636d
add eax, 0
jno 0x77916372
add esi, 0
ret 0x10
Function at 0x779170db
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x779170fd
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x7791729f
cmp edi, dword [ebp + 0x10]
jb 0x7791729f
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.77916bc7
inc edi
jmp 0x77917186
jmp 0x77917193
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.77916bc7
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.77916bc7
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x779171e7
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x779171cb
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.77917215
add dword [eax], 0x39
jle 0x779171f1
sub al, 0xf5
mov ch, al
call fcn.7791722a
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10

Function at 0x77918f02
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x77918f18
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x77918f29
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.77918f6a
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx
Function at 0x7791b2d6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x7791b21f
add ebx, 0
push ecx
call 0x7791b234
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x1008b1f9
sub ebx, dword [0x100aaa38]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x100aaa28
call fcn.77916cfe
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.7791620c
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x7791b392
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x7791b392
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x7791b349
mov eax, 1
lock xchg dword [0x100aaa34], eax
push 0x3dd1fc71
call 0x7791b2d6
push esi
add esp, 8
cmp eax, 0
jne 0x7791b2bf
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x7791b2e5
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x7791b2fa
cmp ecx, edx
cmp eax, 0
je 0x7791b31f
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x7791b309
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.7791b338
dec eax
loope 0x7791b33b
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x100aaa34], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x7791b36f
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x7791b384
jmp 0x7791b38f
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x7791b27d
Function at 0x779223f7
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x779226cd
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x100976ac
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x1008e672
push 0xffffffffffffffff
call fcn.779195f7
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x77922461
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.77922479
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x779226c1
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x77922695
Function at 0x77931ec7
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x77931ee9
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x77931ee9
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x77931ee9
ret
cmp word [ebx + 4], 0x14c
jne 0x77931ee9
test word [ebx + 0x16], 2
je 0x77931ee9
test word [ebx + 0x16], 0x100
je 0x77931ee9
cmp word [ebx + 0x18], 0x10b
jne 0x77931ee9
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x77931ee9
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x77931f75
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x77931f09
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.77918e54
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x77931ee9
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x77931f75
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x77931ee9
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x77931ee9
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x77931ee9
ret
cmp word [ebx + 4], 0x14c
jne 0x77931ee9
test word [ebx + 0x16], 2
je 0x77931ee9
test word [ebx + 0x16], 0x100
je 0x77931ee9
cmp word [ebx + 0x18], 0x10b
jne 0x77931ee9
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x77931ee9
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x77931f75
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x77931f09
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.77918e54
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x77931ee9
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x7793202c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x77932085
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x7793202c
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x7793203b
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x77d37cde
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x7793208c
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.77918f02
cmp eax, dword [ebp + 0xc]
pop eax
je 0x7793212b
add edi, 4
add eax, 2
dec ecx
jne 0x77932071
call 0x779320d8
loope 0x779320ce
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x77932128
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x77932139
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x779320ec
cmp eax, ecx
ja 0x779320ec
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x77932176
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x7793216c
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.779193e1
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x7793203b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x77932085
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x7793202c
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x7793203b
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x77d37cde
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x7793208c
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.77918f02
cmp eax, dword [ebp + 0xc]
pop eax
je 0x7793212b
add edi, 4
add eax, 2
dec ecx
jne 0x77932071
call 0x779320d8
loope 0x779320ce
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x77932128
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x77932139
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x779320ec
cmp eax, ecx
ja 0x779320ec
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x77932176
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x7793216c
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.779193e1
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x403d84
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 0x403dbd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00408918
jmp 0x403dc6
mov eax, ebx
mov edx, esi
call fcn.00408884
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x407f30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4145f4]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x407fc8
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x407fa8
xor eax, eax
push ebp
push 0x407fa1
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 0x407fe4
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 0x407fa8
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x4145f4]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4145f4], ax
mov esp, ebp
pop ebp
ret
Function at 0x409464
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x409620
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x4094c5
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x40963c
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x409537
xor eax, eax
push ebp
push 0x409530
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.004092bc
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x409519
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40965c
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409537
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x409618
cmp byte [ebp - 0xd], 0
jne 0x409579
cmp byte [ebp - 0x12], 0
je 0x409618
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x409592
dec ebx
cmp byte [ebx], 0x2e
je 0x4095a1
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x409591
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x409618
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4095ce
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x409618
cmp byte [ebp - 0xd], 0
je 0x409618
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x409618
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409970
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x409a58
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x417fe8], 1
jae 0x409a4a
xor eax, eax
mov dword [0x417bf4], eax
xor eax, eax
mov dword [0x417bfc], eax
xor eax, eax
mov dword [0x417c00], eax
mov byte [0x417c06], 2
mov byte [0x417c07], 2
mov byte [0x417c08], 3
mov word [0x417fb0], 0
mov word [0x417fc0], 1
mov word [0x417fd0], 0xa
mov dword [0x417fd8], 0x80020004
mov dword [0x417fa4], 0x408e64
mov dword [0x417fa8], 0x408e5c
mov dword [0x417fac], 0x408e64
call fcn.00407f00
test al, al
je 0x409a09
call fcn.00407f30
call fcn.00407ff4
mov eax, 0x417c0c
mov edx, 0x409a64
call fcn.00405a5e
mov eax, 0x417dd8
mov edx, 0x409a64
call fcn.00405a5e
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x417bec], eax
call fcn.00406930
mov dword [0x417be8], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x417be0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a5f
ret

Function at 0x40b14c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
adc cl, byte [ebx - 0x24ccefbb]
cmp eax, ebx
je 0x40b757
mov edi, dword [eax + 0x3c]
add edi, eax
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
mov dword [ebp - 0x44], esi
call fcn.0040af5e
loopne 0x40b146
insb byte es:[edi], dx
xor eax, 0x647b70f
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.0040af5e
sub eax, 0x6626a02c
mov eax, dword [edi + 6]
cmp ax, bx
jbe 0x40b1b8
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x40b1b2
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x40b1a3
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
stosb byte es:[edi], al
pop eax
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
enter 0x45c6, 0xffffffffffffffb9
cmpsd dword [esi], dword es:[edi]

Function at 0x40dfb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x40e012
call fcn.0040df60
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0040a3dc
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0040a3dc
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x40e090
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4161a4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x40e16a
cmp dword [0x4161a0], 0
jne 0x40e16a
cmp dword [0x416298], 0
je 0x40e124
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0040de60
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40e10a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0040de60
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40e10a
lea ebx, [ebp - 0x84]
jmp 0x40e10b
inc ebx
call fcn.0040e04c
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x40e1a5
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4161a8
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0040a3dc
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4161ab
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x40e1a5
cmp dword [0x4161a0], 0
je 0x40e184
cmp dword [0x4161a0], 0xffffffff
je 0x40e1a5
push esi
call dword [0x4161a0]
pop ecx
mov eax, dword [0x4161a4]
test eax, eax
je 0x40e1a5
cmp dword [0x4161a4], 0xffffffff
je 0x40e1a5
cmp byte [eax], 0
je 0x40e1a5
push esi
push eax
call fcn.0040dfb0
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ec18
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 8], 1
mov dword [ebp - 4], esi
cmp edi, 1
jne 0x40ec9e
mov eax, dword [0x418928]
inc dword [0x418928]
test eax, eax
jne 0x40ec9e
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4188f4], eax
mov edx, dword [ebp + 0x10]
mov dword [0x4141a3], edx
mov ecx, dword [esi + 0x44]
push ecx
call 0x40b8a0
pop ecx
cmp dword [0x4161e0], 0
je 0x40ec89
call fcn.0040ea9c
mov ebx, eax
test eax, eax
je 0x40ec89
mov edx, dword [ebx]
cmp dword [ebx + edx*4 + 4], 0xffffffff
je 0x40ec89
mov ecx, dword [ebx]
inc dword [ebx]
mov dword [ebx + ecx*4 + 4], esi
jmp 0x40ec9e
xor eax, eax
lea edx, [ebp - 8]
push 0
push edx
mov dword [0x4161e0], eax
call fcn.0040eaa4
add esp, 8
mov ecx, dword [ebp + 0x18]
push ecx
push edi
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [esi + 0x18]
push edx
call fcn.0040edac
mov ebx, eax
test edi, edi
jne 0x40ed0d
test edi, edi
jne 0x40ecde
dec dword [0x418928]
jne 0x40ecde
cmp dword [0x4188f4], 0
je 0x40ecde
mov eax, dword [0x4188f4]
push eax
call sub.KERNEL32.DLL_FreeEnvironmentStringsA
xor edx, edx
mov dword [0x4188f4], edx
cmp dword [0x418928], 0
jne 0x40ed0d
cmp dword [0x4161e0], 0
jne 0x40ed0d
cmp dword [0x4161d0], 0
je 0x40ecff
call dword [0x4161d0]
push 1
lea ecx, [ebp - 8]
push ecx
call fcn.0040eaa4
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret