joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403cb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e040
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5d80cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], 0
call fcn.0041cfbb
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x403de0
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x403de0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403de0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403de0
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x403d66
jmp 0x403d50
cmp esi, ecx
jae 0x403de0
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x403d50
cmp esi, ecx
jae 0x403de0
movzx eax, word [esi]
test ax, ax
je 0x403de0
mov ebx, dword [ebp - 0x10]
mov edi, eax
mov dword [ebp + 8], eax
mov ecx, 1
mov edx, dword [ebx]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x403d9c
push edi
mov ecx, ebx
call fcn.004029b0
mov edx, dword [ebx]
movzx eax, word [esi]
jmp 0x403d9f
mov eax, dword [ebp + 8]
movzx ecx, ax
lea eax, [esi + 2]
push ecx
push eax
push edi
push edx
call fcn.00553a1d
push eax
call fcn.00403c10
mov eax, dword [ebx]
add esp, 0x14
cmp edi, dword [eax - 8]
jg 0x403df6
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + edi*2], cx
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00402750
int3

Function at 0x4045a0
Capabilities:
Hash data with md5

Disassembly:
mov byte [ecx + 0x68], 0
mov eax, ecx
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x405080
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0x10
push esi
xor esi, esi
test ecx, ecx
je 0x405181
mov eax, dword [ebp + 8]
mov edx, 1
push ebx
mov ebx, dword [ebp + 0x10]
sub edx, eax
dec ecx
mov dword [ebp - 0x10], edx
push edi
lea edi, [eax + 1]
mov dword [ebp - 4], 1
mov eax, 0xaaaaaaab
mul ecx
mov ecx, edx
shr ecx, 1
inc ecx
mov dword [ebp - 0xc], ecx
movzx eax, byte [edi - 1]
mov ecx, dword [ebp + 0xc]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebx], al
lea eax, [esi + 2]
mov dl, byte [edi - 1]
and dl, 3
shl dl, 4
cmp dword [ebp - 4], ecx
jae 0x405155
movzx ecx, byte [edi]
shr cl, 4
add cl, dl
movzx ecx, cl
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebx + 1], cl
lea ecx, [eax + ebx]
mov dh, byte [edi]
inc eax
mov dword [ebp - 8], ecx
and dh, 0xf
mov ecx, dword [ebp - 0x10]
add ecx, edi
shl dh, 2
cmp ecx, dword [ebp + 0xc]
jae 0x405140
mov dl, byte [edi + 1]
mov ebx, dword [ebp - 8]
mov cl, dl
shr cl, 6
add cl, dh
movzx ecx, cl
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx], cl
mov ebx, dword [ebp + 0x10]
movzx ecx, dl
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx], cl
jmp 0x40516b
movzx ecx, dh
mov edx, dword [ebp - 8]
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], cl
mov cl, 0x3d
mov byte [eax + ebx], cl
jmp 0x40516b
movzx ecx, dl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebx + 1], cl
mov byte [eax + ebx], 0x3d
inc eax
mov byte [eax + ebx], 0x3d
add dword [ebp - 4], 3
lea esi, [eax + 1]
add edi, 3
sub dword [ebp - 0xc], 1
jne 0x4050c0
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4051b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x405250
cmp word [esi], 0
je 0x405250
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x405250
push esi
call dword [sym.imp.SHLWAPI.dll_UrlIsOpaqueW]
test eax, eax
jne 0x405250
push 3
push esi
call dword [sym.imp.SHLWAPI.dll_UrlIsW]
test eax, eax
jne 0x405250
push 0x38
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 0x3c
push eax
call fcn.0054ddb0
add esp, 0xc
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x580ae8
mov dword [ebp - 0x2c], esi
push 2
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0
call fcn.00405290
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00405330
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4088a3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x4088e2
call fcn.00413ece
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4088e2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4088ea
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.00424441
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4094ad
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x409539
cmp dword [esi + 0x20], 0
je 0x409539
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x409539
cmp dword [ebp + 8], 0
je 0x409539
xor edi, edi
mov ebx, edi
call fcn.00413ece
push 0x5832b8
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x40951d
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x409539
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.00424f9a
mov edi, eax
add esp, 0xc
test edi, edi
je 0x409535
mov ecx, esi
call fcn.0040924b
mov eax, edi
jmp 0x40953b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40fdc4
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x56e552
call fcn.0054be7c
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x40fdea
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x40fe44
lea ecx, [ebp - 0x10]
call fcn.004065fe
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x57e298]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00555cac
push eax
call fcn.00403c10
add esp, 0x14
test esi, esi
je 0x40fe37
push esi
call fcn.005535ae
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040b1dd
mov eax, ebx
call fcn.0054be4a
ret 8
Function at 0x4132c1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x413306
call fcn.00413ece
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x413303
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41334d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x413329
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x57e298]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x41334a
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x57e298]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x41ed28
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x41ed7b
push esi
push dword [ebp + 8]
call fcn.0041ef11
mov edi, eax
test edi, edi
je 0x41ed76
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x41ed76
mov eax, dword [ebp - 8]
jmp 0x41ed8d
mov eax, dword [ebp + 0x10]
jmp 0x41ed8d
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc

Function at 0x422160
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call fcn.00413ece
push 5
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x422193
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push edi
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.004221a6
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x42796e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x4279c4
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x42799d
call fcn.004207ae
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4279b2
call fcn.004207ae
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4279c4
call fcn.004207ae
call fcn.00413ece
cmp dword [eax + 0x3c], 0
je 0x4279d9
push edi
mov ecx, ebx
call fcn.00427091
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00427bbf
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x427a02
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x427a0e
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x42cc87
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.00559be2
pop ecx
test eax, eax
jne 0x42ccc9
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00405260
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42cc8f
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret

Function at 0x4347b3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0040f9be
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4347ef
call fcn.004349d0
mov dword [esi + 0xc], 1
jmp 0x4347f4
call fcn.004349d0
cmp dword [esi], 0
je 0x43483f
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x43481a
push edi
call fcn.00408a28
lea ecx, [edi + 1]
push ecx
jmp 0x434829
push 0xff
call fcn.0040ae93
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040b277
pop edi
jmp 0x434863
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x434863
push dword [esi]
push dword [ebp - 4]
call fcn.00423368
pop esi
leave
ret 0xc
Function at 0x434927
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004349d0
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x43496f
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00408a28
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040b277
jmp 0x43497a
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00423368
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x456a90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x456aa9
call fcn.00413ece
mov esi, dword [eax + 0xc]
push 0x58cee0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x456aeb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x456aeb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x456aeb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00456af4
jmp 0x456aed
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4eed07
Capabilities:
Get file system object information

Disassembly:
push 0x4cc
mov eax, 0x57899a
call fcn.0054beaf
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00402770
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x57e680
call fcn.0041df5e
cmp eax, 0xffffffff
jne 0x4eede2
push 0
push 0x582270
lea ecx, [ebp - 0x4d0]
call fcn.0041df5e
cmp eax, 0xffffffff
jne 0x4eede2
push 0
push 0x58484c
lea ecx, [ebp - 0x4d0]
call fcn.0041df5e
cmp eax, 0xffffffff
jne 0x4eede2
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00402770
add eax, 0x10
pop ecx
mov dword [ebp - 0x4d8], eax
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea ecx, [ebp - 0x218]
push ecx
push 0x104
push edx
push eax
lea edi, [eax - 0x10]
push edx
mov dword [ebp - 0x4d4], edi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x4eedb1
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x57e298]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x4d4]
mov edi, eax
call fcn.0040b1dd
jmp 0x4eee1b
lea eax, [ebp - 0x218]
push eax
call fcn.005535ae
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.00402a60
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.0040b1dd
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4eee08
mov edi, dword [ebp - 0x4cc]
jmp 0x4eee1b
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x57e298]
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.0040b1dd
mov eax, edi
call fcn.0054be5e
ret
Function at 0x562234
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00561ee5

Function at 0x56223f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0056206f
Function at 0x40752c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040a490
test esi, esi
jne 0x407562
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040a618
jmp 0x407580
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040740c
mov edi, eax
test esi, esi
je 0x407580
cmp dword [ebx], 0
je 0x407580
dec esi
jmp 0x407569
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x409098
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00409558
mov byte [esp], al
cmp byte [esp], 0
jne 0x409221
test edi, edi
je 0x409221
mov byte [esp + 1], 0
test ebp, ebp
jle 0x409161
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40913c
cmp edi, 0xffffffff
je 0x4090fd
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4090fd
mov byte [esp], 0
jmp 0x409221
cmp dword [esi], 1
jg 0x40913c
cmp dword [esi], 0
jne 0x40912e
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40912e
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x409221
lea eax, [esp + 0xc]
call fcn.00408d48
dec ebp
test ebp, ebp
jg 0x4090e2
cmp edi, 0xffffffff
je 0x409161
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40915f
mov byte [esp], 0
jmp 0x409221
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4090a6
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409161
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040929c
mov edx, eax
mov ebx, dword [0x7b98fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4091c5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4091c3
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4091c5
xor edi, edi
cmp byte [esp], 0
je 0x4091eb
mov ebx, dword [esi]
test bl, 1
jne 0x409201
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4091cb
mov byte [esp + 1], 1
jmp 0x409201
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4091eb
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x409178
cmp byte [esp], 0
je 0x409221
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40a128
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x7b905c], 0
je 0x40a18f
cmp word [0x7b9348], 0xd7b2
jne 0x40a151
cmp dword [0x7b9350], 0
jbe 0x40a151
mov eax, 0x7b9344
call dword [0x7b9360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push 0x7a59e1
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x40a1bc
call fcn.0040ae94
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x7a5032], 0
jne 0x40a1ab
push 0
push 0x7a59db
push 0x7a59e1
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret

Function at 0x40a350
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x7a5034], 0
je 0x40a37b
mov edx, edi
mov eax, esi
call dword [0x7a5034]
mov ebx, eax
jmp 0x40a38c
mov eax, 8
call fcn.004070d4
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x7b905d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a318
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x40a3bc
mov eax, ebx
call fcn.004070f0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40df98
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40e0ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a490
cmp si, word [0x7a5a18]
jb 0x40e030
cmp si, word [0x7a5c18]
ja 0x40e030
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40e030
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x7a5a18]
jae 0x40e00a
mov edi, ebx
dec edi
jmp 0x40e02b
cmp si, word [ebx*8 + 0x7a5a18]
jbe 0x40e01a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40e02b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x7a5a1c]
call fcn.0040deb4
jmp 0x40e030
cmp edi, dword [ebp - 8]
jae 0x40dff4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40e0df
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e0df
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b42c
push dword [ebp - 0x160]
push 0x40e11c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040b42c
push dword [ebp - 0x164]
push 0x40e12c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b42c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b664
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e106
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a4f0
pop eax
jmp eax