joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415100
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40e015
lea edi, [esi - 0xd015]
push edi
or ebp, 0xffffffff
jmp 0x415122
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x415129
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x415118
mov eax, 1
add ebx, ebx
jne 0x41513b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x415130
jne 0x41514c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x415130
xor ecx, ecx
sub eax, 3
jb 0x415160
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4151d2
mov ebp, eax
add ebx, ebx
jne 0x41516b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x415178
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41519c
inc ecx
add ebx, ebx
jne 0x415188
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41517d
jne 0x415199
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41517d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4151bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4151ad
jmp 0x41511e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4151bc
add edi, ecx
jmp 0x41511e
pop esi
mov edi, esi
mov ecx, 0x266
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4151da
cmp byte [edi], 2
jne 0x4151da
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x4151df
lea edi, [esi + 0x13000]
mov eax, dword [edi]
or eax, eax
je 0x41524e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x15064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41520c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x15068]
or eax, eax
je 0x415248
mov dword [ebx], eax
add ebx, 4
jmp 0x415229
call dword [esi + 0x1506c]
popal
jmp 0x4033eb

Function at 0x430002
Capabilities:
Packed with generic packer

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
nop
nop
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x42ffcc
ror byte [eax + edx*4], 0x90
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x40eeb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0x10], 0x2bd73
mov dword [ebp - 0x4c], 0x63c72
mov dword [ebp - 0x28], 0xb071
mov dword [ebp - 0xc], 0xa7789
mov dword [ebp - 0x3c], 0xd95fa
mov dword [ebp - 0x40], 0xc6942
mov dword [ebp - 0x44], 0x1611c
mov dword [ebp - 0x50], 0x87676
mov dword [ebp - 0x18], 0x54b18
mov dword [ebp - 8], 0x6b795
mov dword [ebp - 4], 0x57277
mov dword [ebp - 0x34], 0x83e44
mov dword [ebp - 0x38], 0x6b3cd
mov dword [ebp - 0x48], 0xb575e
mov dword [ebp - 0x2c], 0x8aed6
mov dword [ebp - 0x24], 0xd3bd7
mov dword [ebp - 0x30], 0x74fb2
mov dword [ebp - 0x14], 0xe86e1
mov dword [ebp - 0x54], 0x2c37f
mov dword [ebp - 0x20], 0x100bd
mov dword [ebp - 0x58], 0xf535
mov dword [ebp - 0x1c], 0xad1df
mov eax, dword [ebp + 8]
or eax, 0xf05b7
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x30]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x20]
and edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x28]
or ecx, 0x7474a
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x30], 0xca393
jge 0x40f022
mov edx, dword [ebp - 4]
add edx, 0x6c991
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
and eax, 0xa7436
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0xc]
and edx, 0x3820f
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 8]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x10], 0x9fd32
jne 0x40f022
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x38]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, 0x5a3d1
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x2c]
xor edx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp + 0x14]
or eax, dword [ebp - 0x28]
mov dword [ebp + 0x14], eax
mov ecx, dword [ebp - 0x20]
and ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
and edx, dword [ebp - 0x38]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
and eax, 0x8dfbe
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
xor ecx, dword [ebp - 0x3c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x40]
add edx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x18]
sub eax, 0x7f256
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x44]
add ecx, 1
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x10]
or eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x48]
and ecx, 0x9c1a8
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x14]
or edx, 0x93a52
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
xor eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
xor ecx, dword [ebp + 0x18]
mov dword [ebp + 8], ecx
cmp dword [ebp - 0x24], 0xd3bd8
jl 0x40f022
mov esp, ebp
pop ebp
ret
Function at 0x422440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0x14], 0xcae29
mov dword [ebp - 0x2c], 0x4b7ea
mov dword [ebp - 0x34], 0x350f6
mov dword [ebp - 0x18], 0xed15
mov dword [ebp - 0x38], 0xa8ad
mov dword [ebp - 0x20], 0xa8c86
mov dword [ebp - 0x3c], 0x57a58
mov dword [ebp - 0x40], 0x9063c
mov dword [ebp - 0x44], 0xe5eb4
mov dword [ebp - 0x28], 0x698b5
mov dword [ebp - 0x48], 0xb645c
mov dword [ebp - 0x4c], 0x175f4
mov dword [ebp - 0x30], 0x7b246
mov dword [ebp - 0x1c], 0xe5373
mov dword [ebp - 0x10], 0x279d
mov dword [ebp - 0x24], 0x3fefa
mov dword [ebp - 8], 0xf2d0d
mov dword [ebp - 0x50], 0x92dcf
mov dword [ebp - 4], 0x8b772
mov dword [ebp - 0xc], 0x4a2dd
mov dword [ebp - 0x54], 0x21f36
mov dword [ebp - 0x58], 0x6b344
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x1c]
sub ecx, 0x448b
mov dword [ebp + 0x1c], ecx
mov edx, dword [ebp - 4]
xor edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x28]
and eax, dword [ebp + 0x10]
mov dword [ebp + 0x28], eax
mov ecx, dword [ebp - 0x18]
sub ecx, 0x1e975
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 0x14], 0xbf4ce
jle 0x422551
mov edx, dword [ebp - 4]
or edx, 0xe9fd
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x1c]
xor eax, 0x80728
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x18]
sub ecx, dword [ebp + 0xc]
mov dword [ebp + 0x18], ecx
mov edx, dword [ebp - 8]
add edx, 0x95dd0
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x3dcdf
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x10]
xor edx, 0x118c4
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x28]
add eax, 0xc4cf4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x1c]
and ecx, dword [ebp - 0x14]
mov dword [ebp + 0x1c], ecx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x14]
add eax, 1
mov dword [ebp + 0x14], eax
mov ecx, dword [ebp - 0xc]
or ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
xor edx, 0xf1764
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 8]
sub ecx, 0x59567
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x30]
sub edx, 1
mov dword [ebp - 0x30], edx
cmp dword [ebp + 0x14], 0x8441c
jl 0x422551
mov esp, ebp
pop ebp
ret
Function at 0x42cff0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0x30], 0xb3424
mov dword [ebp - 0x3c], 0xae201
mov dword [ebp - 0x10], 0x18686
mov dword [ebp - 0x28], 0xa618e
mov dword [ebp - 0x2c], 0x9fc05
mov dword [ebp - 0x20], 0x47122
mov dword [ebp - 0x24], 0xdeec1
mov dword [ebp - 0x4c], 0xb66a
mov dword [ebp - 0x50], 0xd78dd
mov dword [ebp - 8], 0x4f0f
mov dword [ebp - 0x38], 0xaee33
mov dword [ebp - 0x48], 0xa6b22
mov dword [ebp - 0x14], 0xe318
mov dword [ebp - 0x34], 0x25c29
mov dword [ebp - 0x18], 0xd6ce
mov dword [ebp - 0x54], 0x2293a
mov dword [ebp - 0x44], 0x164cb
mov dword [ebp - 4], 0x4eb82
mov dword [ebp - 0xc], 0x6a987
mov dword [ebp - 0x1c], 0x70cc0
mov dword [ebp - 0x58], 0x45815
mov dword [ebp - 0x40], 0x20290
mov eax, dword [ebp - 4]
and eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
or ecx, 0xee739
mov dword [ebp + 8], ecx
cmp dword [ebp - 0x24], 0x5b319
jne 0x42d134
mov edx, dword [ebp - 0xc]
xor edx, dword [ebp - 0x18]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x34]
or eax, 0x5f1e0
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x24]
xor ecx, 0xc5be8
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x40], 0x4f171
jle 0x42d134
mov edx, dword [ebp - 4]
sub edx, 0xac4d0
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
or eax, 0x5cc31
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0x20]
sub ecx, 0x2210d
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x10]
add edx, 0x656ad
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x1c]
or eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x38]
add ecx, 0x5e357
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 4]
add edx, 0x79387
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x48]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
or ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
and edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x3c]
or eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x2c]
xor ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x14]
xor edx, 0xa3bde
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x40]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x18]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x28]
sub eax, 0xa0fa6
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x18]
xor ecx, 0xcfea1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0xc]
xor edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x1c]
sub eax, 0x8bce
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x44]
or ecx, 0xb4751
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 4]
and edx, dword [ebp - 0x2c]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x10]
sub eax, 0x1df0f
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x20]
sub ecx, 1
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x30], 0xb3425
jl 0x42d134
mov esp, ebp
pop ebp
ret
Function at 0x5626e9
Capabilities:
Parse pe header

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

Function at 0x56ee24
Capabilities:
Parse pe header

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

Function at 0x58eaa9
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0058e97d
Function at 0x58f5a4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5fbf80]
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 0x58f5ef
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0058fa44
test al, al
jne 0x58f5e9
sub edx, 2
cmp edx, edi
jne 0x58f5cf
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x58f611
lea eax, [edi + 2]
cmp edx, eax
je 0x58f611
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0058f26b
add esp, 0x10
jmp 0x58f70b
push esi
lea ecx, [ebp - 0x255]
call fcn.0058fa44
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 0x58f654
push dword [ebp - 0x25c]
jmp 0x58f601
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 0x58f691
cmp word [ebp - 0x226], 0
je 0x58f6b2
cmp word [ebp - 0x226], ax
jne 0x58f691
cmp word [ebp - 0x224], 0
je 0x58f6b2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0058f26b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x58f6fe
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x58f66b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x58f6e6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x58f70b
push 0x58ecbb
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0059a820
add esp, 0x10
jmp 0x58f6db
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.00562db2
leave
ret
Function at 0x590f8b
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 0x591028
push ebx
push esi
call fcn.00590f47
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.00590e84
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x590fd5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x591027
push edi
push eax
call fcn.0059378e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x590ff5
call fcn.0058ec69
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x591026
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00590e84
add esp, 0x20
test eax, eax
jne 0x591014
push edi
call fcn.0058ec69
jmp 0x59101c
push ebx
call fcn.0058ec69
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 0x59102b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x59103c
pop esi
ret
push ebx
push edi
push esi
call fcn.00590f47
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0059378e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x591064
push ebx
push esi
push edi
call fcn.0056b890
add esp, 0xc
push 0
call fcn.0058ec69
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x591953
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005912d9

Function at 0x595aa6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0058dfc3
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 0x595b15
cmp esi, dword [ebp - 4]
je 0x595b10
cmp dword [ebp + 0xc], 0
je 0x595b10
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x595aed
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.005955f8
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x595b17
xor eax, eax
inc eax
jmp 0x595b17
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x595b7c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5fbf80]
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.0058dfc3
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.0058dfc3
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 0x595bf3
cmp word [ecx], dx
je 0x595bf3
mov eax, dword [0x5eb454]
push edi
dec eax
push eax
push 0x5eb340
call fcn.00595b1b
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x595c66
cmp word [eax], dx
je 0x595c66
mov eax, dword [edi]
test eax, eax
je 0x595c17
cmp word [eax], dx
je 0x595c17
lea eax, [ebp - 0x10]
push eax
call fcn.005954fe
jmp 0x595c20
lea eax, [ebp - 0x10]
push eax
call fcn.00595599
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x595c90
mov eax, dword [0x5eb33c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x5eb030
call fcn.00595b1b
add esp, 0xc
test al, al
je 0x595c90
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x595c5b
cmp word [eax], di
je 0x595c5b
lea eax, [ebp - 0x10]
push eax
call fcn.005954fe
pop ecx
jmp 0x595c92
lea eax, [ebp - 0x10]
push eax
call fcn.00595599
jmp 0x595c58
mov eax, dword [edi]
test eax, eax
je 0x595c7d
cmp word [eax], dx
je 0x595c7d
lea eax, [ebp - 0x10]
push eax
call fcn.00595495
pop ecx
jmp 0x595c90
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 0x595d5b
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.005959a0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x595d5b
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x595d5b
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x595d5b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x595ce8
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00596a69
test ebx, ebx
je 0x595d56
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00596a69
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x595d5b
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 0x595d5b
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0059bce3
add esp, 0x10
xor eax, eax
inc eax
jmp 0x595d5d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00562db2
leave
ret
Function at 0x5966db
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5ec67c
push 0x5ec674
push str.FlsAlloc
push 0x1f
call fcn.005963a9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x59670f
push dword [ebp + 8]
mov ecx, esi
call dword [0x5ac150]
call esi
jmp 0x596715
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x596759
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5ec68c
push 0x5ec684
push str.FlsGetValue
push 0x21
call fcn.005963a9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x596790
push dword [ebp + 8]
mov ecx, esi
call dword [0x5ac150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x596798
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5ec694
push 0x5ec68c
push str.FlsSetValue
push 0x22
call fcn.005963a9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5967d2
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5ac150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x5a2e4b
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 + 0x5fd8f8]
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 0x5a2e8b
cmp byte [ebx], 0xa
jne 0x5a2e8b
or byte [edi + eax + 0x28], 4
jmp 0x5a2e90
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 0x5a2f8f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x5a2f72
inc eax
cmp dl, 0xd
je 0x5a2ebc
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x5a2ee2
cmp eax, ecx
jae 0x5a2ef0
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 0x5a2ea4
jmp 0x5a2f8f
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 0x5a2f6d
cmp dword [ebp - 0x10], 0
je 0x5a2f6d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5fd8f8]
test byte [eax + edi + 0x28], 0x48
je 0x5a2f47
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5a2f32
mov byte [esi], dl
jmp 0x5a2f43
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5fd8f8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5a2f8f
cmp byte [ebp - 1], 0xa
jne 0x5a2f56
cmp esi, ebx
jne 0x5a2f56
mov byte [esi], 0xa
jmp 0x5a2f8e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005a2c9d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5a2f8f
mov byte [esi], 0xd
jmp 0x5a2f8e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5fd8f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5a2f8c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5a2f8f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret