joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415ec0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movzx ecx, si
shr esi, 0x10
test edi, edi
jne 0x415ede
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
ret 0xc
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x415fdd
lea ebx, [ebx]
mov edx, 0x15b0
cmp ebx, edx
cmovb edx, ebx
sub ebx, edx
mov dword [ebp + 0x10], ebx
cmp edx, 0x10
jl 0x415fa2
mov ebx, edx
shr ebx, 4
mov eax, ebx
neg eax
shl eax, 4
add edx, eax
movzx eax, byte [edi]
add ecx, eax
movzx eax, byte [edi + 1]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 2]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 3]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 4]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 5]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 6]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 7]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 8]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 9]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xa]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xb]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xc]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xd]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xe]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xf]
add esi, ecx
add ecx, eax
add esi, ecx
add edi, 0x10
dec ebx
jne 0x415f16
mov ebx, dword [ebp + 0x10]
test edx, edx
je 0x415fb1
movzx eax, byte [edi]
add ecx, eax
inc edi
add esi, ecx
dec edx
jne 0x415fa6
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul esi
shr edx, 0xf
imul edx, edx, 0xffff000f
add esi, edx
test ebx, ebx
jne 0x415ef0
shl esi, 0x10
pop ebx
or esi, ecx
pop edi
mov eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x41c754
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00426abb
mov ebx, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41c78b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0041c7aa
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x421542
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5b5450]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5b89dc]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x42158e
push 0x5647a0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4215ab
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5b89dc], eax
jmp 0x421597
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x4215ab
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x421618
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4215c6
xor eax, eax
jmp 0x421618
lea eax, [ebp - 0x210]
push eax
call fcn.0053018b
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x4215f7
push 0x5647d8
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005325ce
add esp, 0xc
test eax, eax
jne 0x4215c2
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005325ce
add esp, 0xc
test eax, eax
jne 0x4215c2
lea eax, [ebp - 0x210]
push eax
call fcn.004262e5
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0052c359
leave
ret

Function at 0x421db3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
je 0x421df8
call fcn.00426abb
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x421df8
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x421e14
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00426c56
mov ebx, eax
test edi, edi
je 0x421e12
test esi, esi
je 0x421e12
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42656d
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x55b7e8
call fcn.00530281
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x6c], esi
jne 0x426593
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4265e7
call fcn.004186bc
push eax
lea ecx, [ebp - 0x10]
call fcn.004034b0
mov ecx, dword [edi + 0x6c]
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], esi
call dword [eax + 0x8c]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00530798
push eax
call fcn.00402990
add esp, 0x14
test edi, edi
je 0x4265da
push edi
call fcn.00530100
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004034e0
mov eax, esi
call fcn.0053024f
ret 8
Function at 0x42b297
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5b5450]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [0x5b8ad0]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
test eax, eax
jne 0x42b2f0
push 0x5647a0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42b30d
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5b8ad0], eax
jmp 0x42b2f9
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x42b30d
mov eax, dword [ebp - 0x20]
push ebx
push edi
push eax
push dword [ebp + 8]
call esi
jmp 0x42b44a
mov eax, dword [ebp - 0x20]
and dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.0054cc40
lea eax, [ebp - 0x14]
push eax
call fcn.0053018b
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.0053073c
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
lea edi, [esi + 1]
call fcn.0054cc40
lea eax, [ebp - 0x14]
push eax
call fcn.0053018b
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0053073c
add esp, 0x38
add edi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.0054cc40
lea eax, [ebp - 0x14]
push eax
call fcn.0053018b
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0053073c
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
add edi, esi
call fcn.0054cc40
lea eax, [ebp - 0x14]
push eax
call fcn.0053018b
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.0053073c
push 7
lea eax, [ebp - 0x14]
push eax
push 0x800
add edi, esi
call fcn.0054cc40
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.0053018b
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.0053073c
lea eax, [edi + esi]
xor ecx, ecx
mov word [ebx + eax*2 + 2], cx
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052c359
leave
ret
Function at 0x4305a9
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, dword [esi + 4]
push eax
push dword [ebp + 0xc]
call fcn.004264fc
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4305e5
call fcn.004307c4
mov dword [esi + 0xc], 1
jmp 0x4305ea
call fcn.004307c4
cmp dword [esi], 0
je 0x430633
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x43060d
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0041a873
jmp 0x43061e
push 0xff
mov ecx, esi
call fcn.00403270
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00419e8d
jmp 0x430657
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x430657
push dword [esi]
push dword [ebp - 4]
call fcn.0042b6ed
pop esi
leave
ret 0xc

Function at 0x43071b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.004307c4
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x430763
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041a873
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00419e8d
jmp 0x43076e
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0042b6ed
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x435e44
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.00448ecb
call fcn.00426b0f
cmp dword [eax + 0x14], 0
jne 0x435e5f
mov ecx, esi
pop esi
jmp fcn.0043523b
pop esi
ret

Function at 0x444e34
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.004a1151
call fcn.00426b0f
cmp dword [eax + 0x14], 0
jne 0x444e4f
mov ecx, esi
pop esi
jmp fcn.00444727
pop esi
ret

Function at 0x451050
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
test esi, esi
jne 0x451068
call fcn.00426abb
mov esi, dword [eax + 0xc]
push 0x56b1a4
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x4510be
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4510bd
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x45109e
xor esi, esi
jmp 0x4510b4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.004510c4
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x51197e
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
test byte [esi + 4], 1
push edi
mov dword [ebp - 4], ebx
je 0x511998
mov edi, dword [esi + 0xc]
jmp 0x5119d8
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x5119b1
call fcn.0041f173
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x5119c6
call fcn.0041f173
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x5119d8
call fcn.0041f173
call fcn.00426abb
cmp dword [eax + 0x3c], 0
je 0x5119ed
push edi
mov ecx, ebx
call fcn.005112a2
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00511bb0
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x511a10
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x7c], 0
test ebx, ebx
je 0x511a19
mov edi, ebx
mov dword [eax + 0x7c], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x544140
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov dword [ebp - 0xe8], 0x9227cd4
mov dword [ebp - 0xec], 0xc2fbf138
mov dword [ebp - 0x154], 0x65789bc3
mov byte [ebp - 0x40], 0x77
mov byte [ebp - 0x3f], 0x69
mov byte [ebp - 0x3e], 0x6e
invalid
inc ebp
ret

Function at 0x54434b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x7f], 0x77
mov byte [ebp - 0x7e], 0x69
mov byte [ebp - 0x7d], 0x78
mov byte [ebp - 0x7c], 0x70
mov byte [ebp - 0x7b], 0x65
mov byte [ebp - 0x7a], 0x72
mov byte [ebp - 0x79], 0x6b
invalid
inc ebp

Function at 0x544369
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ecx - 0x3a], bh
inc ebp
mov dword [ebp - 0x3a], esp
inc ebp
mov ch, byte [ebx - 0x3a]
inc ebp
mov ebp, dword [ecx - 0x3a]
inc ebp
mov word [ebx - 0x3a], es
inc ebp
lea esi, [eax - 0x3a]
inc ebp
mov fs, word [ebp - 0x3a]
inc ebp
invalid

Function at 0x54464c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ecx
mov edx, dword [ebp - 0x9c]
push edx
call fcn.00544940
out 2, eax
add byte [eax], al
add esp, 8
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0xd0]
push eax
mov ecx, dword [ebp - 0x9c]
push ecx
invalid
retf
add al, byte [eax]

Function at 0x544655
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ecx
mov edx, dword [ebp - 0x9c]
push edx
call fcn.00544940
out 2, eax
add byte [eax], al
add esp, 8
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0xd0]
push eax
mov ecx, dword [ebp - 0x9c]
push ecx
invalid
retf
add al, byte [eax]

Function at 0x5446cb
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
lodsb al, byte [esi]
cmp al, 0xc6
inc ebp
lodsd eax, dword [esi]
mov byte ss:[ebp - 0x52], 0x6b
mov byte [ebp - 0x51], 0x32
mov byte [ebp - 0x50], 0x67
mov byte [ebp - 0x4f], 0x73
mov byte [ebp - 0x4e], 0x71
mov byte [ebp - 0x4d], 0x33
mov byte [ebp - 0x4c], 0x35
mov byte [ebp - 0x4b], 0x33
mov byte [ebp - 0x4a], 0x7d
mov byte [ebp - 0x49], 0x65
mov byte [ebp - 0x48], 0x73
mov byte [ebp - 0x47], 0x75
mov byte [ebp - 0x46], 0x32
mov byte [ebp - 0x45], 0x66
mov byte [ebp - 0x44], 0x71
mov byte [ebp - 0x43], 0x74
mov byte [ebp - 0x42], 0
mov dword [ebp - 0x1c], 0
jmp 0x544728
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0x1e
jge 0x544742
mov edx, dword [ebp - 0x1c]
movsx eax, byte [ebp + edx - 0x60]
sub eax, 4
mov ecx, dword [ebp - 0x1c]
mov byte [ebp + ecx - 0x60], al
jmp 0x54471f
mov dword [ebp - 0xac], 0x21c08
push 0x40
push 0x1000
push 0x400000
push 0
call dword [ebp - 0x134]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov dword [ebp - 0xe0], edx
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x28], 0

Function at 0x544910
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x544940
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x1c], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
add eax, dword [edx + ecx + 0x78]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0xc]
and ecx, 0xffff0000
je 0x544a1c
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0
jmp 0x5449be
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x20]
jae 0x544a13
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.005448e0
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 1
jne 0x544a11
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x30]
mov cx, word [eax + edx*2]
mov word [ebp - 4], cx
movzx edx, word [ebp - 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
jmp 0x544a3a
jmp 0x5449b5
mov dword [ebp - 0x10], 0
jmp 0x544a37
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
sub eax, dword [edx + 0x10]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x545b40
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5b5450]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00539a86
mov dword [ebp - 0x14], eax
cmp dword [0x5bd1b8], edi
jne 0x545c31
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x545bbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x545d11
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x545d11
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x545d11
push eax
call ebx
push 0x58c71c
push esi
mov dword [0x5bd1b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x58c72c
push esi
mov dword [0x5bd1bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x5bd1c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5bd1c8], eax
test eax, eax
je 0x545c2e
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5bd1c4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x545c56
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x545c49
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x545c6b
push 4
pop eax
jmp 0x545d13
cmp dword [ebp - 0x14], edi
je 0x545c6b
push dword [0x5bd1b8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x545c50
mov eax, dword [0x5bd1c4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x545cc9
cmp dword [0x5bd1c8], esi
je 0x545cc9
push eax
call ebx
push dword [0x5bd1c8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x545cc9
test eax, eax
je 0x545cc9
call ecx
test eax, eax
je 0x545cbe
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x545cbe
test byte [ebp - 8], 1
jne 0x545cc9
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x545cf9
mov eax, dword [0x5bd1bc]
cmp eax, esi
je 0x545cf6
push eax
call ebx
test eax, eax
je 0x545cf6
call eax
mov edi, eax
test edi, edi
je 0x545cf6
mov eax, dword [0x5bd1c0]
cmp eax, esi
je 0x545cf6
push eax
call ebx
test eax, eax
je 0x545cf6
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x5bd1b8]
call ebx
test eax, eax
je 0x545d11
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x545d13
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052c359
leave
ret
Function at 0x5473c2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.005390a6
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x5473fa
xor eax, eax
jmp 0x547426
cmp esi, dword [ebp - 4]
je 0x547423
cmp dword [ebp + 0xc], 0
je 0x547423
push dword [edi + 0x9c]
call fcn.00546fd0
push dword [edi + 0x9c]
mov esi, eax
call fcn.0053018b
pop ecx
pop ecx
cmp esi, eax
je 0x5473f6
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x10019c1
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x88]
xor ebx, ebx
push eax
mov dword [ebp - 8], ebx
call fcn.010035b7
test eax, eax
jne 0x10019ee
mov dword [ebp - 4], 0x8007000e
jmp 0x1001a9d
push 0x10012f0
push ebx
push 1
call fcn.01003304
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
call edi
mov dword [esi + 8], eax
cmp eax, ebx
je 0x1001a89
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1001a21
mov dword [ebp - 4], 0x80158190
jmp 0x1001a90
push 0x1001290
push ebx
push 1
call fcn.01003304
push eax
call edi
mov dword [esi + 0xc], eax
cmp eax, ebx
je 0x1001a89
push ebx
push 0x10000
push 0x1001460
lea ecx, [esi + 0x14]
call fcn.01004702
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x1001a90
push 0x1001230
push ebx
mov dword [ebp - 8], 1
call fcn.01003304
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
push eax
call edi
mov dword [esi + 0x44], eax
cmp eax, ebx
je 0x1001a89
push 0x10011d0
push ebx
call fcn.01003304
push eax
call edi
mov dword [esi + 0x48], eax
cmp eax, ebx
jne 0x1001ae6
mov dword [ebp - 4], 0x8007000e
lea eax, [esi + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x1001ab0
push eax
call edi
mov dword [esi + 8], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x1001abd
push eax
call edi
mov dword [esi + 0xc], ebx
cmp dword [ebp - 8], ebx
je 0x1001aca
lea ecx, [esi + 0x14]
call fcn.01004969
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x1001ad7
push eax
call edi
mov dword [esi + 0x44], ebx
mov eax, dword [esi + 0x48]
cmp eax, ebx
je 0x1001b0d
push eax
call edi
mov dword [esi + 0x48], ebx
jmp 0x1001b0d
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov dword [esi + 0x10], eax
call edi
push dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [esi + 0x74], eax
mov dword [esi + 4], 1
call edi
push dword [esi + 0xc]
call edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret