joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b85c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.0040b79d
cmp eax, esi
jne 0x40b8d4
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x40b89d
lea eax, [ebp - 0x110]
push eax
call fcn.0040b85c
cmp eax, esi
jne 0x40b8d3
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 0x100
call edi
test eax, eax
lea ecx, [ebp - 4]
je 0x40b88d
call fcn.0040b786
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 4]
mov esi, eax
call fcn.0040b786
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x40bca0
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x40bcab
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x40da5a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040dca0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40daf5
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4298c0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40daf5
cmp eax, 1
je 0x40db16
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40daf5
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40dac2
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40daf1
xor eax, eax
inc eax
jmp 0x40db35
cmp edi, eax
jae 0x40daf9
xor eax, eax
jmp 0x40db35
cmp eax, esi
jae 0x40db00
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4298c0]
jmp 0x40db19
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f0e1
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4206a0
call fcn.0040db40
mov edi, 0x94
mov eax, edi
call fcn.0040dca0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4298c0], ecx
mov eax, dword [esi + 4]
mov dword [0x4298cc], eax
mov edx, dword [esi + 8]
mov dword [0x4298d0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4298c4], esi
cmp ecx, 2
je 0x40f141
or esi, 0x8000
mov dword [0x4298c4], esi
shl eax, 8
add eax, edx
mov dword [0x4298c8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40f17c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f17c
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40f194
cmp eax, 0x20b
je 0x40f181
mov dword [ebp - 0x1c], esi
jmp 0x40f1a8
cmp dword [ecx + 0x84], 0xe
jbe 0x40f17c
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40f1a2
cmp dword [ecx + 0x74], 0xe
jbe 0x40f17c
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040ff7d
pop ecx
test eax, eax
jne 0x40f1bc
push 0x1c
call fcn.0040f0bd
pop ecx
call fcn.00410fa6
test eax, eax
jne 0x40f1cd
push 0x10
call fcn.0040f0bd
pop ecx
call fcn.0041286c
mov dword [ebp - 4], esi
call fcn.0041266e
test eax, eax
jge 0x40f1e6
push 0x1b
call fcn.0040f098
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42b1b0], eax
call fcn.0041254c
mov dword [0x4298b0], eax
call fcn.004124aa
test eax, eax
jge 0x40f20c
push 8
call fcn.0040f098
pop ecx
call fcn.00412277
test eax, eax
jge 0x40f21d
push 9
call fcn.0040f098
pop ecx
push 1
call fcn.0040f69c
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40f233
push eax
call fcn.0040f098
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041221a
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40f254
movzx eax, word [ebp - 0x40]
jmp 0x40f257
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040c837
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40f275
push edi
call fcn.0040f7c9
call fcn.0040f7eb
jmp 0x40f2a7
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040db7b
ret
Function at 0x40f706
Capabilities:
Terminate process

Disassembly:
push 8
push 0x420718
call fcn.0040db40
push 8
call fcn.0040ff32
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x429900], esi
jne 0x40f73a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4298fc], esi
mov al, byte [ebp + 0x10]
mov byte [0x4298f8], al
cmp dword [ebp + 0xc], edi
jne 0x40f784
cmp dword [0x42b1a8], edi
je 0x40f774
mov eax, dword [0x42b1a4]
sub eax, 4
mov dword [0x42b1a4], eax
cmp eax, dword [0x42b1a8]
jb 0x40f774
mov eax, dword [eax]
cmp eax, edi
je 0x40f755
call eax
jmp 0x40f755
push 0x4260e0
mov eax, 0x4260d8
call fcn.0040f684
pop ecx
push 0x4260ec
mov eax, 0x4260e4
call fcn.0040f684
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40f7b5
cmp dword [ebp + 0x10], edi
jne 0x40f7c3
mov dword [0x429900], esi
push dword [ebp + 8]
call fcn.0040f642
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40f7c2
push 8
call fcn.0040fe7d
pop ecx
ret
call fcn.0040db7b
ret
Function at 0x410b0c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x410b3a
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x410b41
cmp ebx, dword [eax + 4]
jae 0x410b41
xor eax, eax
jmp 0x410d31
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x410b52
xor eax, eax
inc eax
jmp 0x410d30
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x410b68
cmp ecx, edx
jae 0x410cad
cmp dword [eax + 4], 0
je 0x410b71
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x410b59
cmp dword [ebp + 8], 0
je 0x410b93
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x410cad
cmp eax, esi
jae 0x410cad
mov eax, dword [0x429a60]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x410bb8
cmp dword [esi*4 + 0x429a68], edi
je 0x410cb1
inc esi
cmp esi, eax
jl 0x410ba6
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x410d2d
cmp dword [ebp - 8], 0x1000000
jne 0x410d2d
test byte [ebp - 0xc], 0xcc
je 0x410c36
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x410d2d
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x410d2d
cmp word [eax + 0x18], 0x10b
jne 0x410d2d
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x410d2d
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x410c36
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x410c36
test byte [ecx + 0x27], 0x80
jne 0x410cad
push 1
push 0x429aa8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x410b4a
mov ecx, dword [0x429a60]
test ecx, ecx
mov edx, ecx
jle 0x410c6a
lea eax, [ecx*4 + 0x429a64]
cmp dword [eax], edi
je 0x410c6a
dec edx
sub eax, 4
test edx, edx
jg 0x410c5e
test edx, edx
jne 0x410c9b
push 0xf
pop ebx
cmp ecx, ebx
jg 0x410c77
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x410c8f
lea eax, [edx*4 + 0x429a68]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x410c7d
cmp ecx, 0x10
jge 0x410c9b
inc ecx
mov dword [0x429a60], ecx
push 0
push 0x429aa8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x410b4a
xor eax, eax
jmp 0x410d30
test esi, esi
jle 0x410b4a
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x429aa8
call ebx
test eax, eax
jne 0x410b4a
cmp dword [esi*4 + 0x429a68], edi
je 0x410d07
mov eax, dword [0x429a60]
lea esi, [eax - 1]
test esi, esi
jl 0x410cf5
cmp dword [esi*4 + 0x429a68], edi
je 0x410cf1
dec esi
jns 0x410ce5
test esi, esi
jge 0x410d05
cmp eax, 0x10
jge 0x410d00
inc eax
mov dword [0x429a60], eax
lea esi, [eax - 1]
jmp 0x410d07
je 0x410d1f
xor ecx, ecx
test esi, esi
jl 0x410d1f
lea eax, [ecx*4 + 0x429a68]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x410d0d
push 0
push 0x429aa8
call ebx
jmp 0x410b4a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411f06
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4269a8]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x426d70]
je 0x411f3b
inc eax
cmp eax, 0x13
jb 0x411f2c
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x426d70]
jne 0x412061
mov eax, dword [0x4298b8]
cmp eax, 1
je 0x412039
cmp eax, edx
jne 0x411f6b
cmp dword [0x4269a4], 1
je 0x412039
cmp ecx, 0xfc
je 0x412061
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x411fa1
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040efa0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040dce0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x411fd5
mov eax, edi
push eax
call fcn.0040dce0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x420c50
push edi
call fcn.00413fb0
add esp, 0x10
push edi
call fcn.0040dce0
push dword [esi + 0x426d74]
mov ebx, eax
call fcn.0040dce0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040dca0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040efa0
push edi
push ebx
call fcn.0040efb0
push 0x420c30
push ebx
call fcn.0040efb0
push dword [esi + 0x426d74]
push ebx
call fcn.0040efb0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00413eb5
add esp, 0x2c
jmp 0x412061
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x426d74]
push dword [esi]
call fcn.0040dce0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040f2e7
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x413eb5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x429cec], ebx
push esi
push edi
jne 0x413f35
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x413f70
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42115c
push edi
call esi
test eax, eax
mov dword [0x429cec], eax
je 0x413f70
push 0x42114c
push edi
call esi
push 0x421138
push edi
mov dword [0x429cf0], eax
call esi
cmp dword [0x4298c0], 2
mov dword [0x429cf4], eax
jne 0x413f35
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x429cfc], eax
je 0x413f35
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x429cf8], eax
mov eax, dword [0x429cf8]
test eax, eax
je 0x413f7a
call eax
test eax, eax
je 0x413f61
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x429cfc]
test eax, eax
je 0x413f61
test byte [ebp - 8], 1
jne 0x413f7a
cmp dword [0x4298cc], 4
jb 0x413f74
or byte [ebp + 0x12], 0x20
jmp 0x413f99
xor eax, eax
jmp 0x413fa9
or byte [ebp + 0x12], 4
jmp 0x413f99
mov eax, dword [0x429cf0]
test eax, eax
je 0x413f99
call eax
mov ebx, eax
test ebx, ebx
je 0x413f99
mov eax, dword [0x429cf4]
test eax, eax
je 0x413f99
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x429cec]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414118
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4269a8]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x414149
xor eax, eax
jmp 0x4142d2
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x42ae40]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x414185
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0041568f
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x414260
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x41429e
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x4141e9
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4141da
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x4141ba
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x414229
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x414232
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4141ab
jmp 0x414234
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x4142cd
cmp dword [ebp - 0x6c], edi
je 0x41429e
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x414293
call fcn.0040fd5a
mov dword [eax], 9
call fcn.0040fd63
mov dword [eax], esi
jmp 0x4142c8
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x414288
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x414234
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x414234
push dword [ebp - 0x6c]
call fcn.0040fd6c
pop ecx
jmp 0x4142c8
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4142b6
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x4142b6
xor eax, eax
jmp 0x4142d0
call fcn.0040fd5a
mov dword [eax], 0x1c
call fcn.0040fd63
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x4142d0
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0040f2e7
add ebp, 0x3a0
leave
ret
Function at 0x41acfb
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4269a8]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x41ad4a
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x41ad4a
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x41ad56
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0040f2e7
leave
ret 8

Function at 0x41c1a6
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x41c1db
cmp edi, dword [esi + 0xc]
jge 0x41c1db
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41c1db
cmp edi, dword [eax + 8]
jge 0x41c1db
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x41c1dd
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x41c289
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x41c2bd
jmp fcn.004163a9
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x41c32e
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x41c427
cmp eax, dword [edi + 0xc]
jge 0x41c427
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x41c37f
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x41c410
cmp dword [ebp + 0xc], ebx
je 0x41c410
jmp 0x41c3a9
push 0x10
call fcn.0041c072
cmp eax, ebx
je 0x41c395
mov ecx, eax
call fcn.0041c280
mov esi, eax
jmp 0x41c397
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x41c3c0
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x41c3d0
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x41c3e2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004163a9
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.0040d8d0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x41c422
cmp ecx, dword [esi + 8]
jge 0x41c422
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x41c428
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4db360
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4af548
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebp
push edi
mov edi, ecx
xor ebp, ebp
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x48]
push ebp
push eax
push ecx
lea ecx, [edi + 0x104]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.004d6260
test eax, eax
jne 0x4db3cc
push ebp
push 0x59effc
mov ecx, edi
call fcn.004da5e0
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
pop edi
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
mov edx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x50]
push esi
push ebp
push ebp
push ebx
lea ecx, [edx + 0x14]
call fcn.004d5c90
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.004c7b80
push ebx
mov dword [esp + 0x4c], ebp
call fcn.004d6410
add esp, 4
test eax, eax
je 0x4db46f
add esi, 0x18
push esi
call fcn.004c85d0
add esi, eax
push esi
call fcn.004c85d0
mov ecx, dword [esp + 0x60]
add esp, 8
cmp ecx, 3
lea eax, [esi + eax + 8]
ja 0x4db772
jmp dword [ecx*4 + 0x42ebb0]
mov eax, dword [esi]
push ebp
push eax
mov ecx, edi
call fcn.004da720
mov ebx, dword [esp + 0x58]
mov ebp, eax
lea edi, [esi + 0x18]
mov edx, dword [ebp + 0x28]
lea ecx, [ebx + ebx*4]
mov esi, edi
lea eax, [edx + ecx*4]
push esi
mov dword [esp + 0x5c], eax
call fcn.004c85d0
add esi, eax
push esi
call fcn.004c85d0
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x4db4c0
mov ecx, dword [esi + 0x1c]
push ecx
call dword [fcn.004b5598]
test eax, eax
je 0x4db4c0
mov eax, 1
jmp 0x4db4c2
xor eax, eax
cmp ebx, 8
jge 0x4db727
cmp ebx, 7
ja 0x4db772
jmp dword [ebx*4 + 0x42ebc0]
test eax, eax
jne 0x4db73a
mov ecx, dword [esp + 0x10]
push eax
push 0x59efe8
call fcn.004da5e0
push 6
call dword [ebp + 0x2c]
lea edx, [esp + 0x1c]
xor ecx, ecx
add ebx, 0xfffffff8
push edx
mov dword [esp + 0x20], ecx
push ebx
push esi
mov dword [esp + 0x2c], ecx
call eax
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
call fcn.004dbc80
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x2c], 0x5839f8
call fcn.004c7d80
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
mov edx, edi
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
Function at 0x4e4930
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5ba790]
xor edx, edx
cmp eax, edx
jne 0x4e4956
xor eax, eax
mov byte [eax + 0x5ba690], al
inc eax
cmp eax, 0x100
jl 0x4e493e
mov dword [0x5ba790], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5ba690
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4e49e7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4e49ba
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4e4988
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4e4a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4e4ab3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4e4a9a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret