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

Disassembly:
pushal
cmpsd dword [esi], dword es:[edi]
and byte [edi - 0x583f5860], 0xe0
cmpsd dword [esi], dword es:[edi]
add byte [eax - 0x57bf57e0], ch
pushal
test al, 0x80
test al, 0xa0
test al, 0xc0
test al, 0xe0
test al, 0
test eax, 0xa940a920
pushal
test eax, 0xa9a0a980
shr byte [ecx - 0x55ff5620], 0x20
shr byte [eax - 0x56ff5720], 0x20
test eax, 0xa960a940
sub byte [ecx - 0x563f5660], 0xe0
test eax, 0xaa20aa00
stosb byte es:[edi], al
inc eax
stosb byte es:[edi], al
pushal
stosb byte es:[edi], al
sub byte [edx - 0x553f5560], 0xe0
stosb byte es:[edi], al
add byte [ebx - 0x54bf54e0], ch
pushal
stosd dword es:[edi], eax
sub byte [ebx - 0x543f5460], 0xe0
stosd dword es:[edi], eax
add byte [eax + 0x58ac38ac], ch
lodsb al, byte [esi]
js 0x410f44
test al, 0xac
fsubr dword [eax + eax + 0x40ad20ad]
inc eax
inc eax
lodsd eax, dword [esi]
push 0xc0ada0ad
lodsd eax, dword [esi]
dec eax
scasb al, byte es:[edi]
jo 0x410f5a
fsubr dword [esi - 0x4fff50e0]
cmp al, 0
add byte [eax], 0
add byte [eax - 0x5f], dh
nop
mov eax, dword [0xa200a1c0]
xor byte [edx - 0x5d075d60], ah
sub byte [ebx - 0x5c3f5c60], ah
loopne 0x410f71
adc byte [eax + esi - 0x7f5ba75c], ah
movsb byte es:[edi], byte [esi]
test al, 0xa4
shl byte [eax + eax - 0x575ad75b], 1
movsd dword es:[edi], dword [esi]
shl byte [ebp - 0x59e75a08], 1
cmp byte [esi - 0x598759a8], ah
cwde
cmpsb byte [esi], byte es:[edi]
shl byte [esi - 0x58bf5900], 0xe0
cmpsd dword [esi], dword es:[edi]
dec eax
test al, 0x80
test al, 0xf8
test al, 0x60
test eax, 0xa9d0a998
or byte [edx - 0x55a755d0], ch
fsubr dword [edx - 0x546754c0]
and byte [eax + eax*4 - 0x37535754], ch
lodsb al, byte [esi]
and byte [ebp - 0x527f52a0], ch
test al, 0xad
shr byte [ebp - 0x51cf5208], 1
pop eax
scasb al, byte es:[edi]
mov al, byte [0x60af00ae]
scasd eax, dword es:[edi]
test al, 0xaf
invalid

Function at 0x411688
Capabilities:
Encode data using xor

Disassembly:
pushal
mov al, byte [0xa0f0a0c0]
cmp byte [ecx - 0x5e2f5e90], ah
pushal
mov byte [0xa2c8a2a8], al
or byte [ebx - 0x5c2f5ca0], ah
cmp byte [eax + edi*4 - 0x1f5aaf5c], ah
movsd dword es:[edi], dword [esi]
pushal
cmpsb byte [esi], byte es:[edi]
call 0xc8e87f4f
cmpsd dword [esi], dword es:[edi]
push eax
test al, 0xd0
test al, 0x10
test eax, 0xa980a940
shr byte [ecx - 0x55f75618], 0x80
stosb byte es:[edi], al
add byte [ebx - 0x54175488], ch
pop eax
lodsb al, byte [esi]
shr byte [eax + ecx*2 - 0xf523f53], 1
lodsd eax, dword [esi]
xor byte [esi - 0x515f51a0], ch
loopne 0x411682
and byte [edi - 0x501f5080], ch
add byte [eax], al
add byte [eax + 0x68003d], dh
add byte [eax], al
cmp byte [eax - 0x5eef5f68], ah
pushal
mov eax, dword [0xa260a1e0]
shl byte [edx - 0x5c4f5cc0], 0xf0
mov dword [0xa480a450], eax
invalid
Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x31437cb5
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x21451a34
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x40288e
pop dword [ebp - 0x4c]
mov eax, 0x8151d5dd
sub eax, 0x8111ad4f
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x98173d53
add dword [ebp - 0x5c], 0xb63b07f8
mov dword [ebp - 0x58], 0x705277d6
add dword [ebp - 0x58], 0xc1e0d46f
mov dword [ebp - 0x54], 0x4a190003
sub dword [ebp - 0x54], 0xfdccbbd5
mov dword [ebp - 0x50], 0xacf7dfba
sub dword [ebp - 0x50], 0xacf7dfba
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x666b97ac
sub eax, 0x662b2748
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x144d0a43
add dword [ebp - 0x5c], 0x60255f13
mov dword [ebp - 0x58], 0x1aa314c8
sub dword [ebp - 0x58], 0xd936b353
mov dword [ebp - 0x54], 0xb0c9c836
sub dword [ebp - 0x54], 0x4d5a5bca
mov dword [ebp - 0x50], 0xb6dcf94f
sub dword [ebp - 0x50], 0xb6dcf94f
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0xcabe71da
add eax, 0x3581fece
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x37c72
push 0
call eax
mov ecx, 0x765be2c1
sub ecx, 0x765b9607
xor ebx, ebx
add ebx, eax
mov edx, 0x73fd2fce
sub edx, 0x73bc2fce
add edx, dword [ebp - 0x4c]
mov edi, 0x7ce8374a
add dword [ebp - 0x44], eax
mov esi, dword [edx]
add esi, edi
mov dword [ebx], esi
xor dword [ebp - 0x3c], 0xa1e2e7a6
add ebx, 0x601bba3d
sub ebx, 0x601bba39
add edx, 0x68264c81
add edx, 0x97d9b383
loop 0x4029ac
add eax, 0x2a52a09
add eax, 0xfd5bfbb2
mov ebx, eax
add eax, 0xb99ccc10
sub eax, 0xb99ccc0b
mov ecx, 0xaea6818e
sub ecx, 0xae66818e
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x4035d0
Capabilities:
Terminate process

Disassembly:
jmp 0x4577f4
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x457805
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004058d0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4036f2
Capabilities:
Query environment variable

Disassembly:
jmp 0x49fd11
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49fd22
pop esi
ret
push ebx
push edi
push esi
call fcn.0049fbf8
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fb2
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49fd4a
push ebx
push esi
push edi
call fcn.004056c3
add esp, 0xc
push 0
call fcn.00406208
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40577c
Capabilities:
Parse pe header

Disassembly:
jmp 0x4469f0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x446a2f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x446a2f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x446a2f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x446a2f
cmp dword [ecx + 0x74], 0xe
jbe 0x446a2f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4446d8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.00403751
mov eax, dword [eax + 0x14]
test eax, eax
je 0x44471b
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 2
push ecx
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x44471b
sub eax, 1
je 0x444716
sub eax, 1
je 0x444712
xor eax, eax
leave
ret
push 3
jmp 0x44471d
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x48af97
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x73bfb0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4924a2
cmp byte [ebx], 0xa
jne 0x4924a2
or byte [edi + eax + 0x28], 4
jmp 0x4924a7
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4925a6
mov dl, byte [eax]
cmp dl, 0x1a
je 0x492589
inc eax
cmp dl, 0xd
je 0x4924d3
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4924f9
cmp eax, ecx
jae 0x492507
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4924bb
jmp 0x4925a6
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x492584
cmp dword [ebp - 0x10], 0
je 0x492584
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x73bfb0]
test byte [eax + edi + 0x28], 0x48
je 0x49255e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x492549
mov byte [esi], dl
jmp 0x49255a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x73bfb0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4925a6
cmp byte [ebp - 1], 0xa
jne 0x49256d
cmp esi, ebx
jne 0x49256d
mov byte [esi], 0xa
jmp 0x4925a5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401929
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4925a6
mov byte [esi], 0xd
jmp 0x4925a5
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x73bfb0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4925a3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4925a6
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x492602
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x73bfb0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x492648
cmp word [ebx], dx
jne 0x492648
or byte [eax + edi + 0x28], 4
jmp 0x49264d
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4927b0
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x492790
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x49268e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4926c4
cmp eax, edx
jae 0x4926d2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x492669
jmp 0x4927b0
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49278b
cmp dword [ebp - 0x18], 0
je 0x49278b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x73bfb0]
test byte [eax + edi + 0x28], 0x48
je 0x492761
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x492725
mov word [esi], cx
jmp 0x49275c
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x73bfb0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x73bfb0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x73bfb0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4927b0
pop eax
cmp word [ebp - 4], ax
jne 0x492771
cmp esi, ebx
jne 0x492771
mov word [esi], ax
jmp 0x4927ad
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401929
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4927b0
push 0xd
pop eax
jmp 0x49276c
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x73bfb0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4927aa
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4927b0
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x497afd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d8e
mov eax, dword [0x4d2040]
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.00405e1b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x497b3f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x497c9b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405f65
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 + 0x73bfb0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0040326f
mov ecx, dword [esi*4 + 0x73bfb0]
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 0x497c94
cmp eax, dword [ecx + edi + 0x24]
jne 0x497c94
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 0x497c94
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040326f
add esp, 0x14
test edx, edx
jl 0x497c94
jg 0x497c0a
test eax, eax
jb 0x497c94
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x497c94
jl 0x497c24
cmp dword [ebp - 0x1008], eax
ja 0x497c94
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x497c42
test ebx, ebx
je 0x497c7b
cmp ecx, edi
jae 0x497c7b
mov al, byte [ecx]
cmp al, 0xd
jne 0x497c5c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x497c68
cmp byte [ecx + 1], 0xa
jne 0x497c68
inc ecx
jmp 0x497c68
movzx eax, al
movsx eax, byte [eax + 0x4d2358]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x497c42
cmp edx, ebx
jne 0x497c42
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x497c99
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403049
leave
ret
Function at 0x49e2c7
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d2040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49e312
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049e77f
test al, al
jne 0x49e30c
sub edx, 2
cmp edx, edi
jne 0x49e2f2
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49e334
lea eax, [edi + 2]
cmp edx, eax
je 0x49e334
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049dec0
add esp, 0x10
jmp 0x49e42e
push esi
lea ecx, [ebp - 0x255]
call fcn.0049e77f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49e377
push dword [ebp - 0x25c]
jmp 0x49e324
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49e3b4
cmp word [ebp - 0x226], 0
je 0x49e3d5
cmp word [ebp - 0x226], ax
jne 0x49e3b4
cmp word [ebp - 0x224], 0
je 0x49e3d5
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049dec0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49e421
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49e38e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49e409
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49e42e
push 0x49d8a8
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040551a
add esp, 0x10
jmp 0x49e3fe
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403049
leave
ret

Function at 0x4a3d90
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004042d7
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 0x4a3dff
cmp esi, dword [ebp - 4]
je 0x4a3dfa
cmp dword [ebp + 0xc], 0
je 0x4a3dfa
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4a3dd7
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004a37b8
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4a3e01
xor eax, eax
inc eax
jmp 0x4a3e01
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1000c660
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000c69f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000c69f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000c69f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000c69f
cmp dword [ecx + 0x74], 0xe
jbe 0x1000c69f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000f35d
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 0x1000f3fa
push ebx
push esi
call fcn.1000f326
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.1000f2ba
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000f3a7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000f3f9
push edi
push eax
call fcn.1000d39d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000f3c7
call fcn.1000de02
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000f3f8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000f2ba
add esp, 0x20
test eax, eax
jne 0x1000f3e6
push edi
call fcn.1000de02
jmp 0x1000f3ee
push ebx
call fcn.1000de02
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 0x1000f667
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100166c8
push 0x100166c0
push str.FlsAlloc
push 0x1f
call fcn.1000f583
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000f69b
push dword [ebp + 8]
mov ecx, esi
call dword [0x10015154]
call esi
jmp 0x1000f6a1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000f6e5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100166d8
push 0x100166d0
push str.FlsGetValue
push 0x21
call fcn.1000f583
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000f71c
push dword [ebp + 8]
mov ecx, esi
call dword [0x10015154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000f724
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100166e0
push 0x100166d8
push str.FlsSetValue
push 0x22
call fcn.1000f583
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000f75e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10015154]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10014d00
Capabilities:
Parse pe header

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