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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x475148]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4153ba
cmp word [esi], dx
jne 0x4153ba
or byte [edi + eax + 0x28], 4
jmp 0x4153bf
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x415512
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4154f2
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x415401
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x415437
cmp eax, edx
jae 0x415443
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4153d9
jmp 0x415512
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 0x4154ee
cmp dword [ebp - 0x14], 0
je 0x4154ee
mov eax, dword [ebx*4 + 0x475148]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4154c6
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41548f
mov word [esi], cx
jmp 0x4154c2
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x475148]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x475148]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x475148]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x415512
pop ebx
cmp word [ebp - 4], bx
jne 0x4154d7
cmp esi, dword [ebp + 0xc]
jne 0x4154d7
mov word [esi], bx
jmp 0x41550f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00415dab
add esp, 0x10
cmp word [ebp - 4], bx
je 0x415512
push 0xd
jmp 0x41550b
mov ecx, dword [ebx*4 + 0x475148]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x415509
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x415512
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x418e54
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 0x418ef1
push ebx
push esi
call fcn.00418e1d
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.00417aa2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x418e9e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x418ef0
push edi
push eax
call fcn.00415f8a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x418ebe
call fcn.00411f6f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x418eef
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00417aa2
add esp, 0x20
test eax, eax
jne 0x418edd
push edi
call fcn.00411f6f
jmp 0x418ee5
push ebx
call fcn.00411f6f
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 0x41ea90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41eabd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41eabd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x5a5d5dd3
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x4a8028c1
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x42211b
Capabilities:
Parse pe header

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

Function at 0x4347a0
Capabilities:
Parse pe header

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

Function at 0x402034
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
nop
lea eax, [ebp - 0x44]
push eax
call sub.kernel32.dll_GetStartupInfoA
mov eax, dword [ebp - 0x18]
and eax, 1
cmp eax, 0
je 0x402062
movzx eax, word [ebp - 0x14]
mov dword [ebp - 0x50], eax
jmp 0x40206a
mov eax, 0xa
mov dword [ebp - 0x50], eax
mov eax, 0
mov dword [ebp - 0x48], eax
call sub.kernel32.dll_GetCommandLineA
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 8]
cmp eax, 0
je 0x402099
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x4c]
push eax
call sub.msvcrt.dll_strstr
add esp, 8
mov dword [ebp - 0x48], eax
mov eax, 0
mov ecx, dword [ebp - 0x48]
cmp eax, ecx
jne 0x4020bf
mov eax, 0x403208
push eax
call sub.msvcrt.dll__strdup
add esp, 4
mov dword [ebp - 0x48], eax
jmp 0x4020e8
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
cmp eax, ecx
jbe 0x4020e8
mov eax, dword [ebp - 0x48]
add eax, 0xffffffff
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x4020e8
mov eax, dword [ebp - 0x48]
add eax, 0xffffffff
mov dword [ebp - 0x48], eax
mov eax, 0x30000
push eax
mov eax, 0x10000
push eax
call sub.msvcrt.dll__controlfp
add esp, 8
mov eax, 0
push eax
call sub.kernel32.dll_GetModuleHandleA
mov ecx, dword [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 0x48]
push ecx
mov ecx, 0
push ecx
push eax
call fcn.00401cec
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x436fe4
Capabilities:
Resolve path using msvcrt
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov ecx, dword [0x46fdac]
mov dword [ebp - 4], esi
test ecx, ecx
je 0x437008
call fcn.004409c5
mov dword [0x46fdac], esi
mov ecx, dword [0x45fa7c]
test ecx, ecx
je 0x43701d
call fcn.004409c5
mov dword [0x45fa7c], esi
mov ecx, dword [0x46fed4]
test ecx, ecx
je 0x437032
call fcn.004409c5
mov dword [0x46fed4], esi
mov ecx, dword [0x4713ac]
test ecx, ecx
je 0x437049
mov esi, dword [ecx]
call fcn.004409c5
mov ecx, esi
test esi, esi
jne 0x43703c
cmp byte [0x457a4d], 0
mov ebx, dword [0x45fa28]
mov eax, dword [0x45fa2c]
mov ecx, dword [0x45fa24]
jne 0x43706e
mov dword [ebx + eax*4], 0x428970
inc eax
add ecx, 3
mov dword [ebx + eax*4], 0x428978
lea edx, [edi + 2]
mov dword [ebx + eax*4 + 4], edi
add eax, 2
mov dword [0x45fa2c], eax
mov ax, word [edi]
add edi, 2
cmp ax, si
jne 0x437084
mov esi, dword [0x45fa30]
sub edi, edx
mov edx, dword [0x45fa34]
add esi, 4
sar edi, 1
add edi, 5
mov dword [0x45fa30], esi
add edi, ecx
dec edx
mov dword [0x45fa24], edi
mov dword [0x45fa34], edx
test edx, edx
jle 0x437106
mov ecx, dword [0x45fa2c]
mov eax, dword [esi]
mov dword [ebx + ecx*4], eax
inc ecx
mov dword [0x45fa2c], ecx
mov ecx, dword [esi]
lea eax, [ecx + 2]
mov dword [ebp - 8], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x4370d8
sub ecx, dword [ebp - 8]
inc edi
sar ecx, 1
add esi, 4
add edi, ecx
dec edx
test edx, edx
jg 0x4370be
mov dword [0x45fa34], edx
mov dword [0x45fa30], esi
mov dword [0x45fa24], edi
push 0x428980
push 0x428520
test dword [edx], eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wputenv_s]
mov eax, dword [0x45fa24]
pop ecx
pop ecx
xor ecx, ecx
inc eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
call fcn.004355ef
xor edi, edi
mov dword [ebp - 4], eax
mov ebx, edi
mov esi, eax
cmp dword [0x45fa2c], ebx
jle 0x4371b1
mov ecx, dword [0x45fa24]
mov edi, esi
sub edi, eax
sar edi, 1
lea eax, [ecx + 1]
cmp edi, eax
jb 0x437165
mov ecx, 0x3f8
call fcn.0043b649
mov ecx, dword [0x45fa24]
mov eax, dword [0x45fa28]
sub ecx, edi
inc ecx
push dword [eax + ebx*4]
push ecx
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov eax, dword [0x45fa28]
add esp, 0xc
xor edi, edi
mov ecx, dword [eax + ebx*4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x437188
sub ecx, edx
sar ecx, 1
push 0x20
pop eax
push 2
lea esi, [esi + ecx*2]
mov word [esi], ax
pop eax
add esi, eax
mov eax, dword [ebp - 4]
inc ebx
cmp ebx, dword [0x45fa2c]
jl 0x437142
push eax
xor ecx, ecx
push 0x428544
mov word [esi - 2], cx
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wputenv_s]
pop ecx
pop ecx
test eax, eax
je 0x4371d3
mov ecx, 0x3ec
call fcn.0043b649
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p__wpgmptr]
push edi
push edi
push dword [0x45fa00]
push dword [eax]
push edi
call dword [sym.imp.api_ms_win_crt_process_l1_1_0.dll__wspawnlp]
add esp, 0x14
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x408161
Capabilities:
Parse pe header

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

Function at 0x41615c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x428288
push 0x428280
push str.FlsAlloc
push 0x1f
call fcn.00415fe6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416190
push dword [ebp + 8]
mov ecx, esi
call dword [0x424148]
call esi
jmp 0x416196
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4161da
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x428298
push 0x428290
push str.FlsGetValue
push 0x21
call fcn.00415fe6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416211
push dword [ebp + 8]
mov ecx, esi
call dword [0x424148]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x416219
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4282a0
push 0x428298
push str.FlsSetValue
push 0x22
call fcn.00415fe6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416253
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x424148]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x418c5c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004082d0
mov eax, dword [0x42f040]
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.00415950
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x418c9e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x418dfa
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00422540
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 + 0x430b08]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00419081
mov ecx, dword [esi*4 + 0x430b08]
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 0x418df3
cmp eax, dword [ecx + edi + 0x24]
jne 0x418df3
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 0x418df3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00419081
add esp, 0x14
test edx, edx
jl 0x418df3
jg 0x418d69
test eax, eax
jb 0x418df3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x418df3
jl 0x418d83
cmp dword [ebp - 0x1008], eax
ja 0x418df3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x418da1
test ebx, ebx
je 0x418dda
cmp ecx, edi
jae 0x418dda
mov al, byte [ecx]
cmp al, 0xd
jne 0x418dbb
lea eax, [edi - 1]
cmp ecx, eax
jae 0x418dc7
cmp byte [ecx + 1], 0xa
jne 0x418dc7
inc ecx
jmp 0x418dc7
movzx eax, al
movsx eax, byte [eax + 0x42f9b8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x418da1
cmp edx, ebx
jne 0x418da1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x418df8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004074f6
leave
ret
Function at 0x419c21
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x42f040]
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 0x419c6c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00419dbc
test al, al
jne 0x419c66
sub edx, 2
cmp edx, edi
jne 0x419c4c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x419c8e
lea eax, [edi + 2]
cmp edx, eax
je 0x419c8e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00419b6d
add esp, 0x10
jmp 0x419d88
push esi
lea ecx, [ebp - 0x255]
call fcn.00419dbc
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 0x419cd1
push dword [ebp - 0x25c]
jmp 0x419c7e
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 0x419d0e
cmp word [ebp - 0x226], 0
je 0x419d2f
cmp word [ebp - 0x226], ax
jne 0x419d0e
cmp word [ebp - 0x224], 0
je 0x419d2f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00419b6d
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x419d7b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x419ce8
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x419d63
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x419d88
push 0x41999d
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00420370
add esp, 0x10
jmp 0x419d58
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.004074f6
leave
ret

Function at 0x41a685
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41a696
pop esi
ret
push ebx
push edi
push esi
call fcn.0041a64e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004149df
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41a6be
push ebx
push esi
push edi
call fcn.00408980
add esp, 0xc
push 0
call fcn.004149a5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x41aa8e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a6d3
Function at 0x41cd39
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00413c70
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 0x41cda8
cmp esi, dword [ebp - 4]
je 0x41cda3
cmp dword [ebp + 0xc], 0
je 0x41cda3
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41cd80
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041c88b
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41cdaa
xor eax, eax
inc eax
jmp 0x41cdaa
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41ce0f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42f040]
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.00413c70
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.00413c70
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 0x41ce86
cmp word [ecx], dx
je 0x41ce86
mov eax, dword [0x428704]
push edi
dec eax
push eax
push 0x4285f0
call fcn.0041cdae
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41cef9
cmp word [eax], dx
je 0x41cef9
mov eax, dword [edi]
test eax, eax
je 0x41ceaa
cmp word [eax], dx
je 0x41ceaa
lea eax, [ebp - 0x10]
push eax
call fcn.0041c791
jmp 0x41ceb3
lea eax, [ebp - 0x10]
push eax
call fcn.0041c82c
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x41cf23
mov eax, dword [0x4285ec]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4282e0
call fcn.0041cdae
add esp, 0xc
test al, al
je 0x41cf23
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41ceee
cmp word [eax], di
je 0x41ceee
lea eax, [ebp - 0x10]
push eax
call fcn.0041c791
pop ecx
jmp 0x41cf25
lea eax, [ebp - 0x10]
push eax
call fcn.0041c82c
jmp 0x41ceeb
mov eax, dword [edi]
test eax, eax
je 0x41cf10
cmp word [eax], dx
je 0x41cf10
lea eax, [ebp - 0x10]
push eax
call fcn.0041c746
pop ecx
jmp 0x41cf23
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 0x41cfee
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041cc33
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41cfee
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41cfee
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41cfee
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41cf7b
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00416359
test ebx, ebx
je 0x41cfe9
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00416359
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41cfee
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 0x41cfee
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00420b0a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41cff0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004074f6
leave
ret