joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004f7a
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x1014b48]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov esi, 0x1015714
push esi
mov dword [ebp - 0x38], eax
call fcn.01002d2a
push eax
push 0x40
mov dword [ebp - 0x3c], eax
call dword [0x10011d4]
mov edi, eax
xor eax, eax
cmp edi, eax
jne 0x1004fc8
push eax
push 0x10
push eax
push eax
push 0x44c
push eax
call fcn.0100373a
xor eax, eax
jmp 0x100504a
cmp dword [ebp + 0xc], eax
push ebx
mov ebx, dword [0x10011f0]
mov dword [ebp - 0x40], edi
je 0x1004fe8
push 1
push esi
push dword [ebp - 0x3c]
push edi
push dword [ebp - 0x38]
call fcn.01004ad0
jmp 0x100502a
push esi
push dword [ebp - 0x3c]
push edi
push 0x1001443
push 0
push dword [ebp - 0x38]
call ebx
jmp 0x100502a
cmp dword [ebp + 0xc], 0
je 0x1005004
push edi
jmp 0x100501a
push esi
push 0x30
lea eax, [ebp - 0x34]
push eax
push 0x1001443
push edi
push dword [ebp - 0x38]
call ebx
lea eax, [ebp - 0x34]
push eax
call fcn.01002f59
push edi
call dword [fcn.010011dc]
lea edi, [edi + eax + 1]
cmp byte [edi], 0
jne 0x1004ffb
push esi
push 0
push 0
push dword [ebp - 0x38]
call dword [0x10011fc]
push dword [ebp - 0x40]
call dword [0x100120c]
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0100c759
leave
ret 8
Function at 0x1006aa4
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x1014b48]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x314], eax
lea eax, [ebp - 0xc]
push eax
mov edi, 0x1015fa4
push edi
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x318]
push eax
push 0x1015b9c
mov dword [ebp - 0x310], 1
call fcn.0100cffc
mov ebx, dword [0x10011e0]
add esp, 0x14
lea eax, [ebp - 0x318]
push eax
mov esi, 0x1015ea0
push esi
call ebx
lea eax, [ebp - 0x30c]
push eax
push esi
call dword [0x10011d8]
push esi
push 0x10160a8
call ebx
push 0x1001a38
push edi
push 0x1001a30
mov edi, 0x200
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.010036d4
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
push 0x104
push 0x10160a8
call fcn.0101290a
cmp byte [0x10162b0], 0
jne 0x1006b94
push esi
push 0x10162b0
call ebx
push 0x1015fa4
push 0x1001a20
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.010036d4
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
push 0x104
push 0x10162b0
call fcn.0101290a
push esi
push 0x10163b4
call ebx
push 0x1001a18
push 0x1015fa4
push 0x1001a30
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.010036d4
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
push 0x104
push 0x10163b4
call fcn.0101290a
cmp dword [0x1017124], 0x866
je 0x1006c2d
push 0x1001a10
push 0x1015fa4
push 0x1001a30
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.010036d4
add esp, 0x14
push esi
mov esi, 0x10161ac
push esi
call ebx
lea eax, [ebp - 0x20c]
push eax
push 0x104
push esi
call fcn.0101290a
mov dword [0x1017118], 0x10016e8
mov dword [0x101711c], 7
jmp 0x1006c32
mov esi, 0x10161ac
cmp dword [0x1015700], 0
mov ebx, dword [ebp - 0x314]
je 0x1006c5a
push ebx
call fcn.010050f4
test eax, eax
jne 0x1006c5a
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x421
jmp 0x1006c96
push ebx
call fcn.0100663a
test eax, eax
jne 0x1006c73
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x41f
jmp 0x1006c96
cmp dword [0x1017124], 0x866
je 0x1006cef
push ebx
call fcn.0100418a
test eax, eax
jne 0x1006cce
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x420
call fcn.01002c92
lea eax, [ebp - 0x20c]
push eax
push 0x856
push ebx
call fcn.0100321c
and dword [ebp - 0x310], 0
call fcn.0100a61f
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x310]
pop edi
pop esi
pop ebx
call fcn.0100c759
leave
ret 4
push 0x1017700
push 0
push 0x10019d8
push 0x1001454
call fcn.01002d7f
test eax, eax
jne 0x1006cef
push esi
call dword [0x1001050]
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x422
call fcn.01002c92
lea eax, [ebp - 0x20c]
push eax
push 0x856
push ebx
call fcn.0100321c
jmp 0x1006cb9
Function at 0x100910a
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x1014b48]
mov dword [ebp - 0xc], eax
push 0
call dword [0x10010b0]
push dword [ebp + 8]
call dword [0x10010ac]
mov dword [ebp - 0x11c], eax
cmp dword [ebp + 0xc], 0
je 0x1009143
and dword [ebp - 8], 0
jmp 0x100934b
mov eax, dword [ebp - 0x11c]
push dword [eax + 0x18]
call dword [0x10010ac]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x128]
mov al, byte [eax]
mov byte [ebp - 0x131], al
mov eax, dword [ebp - 0x12c]
mov cl, byte [ebp - 0x131]
mov byte [eax], cl
mov eax, dword [ebp - 0x128]
inc eax
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x12c]
inc eax
mov dword [ebp - 0x12c], eax
cmp byte [ebp - 0x131], 0
jne 0x100917c
lea eax, [ebp - 0x118]
push eax
call dword [fcn.010011dc]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x120]
lea eax, [ebp + eax - 0x118]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movsx eax, byte [eax]
cmp eax, 0x5c
je 0x10091ff
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x118]
cmp eax, ecx
jb 0x10091ff
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 4], eax
jmp 0x10091de
mov eax, dword [ebp - 4]
mov byte [eax + 1], 0
lea eax, [ebp - 0x118]
push eax
push 0
push 0x1001a88
lea eax, [ebp - 0x118]
push eax
call dword [0x10010c0]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10092de
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [0x10010bc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100925e
mov byte [ebp - 0x118], 0x2e
mov byte [ebp - 0x117], 0x5c
mov byte [ebp - 0x116], 0
lea eax, [ebp - 0x118]
push eax
push 0
push 0x1001a88
lea eax, [ebp - 0x118]
push eax
call dword [0x10010c0]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100928d
call dword [0x1001060]
mov dword [ebp - 8], eax
jmp 0x10092dc
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call fcn.01008de6
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10092c6
push dword [ebp - 0x124]
call dword [0x1001050]
push dword [ebp - 0x124]
lea eax, [ebp - 0x118]
push eax
call dword [0x10010b8]
jmp 0x10092dc
push dword [ebp - 8]
call dword [0x10010b0]
lea eax, [ebp - 0x118]
push eax
call dword [0x1001050]
jmp 0x100932d
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call fcn.01008de6
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1009317
push dword [ebp - 0x124]
call dword [0x1001050]
push dword [ebp - 0x124]
lea eax, [ebp - 0x118]
push eax
call dword [0x10010b8]
jmp 0x100932d
push dword [ebp - 8]
call dword [0x10010b0]
lea eax, [ebp - 0x118]
push eax
call dword [0x1001050]
mov eax, dword [ebp - 0x11c]
push dword [eax + 0x18]
call dword [0x10010a8]
mov eax, dword [ebp - 0x11c]
push dword [eax + 0x18]
call dword [0x10010b4]
push dword [ebp - 0x11c]
call fcn.01006e7f
push dword [ebp + 8]
call dword [0x10010a8]
push dword [ebp + 8]
call dword [0x10010b4]
xor eax, eax
cmp dword [ebp - 8], 0
sete al
mov ecx, dword [ebp - 0xc]
call fcn.0100c759
leave
ret 8
Function at 0x1009582
Capabilities:
Check if file exists
Enumerate gui resources
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push 0
call dword [0x10010b0]
cmp dword [ebp + 8], 0
jne 0x10095a7
push 0x57
call dword [0x10010b0]
xor eax, eax
jmp 0x1009762
push 0x1c
push 0x42
call dword [0x10010ec]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10095c9
push 8
call dword [0x10010b0]
xor eax, eax
jmp 0x1009762
push dword [ebp - 0x14]
call dword [0x10010ac]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10095ea
push 8
call dword [0x10010b0]
xor eax, eax
jmp 0x1009762
mov eax, dword [ebp - 4]
and dword [eax + 0x14], 0
push dword [ebp + 8]
call dword [fcn.010011dc]
inc eax
push eax
push 0x42
call dword [0x10010ec]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 0
jne 0x1009634
push dword [ebp - 0x14]
call dword [0x10010a8]
push dword [ebp - 0x14]
call dword [0x10010b4]
push 8
call dword [0x10010b0]
xor eax, eax
jmp 0x1009762
mov eax, dword [ebp - 4]
push dword [eax + 0x18]
call dword [0x10010ac]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x100966a
push dword [ebp - 0x14]
call dword [0x10010a8]
push dword [ebp - 0x14]
call dword [0x10010b4]
push 8
call dword [0x10010b0]
xor eax, eax
jmp 0x1009762
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [0x10011e0]
mov eax, dword [ebp - 4]
push dword [eax + 0x18]
call dword [0x10010a8]
push dword [ebp - 0x10]
call dword [0x1001048]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x10096ad
push dword [ebp - 0x14]
call dword [0x10010a8]
push dword [ebp - 0x14]
call dword [0x10010b4]
xor eax, eax
jmp 0x1009762
mov eax, dword [ebp - 8]
and eax, 0x17
je 0x10096d6
push dword [ebp - 0x14]
call dword [0x10010a8]
push dword [ebp - 0x14]
call dword [0x10010b4]
push 0x13
call dword [0x10010b0]
xor eax, eax
jmp 0x1009762
cmp dword [ebp + 0xc], 0
jne 0x1009737
push 3
push 0
push dword [ebp + 8]
call dword [0x10010e8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x100971d
push dword [ebp - 0x14]
call dword [0x10010a8]
push dword [ebp - 0x14]
call dword [0x10010b4]
call dword [0x1001060]
test eax, eax
jne 0x1009719
push 0xc1
call dword [0x10010b0]
xor eax, eax
jmp 0x1009762
push dword [ebp - 4]
push 0x100955d
push dword [ebp - 0xc]
call dword [0x10010e4]
push dword [ebp - 0xc]
call dword [0x10010e0]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
je 0x1009756
push dword [ebp - 0x14]
call dword [0x10010a8]
push dword [ebp - 0x14]
call dword [0x10010b4]
xor eax, eax
jmp 0x1009762
push dword [ebp - 0x14]
call dword [0x10010a8]
mov eax, dword [ebp - 0x14]
leave
ret 8
Function at 0x100d61f
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1014b48]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1014b60]
je 0x100d649
inc eax
cmp eax, 0x12
jb 0x100d63a
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1014b60]
mov dword [ebp - 0x110], esi
jne 0x100d7f4
mov eax, dword [0x1017158]
cmp eax, 1
je 0x100d7c2
test eax, eax
jne 0x100d67f
cmp dword [0x1014b50], 1
je 0x100d7c2
cmp ecx, 0xfc
je 0x100d7f4
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
mov byte [ebp - 8], 0
call dword [fcn.01001044]
test eax, eax
jne 0x100d6ba
push 5
pop ecx
mov esi, 0x1001f4c
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebx, [ebp - 0x10c]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100d6c5
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x100d6fd
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100d6dd
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x1001f48
push ebx
call fcn.010107e0
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100d702
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x1014b64]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100d71c
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.0100e350
mov edx, esp
push 6
pop ecx
mov esi, 0x1001f2c
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100d748
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100d754
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100d76d
mov eax, dword [ebp - 0x110]
mov esi, 0x1001f28
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x1014b64]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100d78b
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100d797
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001f00
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.010106d6
add esp, 0xc
jmp 0x100d7f4
push 0xfffffffffffffff4
call dword [fcn.0100113c]
test eax, eax
je 0x100d7f4
mov esi, dword [esi + 0x1014b64]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x100d7d9
push 0
sub ecx, edx
lea edx, [ebp - 0x114]
push edx
push ecx
push esi
push eax
call dword [0x1001078]
lea esp, [ebp - 0x120]
mov ecx, dword [ebp - 4]
call fcn.0100c759
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100dd26
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10172b0]
push ebx
push esi
mov esi, dword [0x100114c]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x100dd72
call esi
mov edi, eax
cmp edi, ebx
je 0x100dd58
mov dword [0x10172b0], 1
jmp 0x100dd77
call dword [0x1001060]
cmp eax, 0x78
jne 0x100dd6d
push 2
pop eax
mov dword [0x10172b0], eax
jmp 0x100dd72
mov eax, dword [0x10172b0]
cmp eax, 1
jne 0x100ddef
cmp edi, ebx
jne 0x100dd83
call esi
mov edi, eax
cmp edi, ebx
je 0x100ddf8
cmp word [edi], bx
mov eax, edi
je 0x100dd98
inc eax
inc eax
cmp word [eax], bx
jne 0x100dd8a
inc eax
inc eax
cmp word [eax], bx
jne 0x100dd8a
mov esi, dword [0x10010fc]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x100dde6
push eax
call fcn.0100d27b
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x100dde6
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x100dde3
push dword [ebp - 4]
call fcn.0100d152
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [0x1001148]
jmp 0x100de47
cmp eax, 2
je 0x100ddfc
cmp eax, ebx
je 0x100ddfc
xor eax, eax
jmp 0x100de49
call dword [0x1001144]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x100ddf8
cmp byte [esi], bl
je 0x100de19
inc eax
cmp byte [eax], bl
jne 0x100de0f
inc eax
cmp byte [eax], bl
jne 0x100de0f
sub eax, esi
inc eax
mov edi, eax
push edi
call fcn.0100d27b
cmp eax, ebx
pop ecx
je 0x100de40
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [0x1001140]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100e096
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov edi, edi
push esi
push edi
call dword [0x1001060]
push dword [0x1014c9c]
mov edi, eax
call dword [0x1001164]
mov esi, eax
test esi, esi
jne 0x100e0f8
push 0x88
push 1
call fcn.010109e1
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x100e0f0
push esi
push dword [0x1014c9c]
call dword [0x1001160]
test eax, eax
je 0x100e0f0
push esi
call fcn.0100e079
add esp, 4
call dword [0x1001104]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x100e0f8
push 0x10
call fcn.0100c871
pop ecx
push edi
call dword [0x10010b0]
pop edi
mov eax, esi
pop esi
ret
Function at 0x10106d6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1017420], ebx
push esi
push edi
jne 0x1010758
push 0x1002628
call dword [0x100119c]
mov edi, eax
cmp edi, ebx
je 0x1010793
mov esi, dword [fcn.01001134]
push 0x100261c
push edi
call esi
test eax, eax
mov dword [0x1017420], eax
je 0x1010793
push 0x100260c
push edi
call esi
push 0x10025f8
push edi
mov dword [0x1017424], eax
call esi
cmp dword [0x1017160], 2
mov dword [0x1017428], eax
jne 0x1010758
push 0x10025dc
push edi
call esi
test eax, eax
mov dword [0x1017430], eax
je 0x1010758
push 0x10025c4
push edi
call esi
mov dword [0x101742c], eax
mov eax, dword [0x101742c]
test eax, eax
je 0x101079d
call eax
test eax, eax
je 0x1010784
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1017430]
test eax, eax
je 0x1010784
test byte [ebp - 8], 1
jne 0x101079d
cmp dword [0x101716c], 4
jb 0x1010797
or byte [ebp + 0x12], 0x20
jmp 0x10107bc
xor eax, eax
jmp 0x10107cc
or byte [ebp + 0x12], 4
jmp 0x10107bc
mov eax, dword [0x1017424]
test eax, eax
je 0x10107bc
call eax
mov ebx, eax
test ebx, ebx
je 0x10107bc
mov eax, dword [0x1017428]
test eax, eax
je 0x10107bc
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1017420]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1010f3f
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1014b48]
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x41c], ecx
jne 0x1010f76
xor eax, eax
jmp 0x1011129
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x1018ae0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1010fab
push 2
push ecx
push ecx
push dword [ebp + 8]
call fcn.01012198
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1011079
cmp dword [ebp + 0x10], ecx
mov dword [ebp - 0x414], edi
mov dword [ebp - 0x40c], ecx
jbe 0x10110f7
jmp 0x1010fd2
xor ecx, ecx
mov dword [ebp - 0x410], ecx
mov ecx, dword [ebp - 0x414]
sub ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x1011028
mov edx, dword [ebp - 0x414]
inc dword [ebp - 0x414]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1011013
inc dword [ebp - 0x41c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x410]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x410]
cmp dword [ebp - 0x410], 0x400
jl 0x1010fea
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x424]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [0x1001078]
test eax, eax
je 0x10110a6
mov eax, dword [ebp - 0x424]
add dword [ebp - 0x418], eax
cmp eax, edi
jl 0x10110b2
mov eax, dword [ebp - 0x414]
sub eax, dword [ebp - 0x420]
cmp eax, dword [ebp + 0x10]
jb 0x1010fd0
jmp 0x10110b2
push ecx
lea ecx, [ebp - 0x424]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [0x1001078]
test eax, eax
je 0x10110a6
mov eax, dword [ebp - 0x424]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x418], eax
jmp 0x10110b2
call dword [0x1001060]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x1011121
cmp dword [ebp - 0x40c], eax
je 0x10110f1
push 5
pop esi
cmp dword [ebp - 0x40c], esi
jne 0x10110e3
call fcn.0100ef2f
mov dword [eax], 9
call fcn.0100ef3d
mov dword [eax], esi
jmp 0x101111c
push dword [ebp - 0x40c]
call fcn.0100ef4b
pop ecx
jmp 0x101111c
mov edi, dword [ebp - 0x420]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1011109
cmp byte [edi], 0x1a
jne 0x1011109
xor eax, eax
jmp 0x1011127
call fcn.0100ef2f
mov dword [eax], 0x1c
call fcn.0100ef3d
and dword [eax], 0
or eax, 0xffffffff
jmp 0x1011127
sub eax, dword [ebp - 0x41c]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.0100c759
leave
ret
Function at 0x1011c58
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.0100e350
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x10011ac]
test eax, eax
je 0x1011cbe
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [0x1001070]
mov eax, dword [0x1017160]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x1011cc2
xor eax, eax
jmp 0x1011ccf
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [0x10011c0]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1012a89
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x1014b48]
and dword [ebp - 0xa8], 0
cmp dword [0x10156c8], 0xfffffffe
mov dword [ebp - 4], eax
mov dword [ebp - 0xb0], 0xc
jne 0x1012bac
and dword [0x10156c8], 0
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x94
call dword [0x1001040]
test eax, eax
je 0x1012bac
cmp dword [ebp - 0x94], 1
jne 0x1012bac
cmp dword [ebp - 0xa0], 4
jne 0x1012bac
cmp dword [ebp - 0x9c], 0xa
jae 0x1012bac
push 0x4a
call dword [fcn.0100122c]
test eax, eax
je 0x1012bac
lea eax, [ebp - 0xac]
push eax
push 0x20019
push 0
push 0x100288c
push 0x80000001
call dword [entry0]
test eax, eax
jne 0x1012bac
push edi
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb4]
push eax
push 0
push 0x1001443
push dword [ebp - 0xac]
call dword [0x1001004]
push dword [ebp - 0xac]
mov edi, eax
call dword [0x1001008]
test edi, edi
pop edi
jne 0x1012bac
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.01012965
test eax, eax
je 0x1012bac
and dword [ebp - 0xa8], 0x3ff
cmp dword [ebp - 0xa8], 1
je 0x1012ba2
cmp dword [ebp - 0xa8], 0xd
jne 0x1012bac
mov dword [0x10156c8], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x10156c8]
call fcn.0100c759
leave
ret
Function at 0x473ef7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x18], bl
je 0x473f4e
mov eax, dword [esi + 8]
mov edi, dword [esi + 4]
sub edi, eax
je 0x473f82
mov ebx, dword [ebp + 0xc]
cmp edi, ebx
jbe 0x473f32
add eax, dword [esi]
push ebx
push eax
push dword [ebp + 8]
call 0x4ba1e0
add esp, 0xc
add dword [esi + 8], ebx
mov eax, ebx
jmp 0x473fec
add eax, dword [esi]
push edi
push eax
push dword [ebp + 8]
call 0x4ba1e0
mov eax, dword [esi + 4]
add esp, 0xc
mov dword [esi + 8], eax
mov eax, edi
jmp 0x473fec
mov edi, dword [esi + 0x14]
sub edi, dword [esi + 0xc]
je 0x473f82
mov ecx, dword [0x47f3b4]
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], ebx
call fcn.004810e9
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x473f82
or dword [ebp - 4], 0xffffffff
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x18]
cmp dword [ebp - 4], ebx
jge 0x473f86
xor eax, eax
jmp 0x473fec
cmp edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x10]
push ebx
jbe 0x473fbe
add eax, dword [esi + 0xc]
push eax
push dword [ebp - 4]
call 0x4baff8
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push edi
push dword [ebp - 4]
call 0x4badba
add esp, 0x18
xor ecx, ecx
cmp eax, ebx
jbe 0x473fe9
xor byte [ecx + edi], 0xf3
inc ecx
cmp ecx, eax
jb 0x473fb3
jmp 0x473fe9
add eax, dword [esi + 0xc]
push eax
push dword [ebp - 4]
call 0x4baff8
push edi
mov edi, dword [ebp + 8]
push edi
push dword [ebp - 4]
call 0x4badba
add esp, 0x18
xor ecx, ecx
cmp eax, ebx
jbe 0x473fe9
xor byte [ecx + edi], 0xf3
inc ecx
cmp ecx, eax
jb 0x473fe0
add dword [esi + 0xc], eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x47d10a
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x400
push esi
call dword [0x4680ec]
test eax, eax
jne 0x47d156
cmp byte [esi], 0x4d
jne 0x47d156
cmp byte [esi + 1], 0x5a
jne 0x47d156
mov eax, dword [esi + 0x3c]
add eax, esi
cmp byte [eax], 0x50
jne 0x47d156
cmp byte [eax + 1], 0x45
jne 0x47d156
mov cx, word [eax + 0x18]
add eax, 0x18
cmp cx, 0x10b
je 0x47d14f
cmp cx, 0x20b
jne 0x47d156
mov eax, dword [eax + 0x68]
add eax, esi
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x496306
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
push edi
xor ecx, ecx
push 0x50
mov dword [eax + 0x154], ecx
mov dword [eax + 0x15c], ecx
mov dword [eax + 0x158], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
lea edi, [eax + 0x14]
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
pop edi
ret