joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43bbc0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x43bc2e
cmp si, 0x69
ja 0x43bc2e
add esi, 0xffd0
cmp si, 0x11
je 0x43bbfe
push 0x11
call edi
test ax, ax
jge 0x43bbfe
or esi, 0x2000
cmp si, 0x10
je 0x43bc13
push 0x10
call edi
test ax, ax
jge 0x43bc13
or esi, 0x4000
cmp si, 0x12
je 0x43bc28
push 0x12
call edi
test ax, ax
jge 0x43bc28
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x43bc3b
mov esi, 0xbd
jmp 0x43bbef
cmp si, 0x6e
jne 0x43bc48
mov esi, 0xbe
jmp 0x43bbef
cmp si, 0x6f
jne 0x43bbe9
mov esi, 0xbf
jmp 0x43bbef

Function at 0x43d4a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xc4e550]
xor edx, edx
cmp eax, edx
jne 0x43d4c6
xor eax, eax
mov byte [eax + 0xc4e450], al
inc eax
cmp eax, 0x100
jl 0x43d4ae
mov dword [0xc4e550], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xc4e450
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x43d557
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x43d52a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x43d4f8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x43d5d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x43d623
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x43d60a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44f900
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a24a8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.0044a200
test eax, eax
je 0x44fa08
lea ecx, [esp + 0xc]
call fcn.00421b30
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.0044a200
mov ecx, eax
call fcn.00447990
test eax, eax
je 0x44f9ef
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x44f9ef
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x44f9ef
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00421d30
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x44f9d1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x44f9ef
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0xc4e9a0]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0xc1ac80
call fcn.00421d30
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x44fa50
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.0044a200
test eax, eax
je 0x44fb3f
mov ecx, edi
call fcn.0044a200
mov ecx, eax
call fcn.00447840
test eax, eax
jne 0x44fb3f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x44fb3f
mov eax, dword [0xc4e9a0]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x44fab2
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.0044a200
mov ecx, eax
call fcn.00447a70
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x44fb3f
cmp ebx, eax
jne 0x44fb3f
cmp dword [esp + 0x10], eax
jne 0x44fb25
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x452770
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a2738
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x4527a9
inc eax
mov dword [esi + 0x10], eax
jmp 0x4528bc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4527bd
mov eax, 0xffffffc7
jmp 0x4528be
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4527ce
cmp dword [esi + 8], eax
jne 0x4527bd
cmp dword [esi + 8], eax
jne 0x4527e7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x4527e7
mov eax, 0xffffffc7
jmp 0x4528be
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4527fb
push eax
mov ecx, ebx
call fcn.00451fa0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00421b30
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x45282c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00421b50
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00451710
test eax, eax
mov dword [esp + 0x38], eax
je 0x45285f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xc1ac80
call fcn.00421d30
mov eax, dword [esp + 0x38]
jmp 0x4528be
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004525d0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4528a3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004525f0
mov esi, eax
test esi, esi
jne 0x4528d3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004525d0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x452875
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xc1ac80
call fcn.00421d30
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xc1ac80
call fcn.00421d30
mov eax, esi
jmp 0x4528be

Function at 0x4559c0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x455a20
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x455a20
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x455a20
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x455a20
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x455a60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x480ac0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0xc3b3d4]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x480ad3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x480b14
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0xc3b47c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x480b46
mov bl, byte [esp + ecx + 0x4c]
jmp 0x480b4a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x480b3b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x480b68
mov bl, byte [esp + ecx + 0x4c]
jmp 0x480b6c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x480b5d
xor ecx, ecx
mov eax, 0xc3b3e4
xor ebx, ebx
mov bl, byte [ecx + 0xc3b48c]
cmp byte [esp + ebx + 0x14], 0
je 0x480b97
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0xc3b4a4]
cmp byte [esp + ebx + 0x14], 0
je 0x480bae
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x480b7e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x480b07
lea edx, [esp + 0x84]
push edx
call fcn.00480bf0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x482b30
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4a30d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0x10]
call fcn.00483f0a
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x38], 0
call fcn.00495122
lea ecx, [esp + 0x3c]
push 1
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 1
call fcn.00492d40
mov eax, dword [eax]
push 0xc3dcd8
push eax
call fcn.00485354
add esp, 8
lea ecx, [esp + 0x3c]
test eax, eax
setne bl
call fcn.004950b4
test bl, bl
je 0x482bb0
push 0xc3dcd8
lea ecx, [esp + 0xc]
call fcn.00495444
push 0xc3dcd4
lea ecx, [esp + 0xc]
call fcn.00495444
mov edx, dword [esp + 8]
push 0
push edx
lea ecx, [esp + 0x18]
call fcn.00483fcd
test eax, eax
je 0x482c74
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov bl, 2
lea ecx, [esp + 0x18]
call fcn.004841ed
mov edi, eax
mov eax, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [eax + 0x38]
test eax, eax
je 0x482c30
lea ecx, [esp + 0x18]
call fcn.004841b4
test eax, eax
jne 0x482c30
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004842bc
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [esp + 0x40], bl
call fcn.00482b30
mov byte [esp + 0x3c], 1
lea ecx, [esp + 0x44]
jmp 0x482c65
lea ecx, [esp + 0x18]
call fcn.004841b4
test eax, eax
jne 0x482c6a
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [edx + 0x38]
test eax, eax
jne 0x482c6a
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
call fcn.004842bc
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x14]
call fcn.004950b4
test edi, edi
jne 0x482be0
pop edi
pop ebp
lea ecx, [esp + 0x10]
call fcn.00483f83
lea ecx, [esp + 8]
mov byte [esp + 0x34], 0
call fcn.004950b4
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.00483f47
mov ecx, dword [esp + 0x2c]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x482d70
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4a3106
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov eax, dword [0xc3dd60]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x15c], 0
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x164]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x160], 1
call fcn.004951f1
push str..
lea ecx, [esp + 0x10]
call fcn.00495444
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x482e13
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], 0
call fcn.004950b4
lea ecx, [esp + 8]
mov dword [esp + 0x15c], 0xffffffff
call fcn.004950b4
xor eax, eax
jmp 0x482f58
push ebp
mov ebp, dword [esp + 0x16c]
push edi
mov edi, dword [esp + 0x174]
lea edx, [esp + 0x48]
push 0xc3dcf8
push edx
call fcn.00485354
add esp, 8
test eax, eax
je 0x482f09
lea eax, [esp + 0x48]
push 0xc3dcf4
push eax
call fcn.00485354
add esp, 8
test eax, eax
je 0x482f09
test ebp, ebp
jne 0x482e75
lea ecx, [esp + 0x48]
push str.desktop.ini
push ecx
call fcn.00485403
add esp, 8
test eax, eax
je 0x482f09
push esi
lea ecx, [esp + 0x14]
call fcn.004951f1
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0049546b
lea edx, [esp + 0x48]
lea ecx, [esp + 0x10]
push edx
call fcn.00495444
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x482eb5
mov ecx, dword [esp + 0x10]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [esp + 0x1c], 0x10
je 0x482ed7
mov edx, dword [esp + 0x10]
push edi
push ebp
push edx
mov ecx, ebx
call fcn.00482d70
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x482f09
test edi, edi
je 0x482efe
lea ecx, [esp + 0x48]
push str.index.dat
push ecx
call fcn.00485403
add esp, 8
test eax, eax
jne 0x482efe
lea edx, [esp + 0x48]
mov ecx, ebx
push edx
push esi
call fcn.00482f80
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x482e23
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 0
call fcn.004950b4
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call fcn.004950b4
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x154]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret 0xc
Function at 0x482f80
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a311b
push eax
mov eax, 0x2718
mov dword fs:[0], esp
call fcn.00485b70
mov eax, dword [0xc3dd60]
push edi
mov dword [esp + 4], eax
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x2724], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x272c]
push ecx
lea ecx, [esp + 8]
call fcn.004951f1
push 0x5c
lea ecx, [esp + 8]
call fcn.0049546b
mov edx, dword [esp + 0x2730]
lea ecx, [esp + 4]
push edx
call fcn.00495444
mov eax, dword [esp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x483026
lea ecx, [esp + 4]
mov dword [esp + 0x2724], eax
call fcn.004950b4
xor eax, eax
jmp 0x4830a3
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
mov esi, eax
push 0x40
push edi
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jbe 0x483081
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0x2710
push 0
jbe 0x483073
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x2710
push edx
push edi
call ebx
sub esi, 0x2710
jne 0x48304d
jmp 0x483081
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push esi
push ecx
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x272c], 0xffffffff
call fcn.004950b4
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x271c]
pop edi
mov dword fs:[0], ecx
add esp, 0x2724
ret 8

Function at 0x49745b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x497493
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049550f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004954e7
jmp 0x49749f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x498b49
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x498b8b
call fcn.0049e602
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x498b8b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x498b82
xor eax, eax
jmp 0x498b93
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00498b99
pop edi
pop esi
pop ebx
ret 4
Function at 0x4035c1
Capabilities:
Terminate process

Disassembly:
jmp 0x458844
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x458855
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405899
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 0x4036e3
Capabilities:
Query environment variable

Disassembly:
jmp 0x49ff51
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49ff62
pop esi
ret
push ebx
push edi
push esi
call fcn.0049fe38
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403f99
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49ff8a
push ebx
push esi
push edi
call fcn.0040568c
add esp, 0xc
push 0
call fcn.004061d6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405745
Capabilities:
Parse pe header

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

Function at 0x445598
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.00403742
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4455db
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 2
push ecx
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x4455db
sub eax, 1
je 0x4455d6
sub eax, 1
je 0x4455d2
xor eax, eax
leave
ret
push 3
jmp 0x4455dd
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x48bcbb
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d8e
mov eax, dword [0x4d1040]
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.00405de9
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x497129
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x497285
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405f38
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 + 0x4d4958]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00403251
mov ecx, dword [esi*4 + 0x4d4958]
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 0x49727e
cmp eax, dword [ecx + edi + 0x24]
jne 0x49727e
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 0x49727e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403251
add esp, 0x14
test edx, edx
jl 0x49727e
jg 0x4971f4
test eax, eax
jb 0x49727e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49727e
jl 0x49720e
cmp dword [ebp - 0x1008], eax
ja 0x49727e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49722c
test ebx, ebx
je 0x497265
cmp ecx, edi
jae 0x497265
mov al, byte [ecx]
cmp al, 0xd
jne 0x497246
lea eax, [edi - 1]
cmp ecx, eax
jae 0x497252
cmp byte [ecx + 1], 0xa
jne 0x497252
inc ecx
jmp 0x497252
movzx eax, al
movsx eax, byte [eax + 0x4d13a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49722c
cmp edx, ebx
jne 0x49722c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x497283
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403035
leave
ret