joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4081f0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6296b3
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x6b6224]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 4], 0
push esi
push 2
mov dword [ebp - 0x138], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
or ebx, 0xffffffff
cmp edi, ebx
je 0x4082fb
lea eax, [ebp - 0x138]
push eax
push edi
call sub.KERNEL32.dll_Process32First
cmp eax, 1
jne 0x4082f4
nop dword [eax]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x13c]
call fcn.00404650
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 1
test eax, eax
je 0x40833a
push eax
push dword [ebp - 0x13c]
call fcn.0060f5a1
add esp, 8
test eax, eax
jne 0x4082bd
push dword [ebp - 0x130]
push eax
push 0x401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
mov edx, dword [ebp - 0x13c]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4082de
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x138]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
je 0x408260
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40831a
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006052fe
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00402290
int3
Function at 0x408350
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6296e8
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x6b6224]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004df0b4
push 0x63b1e0
mov edi, dword [eax + 8]
movzx eax, word [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x4083c5
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.00408800
mov ecx, dword [esi]
mov eax, dword [esi + 4]
push edi
sub eax, ecx
push ebx
push eax
push ecx
call fcn.00404d30
lea eax, [ebp + 8]
push 0x63b1e8
push eax
call fcn.00404ab0
push dword [eax]
mov dword [ebp - 4], 0
call fcn.00412030
mov edx, dword [ebp + 8]
add esp, 0x1c
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408421
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
push eax
push ecx
call fcn.00411f30
add esp, 8
test al, al
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40b760
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x629960
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x6b6224]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
call fcn.0040dd70
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1c], esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x40b7b2
mov eax, dword [ecx]
jmp 0x40b7b4
mov eax, ecx
push 4
push str.1835
mov byte [eax], 0
call fcn.00404090
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
call fcn.00405990
add esp, 4
mov ecx, dword [eax]
mov byte [ebp - 4], 1
mov byte [ebp - 4], 2
call fcn.00406140
mov esi, dword [ebp - 0x20]
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x40b815
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40b815
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x40b815
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x1e
push 0x1f4
call edi
sub esi, 1
jne 0x40b820
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.0040bb30
push ecx
mov eax, esp
mov dword [ebp - 4], 3
push 0x63b734
push eax
call fcn.00404ab0
add esp, 8
mov ecx, ebx
call fcn.004081f0
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call esi
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.0040ba10
mov byte [ebp - 4], 4
xor ebx, ebx
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x40b898
lea esi, [eax + 0xa]
nop
push 0x3e8
call edi
sub esi, 1
jne 0x40b880
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc ebx
cmp ebx, 0x3c
jb 0x40b872
mov esi, dword [ebp - 0x18]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40b8c2
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40b8c2
mov ecx, dword [esi + 0x1c]
push 1
call fcn.004df97a
mov edx, dword [ebp - 0x10]
or ebx, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b8e3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40b902
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 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
Function at 0x40b920
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x629999
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x6b6224]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.004d0a25
mov ecx, eax
test ecx, ecx
jne 0x40b969
push 0x80004005
call fcn.00402290
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x40b9b7
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x40b9b7
push ecx
mov ecx, esi
call fcn.004028a0
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40ba10
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6299e1
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6b6224]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], 0
push dword [esi + 0x14]
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40ba5e
push eax
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esi + 0x14]
sub eax, 0x10
push eax
call fcn.00402ac0
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push 0x63b5b4
push eax
mov dword [ebp - 0x10], 1
call fcn.00404ab0
add esp, 0xc
mov edi, dword [eax]
mov ecx, 1
mov eax, dword [esi]
mov dword [ebp - 4], 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x800
or eax, ecx
jge 0x40babc
push 0x800
mov ecx, esi
call fcn.00402430
push edi
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov edx, dword [ebp - 0x14]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bae4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
test eax, eax
je 0x40bafa
push dword [eax - 8]
push eax
call fcn.0060ef15
add esp, 8
test eax, eax
js 0x40bb1f
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40bb1f
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov byte [eax + ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00402290
int3
Function at 0x40bb30
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6299e1
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6b6224]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], 0
push dword [esi + 0x14]
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40bb7e
push eax
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esi + 0x14]
sub eax, 0x10
push eax
call fcn.00402ac0
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push 0x63b554
push eax
mov dword [ebp - 0x10], 1
call fcn.00404ab0
add esp, 0xc
mov edi, dword [eax]
mov ecx, 1
mov eax, dword [esi]
mov dword [ebp - 4], 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x800
or eax, ecx
jge 0x40bbdc
push 0x800
mov ecx, esi
call fcn.00402430
push edi
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov edx, dword [ebp - 0x14]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bc04
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
test eax, eax
je 0x40bc1a
push dword [eax - 8]
push eax
call fcn.0060ef15
add esp, 8
test eax, eax
js 0x40bc3f
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40bc3f
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov byte [eax + ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00402290
int3

Function at 0x40bf00
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x629a88
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6b6224]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp + 8]
push 0
call fcn.004da20a
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.0040bb30
push ecx
mov eax, esp
mov dword [ebp - 4], 0
push 0x63b750
push eax
call fcn.00404ab0
add esp, 8
mov ecx, esi
call fcn.004081f0
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40bf9b
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40bf98
lea esi, [eax + 0xa]
push 0x3e8
call edi
sub esi, 1
jne 0x40bf86
inc ebx
cmp ebx, 0x3c
jb 0x40bf76
mov esi, dword [ebp - 0x10]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov edx, dword [ebp + 8]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bfc6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 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
Function at 0x40fc70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004df405

Function at 0x410800
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62a240
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x6b6224]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x414]
mov edx, dword [ebp + 8]
xor eax, eax
push eax
push 0x80
push 3
push eax
push 1
push accept
mov ecx, 0x100
mov dword [ebp - 0x46c], 0
rep stosd dword es:[edi], eax
push edx
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x480], 0x67452301
mov dword [ebp - 0x47c], 0xefcdab89
mov dword [ebp - 0x478], 0x98badcfe
mov dword [ebp - 0x474], 0x10325476
mov dword [esi], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x410937
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x484]
push 0
push eax
push 0x400
lea eax, [ebp - 0x414]
push eax
push edi
call ebx
test eax, eax
je 0x41090e
mov eax, dword [ebp - 0x484]
test eax, eax
je 0x41090e
add dword [esi], eax
lea ecx, [ebp - 0x480]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004112a0
push 0
lea eax, [ebp - 0x484]
push eax
push 0x400
lea eax, [ebp - 0x414]
push eax
push edi
call ebx
test eax, eax
jne 0x4108d3
lea ecx, [ebp - 0x480]
call fcn.00410710
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x428]
push eax
call fcn.00410ad0
add esp, 4
jmp 0x410939
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006052fe
mov esp, ebp
pop ebp
ret

Function at 0x410960
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62a270
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x6b6224]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x413]
push 0x3ff
push 0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x46c], 0
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x480], 0x67452301
mov dword [ebp - 0x47c], 0xefcdab89
mov dword [ebp - 0x478], 0x98badcfe
mov dword [ebp - 0x474], 0x10325476
call fcn.00607b70
add esp, 0xc
mov byte [ebp - 0x414], 0x65
lea eax, [ebp - 0x414]
lea ecx, [ebp - 0x480]
push 1
push eax
call fcn.004112a0
lea ecx, [ebp - 0x480]
mov dword [esi], 1
call fcn.00410710
lea eax, [ebp - 0x428]
push eax
call fcn.00410ad0
add esp, 4
jmp 0x410a32
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006052fe
mov esp, ebp
pop ebp
ret
Function at 0x410a50
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x6b6224]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x70], 0x67452301
mov dword [ebp - 0x6c], 0xefcdab89
mov dword [ebp - 0x68], 0x98badcfe
mov dword [ebp - 0x64], 0x10325476
call fcn.004112a0
lea ecx, [ebp - 0x70]
call fcn.00410710
lea eax, [ebp - 0x18]
push eax
call fcn.00410ad0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop esi
call fcn.006052fe
mov esp, ebp
pop ebp
ret

Function at 0x411370
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62a2be
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6b6224]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push dword [ebp + 8]
mov dword [ebp - 4], 0
push dword [ebp + 0xc]
call fcn.004df1a3
mov eax, dword [ebp + 0x10]
lea esi, [edi + 0xb0]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
push eax
mov dword [edi], vtable.CMessageDlg.0
mov dword [ebp + 8], esi
call fcn.00402ac0
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 2
call fcn.004df0b4
call fcn.004df0b4
push 0x453
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov edx, dword [ebp + 0x10]
mov dword [edi + 0xb4], eax
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x411418
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x412030
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x6b6224]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x100
xor edi, edi
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.00607b70
mov ebx, dword [ebp + 8]
add esp, 0xc
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x412065
sub esi, ecx
xor ecx, ecx
mov eax, ecx
mov byte [ecx + 0x6baa58], cl
xor edx, edx
div esi
mov al, byte [edx + ebx]
mov byte [ebp + ecx - 0x104], al
inc ecx
cmp ecx, 0x100
jl 0x412070
xor esi, esi
nop dword [eax]
nop word [eax + eax]
mov dl, byte [esi + 0x6baa58]
movsx eax, byte [ebp + esi - 0x104]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x4120c5
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [edi + 0x6baa58]
mov byte [esi + 0x6baa58], al
inc esi
mov byte [edi + 0x6baa58], dl
cmp esi, 0x100
jl 0x4120a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006052fe
mov esp, ebp
pop ebp
ret
Function at 0x432e90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov ecx, dword [eax + 0xc]
push edi
test ecx, ecx
je 0x432ee3
mov al, byte [ebx]
xor esi, esi
mov edi, ebx
test al, al
je 0x432ece
nop dword [eax]
movzx eax, al
lea ecx, [esi*8]
lea edi, [edi + 1]
movzx edx, byte [eax + 0x642318]
mov al, byte [edi]
xor edx, ecx
xor esi, edx
test al, al
jne 0x432eb0
mov ecx, dword [ebp + 8]
mov eax, esi
xor edx, edx
div dword [ecx]
mov edi, dword [ecx + 0xc]
mov esi, dword [edi + edx*8 + 4]
mov edi, dword [edi + edx*8]
jmp 0x432eeb
mov esi, dword [eax + 8]
xor edx, edx
mov edi, dword [eax + 4]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
test edi, edi
je 0x432f0b
push ebx
push dword [esi + 0xc]
dec edi
call fcn.004230b0
add esp, 8
test eax, eax
je 0x432f12
mov esi, dword [esi]
test edi, edi
jne 0x432ef4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x4399a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov al, byte [esi + 0x42]
cmp al, 3
jb 0x4399cd
cmp al, 4
jne 0x4399bc
mov eax, dword [esi + 0x3c]
pop esi
pop ebx
pop ebp
ret
push dword [esi + 0x30]
call fcn.00421100
add esp, 4
mov dword [esi + 0x30], ebx
mov byte [esi + 0x42], bl
mov al, byte [esi + 0x44]
push edi
test al, al
js 0x439a72
je 0x439ab7
nop
mov cl, byte [esi + 0x44]
movsx eax, cl
dec cl
mov eax, dword [esi + eax*4 + 0x78]
mov byte [esi + 0x44], cl
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x18], 0x40
mov ebx, dword [ecx + 0x10]
mov dword [ebp + 8], ebx
je 0x439a40
dec dword [ebx + 0x78]
mov eax, dword [ebx + 0x88]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebx + 0x3c]
mov dword [ebx + 0x88], ecx
push dword [ecx + 4]
mov eax, dword [eax + 0x98]
mov ecx, dword [ecx + 0x14]
mov ebx, dword [edi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.00605a20
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
mov ebx, dword [ebp + 8]
add esp, 0x10
jmp 0x439a49
push ecx
call fcn.004607d0
add esp, 4
cmp dword [ebx + 0x78], 0
jne 0x439a64
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x439a64
push ebx
call fcn.0043dae0
add esp, 4
cmp byte [esi + 0x44], 0
jne 0x4399e0
xor ebx, ebx
jmp 0x439ab7
mov ecx, dword [esi + 0x34]
test ecx, ecx
jne 0x439a83
pop edi
mov byte [esi + 0x42], bl
xor eax, eax
pop esi
pop ebx
pop ebp
ret
movzx eax, byte [esi + 0x41]
lea edi, [esi + 0x78]
push eax
mov eax, dword [esi]
push 0
push edi
push ecx
push dword [eax + 4]
call fcn.00436b50
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x439aab
pop edi
mov byte [esi + 0x42], 0
pop esi
pop ebx
pop ebp
ret
mov byte [esi + 0x44], 0
mov eax, dword [edi]
mov al, byte [eax + 2]
mov byte [esi + 0x45], al
mov edx, dword [esi + 0x78]
cmp byte [edx], 0
je 0x439b35
movzx eax, byte [edx + 2]
xor ecx, ecx
cmp dword [esi + 0x48], ecx
sete cl
cmp ecx, eax
jne 0x439b35
xor eax, eax
mov word [esi + 0x50], ax
and byte [esi + 0x40], 0xf1
mov word [esi + 0x24], ax
cmp word [edx + 0x12], ax
jbe 0x439aee
pop edi
mov byte [esi + 0x42], 1
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
cmp byte [edx + 5], al
jne 0x439b2b
cmp dword [edx + 0x54], 1
je 0x439b09
pop edi
pop esi
pop ebx
mov dword [ebp + 8], 0xe5d5
pop ebp
jmp fcn.0044e100
movzx ecx, byte [edx + 6]
mov eax, dword [edx + 0x38]
mov eax, dword [ecx + eax + 8]
bswap eax
push eax
push esi
mov byte [esi + 0x42], 1
call fcn.004397c0
add esp, 8
mov ebx, eax
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
mov byte [esi + 0x42], al
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
push 0x6a0bb0
push 0xe5ca
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.00423200
add esp, 0x10
mov eax, 0xb
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x441aa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ecx*8]
mov edi, 0x80
cmp eax, 0x400
cmovbe edi, ecx
cmp edi, dword [esi]
jne 0x441acc
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x6badd0]
test eax, eax
je 0x441ad7
call eax
push ebx
lea eax, [edi*8]
push 0
push eax
call fcn.0045cf90
mov ecx, dword [0x6badd4]
add esp, 8
mov ebx, eax
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x441afb
call ecx
test ebx, ebx
jne 0x441b08
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push dword [esi + 0xc]
call fcn.00421100
push ebx
mov dword [esi + 0xc], ebx
call dword [0x69d818]
shr eax, 3
mov dword [ebp + 0xc], eax
mov dword [esi], eax
lea ecx, [eax*8]
push ecx
push 0
push ebx
call fcn.00607b70
mov ecx, dword [esi + 8]
add esp, 0x14
mov dword [esi + 8], 0
test ecx, ecx
je 0x441be1
mov edi, dword [ecx + 0xc]
xor ebx, ebx
mov al, byte [edi]
test al, al
je 0x441b70
movzx eax, al
lea edx, [ebx*8]
lea edi, [edi + 1]
movzx esi, byte [eax + 0x642318]
mov al, byte [edi]
xor esi, edx
xor ebx, esi
test al, al
jne 0x441b52
xor edx, edx
mov edi, dword [ecx]
mov eax, ebx
div dword [ebp + 0xc]
mov eax, dword [ebp - 4]
lea esi, [eax + edx*8]
test esi, esi
je 0x441bbb
mov eax, dword [esi]
test eax, eax
je 0x441b8e
mov edx, dword [esi + 4]
jmp 0x441b90
xor edx, edx
inc eax
mov dword [esi + 4], ecx
mov dword [esi], eax
test edx, edx
je 0x441bbb
mov dword [ecx], edx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
je 0x441bb0
mov dword [eax], ecx
mov dword [edx + 4], ecx
jmp 0x441bd7
mov eax, dword [ebp + 8]
mov dword [eax + 8], ecx
mov dword [edx + 4], ecx
jmp 0x441bd7
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x441bcd
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [esi + 8], ecx
mov ecx, edi
test edi, edi
jne 0x441b47
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret