joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010b0
Capabilities:
Change the wallpaper

Disassembly:
sub esp, 0x20
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push 0
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
sub edi, ebp
mov ebp, dword [esp + 0x34]
lea ecx, [esp + 0x20]
sub esi, eax
push ecx
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
sub eax, ecx
mov ecx, dword [esp + 0x2c]
sub esi, eax
mov eax, 0x66666667
imul esi
mov ebx, dword [esp + 0x24]
sar edx, 3
mov eax, edx
sub ecx, ebx
shr eax, 0x1f
add edx, eax
sub edi, ecx
mov eax, 0x66666667
mov ebx, edx
imul edi
sar edx, 3
mov ecx, edx
mov eax, esi
shr ecx, 0x1f
add edx, ecx
mov esi, 0x14
mov ecx, edx
cdq
idiv esi
mov eax, dword [esp + 0x3c]
cmp eax, 0x14
mov esi, edx
je 0x401148
imul ecx, eax
add ecx, dword [esp + 0x14]
jmp 0x40115e
mov eax, edi
mov edi, 0x14
cdq
idiv edi
lea eax, [ecx + ecx*4]
mov ecx, dword [esp + 0x14]
add ecx, edx
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x38]
cmp eax, 0x14
je 0x40116c
imul ebx, eax
jmp 0x401172
lea edx, [ebx + ebx*4]
lea ebx, [esi + edx*4]
mov eax, dword [esp + 0x10]
push 0x15
push 0
add ebx, eax
push 0
push ecx
push ebx
push 0
push ebp
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret

Function at 0x401310
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esp + 0x1c]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401380
lea eax, [esp + 0x18]
push 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
ret

Function at 0x4013e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x25c
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 0x44
lea edx, [esp + 0x58]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x268]
mov ecx, dword [esp + 0x26c]
push eax
push ecx
push str.__s__t__s_
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 4]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x58]
push eax
mov eax, dword [esp + 0x268]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
add esp, 0x25c
ret
Function at 0x401450
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x160
lea eax, [esp]
push 0x4100
push 0x160
push eax
push 0
push 0x40401c
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [esp + 0x164]
push eax
push 0
push 0x1003
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0x160
ret
Function at 0x401740
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x554
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x144]
push esi
push edi
mov edi, dword [esp + 0x568]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x458]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x250]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x354]
push ecx
push edx
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x158]
push ecx
push edx
call sub.MSVCRT.dll__splitpath
add esp, 0x14
mov esi, 0x4040d0
lea eax, [esp + 0x354]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4017d0
test cl, cl
je 0x4017cc
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4017d0
add eax, 2
add esi, 2
test cl, cl
jne 0x4017ac
xor eax, eax
jmp 0x4017d5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401832
lea edi, [esp + 0x14c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x48]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x404048
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x401852
lea eax, [esp + 0x250]
lea ecx, [esp + 8]
push eax
push ecx
lea edx, [esp + 0x50]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x47], 0x5c
je 0x401895
mov edi, 0x404048
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x48]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x10]
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14c]
lea ecx, [esp + 0x48]
push edx
mov dword [esp + 0x10], 0x3c
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0x4040d0
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], 0x4040d0
mov dword [esp + 0x2c], 0xa
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x18], 0
mov dword [esp + 0x30], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop edi
pop esi
add esp, 0x554
ret
Function at 0x401910
Capabilities:
Check mutex on windows
Hide graphical window

Disassembly:
sub esp, 0x44
push esi
mov esi, dword [esp + 0x4c]
push 0x404074
push 0x6b
push 0x224
push 0x4040e0
push esi
mov dword [0x4040d8], esi
call fcn.00402280
add esp, 0x14
test eax, eax
jne 0x40195a
push eax
push 0x40406c
push 0x404054
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
pop esi
add esp, 0x44
ret 0x10
push 0x4040e0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esp + 0x4c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401983
xor eax, eax
pop esi
add esp, 0x44
ret 0x10
push ebx
push edi
push 0x7f00
push 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x4c], 6
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x67
push esi
mov dword [esp + 0x48], eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esp + 0x38], esi
mov dword [esp + 0x2c], 0x402010
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x50], 0x4040e0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x2c], 3
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0
push esi
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xc80000
push 0x4040e0
push 0x4040e0
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ecx, dword [0x4041e8]
mov edx, dword [0x4041e4]
mov edi, eax
push ecx
push edx
push edi
call section..text
mov eax, dword [0x4042f4]
mov ecx, dword [0x4042f0]
push eax
push ecx
push edi
call fcn.004010b0
mov edx, dword [esp + 0x78]
add esp, 0x18
push edx
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x68
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
mov esi, eax
push 0
push 0
lea eax, [esp + 0x14]
push 0
push eax
call ebx
test eax, eax
je 0x401ad4
mov ecx, dword [0x40440c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x401a9c
mov eax, dword [0x40440c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x401ac3
lea ecx, [esp + 0xc]
push ecx
push esi
push edi
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x401ac3
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
lea ecx, [esp + 0x14]
push 0
push ecx
call ebx
test eax, eax
jne 0x401a76
mov edx, dword [esp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, dword [esp + 0xc]
pop esi
add esp, 0x44
ret 0x10
Function at 0x402280
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push eax
push ecx
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp ebx, dword [esp + 0x20]
jne 0x4022ef
mov edi, dword [esp + 0x1c]
mov ecx, ebx
mov edx, ecx
mov esi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 1
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov esi, dword [esp + 0x10]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4147d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x411015
lea edi, [esi - 0x10015]
push edi
jmp 0x4147ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4147f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4147e0
mov eax, 1
add ebx, ebx
jne 0x414803
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4147f8
jne 0x414814
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4147f8
xor ecx, ecx
sub eax, 3
jb 0x414828
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41489a
mov ebp, eax
add ebx, ebx
jne 0x414833
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x414840
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x414864
inc ecx
add ebx, ebx
jne 0x414850
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x414845
jne 0x414861
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414845
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x414884
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x414875
jmp 0x4147e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x414884
add edi, ecx
jmp 0x4147e6
pop esi
mov edi, esi
mov ecx, 0x11f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4148a2
cmp byte [edi], 3
jne 0x4148a2
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 0x4148a7
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x414916
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x14000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1403c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4148d4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x14044]
or eax, eax
je 0x414910
mov dword [ebx], eax
add ebx, 4
jmp 0x4148f1
call dword [esi + 0x14040]
mov ebp, dword [esi + 0x14048]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x14971]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x414962
sub esp, 0xffffff80
jmp 0x4012d0
Function at 0x101a7630
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x101a781d
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf2000]
push edi
or ebp, 0xffffffff
jmp 0x101a765a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x101a7661
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101a7650
mov eax, 1
add ebx, ebx
jne 0x101a7673
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x101a7684
jne 0x101a76a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101a76a3
dec eax
add ebx, ebx
jne 0x101a7690
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x101a7668
add ebx, ebx
jne 0x101a769f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x101a76f5
xor ecx, ecx
sub eax, 3
jb 0x101a76bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x101a772a
sar eax, 1
mov ebp, eax
jmp 0x101a76c6
add ebx, ebx
jne 0x101a76c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101a7694
inc ecx
add ebx, ebx
jne 0x101a76d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101a7694
add ebx, ebx
jne 0x101a76e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x101a76d6
jne 0x101a76f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x101a76d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x101a7714
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x101a7706
jmp 0x101a7656
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x101a7714
add edi, ecx
jmp 0x101a7656
pop esi
mov edi, esi
mov ecx, 0x3762
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x101a7732
cmp byte [edi], 0x22
jne 0x101a7732
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 0x101a7737
lea edi, [esi + 0x19f000]
mov eax, dword [edi]
or eax, eax
je 0x101a77af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1adff0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1ae130]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x101a7764
mov ecx, edi
jns 0x101a7793
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 + 0x1ae134]
or eax, eax
je 0x101a77a9
mov dword [ebx], eax
add ebx, 4
jmp 0x101a7781
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x101a77e0
cmp al, 0xef
ja 0x101a77d3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x101a77b5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x101a77c2
mov ebp, dword [esi + 0x1ae138]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
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 0x101a7814
sub esp, 0xffffff80
jmp 0x100706cf
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x67f66a9a
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x6f275590
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x40d440
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x40d46e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40d48c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040d3a6
jmp 0x40d48c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40d48c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0040d3a6
test edi, edi
mov eax, edi
jne 0x40d476
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4028a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402938
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402918
xor eax, eax
push ebp
push 0x402911
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402954
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402918
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x406b84
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406ba5
mov al, byte [esp]
jmp 0x406ba7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x457338
Capabilities:
Encode data using base64

Disassembly:
push 0xffffffffffffffff
push 0x52ed56
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x590700]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x2c], ebp
xor ebx, ebx
mov dword [esp + 0x28], ebx
cmp dword [edx + 0x14], 0x10
jb 0x457379
mov eax, dword [edx]
mov dword [esp + 0x20], eax
jmp 0x45737f
mov eax, edx
mov dword [esp + 0x20], edx
mov ecx, dword [edx + 0x10]
mov dword [ebp + 0x14], 0xf
mov dword [ebp + 0x10], ebx
mov byte [ebp], bl
mov dword [esp + 0x38], ebx
mov edi, ebx
mov dword [esp + 0x28], 1
test ecx, ecx
je 0x4574e8
push 3
pop esi
jmp 0x4573ae
mov ecx, dword [esp + 0x24]
mov al, byte [eax]
dec ecx
mov byte [esp + edi + 0x18], al
inc edi
mov eax, dword [esp + 0x20]
mov dl, byte [esp + 0x19]
inc eax
mov dword [esp + 0x24], ecx
mov ch, byte [esp + 0x1a]
mov cl, byte [esp + 0x18]
mov dword [esp + 0x20], eax
mov byte [esp + 0x17], ch
mov byte [esp + 0x15], dl
mov byte [esp + 0x16], cl
cmp edi, esi
jne 0x457444
mov al, cl
mov edi, ebx
shr al, 2
and cl, 3
mov byte [esp + 0x1c], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ch
mov byte [esp + 0x1d], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ch
and al, 0x3f
mov byte [esp + 0x1e], cl
mov byte [esp + 0x1f], al
movzx eax, byte [esp + edi + 0x1c]
mov ecx, ebp
movzx eax, byte [eax + 0x5651d0]
push eax
push 1
call fcn.0045a764
inc edi
cmp edi, 4
jl 0x457416
mov dl, byte [esp + 0x15]
mov edi, ebx
mov cl, byte [esp + 0x16]
mov eax, dword [esp + 0x20]
mov ch, byte [esp + 0x17]
cmp dword [esp + 0x24], 0
ja 0x4573aa
test edi, edi
je 0x4574e8
mov eax, edi
cmp edi, esi
jge 0x45747a
cmp eax, esi
jae 0x4574fe
mov byte [esp + eax + 0x18], bl
inc eax
cmp eax, esi
jl 0x45745f
mov ch, byte [esp + 0x1a]
mov dl, byte [esp + 0x19]
mov cl, byte [esp + 0x18]
mov al, cl
and cl, 3
shr al, 2
mov byte [esp + 0x1c], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [esp + 0x1d], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [esp + 0x1f], ch
lea eax, [edi + 1]
mov byte [esp + 0x1e], dl
test eax, eax
jle 0x4574d4
lea esi, [edi + 1]
movzx eax, byte [esp + ebx + 0x1c]
mov ecx, ebp
movzx eax, byte [eax + 0x5651d0]
push eax
push 1
call fcn.0045a764
inc ebx
cmp ebx, esi
jl 0x4574b6
push 3
pop esi
cmp edi, esi
jge 0x4574e8
sub esi, edi
push 0x3d
push 1
mov ecx, ebp
call fcn.0045a764
dec esi
jne 0x4574da
mov eax, ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
call fcn.00505da3
int3
Function at 0x459e8d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52f372
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x590700]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x590700]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov edi, dword [ebp + 8]
or ebx, 0xffffffff
cmp edi, ebx
jne 0x459edb
xor eax, eax
jmp 0x45a057
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x459f05
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x459f05
dec dword [edx]
mov edx, dword [esi + 0x20]
mov eax, dword [ebp + 8]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x45a057
cmp dword [esi + 0x50], 0
je 0x45a055
mov ecx, esi
call fcn.0045b220
xor ecx, ecx
cmp dword [esi + 0x40], ecx
jne 0x459f32
push dword [esi + 0x50]
push edi
call fcn.00455a35
test al, al
pop ecx
pop ecx
cmovne ebx, edi
jmp 0x45a055
mov eax, dword [ebp + 8]
push ecx
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x2c], cl
lea ecx, [esp + 0x2c]
push 8
mov byte [esp + 0x18], al
mov dword [esp + 0x44], 0xf
call fcn.0045ed36
and dword [esp + 0x50], 0
lea eax, [esi + 0x48]
mov dword [esp + 0x24], eax
mov edi, dword [esp + 0x3c]
mov esi, dword [esi + 0x40]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x2c]
cmp edi, 0x10
lea edx, [esp + 0x2c]
mov edi, dword [esi]
cmovae ecx, dword [esp + 0x2c]
cmovae edx, dword [esp + 0x2c]
add eax, ecx
push eax
push edx
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
lea eax, [esp + 0x21]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x3c]
call dword [edi + 0x1c]
test eax, eax
js 0x45a048
cmp eax, 1
jg 0x45a02b
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x28]
cmp edi, 0x10
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmovae eax, ecx
sub edx, eax
mov dword [esp + 0x1c], edx
je 0x459ff8
push dword [esi + 0x50]
cmp edi, 0x10
lea eax, [esp + 0x2c]
push edx
cmovae eax, ecx
push 1
push eax
call fcn.0050614e
mov edx, dword [esp + 0x2c]
add esp, 0x10
cmp edx, eax
jne 0x45a048
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x10]
mov byte [esi + 0x45], 1
cmp dword [esp + 0x20], eax
jne 0x45a026
test edx, edx
jne 0x459f65
cmp dword [esp + 0x38], 0x20
jae 0x45a048
push edx
push 8
lea ecx, [esp + 0x30]
call fcn.0045a764
jmp 0x459f61
mov ebx, dword [ebp + 8]
jmp 0x45a048
cmp eax, 3
jne 0x45a048
mov eax, dword [esp + 0x14]
push dword [eax + 0x50]
push dword [esp + 0x14]
call fcn.00455a35
test al, al
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.0044ea67
mov eax, ebx
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00503aee
mov esp, ebp
pop ebp
ret 4