joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418e44
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x4358d8]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x418e88
push 0xa
pop esi
cmp word [ebx], si
jne 0x418e88
or byte [eax + edi + 0x28], 4
jmp 0x418e8d
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x418ff8
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x418fd0
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x418eda
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x418f04
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x418f23
push 0xa
pop ebx
cmp word [edx], bx
jne 0x418ef1
push ebx
add eax, 4
pop edx
jmp 0x418ef9
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x418e9f
jmp 0x418ff8
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418fcb
cmp dword [ebp - 0x14], 0
je 0x418fcb
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x4358d8]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x418fa7
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x418f6f
mov word [esi], ax
jmp 0x418ff5
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x4358d8]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4358d8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4358d8]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x418ff5
cmp word [ebp - 4], ax
jne 0x418fb1
cmp esi, ebx
je 0x418f67
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00419883
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x418ff8
push 0xd
pop eax
jmp 0x418f67
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x4358d8]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x418ff2
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x418ff8
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41cd39
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41cdd6
push ebx
push esi
call fcn.0041cd02
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041b99e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41cd83
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41cdd5
push edi
push eax
call fcn.00414030
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41cda3
call fcn.00413fe0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41cdd4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041b99e
add esp, 0x20
test eax, eax
jne 0x41cdc2
push edi
call fcn.00413fe0
jmp 0x41cdca
push ebx
call fcn.00413fe0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41f043
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00415870
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41f0b2
cmp esi, dword [ebp - 4]
je 0x41f0ad
cmp dword [ebp + 0xc], 0
je 0x41f0ad
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41f08a
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041eb98
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41f0b4
xor eax, eax
inc eax
jmp 0x41f0b4
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41f11f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x434014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00415870
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00415870
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x41f196
cmp word [ecx], dx
je 0x41f196
mov eax, dword [0x429734]
push edi
dec eax
push eax
push 0x429620
call fcn.0041f0b8
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41f209
cmp word [eax], dx
je 0x41f209
mov eax, dword [edi]
test eax, eax
je 0x41f1ba
cmp word [eax], dx
je 0x41f1ba
lea eax, [ebp - 0x10]
push eax
call fcn.0041ea9e
jmp 0x41f1c3
lea eax, [ebp - 0x10]
push eax
call fcn.0041eb39
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x41f233
mov eax, dword [0x42961c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x429310
call fcn.0041f0b8
add esp, 0xc
test al, al
je 0x41f233
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41f1fe
cmp word [eax], di
je 0x41f1fe
lea eax, [ebp - 0x10]
push eax
call fcn.0041ea9e
pop ecx
jmp 0x41f235
lea eax, [ebp - 0x10]
push eax
call fcn.0041eb39
jmp 0x41f1fb
mov eax, dword [edi]
test eax, eax
je 0x41f220
cmp word [eax], dx
je 0x41f220
lea eax, [ebp - 0x10]
push eax
call fcn.0041ea53
pop ecx
jmp 0x41f233
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x41f2fe
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041ef3d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41f2fe
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41f2fe
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41f2fe
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41f28b
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00416b6d
test ebx, ebx
je 0x41f2f9
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00416b6d
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41f2fe
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41f2fe
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004225b4
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41f300
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004072a3
leave
ret
Function at 0x423370
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42339d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42339d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x441bd8
Capabilities:
Get number of processors

Disassembly:
mov eax, edi
call fcn.00409a58
add ebx, 0xffffffe9

Function at 0x441bf4
Capabilities:
Get number of processors

Disassembly:
add dword [eax], 0
add byte [ebx - 0x201703bb], cl
mov ebx, 0xc78bffff
test al, al
jne 0x441c03
lea ecx, [edi + 0x31b4]
mov eax, dword [ecx]
call dword [eax + 0x30]
test dh, bh
call [ecx - 0x7d]
clc
je 0x441be2
cmp eax, 0x64
je 0x441be2
push esi
call fcn.0042573b
pop ecx
pop edi

Function at 0x44859d
Capabilities:
Encode data using xor

Disassembly:
call 0x447259
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4485ce
cmp byte [ebx - 0x97aef3c], al
jne 0x448591
call fcn.00454b7c
test eax, eax
je 0x4485bc
add eax, dword [eax]
add byte [ebp - 0x3117dfbd], cl
lodsb al, byte [esi]
add al, byte [eax]
push ecx
mov dword [ebp - 0x10], esp
mov ecx, eax

Function at 0x46b02f
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
call 0x84333b89
in al, dx
add al, 0x53
push ecx
mov eax, dword [ebp + 0xc]
add eax, 0xc
mov dword [ebp + 0x55], eax
mov ebp, esp
sub esp, 0x47c
mov eax, dword [0x4ce250]
xor eax, ebp
loopne 0x46b03b
mov al, byte [0x8dfff7a1]
inc ebp
fsubr st(1)
cmc
or esi, esi
dec dword [ebx + 0x4c254]
push 4
mov eax, 0x4a251b
call fcn.004e1195
Function at 0x479151
Capabilities:
Encrypt data using rc4 prga

Disassembly:
in al, dx
mov dword [ebp - 0x10], ecx
or byte [edx], al
jb 0x460d09
xor eax, eax
inc eax
mov eax, dword [0x4cfc0c]
push ebx
push 0x56
lea esi, [ecx - 8]
lea ecx, [esi + 8]
mov eax, dword [ecx - 8]
mov eax, dword [eax + 4]
mov dword [eax + ecx - 0xc], 0x850cc483
sal byte [ebp + 0xd], 0x8b
inc ebp
in al, dx
mov dword [ebp - 4], eax
jmp 0x460d35
pop edi
push 0x40
mov eax, 0x1000
push eax
push eax
push 0x44
and al, 0x30
mov dword [esp + 0x2c], eax
add byte [ecx + 0x1bc86], cl
add byte [ecx + 0x1b486], cl
add ch, bl
sahf
fadd dword [ecx + 8]
cmp byte [eax + 0x14], 1
jne 0x4790ea
mov eax, dword [ecx]
cmp byte [eax + 0x14], 1
jne 0x4790ea
or al, 0x50
call fcn.0046bc38
and dword [ebp - 4], 0
lea ecx, [ebx + 0x2c]
call 0x43d2d390
adc al, 0x40
cmp eax, dword [ebx + 0xc]
jae 0x4790f7
mov eax, dword [0x4d2f90]
cmp dword [ebp + 5], esi
and dword [ebp - 4], eax
jmp 0x479121
lea esi, [ebp - 8]
call fcn.00488c26
mov esi, dword [esi - 0x7400081a]
inc ebp
or byte [0x32c4], al
push eax
call 0x23ba026
add dword [ebp - 8], eax
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
inc edi
sar eax, 2
cmp edi, eax
push 8
call fcn.0047aa26
or al, ch
call [eax]
add byte [eax], al
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x479140
invalid
call 0x36469180
push 0xe8004cfd
movsb byte es:[edi], byte [esi]
cli
invalid
nop
mov esi, dword [ebp + 0xc]
cmp byte [esi], 0
je 0x479176
mov edi, dword [ebp + 8]
dec edi
push dword [ebp + 0x14]
jmp 0xeb196d26
rcr ebx, 1
shr edx, 1
inc esi
xor al, 0xa1
mov eax, 0x83004d37
cmp al, 0x74
sbb al, 0xf
mov bh, 8
cmp cx, 0x61
jb 0x479197
cmp cx, 0x7a
ja 0x479197
mov edx, eax
and eax, 0x1f
sar edx, 5
mov edx, dword [edx*4 + 0x4d3c20]
or al, 0x3b
cli
add eax, 0x2095148b
cmp al, 0x4d
add byte [ebx + edi], cl
sar dword [edx - 0x75], cl
pop ebp
cld
mov eax, dword [eax]
mov edi, dword [esi + 0x64]
cmp eax, 0xd1d0008e
dec ebx
add byte [esi + 0x6a], dl
adc al, 0xe9
stosb byte es:[edi], al
add dword [eax], eax
add bh, bh
je 0x4791e3
xor al, 0x84
lahf
cmp bl, 0x4a
add byte [ebp - 0x18], dh
cmp edx, 0x40
jl 0x4791e2
mov ecx, edx
rol dword [eax], 0x50
call fcn.0046d3c6
lea eax, [edi + 0x4634]
push eax
lea eax, [edi + 0xff203fe]
mov dh, 0x51
or eax, dword [ebx]
inc byte [ebx]
movzx edx, byte [ecx + 0xc]
movzx edx, byte [ecx + 0xb]
movzx edx, byte [ecx + 0xb]
add edi, esi
add esi, edx
movzx edx, byte [ecx + 0xc]
add ebx, dword [edi + 0x1c]
lea eax, [esi + 0x178]
mov byte [ebp - 4], 0xa
mov dword [eax + 4], ebx
mov dword [0x568bff33], edx
adc byte [edx - 0x77edc5ac], cl
adc al, 1
inc ecx
add edi, 0xffffffc4
push 0x4be640
call fcn.004642c5
add esp, 0x24
push dword [ebp - 0x77]
inc ebp
les ecx, [ebp + 0x5350c045]
push dword [ebp + 8]
mov dword [ebx + 0x1c], edi
mov dword [ebx - 0x1d], edi
inc ebp
add byte [esp + 0x91e0045], ch
inc esi
add byte [edi - 0xeffba0b], ch
sub byte [esp + ecx*2], bl
jmp 0x460cfc

Function at 0x499c40
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x8b
add edx, 0x18
cmp esi, dword [eax + 4]
jl 0x499c17
mov byte [eax + 0x1f], cl
cmp ecx, ebx
jne 0x499c2e
call dword [fcn.004a9158]
mov byte [ebp - 0x10], 0
or dword [ebp - 4], 0xffffffff
invalid
Function at 0x49a1e2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
inc byte [ebx]
movzx edx, byte [ecx + 5]
add edi, esi
add esi, edx
movzx edx, byte [ecx + 8]
lea eax, [edx + 0xc]
mov ecx, dword [edx - 0x20]
xor ecx, eax
call fcn.00476691
mov ecx, dword [edx + 0x46]
inc esi
adc eax, dword [ecx]
jmp 0x49a20f
mov ecx, dword [esi + 0xc]
and byte [ebx + 0x8ebffc8], al
mov eax, dword [ebp + 8]
and eax, 0xff
or dword [esp + 0x40], edx
add eax, 0xffffffff
adc edx, 0xffffffff
pop ecx
mov dword [esp + 0x40], eax
call [ecx - 0x77]
inc esp
and al, 0x40
mov esp, eax
or al, 0x83
jge 0x49a229
add byte [ecx - 0x71f003bb], cl
mov al, byte [eax]
add byte [eax], al
mov ebp, eax
sar ebx, 0xff
call [ecx - 0x77]
inc ebp
cld
call fcn.0049967e
xor ebx, ebx
push eax
mov eax, dword [ebp - 4]
push edi
push dword [ebx - 0x5c]
jmp 0x49a1f7

Function at 0x4b058b
Capabilities:
Encode data using xor

Disassembly:
push ebx
push eax
call 0x8c09e2a
push eax
call fcn.004e5e50
add esp, 0xc
add dword [edi + 0xc], ebx
pop esi
pop ebx
dec esp
add byte [ebp - 0x3fccfee4], cl
inc eax
jmp fcn.004b0648
Function at 0x4ccc72
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [esi], eax
xor eax, eax
inc eax
mov word [esi + 0x20], ax
lea eax, [esi + 0x10]
push eax
mov ecx, dword [ebx + ecx*4]
inc esi
or al, 0x83
add al, 0
and dword [ebp - 4], 0
push ebx
push 2
sub eax, 0xffffff9a
adc al, 0
add byte [ebx - 0x17ba72d0], cl
add esi, 0x38
call 0x7f3ce12f
push esi
movzx esi, word [eax + 0xabc]
mov edi, esi
shl edi, cl
mov ecx, dword [eax - 0x18]
stosd dword es:[edi], eax
jbe 0x4cccbb
invalid
add ch, bl
inc edi
sub byte [ebx - 0x7cd3dbbc], cl
sub al, 0x83
les ecx, [edi + edi*8]
mov eax, ebx
test word [edi + 0x1c], ax
jne 0x4ccd0a
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4ccce4
adc byte [ecx], bh
jo 0x4cccdc
je 0x4cccab
mov ebx, 0x8000
test dword [eax + 8], ebx
jne 0x4ccd10
pop eax
or byte [ebp + 0x30], dh
call fcn.00524100
mov ecx, eax
cdq
and edx, 3
add eax, edx
sar eax, 2
push 0x30
mov eax, ebx
mov dword [esp + 0x78], edx
mov dword [edi + 0x48], ecx
call fcn.004b1029
inc esi
or al, 0x80
jle 0x4ccd0f
add byte [ebx - 0x1d7c6638], cl
add eax, dword [ebx]
ret 0xf8c1
add byte [ebp + 0xb], dh
cmp byte [esi + 9], 0
or dword [eax], eax
je 0x4ccd13
call 0x4ccd25
adc al, byte [eax]
add byte [eax], al
add byte [eax], al
add byte [ebx + 0xf01107d], al
test dl, cl
add byte [eax], al
add byte [ebx - 0x4cf45], al
invalid
cmp dword [ebp + 0x10], 1
je 0x4ccde7
cmp dword [ebx - 0x4d0], 0xffffffe9
xchg dword [ecx], ecx
add byte [eax], al
or dword [ebp - 0x408], 4
jmp 0x845c8db9
add byte [eax - 0x7d], dl
in al, dx
dec eax
push ebx
push esi
push edi
mov eax, dword [0xdf]
mov ebx, dword [esi + 0x3c]
cmp dword [ebx], edi
je 0x4cced3
mov ecx, dword [ebx - 0x7b272c9]
push ecx
push 0
push eax
push esi
call dword [esi + 0x20]
mov ebx, eax
add dword [eax], 0x50
push eax
fadd dword [ebx + 0x49e85000]
pop esi
add al, byte [eax]
call fcn.004f2c60
add esp, 0xc
mov eax, dword [edi + 0x14]
pop edi
pop esi
pop ebx
jne 0x4cce0e
mov dword [ebp - 0x18], esi
lea esi, [ebp - 0x18]
call fcn.0049a8db
mov eax, dword [ebx + 0xc]
add dword [edx + 0x3a], ebp
call fcn.004afa29
add esp, 0x10
mov esi, dword [esi + 0x24]
cmp esi, ebx
xchg byte [esi], dl
add byte [eax], al
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [esi + 0x224]
invalid
sldt word [eax]
lea edx, [ebx + 4]
push eax
call fcn.004b8afc
jmp 0x804ccee3
Function at 0x4eba50
Capabilities:
Encode data using xor

Disassembly:
movzx eax, word [esi + 0xc]
mov ecx, dword [esi + 0x40]
mov edx, dword [ebp + 0xc]
add eax, ecx
lea eax, [eax + edx*2]
imul esi, dword [ebx], 0x8b068900
inc esi
add al, 0x3b
add eax, 0x4ce9e8
add byte [ecx + 0x4468b06], cl
cmp eax, dword [0x4ce9e8]
je 0x4eba41
mov dword [ebp - 0xc], ebx
call fcn.004e980d
add esp, 0xc
cmp eax, ebx
jne 0xe93f4673
call 0x4c4fbf
add eax, dword [esp + 0x18]
inc edi
xchg ebp, eax
std
inc dword [ebx]
inc esp
and al, 0x18
lea ebx, [esp + 0x2c]
inc dword [ebp - 0x74b48a40]
inc ebp
clc
movzx eax, byte [eax + 8]
xor eax, dword [ebp - 0x18]
cmp edi, edi
jne 0x4eba73
push dword [ebp + 0x18]
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
push esi
push 2
dec dword [eax]
cmp dword [esi + 0x84], ebx
je 0x4ebb0c
cmp dword [esi + 0x8c], ebx
jne 0x4eba53
invalid
push esi
call 0x3b538f66
cmp ecx, dword [edx + 8]
jne 0x4ebb1b
mov dword [edx + 8], eax
jmp 0x4ebb1d
mov dword [eax + 8], ecx
mov dword [ebp + 8], eax

Function at 0x531ae0
Capabilities:
Get token membership

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
add esp, 0xc
ret 0xc

Function at 0x531c20
Capabilities:
Create process on windows

Disassembly:
push dword [esp + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
add esp, 4
ret 4

Function at 0x531d60
Capabilities:
Read file on windows

Disassembly:
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.00536a52
add esp, 0x10
ret

Function at 0x531dc0
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 4
ret 4

Function at 0x5324ee
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x53252d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x53252d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x53252d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x53252d
cmp dword [ecx + 0x74], 0xe
jbe 0x53252d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x537012
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0053ecf0
mov eax, dword [0x551e00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0053b019
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x537054
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5371b0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0053ec40
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x552f18]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0053ea71
mov ecx, dword [esi*4 + 0x552f18]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x5371a9
cmp eax, dword [ecx + edi + 0x24]
jne 0x5371a9
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5371a9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0053ea71
add esp, 0x14
test edx, edx
jl 0x5371a9
jg 0x53711f
test eax, eax
jb 0x5371a9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x5371a9
jl 0x537139
cmp dword [ebp - 0x1008], eax
ja 0x5371a9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x537157
test ebx, ebx
je 0x537190
cmp ecx, edi
jae 0x537190
mov al, byte [ecx]
cmp al, 0xd
jne 0x537171
lea eax, [edi - 1]
cmp ecx, eax
jae 0x53717d
cmp byte [ecx + 1], 0xa
jne 0x53717d
inc ecx
jmp 0x53717d
movzx eax, al
movsx eax, byte [eax + 0x5525b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x537157
cmp edx, ebx
jne 0x537157
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5371ae
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00531dff
leave
ret

Function at 0x5378f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x53791d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x53791d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x537c9d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x548728
push 0x548720
push str.FlsAlloc
push 0x1f
call fcn.00537f80
mov esi, eax
add esp, 0x10
test esi, esi
je 0x537cd1
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x537cd7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x537d1b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x548738
push 0x548730
push str.FlsGetValue
push 0x21
call fcn.00537f80
mov esi, eax
add esp, 0x10
test esi, esi
je 0x537d52
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x537d5a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x548740
push 0x548738
push str.FlsSetValue
push 0x22
call fcn.00537f80
mov esi, eax
add esp, 0x10
test esi, esi
je 0x537d94
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x53ced8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x53cf75
push ebx
push esi
call fcn.0053cf78
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0053cddc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x53cf22
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x53cf74
push edi
push eax
call fcn.00539e47
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x53cf42
call fcn.005391a1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x53cf73
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0053cddc
add esp, 0x20
test eax, eax
jne 0x53cf61
push edi
call fcn.005391a1
jmp 0x53cf69
push ebx
call fcn.005391a1
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x53dfd2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x24
push ebx
push edi
cmp edx, 0xfffffffe
jne 0x53dffc
call fcn.00539c62
and dword [eax], 0
call fcn.00539c4f
mov dword [eax], 9
jmp 0x53e356
test edx, edx
js 0x53e33e
cmp edx, dword [0x553118]
jae 0x53e33e