joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a36d
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 + 0x4610c0]
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 0x43a3b3
cmp word [ebx], dx
jne 0x43a3b3
or byte [eax + edi + 0x28], 4
jmp 0x43a3b8
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 0x43a51b
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 0x43a4fb
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x43a3f9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43a42f
cmp eax, edx
jae 0x43a43d
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 0x43a3d4
jmp 0x43a51b
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 0x43a4f6
cmp dword [ebp - 0x18], 0
je 0x43a4f6
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4610c0]
test byte [eax + edi + 0x28], 0x48
je 0x43a4cc
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 0x43a490
mov word [esi], cx
jmp 0x43a4c7
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4610c0]
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 + 0x4610c0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4610c0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x43a51b
pop eax
cmp word [ebp - 4], ax
jne 0x43a4dc
cmp esi, ebx
jne 0x43a4dc
mov word [esi], ax
jmp 0x43a518
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0043ada6
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x43a51b
push 0xd
pop eax
jmp 0x43a4d7
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4610c0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x43a515
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x43a51b
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 0x43e309
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x45f080]
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 0x43e354
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0043e4a4
test al, al
jne 0x43e34e
sub edx, 2
cmp edx, edi
jne 0x43e334
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x43e376
lea eax, [edi + 2]
cmp edx, eax
je 0x43e376
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0043e255
add esp, 0x10
jmp 0x43e470
push esi
lea ecx, [ebp - 0x255]
call fcn.0043e4a4
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 0x43e3b9
push dword [ebp - 0x25c]
jmp 0x43e366
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 0x43e3f6
cmp word [ebp - 0x226], 0
je 0x43e417
cmp word [ebp - 0x226], ax
jne 0x43e3f6
cmp word [ebp - 0x224], 0
je 0x43e417
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0043e255
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x43e463
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x43e3d0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x43e44b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x43e470
push 0x43e085
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004449a0
add esp, 0x10
jmp 0x43e440
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.00427ae9
leave
ret

Function at 0x441360
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00437840
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 0x4413cf
cmp esi, dword [ebp - 4]
je 0x4413ca
cmp dword [ebp + 0xc], 0
je 0x4413ca
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4413a7
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00440eb2
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4413d1
xor eax, eax
inc eax
jmp 0x4413d1
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x441436
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x45f080]
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.00437840
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.00437840
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 0x4414ad
cmp word [ecx], dx
je 0x4414ad
mov eax, dword [0x44e93c]
push edi
dec eax
push eax
push 0x44e828
call fcn.004413d5
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x441520
cmp word [eax], dx
je 0x441520
mov eax, dword [edi]
test eax, eax
je 0x4414d1
cmp word [eax], dx
je 0x4414d1
lea eax, [ebp - 0x10]
push eax
call fcn.00440db8
jmp 0x4414da
lea eax, [ebp - 0x10]
push eax
call fcn.00440e53
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x44154a
mov eax, dword [0x44e824]
push dword [ebp - 0x14]
dec eax
push eax
push 0x44e518
call fcn.004413d5
add esp, 0xc
test al, al
je 0x44154a
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x441515
cmp word [eax], di
je 0x441515
lea eax, [ebp - 0x10]
push eax
call fcn.00440db8
pop ecx
jmp 0x44154c
lea eax, [ebp - 0x10]
push eax
call fcn.00440e53
jmp 0x441512
mov eax, dword [edi]
test eax, eax
je 0x441537
cmp word [eax], dx
je 0x441537
lea eax, [ebp - 0x10]
push eax
call fcn.00440d6d
pop ecx
jmp 0x44154a
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 0x441615
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0044125a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x441615
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x441615
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x441615
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4415a2
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004381bd
test ebx, ebx
je 0x441610
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004381bd
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x441615
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 0x441615
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00445040
add esp, 0x10
xor eax, eax
inc eax
jmp 0x441617
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427ae9
leave
ret
Function at 0x445785
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00445701
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4458f4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4458f4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4458a9
jg 0x4457e1
test eax, eax
je 0x44589f
push 1
push 0x1000
call fcn.00437b2b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x445804
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x445896
push 0x8000
push ebx
call fcn.00435b24
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x44582d
jg 0x445828
cmp ecx, 0x1000
jb 0x44582d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0043925a
add esp, 0x10
cmp eax, 0xffffffff
je 0x445872
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x445828
jl 0x445859
test ecx, ecx
jne 0x44581a
push dword [ebp - 0xc]
push ebx
call fcn.00435b24
push esi
call fcn.00437b88
add esp, 0xc
xor ebx, ebx
jmp 0x445902
cmp byte [edi + 0x24], 0
je 0x445889
cmp dword [edi + 0x20], 5
jne 0x445889
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x445894
mov ebx, dword [edi + 0x18]
jmp 0x445896
xor ebx, ebx
push esi
call fcn.00437b88
pop ecx
jmp 0x445902
test ecx, ecx
jg 0x44586b
jl 0x4458a9
test eax, eax
jae 0x44586b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043ada6
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4458c9
cmp byte [edi + 0x1c], 0
je 0x44586b
jmp 0x4458fa
push ebx
call fcn.0043f331
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x44586b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x445902
cmp byte [edi + 0x1c], 0
je 0x4458ff
mov ebx, dword [edi + 0x18]
jmp 0x445902
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0043ada6
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x446980
Capabilities:
Parse pe header

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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc3000]
lea eax, [edi + 0x10c8e8]
push dword [eax]
mov dword [eax], 0x9b1f0308
push eax
push edi
jmp 0x53489a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5348a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x534890
mov eax, 1
add ebx, ebx
jne 0x5348b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5348c4
jne 0x5348e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5348e3
dec eax
add ebx, ebx
jne 0x5348d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5348a8
add ebx, ebx
jne 0x5348df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x534935
xor ecx, ecx
sub eax, 3
jb 0x5348fb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x53496a
sar eax, 1
mov ebp, eax
jmp 0x534906
add ebx, ebx
jne 0x534906
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5348d4
inc ecx
add ebx, ebx
jne 0x534914
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5348d4
add ebx, ebx
jne 0x534921
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x534916
jne 0x534932
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x534916
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x534954
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x534946
jmp 0x534896
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x534954
add edi, ecx
jmp 0x534896
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x4786
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x534976
cmp byte [edi], 0x21
jne 0x534976
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 0x53497b
lea edi, [esi + 0x12c000]
mov eax, dword [edi]
or eax, eax
je 0x5349f3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x13e654]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x13e73c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5349a8
mov ecx, edi
jns 0x5349d7
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x13e744]
or eax, eax
je 0x5349ed
mov dword [ebx], eax
add ebx, 4
jmp 0x5349c5
call dword [esi + 0x13e740]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x534a24
cmp al, 0xef
ja 0x534a17
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5349f9
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x534a06
mov ebp, dword [esi + 0x13e748]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x257]
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 0x534a58
sub esp, 0xffffff80
jmp 0x43a4e0
Function at 0x4d21b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x84000]
lea eax, [edi + 0xbecf8]
push dword [eax]
mov dword [eax], 0xd6b2ede4
push eax
push edi
jmp 0x4d21da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4d21e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d21d0
mov eax, 1
add ebx, ebx
jne 0x4d21f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4d2204
jne 0x4d2223
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d2223
dec eax
add ebx, ebx
jne 0x4d2210
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4d21e8
add ebx, ebx
jne 0x4d221f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4d2275
xor ecx, ecx
sub eax, 3
jb 0x4d223b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4d22aa
sar eax, 1
mov ebp, eax
jmp 0x4d2246
add ebx, ebx
jne 0x4d2246
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d2214
inc ecx
add ebx, ebx
jne 0x4d2254
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d2214
add ebx, ebx
jne 0x4d2261
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4d2256
jne 0x4d2272
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4d2256
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4d2294
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4d2286
jmp 0x4d21d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4d2294
add edi, ecx
jmp 0x4d21d6
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x3a1a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4d22b6
cmp byte [edi], 0x17
jne 0x4d22b6
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 0x4d22bb
lea edi, [esi + 0xcb000]
mov eax, dword [edi]
or eax, eax
je 0x4d232a
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd26e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd27a8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4d22e8
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd27b0]
or eax, eax
je 0x4d2324
mov dword [ebx], eax
add ebx, 4
jmp 0x4d2305
call dword [esi + 0xd27ac]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4d235b
cmp al, 0xef
ja 0x4d234e
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4d2330
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4d233d
mov ebp, dword [esi + 0xd27b4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x24f]
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 0x4d238f
sub esp, 0xffffff80
jmp 0x434e80
Function at 0x3001f3a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, 3
je 0x3001f3dc
cmp byte [eax], 0
je 0x3001f420
lea eax, [eax + 1]
test eax, 3
je 0x3001f3dc
cmp byte [eax], 0
je 0x3001f420
lea eax, [eax + 1]
test eax, 3
je 0x3001f3dc
cmp byte [eax], 0
je 0x3001f420
lea eax, [eax + 1]
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x1010101
xor edx, ecx
and edx, 0x80808080
je 0x3001f3dc
test cl, cl
lea eax, [eax - 4]
je 0x3001f420
test ecx, 0xff00
lea eax, [eax + 1]
je 0x3001f420
test ecx, 0xff0000
lea eax, [eax + 1]
je 0x3001f420
test ecx, 0xff000000
lea eax, [eax + 1]
je 0x3001f420
lea eax, [eax + 1]
jmp 0x3001f3dc
sub eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x3001f42f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, 3
je 0x3001f456
cmp word [eax], 0
je 0x3001f44f
lea eax, [eax + 2]
test eax, 3
je 0x3001f456
jmp 0x3001f43d
sub eax, dword [ebp + 8]
shr eax, 1
jmp 0x3001f491
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x10001
xor edx, ecx
and edx, 0x80008000
je 0x3001f456
sub eax, dword [ebp + 8]
shr eax, 1
test cx, cx
lea eax, [eax - 2]
je 0x3001f491
test ecx, 0xffff0000
lea eax, [eax + 1]
je 0x3001f491
lea eax, [eax*2 + 2]
add eax, dword [ebp + 8]
jmp 0x3001f456
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x3002138d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov esi, ecx
cmp si, 0xffff
push edi
mov dword [ebp - 4], edx
je 0x30021402
test si, 0x3ff
je 0x30021402
push dword [ebp + 8]
call fcn.30021317
test eax, eax
jne 0x3002140b
movzx edi, si
mov esi, dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
push eax
push eax
push 0x58
push edi
call esi
test eax, eax
je 0x3002140b
lea eax, [ebp - 0x24]
push 0x20
push eax
push 0x58
push edi
call esi
and dword [ebp - 0x10], 0
lea edx, [ebp - 0x44]
push 3
lea ecx, [ebp - 0x14]
call fcn.3002128d
test eax, eax
je 0x300213fa
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x44]
mov byte [ecx], al
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x40]
mov dword [ecx], eax
jmp 0x3002140b
mov eax, dword [ebp - 4]
mov byte [eax], 1
jmp 0x30021405
mov byte [edx], 1
mov eax, dword [ebp + 8]
and dword [eax], 0
pop edi
pop esi
leave
ret 4

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 0x10006150
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x1018f690], 0x13a8
mov dword [0x1018f69c], 0
mov byte [0x1018f6a0], 0
mov edi, dword [0x1018f694]
add edi, 0xffffea5b
mov dword [0x1018f694], edi
mov dword [0x1018f698], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x1018f694]
add eax, 0xfffff29d
mov dword [0x1018f690], eax
mov eax, dword [0x1018f698]
add eax, 1
mov dword [0x1018f698], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x100061a7
xor eax, eax
mov dword [0x1018f690], 0x119a
mov dword [0x1018f698], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x1018f6a4], 0
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x1018f690], 0x21a0
mov edi, dword [0x1018f69c]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x1018f6a4], esi
mov eax, esi
cdq
idiv ecx
mov dword [0x1018f69c], edx
mov dword [0x1018f694], 0xd15
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x1018f6a0], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov dword [0x1018f690], 0x18ab
mov cl, byte [0x1018f6a0]
mov esi, dword [0x1018f69c]
mov byte [ebx + esi], cl
mov esi, dword [0x1018f698]
add esi, 1
mov dword [0x1018f698], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x100061f5
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret