joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435d7b
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4ab3e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
push esi
push edi
mov esi, edx
xor edi, edi
mov dword [ebp - 0x208], eax
cmp esi, edi
jne 0x435dac
or eax, 0xffffffff
jmp 0x435eee
cmp dword [ebp + 8], edi
jg 0x435db9
push 0xfffffffffffffffe
pop eax
jmp 0x435eee
cmp eax, edi
jne 0x435dc1
push 0xfffffffffffffffd
jmp 0x435db3
cmp dword [ebp + 0x10], edi
jg 0x435dca
push 0xfffffffffffffffc
jmp 0x435db3
cmp dword [ebp + 0x14], edi
jne 0x435dd3
push 0xfffffffffffffffb
jmp 0x435db3
cmp ecx, edi
jg 0x435ddb
push 0xfffffffffffffffa
jmp 0x435db3
cmp dword [ebp + 0x10], ecx
jge 0x435de4
push 0xfffffffffffffff9
jmp 0x435db3
xor edx, edx
xor ecx, ecx
mov al, byte [edx + esi]
mov byte [ebp + ecx - 0x204], al
lea eax, [edx + 1]
cdq
idiv dword [ebp + 8]
mov byte [ebp + ecx - 0x104], cl
inc ecx
cmp ecx, 0x100
jl 0x435de8
xor esi, esi
push ebx
movzx ecx, byte [ebp + edi - 0x204]
lea eax, [ebp + edi - 0x104]
mov dl, byte [eax]
movzx ebx, dl
add esi, ecx
add esi, ebx
and esi, 0x800000ff
jns 0x435e34
dec esi
or esi, 0xffffff00
inc esi
lea ecx, [ebp + esi - 0x104]
mov bl, byte [ecx]
inc edi
mov byte [ecx], dl
mov byte [eax], bl
cmp edi, 0x100
jl 0x435e0c
mov eax, dword [ebp + 0x18]
xor edi, edi
mov dword [ebp - 0x20c], edi
cmp eax, edi
jle 0x435eeb
mov esi, dword [ebp - 0x208]
mov ecx, dword [ebp + 0x14]
sub ecx, esi
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x208], eax
inc edi
and edi, 0x800000ff
jns 0x435e85
dec edi
or edi, 0xffffff00
inc edi
lea eax, [ebp + edi - 0x104]
movzx ecx, byte [eax]
add ecx, dword [ebp - 0x20c]
and ecx, 0x800000ff
jns 0x435ea5
dec ecx
or ecx, 0xffffff00
inc ecx
mov bl, byte [eax]
mov dword [ebp - 0x20c], ecx
lea ecx, [ebp + ecx - 0x104]
mov dl, byte [ecx]
mov byte [ecx], bl
mov byte [eax], dl
movzx ecx, byte [ecx]
movzx eax, dl
add eax, ecx
and eax, 0x800000ff
jns 0x435ed0
dec eax
or eax, 0xffffff00
inc eax
mov al, byte [ebp + eax - 0x104]
mov ecx, dword [ebp - 0x210]
xor al, byte [ecx + esi]
mov byte [esi], al
inc esi
dec dword [ebp - 0x208]
jne 0x435e74
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00440747
leave
ret
Function at 0x43675a
Capabilities:
Write file on windows

Disassembly:
push 0x80
mov eax, 0x47e6bb
call fcn.004514b0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], 0x4b8f3c
mov byte [ebp - 0x7c], bl
call fcn.0040881c
push ebx
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x6d], bl
call fcn.00436919
pop ecx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x3c], 8
mov eax, dword [ebp - 0x50]
jae 0x4367b8
lea eax, [ebp - 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 2
push ebx
push ebx
mov edi, 0x40000000
push edi
push eax
call esi
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
jne 0x43680e
push 1
lea ecx, [ebp - 0x6c]
call fcn.00436919
cmp dword [ebp - 0x58], 8
mov eax, dword [ebp - 0x6c]
pop ecx
jae 0x4367ec
lea eax, [ebp - 0x6c]
push ebx
push ebx
push 2
push ebx
push ebx
push edi
push eax
call esi
push ebx
push 1
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x78], eax
call fcn.0040573c
cmp dword [ebp - 0x78], 0xffffffff
je 0x4368f2
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 0x74]
push eax
push 4
push 0x497204
push dword [ebp - 0x78]
call esi
test eax, eax
je 0x4368e9
cmp dword [ebp - 0x74], 4
jne 0x4368e9
push ebx
lea eax, [ebp - 0x74]
push eax
push 0x10
push dword [ebp - 0x88]
push dword [ebp - 0x78]
call esi
test eax, eax
je 0x4368e9
cmp dword [ebp - 0x74], 0x10
jne 0x4368e9
xor eax, eax
mov byte [ebp - 0x34], bl
lea edi, [ebp - 0x33]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x8c]
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x43687a
mov eax, dword [eax]
push ecx
push eax
lea edx, [ebp - 0x34]
call fcn.0043cf39
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x74]
push eax
push 0x10
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x78]
call esi
test eax, eax
je 0x4368e9
cmp dword [ebp - 0x74], 0x10
jne 0x4368e9
xor eax, eax
mov byte [ebp - 0x24], bl
lea edi, [ebp - 0x23]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x84]
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x4368bf
mov eax, dword [eax]
push ecx
push eax
lea edx, [ebp - 0x24]
call fcn.0043cf39
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x74]
push eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x78]
call esi
test eax, eax
je 0x4368e9
cmp dword [ebp - 0x74], 0x10
jne 0x4368e9
mov byte [ebp - 0x6d], 1
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.0040573c
or dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x7c], bl
je 0x43690e
mov ecx, dword [ebp - 0x80]
call fcn.004077ef
mov al, byte [ebp - 0x6d]
call fcn.00451533
ret 0xc
Function at 0x4391ca
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
mov dword [ebp - 8], edi
cmp eax, ecx
jb 0x439259
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00441f40
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
sub eax, 2
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x439217
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
sub eax, 2
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x43923a
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x439384
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
cmp ecx, edx
jbe 0x439281
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x43928c
xor eax, eax
jmp 0x4392d7
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x4392a9
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
push edx
call fcn.0043b003
jmp 0x4392ba
cmp ecx, 2
jne 0x4392c1
push edx
push dword [edi + 0x30]
mov edx, dword [edi]
call fcn.00436f17
pop ecx
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
pop ecx
push dword [ebp - 4]
push dword [edi]
push eax
call fcn.00441f40
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edx, dword [esi + 0x74]
cmp edx, 3
jb 0x4392ff
mov edi, dword [esi + 0x6c]
add edi, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edi]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edi + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edx, 0x106
jae 0x439313
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x4391d5
mov ecx, dword [esi + 0x16c0]
mov eax, dword [esi + 0x3c]
cmp ecx, eax
jae 0x439384
mov edi, dword [esi + 0x6c]
add edi, edx
cmp ecx, edi
jae 0x439353
sub eax, edi
mov ebx, eax
mov eax, 0x102
cmp ebx, eax
jbe 0x439338
mov ebx, eax
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.00442320
add esp, 0xc
add ebx, edi
mov dword [esi + 0x16c0], ebx
jmp 0x439384
lea edx, [edi + 0x102]
cmp ecx, edx
jae 0x439384
sub edi, ecx
add edi, 0x102
sub eax, ecx
cmp edi, eax
jbe 0x43936d
mov edi, eax
mov eax, dword [esi + 0x38]
push edi
add eax, ecx
push 0
push eax
call fcn.00442320
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebx
leave
ret
Function at 0x439f7c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2aa4
call fcn.00442b90
mov eax, dword [0x4ab3e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00442320
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x20c]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x439fce
sub eax, ecx
sar eax, 1
test eax, eax
jle 0x43a002
push 0x5c
add eax, eax
pop ecx
cmp cx, word [ebp + eax - 0x20e]
je 0x43a002
mov word [ebp + eax - 0x20c], cx
xor ecx, ecx
mov word [ebp + eax - 0x20a], cx
push esi
push str.iphlpapi.dll
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00456ae9
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x2aa0], eax
test eax, eax
jne 0x43a036
xor al, al
jmp 0x43a162
push edi
push str.GetAdaptersInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43a121
lea ecx, [ebp - 0x2aa4]
push ecx
lea ecx, [ebp - 0x2a8c]
push ecx
mov dword [ebp - 0x2aa4], 0x2880
call eax
test eax, eax
jne 0x43a121
mov dword [ebp - 0x2a98], ebx
lea eax, [ebp - 0x2a94]
sub dword [ebp - 0x2a98], eax
lea esi, [ebp - 0x2a8c]
mov dword [ebp - 0x2a9c], 3
lea eax, [esi + 8]
push eax
call fcn.0043a173
pop ecx
mov ecx, eax
xor eax, eax
lea edi, [ebp - 0x2a94]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor edi, edi
mov edx, dword [ebp - 0x2a98]
lea eax, [ebp + edi - 0x2a94]
mov dl, byte [edx + eax]
cmp dl, byte [eax]
jne 0x43a0c4
inc edi
cmp edi, 6
jb 0x43a0a8
jmp 0x43a0dc
mov eax, dword [esi + 0x1a0]
cmp eax, 6
je 0x43a0d4
cmp eax, 0x17
jne 0x43a117
cmp dword [ebp - 0x2a9c], ecx
jle 0x43a117
mov al, byte [esi + 0x194]
mov byte [ebx], al
mov al, byte [esi + 0x195]
mov byte [ebx + 1], al
mov al, byte [esi + 0x196]
mov byte [ebx + 2], al
mov al, byte [esi + 0x197]
mov byte [ebx + 3], al
mov al, byte [esi + 0x198]
mov byte [ebx + 4], al
mov al, byte [esi + 0x199]
mov byte [ebx + 5], al
mov dword [ebp - 0x2a9c], ecx
mov esi, dword [esi]
test esi, esi
jne 0x43a08f
push dword [ebp - 0x2aa0]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
lea edi, [ebp - 0x2a94]
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, ebx
lea eax, [ebp - 0x2a94]
xor ecx, ecx
sub esi, eax
pop edi
lea eax, [ebp + ecx - 0x2a94]
mov dl, byte [esi + eax]
cmp dl, byte [eax]
jne 0x43a16f
inc ecx
cmp ecx, 6
jb 0x43a145
mov al, 1
xor ecx, ecx
test al, al
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00440747
leave
ret
xor al, al
jmp 0x43a15b
Function at 0x43a173
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x4ab3e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x120]
push eax
xor ebx, ebx
mov edi, 0x20019
push edi
push ebx
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x110], 3
mov dword [ebp - 0x11c], 0x104
mov dword [ebp - 0x118], 1
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x114], ebx
call esi
test eax, eax
jne 0x43a33f
push dword [ebp - 0x124]
lea eax, [ebp - 0x108]
push str._sConnection
push 0xffffffffffffffff
push 0x103
push eax
call fcn.00456dd6
add esp, 0x14
lea eax, [ebp - 0x10c]
push eax
push edi
push ebx
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x120]
call esi
test eax, eax
jne 0x43a333
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 4
pop eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
push ebx
push str.MediaSubType
push dword [ebp - 0x10c]
call esi
test eax, eax
jne 0x43a327
push 0x104
xor edi, edi
lea eax, [ebp - 0x108]
push ebx
inc edi
push eax
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x11c], 0x103
call fcn.00442320
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x118]
push eax
push ebx
push str.PnpInstanceID
push dword [ebp - 0x10c]
call esi
test eax, eax
jne 0x43a327
cmp dword [ebp - 0x114], edi
jne 0x43a311
push 3
mov esi, 0x498a58
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0044f45d
add esp, 0xc
test eax, eax
jne 0x43a2e7
mov dword [ebp - 0x110], ebx
jmp 0x43a327
cmp dword [ebp - 0x114], edi
jne 0x43a311
push 3
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0044f45d
add esp, 0xc
test eax, eax
je 0x43a311
mov dword [ebp - 0x110], 2
jmp 0x43a327
xor eax, eax
cmp dword [ebp - 0x114], 2
setne al
lea eax, [eax + eax + 1]
mov dword [ebp - 0x110], eax
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x110]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00440747
leave
ret
Function at 0x43d012
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4ab3e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
push edi
mov edi, edx
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
test eax, eax
je 0x43d05b
push eax
mov eax, dword [ebp + 0xc]
call fcn.0043cf79
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x14]
shr ecx, 3
push 0x38
mov dword [ebp - 8], eax
and ecx, 0x3f
pop eax
cmp ecx, eax
jb 0x43d07a
push 0x78
pop eax
sub eax, ecx
push 0x498d40
call fcn.0043cf79
lea eax, [ebp - 0xc]
push eax
push 8
pop eax
call fcn.0043cf79
mov ecx, dword [ebp - 4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
xor ecx, ebp
pop esi
call fcn.00440747
leave
ret 8

Function at 0x440747
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ab3e0]
jne 0x440751
repz ret
jmp fcn.00442bbb
Function at 0x44a77c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ab3e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00445685
and dword [ebp - 0x14], 0
cmp dword [0x4b6350], 0
mov dword [ebp - 0x18], eax
jne 0x44a82f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x44a8d7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x44a8d7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4b6350], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4b6354], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4b6358], eax
call edi
push eax
call esi
mov dword [0x4b6360], eax
test eax, eax
je 0x44a82f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4b635c], eax
mov eax, dword [0x4b635c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x44a888
cmp dword [0x4b6360], ecx
je 0x44a888
push eax
call esi
push dword [0x4b6360]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x44a888
test ebx, ebx
je 0x44a888
call edi
test eax, eax
je 0x44a87f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x44a87f
test byte [ebp - 8], 1
jne 0x44a888
or dword [ebp + 0x10], 0x200000
jmp 0x44a8bb
mov eax, dword [0x4b6354]
cmp eax, dword [ebp - 0x18]
je 0x44a8bb
push eax
call esi
test eax, eax
je 0x44a8bb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x44a8bb
mov eax, dword [0x4b6358]
cmp eax, dword [ebp - 0x18]
je 0x44a8bb
push eax
call esi
test eax, eax
je 0x44a8bb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4b6350]
call esi
test eax, eax
je 0x44a8d7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x44a8d9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00440747
leave
ret
Function at 0x45f590
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x477e28
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ab3e0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [0x4ac728]
cmp eax, 0xffffffff
jne 0x45f5c5
xor ebx, ebx
jmp 0x45f5ce
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], 0
test ebx, ebx
je 0x45f611
mov edi, edi
cmp dword [ebx + 0x18], 0
jne 0x45f657
cmp dword [ebx + 0xc], 0
jne 0x45f660
push 0x45e6d0
push 0x4b67b8
call fcn.0045e8f0
mov eax, dword [0x4ac728]
add esp, 8
cmp eax, 0xffffffff
je 0x45f611
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x24], 0xffffffff
test ebx, ebx
je 0x45f643
lea edx, [ebx + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x45f643
mov edx, dword [ebx]
mov eax, dword [edx]
push 0
mov ecx, ebx
call eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
cmp dword [ebx + 0xc], 0
je 0x45f6a8
lea ecx, [ecx]
mov edi, dword [ebx + 0xc]
mov eax, dword [edi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x45f692
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov esi, dword [edi]
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebx + 0xc], 0
jne 0x45f660
mov ebp, dword [ebx + 0x14]
mov esi, dword [ebp]
cmp esi, ebp
je 0x45f5e0
cmp byte [esi + 0x1d], 0
mov edi, esi
jne 0x45f6f8
mov eax, dword [esi + 8]
cmp byte [eax + 0x1d], 0
jne 0x45f6dd
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x1d], 0
jne 0x45f6f8
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x1d], 0
je 0x45f6d1
jmp 0x45f6f8
mov eax, dword [esi + 4]
cmp byte [eax + 0x1d], 0
jne 0x45f6f6
cmp esi, dword [eax + 8]
jne 0x45f6f6
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x1d], 0
je 0x45f6e6
mov esi, eax
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x45f70e
mov eax, dword [edi + 0x18]
test eax, eax
je 0x45f70e
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [ebx + 0x10]
call fcn.00426a92
cmp esi, ebp
jne 0x45f6b6
jmp 0x45f5e0
Function at 0x45f7c0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x20]
push ecx
push 4
push eax
push 0x45f730
push 0
push 0
call fcn.00441e99
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x45f7e9
pop edi
xor al, al
pop ebx
ret
mov edx, dword [edi]
push esi
add edx, 4
mov eax, 1
lock xadd dword [edx], eax
mov esi, dword [edi]
mov eax, dword [esi + 8]
test eax, eax
je 0x45f80d
cmp eax, 0xffffffff
je 0x45f80d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop edi
mov al, 1
pop ebx
ret
Function at 0x460cd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4780a0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x4ab3e0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi + 4], 0
push 0x486700
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0
mov dword [esi], vtable.std::codecvt_wchar_t__char__int_.0
call fcn.004168af
mov byte [esp + 0x38], 1
call fcn.0045e121
lea ecx, [esp + 0xc]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov byte [esp + 0x38], 0
call fcn.0041693e
mov dword [esi], vtable.windows_file_codecvt.0
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push edi
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.0040143b
mov ebx, eax
mov dh, byte [ebx]
mov dl, 1
mov ecx, dword [edi]
or dh, dh
jne 0x4013f3
inc ebx
push ecx
mov eax, esp
push eax
push 0
push dword [ebx]
call fcn.004034d1
pop ecx
jecxz 0x401401
push eax
mov al, byte [eax]
xor al, 0xb5
mov byte [esi], al
pop eax
inc esi
inc eax
loop 0x4013f5
or dh, dh
jne 0x40140d
inc dl
mov cl, dl
cmp ecx, dword [edi]
jl 0x4013e0
mov byte [esi], 0
sub esi, dword [ebp + 0xc]
mov dword [edi], esi
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x401843
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xe0
push 0x403d28
call fcn.00401519
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
push 0xfffffffffffffff4
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
call ebx
mov dword [ebp - 0x20], eax
push 0x40
push edi
lea eax, [ebp - 0xb0]
push eax
call fcn.00403805
push 0x3c
pop eax
mov word [ebp - 0xb0], ax
push 0x40
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.004037ec
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0040381c
mov dword [ebp - 0x3c], 0x403bc0
mov dword [ebp - 0x38], 0x403c52
mov dword [ebp - 0x34], 0x402675
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30], esi
mov dword [esi], 0x237
mov dword [esi + 4], 6
cmp dword [ebp - 0x20], edi
je 0x40191e
push 0xfffffffffffffff6
call ebx
cmp dword [ebp - 0x20], eax
jne 0x40191e
mov dword [ebp - 0x24], 1
or byte [esi + 0x1bbc], 4
push 0x401d67
call fcn.00402475
lea ecx, [ebp - 0x28]
push ecx
push 4
push esi
push eax
push edi
push edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x40191e
and byte [esi + 0x1bbc], 0xfb
mov dword [ebp + 8], 0x401ff5
cmp dword [esi + 0x6c], 4
jne 0x40192e
mov dword [ebp + 8], edi
lea ebx, [esi + 0x1bc8]
push 2
push edi
push ebx
push esi
call fcn.004023c1
test eax, eax
je 0x4019a6
push 1
push dword [ebp + 8]
lea eax, [esi + 0x78]
push eax
push esi
call fcn.004023c1
test eax, eax
je 0x4019a6
mov dword [ebp - 4], edi
cmp dword [ebp - 0x24], edi
jne 0x401964
push edi
push ebx
call fcn.00401ee8
cmp dword [ebp - 0x1c], edi
je 0x40198c
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x20]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4019a2
lea eax, [ebp - 0x70]
push eax
call fcn.00401e13
test eax, eax
jne 0x40198c
jmp 0x4019a2
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x70]
push eax
call fcn.004038aa
call fcn.00403469
ret 4