joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403200
Capabilities:
Enumerate gui resources
Get disk information

Disassembly:
mov eax, dword [0x2b8767c]
mov ecx, dword [0x2b84588]
sub esp, 0x824
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x4032f5
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
cmp dword [0x2b8767c], 0x959
jne 0x4032db
call esi
push 0
lea eax, [esp + 0x34]
push eax
push 0
call edi
push 0
push 0
call ebx
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
xor eax, eax
lea ecx, [esp + 0x1c]
push ecx
push eax
push eax
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov edx, dword [esp + 0x14]
push edx
call fcn.00403040
add dword [esp + 0x14], 8
sub dword [esp + 0x18], 1
jne 0x403240
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x824
ret
Function at 0x408d80
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430c30]
jne 0x408d8a
repz ret
jmp fcn.0040b89c

Function at 0x40b067
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405217
and dword [ebp - 4], 0
cmp dword [0x431fc4], 0
mov ebx, eax
jne 0x40b118
push 0x402ac4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b1c9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402ab8
push edi
call esi
test eax, eax
je 0x40b1c9
push eax
call fcn.004051a5
mov dword [esp], 0x402aa8
push edi
mov dword [0x431fc4], eax
call esi
push eax
call fcn.004051a5
mov dword [esp], 0x402a94
push edi
mov dword [0x431fc8], eax
call esi
push eax
call fcn.004051a5
mov dword [esp], 0x402a78
push edi
mov dword [0x431fcc], eax
call esi
push eax
call fcn.004051a5
pop ecx
mov dword [0x431fd4], eax
test eax, eax
je 0x40b118
push 0x402a60
push edi
call esi
push eax
call fcn.004051a5
pop ecx
mov dword [0x431fd0], eax
mov eax, dword [0x431fd0]
cmp eax, ebx
je 0x40b170
cmp dword [0x431fd4], ebx
je 0x40b170
push eax
call fcn.00405220
push dword [0x431fd4]
mov esi, eax
call fcn.00405220
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b170
test edi, edi
je 0x40b170
call esi
test eax, eax
je 0x40b167
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b167
test byte [ebp - 0xc], 1
jne 0x40b170
or dword [ebp + 0x10], 0x200000
jmp 0x40b1a9
mov eax, dword [0x431fc8]
cmp eax, ebx
je 0x40b1a9
push eax
call fcn.00405220
pop ecx
test eax, eax
je 0x40b1a9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b1a9
mov eax, dword [0x431fcc]
cmp eax, ebx
je 0x40b1a9
push eax
call fcn.00405220
pop ecx
test eax, eax
je 0x40b1a9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x431fc4]
call fcn.00405220
pop ecx
test eax, eax
je 0x40b1c9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b1cb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10013fb3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10013ff2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10013ff2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10013ff2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10013ff2
cmp dword [ecx + 0x74], 0xe
jbe 0x10013ff2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10016c6f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10016d0c
push ebx
push esi
call fcn.10016c38
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10016bcc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10016cb9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10016d0b
push edi
push eax
call fcn.10017c2c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10016cd9
call fcn.10015714
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10016d0a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10016bcc
add esp, 0x20
test eax, eax
jne 0x10016cf8
push edi
call fcn.10015714
jmp 0x10016d00
push ebx
call fcn.10015714
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10016f79
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001e678
push 0x1001e670
push str.FlsAlloc
push 0x1f
call fcn.10016e95
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016fad
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001d158]
call esi
jmp 0x10016fb3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10016ff9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001e688
push 0x1001e680
push str.FlsGetValue
push 0x21
call fcn.10016e95
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10017030
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001d158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10017038
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001e690
push 0x1001e688
push str.FlsSetValue
push 0x22
call fcn.10016e95
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10017072
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001d158]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001c700
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001c72d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001c72d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4501d0
Capabilities:
Check mutex on windows
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x27c
mov eax, dword [0x6a8c7c]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push esi
push edi
push str.B8622A71_0CB1_4C69_B528_1043335A0772
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x45022c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.005d584c
mov esp, ebp
pop ebp
ret 0x10
push ecx
call fcn.0046e3e0
mov ecx, eax
call fcn.0046e460
call fcn.0045b4a0
push 0x20a
mov edi, eax
lea eax, [esp + 0x74]
push 0
push eax
call fcn.005ed310
add esp, 0xc
lea eax, [esp + 0x70]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x685d44
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [esp + 0x70]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x450294
sub eax, edx
lea ecx, [edi + 8]
sar eax, 1
push eax
lea eax, [esp + 0x74]
push eax
call fcn.0044e430
push ecx
push str.MainUI
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0x685028
mov dword [esp + 0x6c], vtable.nbase::SupportWeakCallback.0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
call fcn.004da3a0
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], vtable.CMarchApp.0
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x20], vtable.CMarchApp.1.0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x28], 1
mov byte [esp + 0x24], 1
mov dword [esp + 0x38], 0
call dword [eax + 4]
lea ecx, [esp + 0x10]
call fcn.00450160
call fcn.0045b4a0
mov ebx, eax
mov ecx, ebx
call fcn.0045c110
mov eax, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x45035d
push eax
call edi
mov dword [ebx + 4], 0
call fcn.0046e3e0
test esi, esi
je 0x450369
push esi
call edi
mov ecx, dword [esp + 0x284]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005d584c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x46c7a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61a0e0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x6a8c7c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0
push dword [esi + 0x264]
call dword [sym.imp.USER32.dll_EnableWindow]
push 6
xor eax, eax
mov dword [ebp - 0x2c], 0
push str.lbtext
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
call fcn.0044e430
push 0
push 0x6ab788
push 0x6ab7b8
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.00494060
push eax
call fcn.005ef916
mov dword [ebp - 4], 0xffffffff
add esp, 0x14
mov edx, dword [ebp - 0x28]
mov edi, eax
cmp edx, 8
jb 0x46c86a
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46c860
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c962
push edx
push ecx
call fcn.005d588d
add esp, 8
test edi, edi
je 0x46c90f
mov ecx, ebx
mov dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c890
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x24]
call fcn.0044e430
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 1
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x128]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
cmp edx, 8
jb 0x46c8fb
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46c8f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c967
push edx
push ecx
call fcn.005d588d
add esp, 8
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
mov ecx, esi
call fcn.00491510
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
cmp eax, vtable.CMarchMsgDlg.2.0
jne 0x46c96c
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46c94e
push 1
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
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
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
call fcn.005f564e
call fcn.005f564e
push 1
push 1
mov ecx, esi
call edx
jmp 0x46c94e
Function at 0x40117c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
xor eax, eax
inc dword [ecx - 0x16]
push ebp
mov ebp, esp
aaa
push esi
lea edx, [ebp - 0x5c]
push ebx
mov edi, edx
push ecx
mov ecx, 0x11
sub esp, 0x78
les esi, [0x40fe8c]
rep stosd dword es:[edi], eax
test esi, esi
jne 0x401440
mov eax, dword fs:[0x18]
mov edi, dword [ebx]
adc byte [ecx + 0x40], dh
add byte [ebx - 0x24ce2388], cl
jmp 0x4011cc
mov eax, ebx
lock cmpxchg dword [0x40fa98], edi
push ds
rcr byte [ecx*2 + 0x406268a1], 0xf
invalid
mov ch, 0x5d

Function at 0x40226a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push edi
mov byte [ebp - 0x104], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 4], 0
mov eax, 0x4021d6
sub eax, 0x401cf5
mov dword [ebp - 4], eax
push 8
push 0x408008
lea ecx, [ebp - 0x104]
push ecx
call fcn.00406350
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
push 0x401cf5
lea eax, [ebp - 0x104]
push eax
call fcn.00406464
add esp, 0xc
push 0x100
push 0
lea ecx, [ebp - 0x104]
push ecx
call fcn.00406890
add esp, 0xc
call fcn.00401d3d
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x406464
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
jmp 0x40648a
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp + 0x10]
jge 0x40654c
mov edx, dword [ebp - 0xc]
add edx, 1
and edx, 0x800000ff
jns 0x4064ac
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax]
mov edx, dword [ebp - 0x10]
add edx, ecx
and edx, 0x800000ff
jns 0x4064ce
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov byte [ebp - 4], cl
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
mov al, byte [ebp - 4]
mov byte [edx], al
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x40651d
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 8], edx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 4], al
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp - 4]
and eax, 0xff
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
mov byte [ecx], dl
jmp 0x406481
mov esp, ebp
pop ebp
ret
Function at 0x489944
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004896c4
Function at 0x48cfa4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], edx
mov dword [esi], 0
mov dword [ebp + 0xc], 0x40000000
nop
mov ecx, dword [esi]
mov eax, edi
sub eax, ecx
cmp eax, 0x40000000
cmova eax, dword [ebp + 0xc]
push eax
lea eax, [ecx + edx]
push eax
push dword [ebx + 0x14]
call fcn.00499c99
add esp, 0xc
test eax, eax
jle 0x48cff2
add dword [esi], eax
mov edx, dword [ebp - 4]
cmp dword [esi], edi
jb 0x48cfc4
test eax, eax
jns 0x48d018
call fcn.00499c45
push dword [eax]
call fcn.00499af9
push eax
or edx, 0xffffffff
mov ecx, ebx
call fcn.0048cec4
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x48d023
mov dword [ebx + 0x40], 1
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x495c04
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebx]
mov eax, esi
xor eax, dword [ebp + 8]
mov ecx, dword [ebx + 8]
and eax, 0xff
shr esi, 8
mov eax, dword [edx + eax*4]
xor eax, esi
mov dword [ebx], eax
movzx eax, al
add eax, dword [ebx + 4]
imul eax, eax, 0x8088405
pop esi
inc eax
mov dword [ebx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [edx + eax*4]
mov eax, dword [ebp + 8]
mov dword [ebx + 8], ecx
pop ebx
pop ebp
ret
Function at 0x495ca4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1002af4c]
push ebx
inc eax
mov dword [ebp - 8], edx
mov dword [0x1002af4c], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push esi
push edi
cmp eax, 1
jne 0x495cda
push 0
call fcn.0049bbed
xor eax, 0xbb40e64e
push eax
call fcn.0049bbdd
add esp, 8
push dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov ecx, ebx
mov edx, edi
call fcn.00495c54
add esp, 4
xor esi, esi
lea ebx, [ebx]
call fcn.0049bbbc
mov edx, eax
mov ecx, edi
sar edx, 7
and edx, 0xff
mov dword [ebp - 0xc], edx
call fcn.00495be4
push edx
mov edx, dword [ebp + 0x10]
mov ecx, edi
mov ebx, eax
call fcn.00495c04
mov eax, dword [ebp - 0xc]
add esp, 4
xor al, bl
mov byte [ebp + esi - 0x1c], al
inc esi
cmp esi, 0xa
jl 0x495cf4
mov ecx, dword [ebp - 0x10]
push edx
mov edx, edi
call fcn.00495c54
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp + 0x10]
add esp, 4
xor esi, esi
sub eax, ecx
mov dword [ebp - 0x10], eax
mov ecx, edi
call fcn.00495be4
movzx ecx, byte [ebp + esi - 0x1c]
mov ebx, eax
push ecx
mov ecx, edi
call fcn.00495c04
mov eax, dword [ebp - 0x10]
add esp, 4
mov cl, byte [ebp + esi - 0x1c]
add eax, esi
xor cl, bl
inc esi
mov byte [ebp + eax - 0x1c], cl
cmp esi, 0xa
jl 0x495d4b
mov ecx, edi
call fcn.00495be4
mov edi, dword [ebp + 0x14]
mov ebx, edi
shr ebx, 0x10
movzx ecx, bl
push ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
call fcn.00495c04
mov eax, dword [ebp - 8]
xor bl, byte [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
mov byte [esi + eax], bl
call fcn.00495be4
mov ecx, dword [ebp + 0xc]
mov ebx, eax
shr edi, 0x18
push edi
call fcn.00495c04
mov ecx, dword [ebp - 8]
add esp, 8
mov eax, edi
xor al, bl
mov byte [esi + ecx + 1], al
lea eax, [esi + 2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4974b4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x100ac], ebx
je 0x49751a
cmp dword [esi + 0x7c], ebx
jbe 0x49751a
mov ecx, 0xffffff5c
lea eax, [esi + 0x100d0]
sub ecx, esi
lea edi, [esi + 0xa4]
mov dword [ebp - 4], ecx
mov edi, edi
mov ecx, eax
call fcn.00495be4
movzx ecx, byte [edi]
mov ebx, eax
mov edx, dword [esi + 0x100dc]
push ecx
lea ecx, [esi + 0x100d0]
call fcn.00495c04
xor byte [edi], bl
add esp, 4
mov eax, dword [ebp - 4]
inc edi
add eax, edi
cmp eax, dword [esi + 0x7c]
lea eax, [esi + 0x100d0]
jb 0x4974e4
xor ebx, ebx
mov edi, dword [esi + 0x7c]
lea eax, [esi + 0xa4]
push edi
push eax
push dword [esi + 0x2c]
mov eax, dword [esi + 8]
push dword [esi + 0x1c]
call eax
add esp, 0x10
mov dword [esi + 0x7c], 0
or ecx, 0xffffffff
cmp eax, edi
cmovne ebx, ecx
add dword [esi + 0x100c0], edi
mov ecx, dword [esi + 0x48]
mov eax, ebx
adc dword [esi + 0x100c4], 0
add dword [esi + 0x100c8], ecx
pop edi
adc dword [esi + 0x100cc], 0
mov dword [esi + 0x48], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4980f4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x498119
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x498131
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x498160
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x4981a2
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x498276
sub edx, 0x10000
js 0x498276
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x498188
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x498188
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x4981f9
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x4981f6
add edx, 8
jne 0x4981dd
jmp 0x498267
add edx, 4
test eax, 0xffff
jne 0x498206
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x498267
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x49823a
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x498188
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x498276
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x498188
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x498287
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x100030b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x10009de8
call fcn.100099f0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.10003ce5
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x100030dc
push edi
call esi
cmp eax, 0xffffffff
jne 0x1000311e
test ebx, ebx
je 0x1000311b
lea ecx, [ebp - 0x18]
call fcn.10001d15
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.10003dee
test al, al
push dword [ebp - 0x18]
je 0x10003115
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.10002447
pop ecx
mov eax, esi
jmp 0x1000311e
call fcn.10002447
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x100036ce
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push edi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100036f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x100036f8
xor al, al
jmp 0x10003718
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.10009a40
mov ecx, eax
xor eax, eax
add ecx, edi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop edi
leave
ret 4

Function at 0x10003e24
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x10009ea8
call fcn.100099f0
sub esp, 0x48
push ebx
push esi
mov ebx, edx
mov esi, ecx
xor ecx, ecx
push edi
mov eax, dword [ebx]
mov dword [ebx + 4], ecx
mov dword [ebp - 0x14], ebx
mov word [eax], cx
mov di, word [esi]
cmp di, cx
mov dword [ebp - 0x18], edi
je 0x100041c7
cmp di, 0x2e
jne 0x10003e76
mov ax, word [esi + 2]
cmp ax, cx
je 0x100041c7
cmp ax, di
jne 0x10003e76
cmp word [esi + 4], cx
je 0x100041c7
mov ecx, esi
call fcn.10003a8c
test al, al
je 0x10003f1f
cmp word [esi + 4], 0x2e
je 0x100041c7
lea ecx, [esi + 8]
call fcn.10003d83
test al, al
je 0x100041c7
push esi
lea ecx, [ebp - 0x24]
call fcn.10001d58
mov ecx, dword [ebp - 0x24]
and dword [ebp - 4], 0
call fcn.10003c7e
mov edi, eax
invalid

Function at 0x10004747
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7ec
push ebx
push esi
push edi
call fcn.10003f25
inc ebx

Function at 0x10004757
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7ec
push ebx
push esi
push edi
call fcn.10003f25
inc ebx