joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418f10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x420de0], ecx
add edx, 1
cmp edx, 0x100
jb 0x418f12
cmp edx, 0x800
jae 0x418ffb
mov edi, edi
mov eax, dword [edx*4 + 0x4209e0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x420de0]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x420ddc], eax
jb 0x418fd0
mov dword [0x420dbc], 0x4196b0
call fcn.00419140
test eax, eax
jne 0x419018
mov dword [0x420dbc], 0x4195d0
ret

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..reloc
mov ebx, 0x40de38
nop
nop
mov ecx, 0x1f3333ab
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x433024
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x5ca016b2
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x403860
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x481720]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
je 0x4038f6
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.0040c960
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x403890
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x1c]
mov ebx, eax
call fcn.00403200
cmp ebx, 0xffffffff
je 0x4038f6
shr ebx, 4
not bl
test bl, 1
je 0x4038f6
push 0
push 0
push esi
call fcn.00404310
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.0040c960
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x4038cf
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.00403200
test esi, esi
je 0x4038f6
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411023
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop esi
xor ecx, ebp
pop ebx
call fcn.00411023
mov esp, ebp
pop ebp
ret

Function at 0x403910
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x481720]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
cmp dword [eax + 0x10], 0
je 0x40396e
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040c960
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x40393f
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x1c]
mov ebx, eax
call fcn.00403200
cmp ebx, 0xffffffff
je 0x40396e
shr ebx, 4
not bl
and bl, 1
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411023
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop ebx
call fcn.00411023
mov esp, ebp
pop ebp
ret
Function at 0x404310
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42980d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x481720]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [edi + 0x10], 0
je 0x40449f
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.0040c960
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x404363
mov eax, dword [eax]
push eax
call esi
lea ecx, [ebp - 0x28]
mov ebx, eax
call fcn.00403200
cmp ebx, 0xffffffff
je 0x40449f
shr ebx, 4
test bl, 1
je 0x40449f
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.0040c960
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x40439a
mov eax, dword [eax]
push eax
call esi
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00403200
mov ecx, esi
lea eax, [ebp - 0x28]
and ecx, 0xfffffffe
or esi, 1
cmp byte [ebp + 0xc], 0
push edi
push eax
cmove esi, ecx
call fcn.0040c960
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x4043cb
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00403200
test esi, esi
je 0x404481
mov ebx, dword [ebp + 0x10]
test bl, bl
je 0x40450c
push 0x20
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
call fcn.00410d94
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x48], eax
push 6
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 0
push eax
push edi
call fcn.004041f0
mov edi, dword [ebp - 0x48]
add esp, 0x10
mov esi, dword [edi]
cmp esi, edi
je 0x40444d
nop dword [eax]
push ebx
push dword [ebp + 0xc]
lea eax, [esi + 8]
push eax
call fcn.00404310
add esp, 0xc
test al, al
je 0x404468
mov esi, dword [esi]
cmp esi, edi
jne 0x404430
mov edi, dword [ebp - 0x48]
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.00402870
push 0x20
push dword [ebp - 0x48]
call fcn.00410dc4
add esp, 0x10
mov al, 1
jmp 0x404483
push dword [ebp - 0x48]
lea eax, [ebp - 0x48]
push eax
call fcn.00402870
push 0x20
push dword [ebp - 0x48]
call fcn.00410dc4
add esp, 0x10
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411023
mov esp, ebp
pop ebp
ret
push edi
call fcn.00403910
add esp, 4
test al, al
je 0x404481
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.0040c960
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x4044c1
mov eax, dword [eax]
push eax
call esi
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00403200
mov ecx, esi
lea eax, [ebp - 0x40]
and ecx, 0xfffffffe
or esi, 1
cmp byte [ebp + 0xc], 0
push edi
push eax
cmove esi, ecx
call fcn.0040c960
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x4044f2
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.00403200
test esi, esi
je 0x404481
mov al, 1
jmp 0x404483
Function at 0x405910
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4299ad
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x481720]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.00410d94
mov edi, eax
add esp, 4
test edi, edi
je 0x4059ad
push 1
mov dword [ebp - 4], 0
call fcn.0040fae4
add esp, 4
mov dword [edi + 4], eax
jmp 0x4059af
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.004028b0
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov dword [ebp - 4], 0xffffffff
mov bl, al
test edi, edi
je 0x405a0a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x405a0a
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x405a26
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x405a49
cmp byte [ebp + 0xc], 0
je 0x405a35
push esi
call fcn.0040ff7c
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x405a55
mov esi, str.ios_base::badbit_set
jmp 0x405a65
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00405a90
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.00402f30
push 0x47e7c8
lea eax, [ebp - 0x28]
push eax
call fcn.00411f26
int3
Function at 0x405f40
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429a25
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x481720]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040c960
push 0
push 0
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00403c80
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
call fcn.0040c960
add esp, 0x20
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 4
cmp ecx, 4
jb 0x405fe3
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*4 + 4]
mov eax, edx
cmp ecx, 0x1000
jb 0x405fd9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406129
push ecx
push edx
call fcn.00410dc4
add esp, 8
cmp dword [ebp + 0x1c], 4
lea eax, [ebp + 8]
mov dword [ebp - 0x30], 0
cmovae eax, dword [ebp + 8]
push eax
push 0x80000002
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x40], 0
call fcn.00406290
mov edi, eax
add esp, 8
test edi, edi
je 0x40603b
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40603b
mov bl, 1
jmp 0x40603d
xor bl, bl
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x406077
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40606d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40612e
push ecx
push edx
call fcn.00410dc4
add esp, 8
mov ecx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x4060c1
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4060b7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40612e
push ecx
push edx
call fcn.00410dc4
add esp, 8
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp ecx, 4
jb 0x40610b
mov edx, dword [ebp + 8]
lea ecx, [ecx*4 + 4]
mov eax, edx
cmp ecx, 0x1000
jb 0x406101
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40612e
push ecx
push edx
call fcn.00410dc4
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411023
mov esp, ebp
pop ebp
ret
call fcn.00415a2f
call fcn.00415a2f
int3
Function at 0x406140
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429a70
mov eax, dword fs:[0]
push eax
mov eax, 0x1028
call fcn.00411110
mov eax, dword [0x481720]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x102c], esi
lea eax, [ebp + 0x24]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x1028]
push eax
call fcn.0040c960
cmp dword [ebp + 0x20], 4
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 2
cmovae eax, dword [ebp + 0xc]
push eax
push 0x80000002
mov dword [ebp - 0x1030], 0x800
mov dword [ebp - 0x102c], 1
call fcn.00406360
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4061ed
mov dword [esi], 0
mov ecx, esi
push 0
mov dword [esi + 0x10], 0
push 0x42c4cc
mov dword [esi + 0x14], 0
call fcn.00401d70
jmp 0x40624d
cmp dword [ebp - 0x1014], 8
lea ecx, [ebp - 0x1030]
push ecx
lea ecx, [ebp - 0x1010]
push ecx
lea ecx, [ebp - 0x102c]
push ecx
lea eax, [ebp - 0x1028]
cmovae eax, dword [ebp - 0x1028]
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 2
jne 0x406239
xor eax, eax
mov word [ebp - 0x1010], ax
jmp 0x40623d
test edi, edi
jne 0x4061c9
lea eax, [ebp - 0x1010]
push eax
push esi
call fcn.0040ce80
add esp, 8
lea ecx, [ebp - 0x1028]
call fcn.00403200
lea ecx, [ebp + 0xc]
call fcn.00401fe0
lea ecx, [ebp + 0x24]
call fcn.00401fe0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411023
mov esp, ebp
pop ebp
ret
Function at 0x40f400
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x4828a0
push 0x1fa7
push ebx
call esi
push 0x64
push 0x482968
push 0x1fad
push ebx
call esi
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x6b
push ebx
mov dword [ebp - 0x4c], 0x30
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], 0x40f0c0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], ebx
call esi
push 0x7f00
push 0
mov dword [ebp - 0x34], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x6c
push dword [ebp - 0x38]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 5
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x482968
call esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push ebx
push 0
push 0
push 0xc8
push 0x12c
push 0
push 0x80000000
push 0xc80000
push 0x4828a0
push 0x482968
push 0
mov dword [0x48289c], ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x482898], eax
test eax, eax
jne 0x40f4ea
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push edi
push dword [ebp + 0x14]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov edi, eax
call esi
cdq
sub eax, edx
push 4
sar eax, 1
push 0xc8
sub eax, 0x64
push 0x12c
push eax
mov eax, edi
cdq
sub eax, edx
sar eax, 1
sub eax, 0x96
push eax
push 0
push dword [0x482898]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [0x482898]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x1fad
push ebx
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push 0
push 0
mov dword [ebp + 8], eax
lea eax, [ebp - 0x1c]
push 0
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x40f5a6
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorW]
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
push dword [ebp - 0x1c]
call ebx
test eax, eax
jne 0x40f592
lea eax, [ebp - 0x1c]
push eax
call esi
lea eax, [ebp - 0x1c]
push eax
call edi
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x40f576
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x411a8a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x411ac9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x411ac9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x411ac9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x411ac9
cmp dword [ecx + 0x74], 0xe
jbe 0x411ac9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41fd90
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x475ae8
push 0x475ae0
push str.FlsAlloc
push 0x1f
call fcn.0041fc77
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41fdc4
push dword [ebp + 8]
mov ecx, esi
call dword [0x42c200]
call esi
jmp 0x41fdca
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41fe0e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x475af8
push 0x475af0
push str.FlsGetValue
push 0x21
call fcn.0041fc77
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41fe45
push dword [ebp + 8]
mov ecx, esi
call dword [0x42c200]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41fe4d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x475b00
push 0x475af8
push str.FlsSetValue
push 0x22
call fcn.0041fc77
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41fe87
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42c200]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x424b13
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041f340
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 0x424b82
cmp esi, dword [ebp - 4]
je 0x424b7d
cmp dword [ebp + 0xc], 0
je 0x424b7d
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x424b5a
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00424665
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x424b84
xor eax, eax
inc eax
jmp 0x424b84
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x424be9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x481720]
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.0041f340
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.0041f340
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 0x424c60
cmp word [ecx], dx
je 0x424c60
mov eax, dword [0x479814]
push edi
dec eax
push eax
push 0x479700
call fcn.00424b88
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x424cd3
cmp word [eax], dx
je 0x424cd3
mov eax, dword [edi]
test eax, eax
je 0x424c84
cmp word [eax], dx
je 0x424c84
lea eax, [ebp - 0x10]
push eax
call fcn.0042456b
jmp 0x424c8d
lea eax, [ebp - 0x10]
push eax
call fcn.00424606
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x424cfd
mov eax, dword [0x4796fc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4793f0
call fcn.00424b88
add esp, 0xc
test al, al
je 0x424cfd
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x424cc8
cmp word [eax], di
je 0x424cc8
lea eax, [ebp - 0x10]
push eax
call fcn.0042456b
pop ecx
jmp 0x424cff
lea eax, [ebp - 0x10]
push eax
call fcn.00424606
jmp 0x424cc5
mov eax, dword [edi]
test eax, eax
je 0x424cea
cmp word [eax], dx
je 0x424cea
lea eax, [ebp - 0x10]
push eax
call fcn.00424520
pop ecx
jmp 0x424cfd
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 0x424dc8
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00424a0d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x424dc8
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x424dc8
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x424dc8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x424d55
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0041ff8d
test ebx, ebx
je 0x424dc3
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0041ff8d
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x424dc8
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 0x424dc8
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00428163
add esp, 0x10
xor eax, eax
inc eax
jmp 0x424dca
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411023
leave
ret
Function at 0x426f31
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x481720]
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 0x426f7c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004270cc
test al, al
jne 0x426f76
sub edx, 2
cmp edx, edi
jne 0x426f5c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x426f9e
lea eax, [edi + 2]
cmp edx, eax
je 0x426f9e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00426e7d
add esp, 0x10
jmp 0x427098
push esi
lea ecx, [ebp - 0x255]
call fcn.004270cc
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 0x426fe1
push dword [ebp - 0x25c]
jmp 0x426f8e
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 0x42701e
cmp word [ebp - 0x226], 0
je 0x42703f
cmp word [ebp - 0x226], ax
jne 0x42701e
cmp word [ebp - 0x224], 0
je 0x42703f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00426e7d
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42708b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x426ff8
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x427073
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x427098
push 0x426cad
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00428530
add esp, 0x10
jmp 0x427068
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.00411023
leave
ret

Function at 0x4292f0
Capabilities:
Parse pe header

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