joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458d81
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov eax, ecx
push 0
push dword [eax + 0x20]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov eax, 0x404
push eax
mov dword [ebp - 0x10], esi
call fcn.004c0e30
pop ecx
push 4
pop ecx
xor ebx, ebx
mov edi, eax
cmp esi, ecx
jbe 0x458e35
test ebx, ebx
jne 0x458e35
lea eax, [ecx + 0x400]
cmp eax, esi
mov ecx, eax
cmova ecx, esi
push ebx
mov eax, esi
sub eax, ecx
push ebx
sub esi, eax
push eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push dword [eax + 0x20]
mov ecx, 0x404
cmp esi, ecx
cmova esi, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push esi
push edi
push dword [eax + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
add esi, 0xfffffffd
jmp 0x458e20
dec esi
cmp byte [esi + edi], 0x50
jne 0x458e20
cmp byte [esi + edi + 1], 0x4b
jne 0x458e20
cmp byte [esi + edi + 2], 5
jne 0x458e20
cmp byte [esi + edi + 3], 6
je 0x458e26
test esi, esi
jg 0x458e04
jmp 0x458e2b
mov ebx, dword [ebp - 8]
add ebx, esi
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
cmp ecx, esi
jb 0x458db6
push edi
call fcn.004c1c8e
pop ecx
test ebx, ebx
je 0x458e47
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
mov ecx, dword [ebp - 4]
push 0xffffffffffffff99
call fcn.004583ef
int3
Function at 0x464073
Capabilities:
Enumerate files on windows

Disassembly:
push 0x274
mov eax, 0x4e7589
call fcn.004c2a93
call fcn.00467b2b
test al, al
jne 0x464096
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x541ad4], eax
push str.googlechrome_applicationchrome.exe
lea ecx, [ebp - 0x264]
call fcn.004017e3
xor eax, eax
mov dword [ebp - 0x268], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x270]
push eax
call fcn.0040954b
lea ecx, [ebp - 0x264]
push ecx
push eax
lea eax, [ebp - 0x26c]
push eax
mov byte [ebp - 4], 1
call fcn.0045107a
push eax
mov byte [ebp - 4], 2
call fcn.00408fd0
mov ecx, dword [ebp - 0x26c]
add esp, 0x14
lea ecx, [ecx - 0x10]
mov bl, al
call fcn.00404fef
mov ecx, dword [ebp - 0x270]
lea ecx, [ecx - 0x10]
call fcn.00404fef
mov ecx, dword [ebp - 0x264]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00404fef
test bl, bl
je 0x46411d
mov al, 1
jmp 0x4642b6
push str.GoogleChrome_SxSApplicationchrome.exe
lea ecx, [ebp - 0x264]
call fcn.004017e3
lea eax, [ebp - 0x270]
push eax
mov dword [ebp - 4], 3
call fcn.00409467
lea ecx, [ebp - 0x264]
push ecx
push eax
lea eax, [ebp - 0x274]
push eax
mov byte [ebp - 4], 4
call fcn.0045107a
add esp, 0x10
mov ecx, dword [ebp - 0x270]
lea ecx, [ecx - 0x10]
call fcn.00404fef
mov ecx, dword [ebp - 0x264]
mov byte [ebp - 4], 7
lea ecx, [ecx - 0x10]
call fcn.00404fef
lea eax, [ebp - 0x274]
push eax
call fcn.00408fd0
pop ecx
test al, al
jne 0x464299
lea eax, [ebp - 0x260]
push eax
push str.c:chrome
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4642a2
test byte [ebp - 0x260], 0x10
je 0x464281
push str.chrome.exe
lea ecx, [ebp - 0x268]
call fcn.004017e3
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 8
call fcn.00401824
push str.c:chrome_
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 9
call fcn.004017e3
lea ecx, [ebp - 0x26c]
push ecx
push eax
lea eax, [ebp - 0x278]
push eax
mov byte [ebp - 4], 0xa
call fcn.0045107a
lea ecx, [ebp - 0x268]
push ecx
push eax
lea eax, [ebp - 0x280]
push eax
mov byte [ebp - 4], 0xb
call fcn.0045107a
push eax
mov byte [ebp - 4], 0xc
call fcn.00408fd0
mov ecx, dword [ebp - 0x280]
add esp, 0x1c
lea ecx, [ecx - 0x10]
mov bl, al
call fcn.00404fef
mov ecx, dword [ebp - 0x278]
lea ecx, [ecx - 0x10]
call fcn.00404fef
mov ecx, dword [ebp - 0x27c]
lea ecx, [ecx - 0x10]
call fcn.00404fef
mov ecx, dword [ebp - 0x26c]
lea ecx, [ecx - 0x10]
call fcn.00404fef
mov ecx, dword [ebp - 0x268]
mov byte [ebp - 4], 7
lea ecx, [ecx - 0x10]
call fcn.00404fef
test bl, bl
jne 0x464299
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4641ad
jmp 0x46429c
xor eax, eax
inc eax
mov dword [ebp - 0x268], eax
mov ecx, dword [ebp - 0x274]
add ecx, 0xfffffff0
call fcn.00404fef
mov al, byte [ebp - 0x268]
call fcn.004c2a42
ret
Function at 0x4690db
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x4e7e92
call fcn.004c2aff
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x469158
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x469158
call fcn.00449be0
mov esi, eax
jmp 0x46922f
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x46917b
call fcn.00449be0
jmp 0x469222
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x469171
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4691ab
mov esi, 0x8007000e
jmp 0x469224
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004685e6
jmp 0x4691d1
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x4691a4
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x420]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x469171
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.00468fa2
mov esi, eax
test edi, edi
je 0x46922f
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x469248
lea ecx, [ebp - 0x418]
call fcn.00468985
mov eax, esi
call fcn.004c2a51
ret 0x10
Function at 0x46a2ed
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
test edx, edx
jne 0x46a2fb
xor al, al
pop ebp
ret
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov byte [edx], al
test edi, edi
jne 0x46a30b
xor al, al
jmp 0x46a32f
push esi
mov esi, eax
cmp dword [ebp + 0xc], eax
jle 0x46a328
movzx ecx, byte [esi + edi]
movzx eax, al
xor ecx, eax
inc esi
mov al, byte [ecx + 0x501bb0]
cmp esi, dword [ebp + 0xc]
jl 0x46a313
xor al, 0x55
mov byte [edx], al
mov al, 1
pop esi
pop edi
pop ebp
ret

Function at 0x46a4de
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d0
mov eax, dword [0x540698]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1d0], eax
cmp esi, 0x40
jbe 0x46a54b
lea eax, [ebp - 0x1cc]
push eax
call fcn.0046bbcd
push esi
lea eax, [ebp - 0x1cc]
push edi
push eax
call fcn.0046a76a
push 0x20
push 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.0046c13a
push 0x20
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.004c3990
add esp, 0x2c
jmp 0x46a574
push esi
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.004c1ca0
add esp, 0xc
cmp esi, 0x40
jae 0x46a574
push 0x40
pop eax
sub eax, esi
push eax
lea eax, [ebp - 0x44]
add eax, esi
push 0
push eax
call fcn.004c3990
add esp, 0xc
xor ecx, ecx
mov al, byte [ebp + ecx - 0x44]
xor al, 0x36
mov byte [ebp + ecx - 0xa4], al
inc ecx
cmp ecx, 0x40
jl 0x46a576
lea eax, [ebp - 0x1cc]
push eax
call fcn.0046bbcd
push 0x40
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.0046c262
push dword [ebp + 0x14]
lea eax, [ebp - 0x1cc]
push ebx
push eax
call fcn.0046a76a
push 0x20
push 0
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.0046c13a
add esp, 0x2c
xor ecx, ecx
pop edi
pop esi
pop ebx
mov al, byte [ebp + ecx - 0x44]
xor al, 0x5c
mov byte [ebp + ecx - 0xa4], al
inc ecx
cmp ecx, 0x40
jl 0x46a5d6
lea eax, [ebp - 0x1cc]
push eax
call fcn.0046bbcd
push 0x40
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.0046c262
push 0x20
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.0046c262
push dword [ebp + 0x1c]
lea eax, [ebp - 0x1cc]
push 0
push dword [ebp - 0x1d0]
push eax
call fcn.0046c13a
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x2c
call fcn.004c29c4
leave
ret
Function at 0x46b1e8
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x100
call fcn.004c0e30
mov ebx, dword [ebp + 0x10]
pop ecx
mov esi, eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x80
push dword [ebp + 8]
mov dword [ebp - 8], ebx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
test edi, edi
jne 0x46b295
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x46b295
cmp dword [ebp - 8], ebx
jbe 0x46b24b
test esi, esi
je 0x46b247
push esi
call fcn.004c1c8e
pop ecx
xor al, al
jmp 0x46b2a7
mov eax, dword [ebp - 4]
cmp eax, 0x80
jbe 0x46b278
test esi, esi
je 0x46b263
push esi
call fcn.004c1c8e
mov eax, dword [ebp - 4]
pop ecx
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c0e30
pop ecx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
test esi, esi
je 0x46b2a0
push esi
call fcn.004c1c8e
pop ecx
xor eax, eax
test edi, edi
setne al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x46b2ac
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x540698]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor eax, eax
push 7
mov word [ebp - 0x24], ax
pop ecx
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x84], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x46b341
push 0x43
lea eax, [ebp - 0x67]
push 0
push eax
mov byte [ebp - 0x68], 0
call fcn.004c3990
push 0x44
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0046b1e8
add esp, 0x18
test al, al
je 0x46b341
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0046b18d
pop ecx
pop ecx
push eax
mov ecx, ebx
call fcn.00410efa
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.00411e79
and dword [esi], 0
push esi
call fcn.0046b363
pop ecx
test al, al
jne 0x46b352
and dword [esi], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.004c29c4
leave
ret
Function at 0x46ba62
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push 0x30
mov eax, 0x4e819c
call fcn.004c2a93
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x30], ebx
push 0xf0000000
push 1
push ebx
push ebx
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x46bab1
push ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push 0x14
mov ecx, esi
mov byte [esi], bl
call fcn.0041216d
jmp 0x46bbb5
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 0x8004
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0046b9eb
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x46baf1
push ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push 0x14
mov ecx, esi
mov byte [esi], bl
call fcn.0041216d
jmp 0x46bba3
cmp dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x10]
jb 0x46bafc
mov edi, dword [edi]
push ebx
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.0046b9eb
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x46bad6
push 4
pop ecx
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x38], ecx
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], ebx
call fcn.0046b9eb
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push eax
call edi
test eax, eax
je 0x46bad6
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
push ebx
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x34]
inc eax
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 2
call fcn.0046b991
pop ecx
pop ecx
push eax
push 2
lea ecx, [ebp - 0x2c]
call fcn.0046b9eb
push eax
call edi
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov ecx, esi
test eax, eax
jne 0x46bb8a
mov byte [esi], bl
push ebx
push 0x14
call fcn.0041216d
jmp 0x46bb9b
cmp dword [ebp - 0x34], 0x14
mov byte [esi], bl
jne 0x46bb80
lea eax, [ebp - 0x28]
push eax
call fcn.0040f404
lea ecx, [ebp - 0x28]
call fcn.0040102f
cmp dword [ebp - 0x2c], 0
je 0x46bbb5
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 0x2c], ebx
cmp dword [ebp - 0x30], 0
je 0x46bbc5
push ebx
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
call fcn.004c2a42
ret

Function at 0x46bbcd
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x128
push 0
push esi
call fcn.004c3990
push 0x20
lea eax, [esi + 0x100]
push 0x501f08
push eax
call fcn.004c1ca0
add esp, 0x18
pop esi
pop ebp
ret
Function at 0x46f870
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.004c3960
mov eax, dword [0x540698]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x46f8d5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x46f8d5
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.004c72fd
add eax, 0x40
push eax
call fcn.004cac71
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004c29c4
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.004cabac
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x46f964
call fcn.0046f730
test eax, eax
jle 0x46f964
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004c29c4
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004c29c4
add esp, 0x108
ret
Function at 0x481950
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24
call fcn.004c3960
mov eax, dword [0x540698]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, esi
push edi
mov dword [ebp - 0x18], esi
lea ecx, [eax + 1]
jmp 0x481980
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x481980
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
sub eax, ecx
lea edi, [eax + 1]
push edi
push esi
push 8
push 0xfde9
mov dword [ebp - 0x20], 8
call ebx
mov esi, eax
test esi, esi
jg 0x4819f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ec
jne 0x4819da
mov ecx, dword [ebp - 0x18]
push 0
push 0
push edi
push ecx
push 0
push 0xfde9
mov dword [ebp - 0x20], 0
call ebx
mov esi, eax
test esi, esi
jg 0x4819f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x481a8a
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push edx
push eax
jmp 0x481a78
lea eax, [esi + esi]
call fcn.004ca2c0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov eax, esp
push esi
push eax
push edi
push ecx
push edx
push 0xfde9
mov dword [ebp - 0x24], eax
call ebx
test eax, eax
je 0x481a8a
mov esi, dword [ebp - 0x1c]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x481a23
push 8
sub eax, edx
lea ecx, [ebp - 0x14]
push ecx
inc eax
push eax
push esi
push 0
push 0xfde9
call ebx
test eax, eax
je 0x481a8a
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push edx
push eax
call fcn.004c516e
mov esi, eax
add esp, 8
test esi, esi
jne 0x481b2e
call fcn.004cc0df
cmp dword [eax], 2
je 0x481a70
call fcn.004cc0df
cmp dword [eax], 9
jne 0x481a82
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
push ecx
push edx
call fcn.004c9d7b
mov esi, eax
add esp, 8
test esi, esi
jne 0x481b2e
push 0xa9
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.0046e3f0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
push 0x50cc2c
push eax
push 0x50cc28
push ecx
push str.fopen_
push 5
call fcn.0046dfd0
add esp, 0x2c
call fcn.004cc0df
cmp dword [eax], 2
jne 0x481b00
push 0xac
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.0046e3f0
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c29c4
mov esp, ebp
pop ebp
ret
push 0xae
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.0046e3f0
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c29c4
mov esp, ebp
pop ebp
ret
push 0x53f6b0
call fcn.0046ca30
mov edi, eax
add esp, 4
test edi, edi
jne 0x481b60
push esi
call fcn.004c52fe
add esp, 4
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c29c4
mov esp, ebp
pop ebp
ret
push 0
push edi
call fcn.0046c4c0
push esi
push 1
push 0x6a
push edi
call fcn.0046c820
add esp, 0x18
mov eax, edi
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c29c4
mov esp, ebp
pop ebp
ret
Function at 0x4a07a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x4a07b9
mov esi, edi
mov edi, eax
jmp 0x4a07bb
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x4a07cb
mov eax, ebx
jmp 0x4a07d5
push eax
push ebx
call fcn.00471af0
add esp, 8
test eax, eax
jne 0x4a07dd
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x4a07f9
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x4a07e4
cmp eax, dword [esi + 4]
jge 0x4a0810
mov edi, edi
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [esi + 4]
jl 0x4a0800
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
test eax, eax
jle 0x4a0831
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x4a082e
dec eax
test eax, eax
jg 0x4a0820
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x4dbea8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x540698]
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.004cdd48
mov dword [ebp - 0x14], eax
cmp dword [0x54671c], edi
jne 0x4dbf99
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4dbf26
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4dc079
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4dc079
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4dc079
push eax
call ebx
push 0x530938
push esi
mov dword [0x54671c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x546720], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x53095c
push esi
mov dword [0x546724], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x54672c], eax
test eax, eax
je 0x4dbf96
push 0x530978
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x546728], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4dbfbe
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4dbfb1
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4dbfd3
push 4
pop eax
jmp 0x4dc07b
cmp dword [ebp - 0x14], edi
je 0x4dbfd3
push dword [0x54671c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4dbfb8
mov eax, dword [0x546728]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4dc031
cmp dword [0x54672c], esi
je 0x4dc031
push eax
call ebx
push dword [0x54672c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4dc031
test eax, eax
je 0x4dc031
call ecx
test eax, eax
je 0x4dc026
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 0x4dc026
test byte [ebp - 8], 1
jne 0x4dc031
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4dc061
mov eax, dword [0x546720]
cmp eax, esi
je 0x4dc05e
push eax
call ebx
test eax, eax
je 0x4dc05e
call eax
mov edi, eax
test edi, edi
je 0x4dc05e
mov eax, dword [0x546724]
cmp eax, esi
je 0x4dc05e
push eax
call ebx
test eax, eax
je 0x4dc05e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x54671c]
call ebx
test eax, eax
je 0x4dc079
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4dc07b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c29c4
leave
ret
Function at 0x4de4ee
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004ceef5
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 0x4de526
xor eax, eax
jmp 0x4de552
cmp esi, dword [ebp - 4]
je 0x4de54f
cmp dword [ebp + 0xc], 0
je 0x4de54f
push dword [edi + 0x9c]
call fcn.004de0fc
push dword [edi + 0x9c]
mov esi, eax
call fcn.004c3153
pop ecx
pop ecx
cmp esi, eax
je 0x4de522
xor eax, eax
inc eax
pop edi
pop esi
leave
ret