joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d590
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x248
mov eax, dword [0x44a068]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x34]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x40d6a7
sub esp, 8
lea eax, [esp + 0x40]
mov edx, esp
mov dword [edx], eax
cmp word [esp + 0x40], 0
jne 0x40d5e2
xor ecx, ecx
jmp 0x40d5ff
lea ecx, [esp + 0x40]
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d5f0
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [esp + 0x28]
call fcn.0040c7a0
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x40d61a
mov ecx, dword [eax]
jmp 0x40d61c
mov ecx, eax
mov dword [edx], ecx
lea ecx, [esp + 0x10]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.0040c7a0
lea ecx, [esp + 8]
call fcn.0040d090
lea eax, [esp + 8]
cmp esi, eax
je 0x40d64a
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004074e0
mov eax, dword [esp + 0x1c]
cmp eax, 8
jb 0x40d662
inc eax
lea ecx, [esp + 8]
push eax
push dword [esp + 0xc]
call fcn.00407a70
xor eax, eax
mov dword [esp + 0x1c], 7
mov word [esp + 8], ax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], 0
cmp eax, 8
jb 0x40d691
inc eax
lea ecx, [esp + 0x20]
push eax
push dword [esp + 0x24]
call fcn.00407a70
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.00418a6b
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.00418a6b
mov esp, ebp
pop ebp
ret
Function at 0x40d6c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x44a068]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x1c]
push edi
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x40d76f
cmp word [esp + 0x20], 0
je 0x40d76f
sub esp, 8
lea eax, [esp + 0x28]
mov edx, esp
mov dword [edx], eax
cmp word [esp + 0x28], 0
jne 0x40d733
xor ecx, ecx
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.0040c7a0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00418a6b
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x28]
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d740
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.0040c7a0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00418a6b
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esp + 0x1c], 7
mov word [esp + 8], ax
lea eax, [esp + 8]
push eax
mov dword [esp + 0x1c], 0
call fcn.0040d590
add esp, 4
mov ecx, esi
test al, al
je 0x40d7bb
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
mov dword [esi + 0x10], 0
push eax
mov word [esi], ax
lea eax, [esp + 0x10]
push eax
call fcn.004074e0
jmp 0x40d7d2
sub esp, 8
mov eax, esp
mov dword [eax], 0x445a58
mov dword [eax + 4], 3
call fcn.0040c7a0
mov eax, dword [esp + 0x1c]
cmp eax, 8
jb 0x40d7ea
inc eax
lea ecx, [esp + 8]
push eax
push dword [esp + 0xc]
call fcn.00407a70
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00418a6b
mov esp, ebp
pop ebp
ret

Function at 0x40d800
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x44a068]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov word [ebp - 0x210], ax
mov esi, ecx
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40d8fc
cmp eax, 0x104
ja 0x40d8fc
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.00406c30
sub esp, 8
lea eax, [ebp - 0x228]
cmp dword [ebp - 0x214], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x228]
mov dword [ecx], eax
mov eax, dword [ebp - 0x218]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x258]
call fcn.0040c7a0
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x40d894
mov ecx, dword [eax]
jmp 0x40d896
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x240]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.0040c7a0
lea ecx, [ebp - 0x240]
call fcn.0040d090
lea eax, [ebp - 0x240]
cmp esi, eax
je 0x40d8ca
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004074e0
lea ecx, [ebp - 0x240]
call fcn.00406ba0
lea ecx, [ebp - 0x258]
call fcn.00406ba0
lea ecx, [ebp - 0x228]
call fcn.00406ba0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418a6b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00418a6b
mov esp, ebp
pop ebp
ret
Function at 0x40ddb0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [esi + 0xc]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [esi + 0x18]
mov esi, dword [esi + 4]
and ecx, eax
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov ebx, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
cmp ebx, esi
jne 0x40de0b
mov ecx, esi
jmp 0x40de10
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x40de35
mov ecx, dword [eax + 8]
cmp ecx, dword [edi]
je 0x40de1f
mov eax, dword [eax]
jmp 0x40de03
mov ecx, dword [edi]
cmp ecx, dword [eax + 8]
mov ecx, dword [ebp + 8]
cmovne eax, esi
pop edi
pop esi
mov dword [ecx], eax
mov eax, ecx
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40e1c0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov esi, dword [ebx + 4]
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x18]
and ecx, eax
mov eax, dword [ebx + 0xc]
lea edx, [ecx*8]
add eax, edx
mov dword [esp + 0x14], edx
lea ecx, [ebx + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
cmp esi, eax
je 0x40e24c
mov esi, dword [esp + 0xc]
mov esi, dword [esi + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x40e24c
mov ecx, dword [edi]
nop dword [eax + eax]
mov esi, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x40e291
cmp esi, eax
jne 0x40e240
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x40e27a
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [esp + 0x14]
mov ecx, dword [ebx + 0xc]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx + 4]
jne 0x40e2b4
mov dword [ecx], edi
mov eax, dword [ebx + 0xc]
mov dword [edx + eax + 4], edi
jmp 0x40e2d6
push dword [ebp + 0x10]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
call fcn.0040dee0
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x40e2bc
mov dword [ecx], edi
jmp 0x40e2d6
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x40e2d6
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.0040e2f0
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x412d90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x44a068]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x412ecb
cmp byte [edi + 0x3d], 0
je 0x412ecb
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x412ddd
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00418a6b
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
mov byte [esp + 0x14], 0
xorps xmm0, xmm0
mov dword [esp + 0x28], ecx
cmp ecx, 0x10
movq qword [esp + 0x14], xmm0
lea eax, [esp + 0x14]
mov dword [esp + 0x24], 8
cmovae eax, dword [esp + 0x14]
mov byte [eax + 8], 0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov eax, dword [edi + 0x38]
lea ebx, [esp + 0x14]
cmp ecx, 0x10
lea esi, [esp + 0x14]
cmovae ebx, edx
cmovae esi, edx
mov eax, dword [eax]
mov dword [esp + 0x10], eax
cmp eax, vtable.std::codecvt_char__char__struct__Mbstatet_.0
jne 0x412edf
mov dword [esp + 0xc], esi
xor eax, eax
sub eax, 0
je 0x412e52
sub eax, 1
je 0x412e56
sub eax, 2
je 0x412ea4
xor bl, bl
jmp 0x412ea6
mov byte [edi + 0x3d], 0
cmp ecx, 0x10
lea eax, [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x412e89
push dword [edi + 0x4c]
cmp ecx, 0x10
lea eax, [esp + 0x18]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00420ba3
mov ecx, dword [esp + 0x38]
add esp, 0x10
mov edx, dword [esp + 0x14]
cmp esi, eax
jne 0x412e4e
cmp byte [edi + 0x3d], 0
je 0x412ea4
test esi, esi
jne 0x412e14
push esi
push 8
lea ecx, [esp + 0x1c]
call fcn.00403330
jmp 0x412e0c
mov bl, 1
cmp ecx, 0x10
jb 0x412eb7
inc ecx
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00403140
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00418a6b
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00418a6b
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x38]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x28]
add eax, ebx
push eax
push esi
lea eax, [edi + 0x40]
push eax
mov eax, dword [esp + 0x20]
call dword [eax + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
jmp 0x412e3f
Function at 0x4163b0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
push edx
xor ebx, ebx
push ecx
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x416444
cmp dword [0x44be54], 3
jg 0x416436
sub esp, 8
mov dword [esp + 0x10], 3
lea ecx, [esp + 0x18]
call fcn.00403960
mov dword [esp + 0xac], 0x445e40
mov dword [esp + 0xb0], 0x23
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x23
push 0x445e40
lea ecx, [esp + 0x10]
mov dword [esp + 0xbc], eax
call fcn.0040b720
lea eax, [esp + 0x10]
push str.Failed_to_TlsSetValue__.
push eax
call fcn.004035e0
add esp, 8
mov ebx, 1
test bl, 1
je 0x416444
lea ecx, [esp + 8]
call fcn.0040b560
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x416480
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x44a068]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [0x44a9fc]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], 0
push edi
mov ecx, 0x100
mov dword [esp + 0xc], eax
mov esi, ebx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.00418f14
add esp, 4
mov edi, 0x100
nop word [eax + eax]
mov esi, dword [0x44cd30]
xor dl, dl
test esi, esi
jle 0x416518
nop dword [eax]
mov ecx, dword [esp + esi*4 + 0x10]
test ecx, ecx
je 0x416513
mov eax, dword [esi*4 + 0x44c7d0]
test eax, eax
je 0x416513
push ecx
mov dword [esp + esi*4 + 0x14], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x4164f0
dec edi
test edi, edi
jle 0x416521
test dl, dl
jne 0x4164e0
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00418a6b
mov esp, ebp
pop ebp
ret
Function at 0x4167d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x44a068]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20]
push edi
push dword [ebp + 0x10]
mov dword [ebp - 0x3c], esi
push dword [ebp + 0xc]
push eax
call fcn.0040e530
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x416802
mov eax, dword [eax]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp - 0xc]
mov edi, eax
cmp ecx, 8
jb 0x416824
inc ecx
push ecx
push dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
call fcn.00407a70
test edi, edi
jne 0x41683c
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00418a6b
mov esp, ebp
pop ebp
ret 0xc
test esi, esi
je 0x4168ff
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00418f19
add esp, 4
mov esi, eax
lea eax, [ebp - 0x20]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.0040e530
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x41687b
mov eax, dword [eax]
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x416899
inc eax
lea ecx, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
call fcn.00407a70
push esi
lea ecx, [ebp - 0x20]
call fcn.00406c30
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x38]
call fcn.0040e420
mov ecx, dword [ebp - 0x3c]
push eax
call fcn.00405050
mov eax, dword [ebp - 0x24]
cmp eax, 0x10
jb 0x4168cb
inc eax
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
call fcn.00403140
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
cmp eax, 8
jb 0x4168f2
inc eax
lea ecx, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
call fcn.00407a70
test esi, esi
je 0x4168ff
push esi
call fcn.00418f14
add esp, 4
mov ecx, dword [ebp - 8]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00418a6b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x416920
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x44a068]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
sub esp, 8
cmp dword [eax + 0x14], 0x10
mov edx, esp
jb 0x416944
mov ecx, dword [eax]
jmp 0x416946
mov ecx, eax
mov dword [edx], ecx
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
lea eax, [ebp - 0x38]
push eax
call fcn.0040e530
mov esi, eax
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x416964
mov esi, dword [esi]
push dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push dword [ebp + 0xc]
push eax
call fcn.0040e530
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x41697e
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
mov eax, dword [ebp - 0xc]
setne bl
cmp eax, 8
jb 0x4169a0
inc eax
lea ecx, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
call fcn.00407a70
mov ecx, dword [ebp - 0x24]
xor eax, eax
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], ax
cmp ecx, 8
jb 0x4169c9
inc ecx
push ecx
push dword [ebp - 0x38]
lea ecx, [ebp - 0x38]
call fcn.00407a70
mov ecx, dword [ebp - 8]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00418a6b
mov esp, ebp
pop ebp
ret 0xc

Function at 0x42c6a9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042c51f
Function at 0x2a30195d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x2a357578]
jne 0x2a301967
repz ret
jmp fcn.2a341dce

Function at 0x2a309f40
Capabilities:
Terminate thread

Disassembly:
push 0x10
mov eax, 0x2a342707
call fcn.2a30229e
mov esi, ecx
xor edi, edi
cmp dword [esi], 0xb
mov dword [ebp - 0x14], edi
jne 0x2a30a02b
mov edi, dword [sym.imp.kernel32.dll_WaitForSingleObject]
push 0xea60
push dword [esi + 0x2e0]
call edi
or dword [esi + 0x1ac], 0xffffffff
push 1
push dword [esi + 0x2dc]
call dword [sym.imp.kernel32.dll_SetThreadPriority]
push dword [esi + 0x2e0]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
mov ebx, dword [sym.imp.kernel32.dll_GetTickCount]
call ebx
shr eax, 4
add eax, 0x12c
mov dword [ebp - 0x10], eax
jmp 0x2a309fdb
push 0xea60
push dword [esi + 0x2e0]
call edi
push dword [esi + 0x2e0]
xor eax, eax
cmp dword [esi], 0xb
setne al
movzx eax, ax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.kernel32.dll_ReleaseMutex]
cmp word [ebp - 0x1c], 0
jne 0x2a309fe5
push 0x64
call dword [sym.imp.kernel32.dll_Sleep]
call ebx
shr eax, 4
cmp eax, dword [ebp - 0x10]
jb 0x2a309fa5
push 0xea60
push dword [esi + 0x2e0]
call edi
cmp dword [esi], 0xb
jne 0x2a30a00a
xor edi, edi
inc edi
push edi
push dword [esi + 0x2dc]
call dword [sym.imp.kernel32.dll_TerminateThread]
mov dword [ebp - 0x14], edi
push dword [esi + 0x2e0]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
push dword [esi + 0x2e0]
call dword [sym.imp.kernel32.dll_CloseHandle]
and dword [esi + 0x2e0], 0
xor edi, edi
mov eax, dword [esi + 0x1c]
lea ebx, [esi + 0x1ac]
mov dword [ebx], edi
cmp eax, edi
je 0x2a30a05c
cmp word [ebp - 0x14], di
jne 0x2a30a059
push ebx
push eax
call fcn.2a3296d9
cmp dword [ebx], edi
jne 0x2a30a05c
push ebx
push dword [esi + 0x18]
mov dword [esi + 0x1c], edi
call fcn.2a3296d9
jmp 0x2a30a05c
mov dword [esi + 0x1c], edi
cmp word [esi + 0x14c], di
je 0x2a30a0c8
push edi
push edi
lea ecx, [ebp - 0x18]
call fcn.2a3296d9
mov ebx, dword [0x2a358a70]
push edi
lea eax, [esi + 0x48]
push eax
mov eax, dword [0x2a358a74]
push str.Cstring
mov dword [ebp - 4], edi
call dword [eax + 0x14]
movzx eax, ax
pop ecx
push eax
push edi
call dword [ebx + 0xd0]
add esp, 0x10
push edi
push eax
lea ecx, [ebp - 0x18]
call fcn.2a3296d9
cmp dword [ebp - 0x14], edi
je 0x2a30a0bc
lea ecx, [ebp - 0x18]
call fcn.2a3296d9
test al, al
je 0x2a30a0bc
lea ecx, [ebp - 0x18]
call fcn.2a330802
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.2a3032b3
mov eax, dword [esi + 0x3c]
cmp eax, edi
je 0x2a30a0df
push eax
mov eax, dword [0x2a358780]
call dword [eax + 0x284]
pop ecx
mov dword [esi + 0x3c], edi
mov eax, dword [esi + 0x24]
cmp eax, edi
je 0x2a30a107
push eax
mov eax, dword [0x2a358a90]
cmp word [esi + 0x1a2], di
je 0x2a30a0fd
call dword [eax + 0x124]
jmp 0x2a30a103
call dword [eax + 0x11c]
pop ecx
mov dword [esi + 0x24], edi
mov dword [esi], 2
call fcn.2a3026e6
ret
Function at 0x2a323cd6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x2a3442a0
call fcn.2a30372f
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x2a323d84
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x41c]
push eax
call fcn.2a3296d9
add esp, 0xc
test eax, eax
js 0x2a323d84
mov edi, dword [ebp - 0x41c]
cmp edi, 0x400
jg 0x2a323d6a
push edi
call fcn.2a3203ae
pop ecx
test al, al
je 0x2a323d6a
mov eax, edi
call fcn.2a341a00
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x2a323d76
push edi
lea ecx, [ebp - 0x428]
call fcn.2a3296d9
push 3
push edi
push esi
push eax
call fcn.2a3296d9
cmp eax, ebx
jne 0x2a323dc1
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x2a323d9d
lea ecx, [ebp - 0x418]
call fcn.2a31ffe1
mov esi, 0x8007000e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.2a31fe2e
mov eax, esi
lea esp, [ebp - 0x440]
call fcn.2a303768
ret 0x10
push 2
push ebx
push eax
call fcn.2a3212fd
mov edi, eax
mov dword [ebp - 0x41c], edi
cmp edi, ebx
jne 0x2a323de2
call fcn.2a31f619
mov esi, eax
jmp 0x2a323eac
push dword [ebp - 0x420]
push dword [ebp - 0x424]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x2a323e05
call fcn.2a31f619
jmp 0x2a323e9e
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, ebx
je 0x2a323dfb
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x424], esi
cmp eax, esi
jae 0x2a323e35
mov esi, 0x8007000e
jmp 0x2a323ea0
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.2a3296d9
mov dword [ebp - 4], 1
jmp 0x2a323e63
cmp dword [ebp - 0x418], ebx
je 0x2a323e2e
push esi
push dword [ebp - 0x420]
push esi
push dword [ebp - 0x418]
call fcn.2a3296d9
mov eax, dword [ebp - 0x418]
add esp, 0x10
push dword [ebp + 0x14]
mov byte [eax + esi], bl
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.2a3296d9
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x2a323da2
lea ecx, [ebp - 0x418]
call fcn.2a31ffe1
jmp 0x2a323da2
Function at 0x2a3296d9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x2a3296e8
pop dword [ebp - 0x48]
mov eax, 0x2a3296e8
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xb02dba28
sub dword [ebp - 0x58], 0x61db74dd
mov dword [ebp - 0x54], 0x7188cde1
sub dword [ebp - 0x54], 0x3f55819c
mov dword [ebp - 0x50], 0x455fe735
sub dword [ebp - 0x50], 0xf913a307
mov dword [ebp - 0x4c], 0x838c61e3
sub dword [ebp - 0x4c], 0x838c61e3
lea eax, [ebp - 0x58]
push eax
mov eax, 0x93059107
sub eax, 0x68d120bb
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x2739e8a0
sub dword [ebp - 0x58], 0xb2c77f4a
mov dword [ebp - 0x54], 0x61d6c24
sub dword [ebp - 0x54], 0xc4b10aaf
mov dword [ebp - 0x50], 0x2496f481
add dword [ebp - 0x50], 0x3ed877eb
mov dword [ebp - 0x4c], 0xe81edd41
sub dword [ebp - 0x4c], 0xe81edd41
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0xca46cc3b
add eax, 0x5feda419
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x41af9
push 0
call eax
mov ecx, 0x7f6858a9
sub ecx, 0x7f681e8c
xor edx, edx
add edx, eax
mov ebx, 0x2c6d5e55
add ebx, 0xfdc95bab
add ebx, dword [ebp - 0x48]
mov edi, 0x8b3ae4db
sub edi, 0x9e50e0ff
mov esi, dword [ebx]
xor esi, edi
sub dword [ebp - 0x3c], eax
mov dword [edx], esi
xor dword [ebp - 0x3c], 0x10ccecb7
add edx, 4
add ebx, 4
loop 0x2a329807
add eax, 0x6d2a3f8c
add eax, 0x92d69bbb
xor ebx, ebx
add ebx, eax
add eax, 0xece39086
add eax, 0x131c6f7f
mov ecx, 0x2a300000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x10003cdc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101e6010]
jne 0x10003ce6
repz ret
jmp fcn.10003f8d

Function at 0x10004580
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x101e5ff0], 0
mov byte [0x101e5ff4], 0
mov dword [0x101e5fe4], 0x223a
mov dword [0x101e5fec], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jmp 0x100045ce
mov dword [0x101e5fec], 0
jmp 0x1000460a
mov dword [0x101e5fe4], 0x23f6
mov eax, dword [0x101e5fec]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov cl, al
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov byte [eax + edx], cl
mov esi, dword [0x101e5fec]
add esi, 1
mov dword [0x101e5fec], esi
cmp esi, 0x100
jl 0x100045ce
jmp 0x100045c2
mov eax, 0x100
mov dword [0x101e5ff8], 0
mov ecx, dword [0x101e5ff0]
mov edx, dword [0x101e5fec]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + edx]
add edi, ecx
mov dword [ebp - 0x20], eax
mov eax, edx
xor edx, edx
mov ecx, dword [ebp - 0x10]
div ecx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add edi, edx
mov dword [0x101e5ff8], edi
mov eax, edi
cdq
mov edi, dword [ebp - 0x20]
idiv edi
mov dword [0x101e5ff0], edx
mov dword [0x101e5fe4], 0x9d4
mov edx, dword [0x101e5fec]
mov cl, byte [esi + edx]
mov byte [0x101e5ff4], cl
mov dword [0x101e5fe4], 0xfffff859
mov edx, dword [0x101e5ff0]
mov cl, byte [esi + edx]
mov edx, dword [0x101e5fec]
mov byte [esi + edx], cl
mov dword [0x101e5fe4], 0x1f37
mov cl, byte [0x101e5ff4]
mov edx, dword [0x101e5ff0]
mov byte [esi + edx], cl
mov edx, dword [0x101e5fe4]
add edx, 0xfffffbe3
mov dword [0x101e5fe4], edx
mov edx, dword [0x101e5fec]
add edx, 1
mov dword [0x101e5fec], edx
cmp edx, 0x100
jl 0x1000460a
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret