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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x46c
mov eax, dword [0x417040]
xor eax, esp
mov dword [esp + 0x468], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [esp + 0x268], ax
lea eax, [esp + 0x26a]
push eax
call fcn.00404720
add esp, 0xc
mov dword [esp + 0x3c], 0
lea eax, [esp + 0x260]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x3c]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402d29
lea eax, [esp + 0x44]
push eax
push 4
lea eax, [esp + 0x48]
push eax
push 0x14
push dword [esp + 0x4c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x402d29
cmp dword [esp + 0x40], 0
jne 0x402d29
call fcn.004013a0
test eax, eax
je 0x402d51
push 0x20a
lea eax, [esp + 0x54]
mov dword [esp + 0x4c], 0x200026
push 0
push eax
mov dword [esp + 0x58], 0x27
call fcn.00404720
add esp, 0xc
lea eax, [esp + 0x260]
push eax
lea eax, [esp + 0x4c]
push 0x109
push eax
call fcn.004064a3
add esp, 0xc
lea eax, [esp + 0x48]
push 0x414fe4
push 0x109
push eax
call fcn.004064a3
mov eax, dword [0x415010]
add esp, 0xc
movups xmm0, xmmword [0x415000]
mov dword [esp + 0x20], eax
xor esi, esi
mov ax, word [0x415014]
movups xmmword [esp + 0x10], xmm0
mov word [esp + 0x24], ax
mov eax, 0x51eb851f
mov ecx, esi
mul esi
shr edx, 4
imul eax, edx, 0x32
sub ecx, eax
add ecx, 0x38
xor word [esp + esi*2 + 0x10], cx
inc esi
cmp esi, 0xb
jl 0x402cd3
push ecx
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x14]
call fcn.00401ea0
mov eax, dword [esp + 0x40]
add esp, 4
test eax, eax
je 0x402d51
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x468]
xor ecx, esp
call fcn.004030f5
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x402d40
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x3c], 0
lea ecx, [esp + 0x260]
call fcn.00402080
call fcn.004013a0
mov ecx, dword [esp + 0x46c]
xor eax, eax
pop esi
xor ecx, esp
call fcn.004030f5
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403adf
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403b1e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403b1e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403b1e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403b1e
cmp dword [ecx + 0x74], 0xe
jbe 0x403b1e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x409b38
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 0x409bd5
push ebx
push esi
call fcn.00409b01
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.00409a95
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x409b82
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x409bd4
push edi
push eax
call fcn.00408514
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x409ba2
call fcn.00408562
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x409bd3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00409a95
add esp, 0x20
test eax, eax
jne 0x409bc1
push edi
call fcn.00408562
jmp 0x409bc9
push ebx
call fcn.00408562
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 0x40ab93
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x412298
push 0x412290
push str.FlsAlloc
push 0x1f
call fcn.0040aaaf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40abc7
push dword [ebp + 8]
mov ecx, esi
call dword [0x41014c]
call esi
jmp 0x40abcd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40ac11
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4122a8
push 0x4122a0
push str.FlsGetValue
push 0x21
call fcn.0040aaaf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ac48
push dword [ebp + 8]
mov ecx, esi
call dword [0x41014c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40ac50
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4122b0
push 0x4122a8
push str.FlsSetValue
push 0x22
call fcn.0040aaaf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ac8a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41014c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40fa40
Capabilities:
Parse pe header

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

Disassembly:
jmp 0xfdfbfa
pushal
call 0xfdfc00
pop ebp
sub ebp, 0x10
sub ebp, 0xbdfbf0
jmp 0xfdfc16
mov eax, 0xbdfbf0
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b1
mov edx, 0xc9427fd8
xor byte [eax], dl
inc eax
dec ecx
jne 0xfdfc2d
jmp 0xfdfc40
push ebx
adc eax, 0xd8e45153
fcomp st(0)
pop ecx
sbb dword [eax], esp
fcomp st(0)
fcomp st(3)
adc eax, 0xd8d8dc60
fsub dword [edx - 0x10]
fcomp st(0)
fsubr dword [edi]
cmp bl, bl
adc byte [ebx + 0x59], dl
aam 0xd8
fcomp st(0)
fistp dword [0x24fcbc55]
push ecx
fdiv st(4), st(0)
mov byte [eax - 0x270600c0], dh
mov al, 0x8d
or al, 0x44
fcomp st(1)
hlt
Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
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 al, bl
loop 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0

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
nop
pop eax
add eax, 0x403d7a
nop
sub eax, 0x403d20
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x402050
Capabilities:
Create process on windows
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0x423ed0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edx, 0x423ed0
mov ecx, 0x427f98
cmp eax, 1
je 0x402090
call fcn.00402140
mov edx, str._exists.
mov ecx, eax
call fcn.00402140
push eax
call fcn.004023e0
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
call fcn.00402140
mov edx, str._does_not_exist._Opening_www.baidu.com.
mov ecx, eax
call fcn.00402140
push eax
call fcn.004023e0
add esp, 4
push 1
push 0
push 0
push str.https:__www.baidu.com
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4040e1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x404102
jl 0x4040f9
test edi, edi
jne 0x404102
xor eax, eax
xor edx, edx
jmp 0x4041c3
cmp dword [ebx + 0x38], 0
je 0x404117
push eax
push edi
push dword [ebp + 8]
call fcn.004041c9
jmp 0x4041c3
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40415e
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40415e
cmp eax, edi
jb 0x404138
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00406470
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x404164
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4041b8
mov ecx, ebx
call fcn.00403930
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4041a3
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040a72a
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4041b8
jmp 0x404176
test edx, edx
je 0x4041b8
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040a72a
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x405c52
Capabilities:
Parse pe header

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

Function at 0x40fcbf
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4202e8
push 0x4202e0
push str.FlsAlloc
push 0x1f
call fcn.0040fb2a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40fcf3
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d13c]
call esi
jmp 0x40fcf9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x40fd3d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4202f8
push 0x4202f0
push str.FlsGetValue
push 0x21
call fcn.0040fb2a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40fd74
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d13c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40fd7c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420300
push 0x4202f8
push str.FlsSetValue
push 0x22
call fcn.0040fb2a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40fdb6
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41d13c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41170a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00405dc0
mov eax, dword [0x427040]
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.00410351
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41174c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4118a8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041b7d0
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 + 0x428970]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00412707
mov ecx, dword [esi*4 + 0x428970]
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 0x4118a1
cmp eax, dword [ecx + edi + 0x24]
jne 0x4118a1
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 0x4118a1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00412707
add esp, 0x14
test edx, edx
jl 0x4118a1
jg 0x411817
test eax, eax
jb 0x4118a1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4118a1
jl 0x411831
cmp dword [ebp - 0x1008], eax
ja 0x4118a1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41184f
test ebx, ebx
je 0x411888
cmp ecx, edi
jae 0x411888
mov al, byte [ecx]
cmp al, 0xd
jne 0x411869
lea eax, [edi - 1]
cmp ecx, eax
jae 0x411875
cmp byte [ecx + 1], 0xa
jne 0x411875
inc ecx
jmp 0x411875
movzx eax, al
movsx eax, byte [eax + 0x4272f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41184f
cmp edx, ebx
jne 0x41184f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4118a6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00404ecd
leave
ret
Function at 0x411b9f
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 + 0x428970]
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 0x411bdf
cmp byte [ebx], 0xa
jne 0x411bdf
or byte [edi + eax + 0x28], 4
jmp 0x411be4
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 0x411ce3
mov dl, byte [eax]
cmp dl, 0x1a
je 0x411cc6
inc eax
cmp dl, 0xd
je 0x411c10
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x411c36
cmp eax, ecx
jae 0x411c44
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 0x411bf8
jmp 0x411ce3
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 0x411cc1
cmp dword [ebp - 0x10], 0
je 0x411cc1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x428970]
test byte [eax + edi + 0x28], 0x48
je 0x411c9b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x411c86
mov byte [esi], dl
jmp 0x411c97
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x428970]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x411ce3
cmp byte [ebp - 1], 0xa
jne 0x411caa
cmp esi, ebx
jne 0x411caa
mov byte [esi], 0xa
jmp 0x411ce2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00412725
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x411ce3
mov byte [esi], 0xd
jmp 0x411ce2
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x428970]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x411ce0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x411ce3
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x411cec
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 + 0x428970]
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 0x411d32
cmp word [ebx], dx
jne 0x411d32
or byte [eax + edi + 0x28], 4
jmp 0x411d37
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 0x411e9a
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 0x411e7a
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x411d78
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x411dae
cmp eax, edx
jae 0x411dbc
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 0x411d53
jmp 0x411e9a
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 0x411e75
cmp dword [ebp - 0x18], 0
je 0x411e75
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x428970]
test byte [eax + edi + 0x28], 0x48
je 0x411e4b
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 0x411e0f
mov word [esi], cx
jmp 0x411e46
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x428970]
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 + 0x428970]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x428970]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x411e9a
pop eax
cmp word [ebp - 4], ax
jne 0x411e5b
cmp esi, ebx
jne 0x411e5b
mov word [esi], ax
jmp 0x411e97
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00412725
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x411e9a
push 0xd
pop eax
jmp 0x411e56
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x428970]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x411e94
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x411e9a
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 0x415b40
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 0x415bdd
push ebx
push esi
call fcn.00415b09
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.004147fb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x415b8a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415bdc
push edi
push eax
call fcn.00412906
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x415baa
call fcn.0040f222
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415bdb
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004147fb
add esp, 0x20
test eax, eax
jne 0x415bc9
push edi
call fcn.0040f222
jmp 0x415bd1
push ebx
call fcn.0040f222
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 0x41820a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040f59a
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 0x418279
cmp esi, dword [ebp - 4]
je 0x418274
cmp dword [ebp + 0xc], 0
je 0x418274
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x418251
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00417d5c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41827b
xor eax, eax
inc eax
jmp 0x41827b
xor eax, eax
pop edi
pop esi
leave
ret