joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45fa85
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x470ce8
call fcn.00453468
xor esi, esi
cmp dword [0x48e12c], esi
jne 0x45fac9
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x45fab4
mov dword [0x48e12c], edi
jmp 0x45fac9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x78
jne 0x45fac9
mov dword [0x48e12c], 2
mov eax, dword [0x48e12c]
cmp eax, 2
je 0x45fbaa
cmp eax, esi
je 0x45fbaa
cmp eax, 1
jne 0x45fb0e
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x45faf7
mov eax, dword [0x48dfb0]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x45fb15
xor eax, eax
jmp 0x45fbbc
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00455100
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x45fb4b
cmp edi, esi
jne 0x45fb66
lea eax, [ebx + ebx]
push eax
call fcn.0044ed99
pop ecx
mov edi, eax
cmp edi, esi
je 0x45fb0e
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x45fb99
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x45fb83
push esi
push esi
jmp 0x45fb89
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x45fba5
push edi
call fcn.0044edab
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x45fbbc
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.004534a3
ret
Function at 0x46064b
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x460664
or eax, 0xffffffff
jmp 0x4606c5
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4606c1
push 0x3d
push esi
call fcn.00460820
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4606c1
cmp esi, eax
je 0x4606c1
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x48dcc0]
sete cl
cmp eax, dword [0x48dcc4]
mov dword [ebp - 8], ecx
jne 0x4606a7
mov edi, eax
call fcn.004605ea
mov dword [0x48dcc0], eax
cmp eax, ebx
jne 0x460700
cmp dword [ebp + 0xc], ebx
je 0x4606c9
cmp dword [0x48dcc8], ebx
je 0x4606c9
call fcn.00460024
test eax, eax
je 0x460700
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4606d2
xor eax, eax
jmp 0x4606c4
push 4
call fcn.0044ed99
cmp eax, ebx
pop ecx
mov dword [0x48dcc0], eax
je 0x4606c1
mov dword [eax], ebx
cmp dword [0x48dcc8], ebx
jne 0x460700
push 4
call fcn.0044ed99
cmp eax, ebx
pop ecx
mov dword [0x48dcc8], eax
je 0x4606c1
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x48dcc0]
call fcn.0046059d
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x460761
cmp dword [esi], ebx
je 0x460761
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0044edab
cmp dword [ebp - 8], ebx
pop ecx
jne 0x460744
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4607a2
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x46073b
mov eax, edi
shl eax, 2
push eax
push dword [0x48dcc0]
call fcn.0045305d
cmp eax, ebx
pop ecx
pop ecx
je 0x4607a2
jmp 0x46079d
cmp dword [ebp - 8], ebx
jne 0x46080d
cmp edi, ebx
jge 0x460770
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x48dcc0]
call fcn.0045305d
cmp eax, ebx
pop ecx
pop ecx
je 0x4606c1
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x48dcc0], eax
cmp dword [ebp + 0xc], ebx
je 0x4607f7
push dword [ebp - 4]
call fcn.0044f4c0
inc eax
inc eax
push eax
call fcn.0044ed99
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4607f7
push dword [ebp - 4]
push esi
call fcn.00450670
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
test eax, eax
jne 0x4607f0
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0044edab
pop ecx
cmp dword [ebp - 8], ebx
je 0x460805
push dword [ebp - 4]
call fcn.0044edab
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4606c4
push dword [ebp - 4]
call fcn.0044edab
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4606ce
Function at 0x4179b7
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], ecx
call dword [fcn.00401094]
mov ecx, dword [ebp + 8]
mov esi, eax
xor ebx, ebx
add esi, esi
or edx, 0xffffffff
cmp dword [0x422f00], ebx
jne 0x417a18
mov dword [0x422f00], 1
mov ecx, ebx
push 8
mov eax, ecx
pop edi
test al, 1
je 0x4179fe
shr eax, 1
xor eax, 0xedb88320
jmp 0x417a00
shr eax, 1
dec edi
test edi, edi
jg 0x4179f1
mov dword [ecx*4 + 0x422b00], eax
inc ecx
cmp ecx, 0xff
jle 0x4179ec
mov ecx, dword [ebp + 8]
test esi, esi
je 0x417a34
movzx eax, byte [ecx]
xor eax, edx
and eax, 0xff
shr edx, 8
xor edx, dword [eax*4 + 0x422b00]
inc ecx
dec esi
jne 0x417a1c
mov ecx, dword [ebp - 4]
not edx
mov eax, edx
xor edx, edx
div dword [ecx + 0xc]
mov dword [ebp - 8], ebx
mov edi, edx
cmp dword [ecx + 0xc], ebx
jbe 0x417a7d
lea eax, [ecx + 8]
mov dword [ebp - 0xc], eax
mov esi, edi
imul esi, esi, 0xc
add esi, dword [eax]
cmp dword [ebp + 0xc], ebx
je 0x417a89
cmp dword [esi + 4], ebx
je 0x417a79
push dword [ebp + 8]
push dword [esi + 4]
call dword [0x401090]
test eax, eax
je 0x417abb
mov ecx, dword [ebp - 4]
cmp dword [esi + 4], ebx
jne 0x417aa1
cmp dword [esi], ebx
jne 0x417aa1
xor ebx, ebx
inc ebx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
cmp dword [esi + 4], ebx
je 0x417abb
push dword [ebp + 8]
push dword [esi + 4]
call dword [0x401090]
test eax, eax
je 0x417abb
mov ecx, dword [ebp - 4]
inc edi
cmp edi, dword [ecx + 0xc]
jb 0x417aaa
sub edi, dword [ecx + 0xc]
mov eax, dword [ebp - 8]
inc eax
cmp eax, dword [ecx + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
jb 0x417a50
jmp 0x417a7d
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
jmp 0x417a80
Function at 0x401364
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
cmp esi, 0x100000
jge 0x40137a
mov esi, 0x100000
jmp 0x401386
add esi, 0xffff
and esi, 0xffff0000
mov dword [ebx + 4], esi
push 1
push 0x2000
push esi
push 0
call sub.KERNEL32.DLL_GetTempPathA
mov edi, eax
mov dword [ebx], edi
test edi, edi
je 0x4013c3
mov edx, ebx
mov eax, 0x4075d4
call fcn.00401188
test al, al
jne 0x4013c3
push 0x8000
push 0
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_LoadResource
xor eax, eax
mov dword [ebx], eax
pop edi
pop esi
pop ebx
ret

Function at 0x4013c8
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, ecx
mov esi, edx
mov ebp, eax
mov dword [ebx + 4], 0x100000
push 4
push 0x2000
push 0x100000
push ebp
call sub.KERNEL32.DLL_GetTempPathA
mov edi, eax
mov dword [ebx], edi
test edi, edi
jne 0x401412
add esi, 0xffff
and esi, 0xffff0000
mov dword [ebx + 4], esi
push 4
push 0x2000
push esi
push ebp
call sub.KERNEL32.DLL_GetTempPathA
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x40143a
mov edx, ebx
mov eax, 0x4075d4
call fcn.00401188
test al, al
jne 0x40143a
push 0x8000
push 0
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_LoadResource
xor eax, eax
mov dword [ebx], eax
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x401440
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe8
mov edi, ecx
mov esi, esp
mov dword [esp + 8], 0xffffffff
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
add edx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
mov eax, dword [0x4075d4]
mov dword [esi], eax
jmp 0x4014d9
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov eax, dword [esi]
mov ebx, dword [eax + 8]
cmp ebx, dword [esp + 0x10]
jb 0x4014d3
mov eax, ebx
mov edx, dword [esi]
add eax, dword [edx + 0xc]
cmp eax, dword [esp + 0x14]
ja 0x4014d3
cmp ebx, dword [esp + 8]
jae 0x401498
mov dword [esp + 8], ebx
mov eax, dword [esi]
mov ebp, dword [eax + 8]
mov eax, dword [esi]
add ebp, dword [eax + 0xc]
cmp ebp, dword [esp + 0xc]
jbe 0x4014ac
mov dword [esp + 0xc], ebp
push 0x8000
push 0
mov eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call sub.KERNEL32.DLL_LoadResource
test eax, eax
jne 0x4014cc
mov dword [0x4075b0], 1
mov eax, dword [esi]
call fcn.004011e4
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, 0x4075d4
cmp eax, dword [esi]
jne 0x40146e
xor eax, eax
mov dword [edi], eax
cmp dword [esp + 0xc], 0
je 0x4014fe
mov eax, dword [esp + 8]
mov dword [edi], eax
mov eax, dword [esp + 0xc]
sub eax, dword [esp + 8]
mov dword [edi + 4], eax
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401508
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe8
mov ebx, ecx
mov dword [esp], edx
lea esi, [esp + 8]
lea edi, [esp + 4]
lea ebp, [esp + 0xc]
mov edx, eax
mov ecx, edx
and ecx, 0xfffff000
mov dword [esp + 0x10], ecx
add edx, dword [esp]
add edx, 0xfff
and edx, 0xfffff000
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
mov dword [ebx], eax
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x10]
mov dword [ebx + 4], eax
mov eax, dword [0x4075d4]
mov dword [edi], eax
jmp 0x4015b6
mov eax, dword [edi]
mov eax, dword [eax + 8]
mov dword [esi], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
add eax, dword [esi]
mov dword [ebp], eax
mov eax, dword [esi]
cmp eax, dword [esp + 0x10]
jae 0x40157a
mov eax, dword [esp + 0x10]
mov dword [esi], eax
mov eax, dword [ebp]
cmp eax, dword [esp + 0x14]
jbe 0x40158a
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov eax, dword [esi]
cmp eax, dword [ebp]
jae 0x4015b0
push 4
push 0x1000
mov eax, dword [ebp]
sub eax, dword [esi]
push eax
mov eax, dword [esi]
push eax
call sub.KERNEL32.DLL_GetTempPathA
test eax, eax
jne 0x4015b0
xor eax, eax
mov dword [ebx], eax
jmp 0x4015bf
mov eax, dword [edi]
mov eax, dword [eax]
mov dword [edi], eax
mov eax, 0x4075d4
cmp eax, dword [edi]
jne 0x40155b
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4015c8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe8
mov dword [esp], edx
lea esi, [esp + 8]
lea edi, [esp + 4]
lea ebx, [esp + 0xc]
mov edx, eax
mov ebp, edx
add ebp, 0xfff
and ebp, 0xfffff000
mov dword [esp + 0x10], ebp
add edx, dword [esp]
and edx, 0xfffff000
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x10]
mov dword [ecx + 4], eax
mov eax, dword [0x4075d4]
mov dword [edi], eax
jmp 0x401671
mov eax, dword [edi]
mov eax, dword [eax + 8]
mov dword [esi], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
add eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [esi]
cmp eax, dword [esp + 0x10]
jae 0x401637
mov eax, dword [esp + 0x10]
mov dword [esi], eax
mov eax, dword [ebx]
cmp eax, dword [esp + 0x14]
jbe 0x401645
mov eax, dword [esp + 0x14]
mov dword [ebx], eax
mov eax, dword [esi]
cmp eax, dword [ebx]
jae 0x40166b
push 0x4000
mov eax, dword [ebx]
sub eax, dword [esi]
push eax
mov eax, dword [esi]
push eax
call sub.KERNEL32.DLL_LoadResource
test eax, eax
jne 0x40166b
mov dword [0x4075b0], 2
mov eax, dword [edi]
mov eax, dword [eax]
mov dword [edi], eax
mov eax, 0x4075d4
cmp eax, dword [edi]
jne 0x401619
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401904
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
xor edx, edx
push ebp
push 0x4019cc
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4075b4
call sub.KERNEL32.DLL_SizeofResource
cmp byte [0x407035], 0
je 0x401933
push 0x4075b4
call sub.KERNEL32.DLL_Sleep
mov eax, 0x4075d4
call fcn.00401180
mov eax, 0x4075e4
call fcn.00401180
mov eax, 0x407610
call fcn.00401180
push 0xff8
push 0
call sub.KERNEL32.DLL_GetStartupInfoA
mov dword [0x40760c], eax
cmp dword [0x40760c], 0
je 0x4019ab
mov eax, 3
mov edx, dword [0x40760c]
xor ecx, ecx
mov dword [edx + eax*4 - 0xc], ecx
inc eax
cmp eax, 0x401
jne 0x401970
mov dword [ebp - 4], 0x4075f4
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov dword [eax], edx
mov eax, dword [ebp - 4]
mov dword [0x407600], eax
mov byte [0x4075ac], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4019d3
cmp byte [0x407035], 0
je 0x4019cb
push 0x4075b4
call sub.KERNEL32.DLL_WinExec
ret

Function at 0x4019dc
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
cmp byte [0x4075ac], 0
je 0x401ad7
xor eax, eax
push ebp
push 0x401ad0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x407035], 0
je 0x401a10
push 0x4075b4
call sub.KERNEL32.DLL_Sleep
mov byte [0x4075ac], 0
mov eax, dword [0x40760c]
push eax
call sub.KERNEL32.DLL_GetTempFileNameA
xor eax, eax
mov dword [0x40760c], eax
mov eax, dword [0x4075d4]
mov dword [ebp - 8], eax
jmp 0x401a4e
push 0x8000
push 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
push eax
call sub.KERNEL32.DLL_LoadResource
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, 0x4075d4
cmp eax, dword [ebp - 8]
jne 0x401a33
mov eax, 0x4075d4
call fcn.00401180
mov eax, 0x4075e4
call fcn.00401180
mov eax, 0x407610
call fcn.00401180
mov eax, dword [0x4075cc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401aa5
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [0x4075cc], eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetTempFileNameA
mov eax, dword [0x4075cc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401a84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401ad7
cmp byte [0x407035], 0
je 0x401ac5
push 0x4075b4
call sub.KERNEL32.DLL_WinExec
push 0x4075b4
call sub.KERNEL32.DLL_WriteFile
ret
pop ecx
pop ecx
pop ebp
ret
Function at 0x402160
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov ebx, eax
cmp byte [0x4075ac], 0
jne 0x40217b
call fcn.00401904
test al, al
je 0x402183
cmp ebx, 0x7ffffff8
jle 0x40218d
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x402303
xor edx, edx
push ebp
push 0x4022fc
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x407035], 0
je 0x4021ae
push 0x4075b4
call sub.KERNEL32.DLL_Sleep
add ebx, 7
and ebx, 0xfffffffc
cmp ebx, 0xc
jge 0x4021be
mov ebx, 0xc
cmp ebx, 0x1000
jg 0x402276
mov eax, ebx
test eax, eax
jns 0x4021d3
add eax, 3
sar eax, 2
mov edx, dword [0x40760c]
mov edx, dword [edx + eax*4 - 0xc]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x402276
mov edx, dword [ebp - 8]
add edx, ebx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x14]
and dword [edx], 0xfffffffe
mov edx, dword [ebp - 8]
mov edx, dword [edx + 4]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 8]
jne 0x40221a
mov edx, dword [0x40760c]
xor ecx, ecx
mov dword [edx + eax*4 - 0xc], ecx
jmp 0x402240
mov edx, dword [0x40760c]
mov ecx, dword [ebp - 0x10]
mov dword [edx + eax*4 - 0xc], ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
or eax, 2
mov edx, dword [ebp - 0x14]
mov dword [edx], eax
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x40759c]
sub ebx, 4
add dword [0x4075a0], ebx
call fcn.00403050
jmp 0x402303
cmp ebx, dword [0x407604]
jg 0x4022d1
sub dword [0x407604], ebx
cmp dword [0x407604], 0xc
jge 0x40229a
add ebx, dword [0x407604]
xor eax, eax
mov dword [0x407604], eax
mov eax, dword [0x407608]
mov dword [ebp - 0x14], eax
add dword [0x407608], ebx
mov eax, ebx
or eax, 2
mov edx, dword [ebp - 0x14]
mov dword [edx], eax
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x40759c]
sub ebx, 4
add dword [0x4075a0], ebx
call fcn.00403050
jmp 0x402303
mov eax, ebx
call fcn.00402018
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402303
cmp byte [0x407035], 0
je 0x4022fb
push 0x4075b4
call sub.KERNEL32.DLL_WinExec
ret
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40230c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, eax
xor eax, eax
mov dword [0x4075b0], eax
cmp byte [0x4075ac], 0
jne 0x402344
call fcn.00401904
test al, al
jne 0x402344
mov dword [0x4075b0], 8
mov dword [ebp - 4], 8
jmp 0x4024da
xor edx, edx
push ebp
push 0x4024d3
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x407035], 0
je 0x402365
push 0x4075b4
call sub.KERNEL32.DLL_Sleep
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
sub eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
test bl, 2
jne 0x40238a
mov dword [0x4075b0], 9
jmp 0x4024aa
dec dword [0x40759c]
mov eax, ebx
and eax, 0x7ffffffc
sub eax, 4
sub dword [0x4075a0], eax
test bl, 1
je 0x4023f8
mov eax, dword [ebp - 8]
sub eax, 0xc
mov eax, dword [eax + 8]
cmp eax, 0xc
jl 0x4023ba
test eax, 0x80000003
je 0x4023c9
mov dword [0x4075b0], 0xa
jmp 0x4024aa
mov edx, dword [ebp - 8]
sub edx, eax
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x10]
cmp eax, dword [edx + 8]
je 0x4023e8
mov dword [0x4075b0], 0xa
jmp 0x4024aa
add ebx, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
call fcn.00401adc
and ebx, 0x7ffffffc
mov eax, dword [ebp - 8]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x407608]
jne 0x40243d
sub dword [0x407608], ebx
add dword [0x407604], ebx
cmp dword [0x407604], 0x3c00
jle 0x40242e
call fcn.00401ea8
xor eax, eax
mov dword [ebp - 4], eax
call fcn.00403050
jmp 0x4024da
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
test al, 2
je 0x402464
and eax, 0x7ffffffc
cmp eax, 4
jge 0x40245c
mov dword [0x4075b0], 0xb
jmp 0x4024aa
mov eax, dword [ebp - 0xc]
or dword [eax], 1
jmp 0x4024a0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0x402484
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x402484
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0xc
jge 0x402490
mov dword [0x4075b0], 0xb
jmp 0x4024aa
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
add ebx, eax
mov eax, dword [ebp - 0x10]
call fcn.00401adc
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00401db0
mov eax, dword [0x4075b0]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4024da
cmp byte [0x407035], 0
je 0x4024d2
push 0x4075b4
call sub.KERNEL32.DLL_WinExec
ret
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402a6c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402ac5
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.KERNEL32.DLL_CopyFileA
lea edx, [ebp - 8]
call fcn.00402908
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402908
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402aaf
inc ebx
jmp 0x402a98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402acc
lea eax, [ebp - 8]
call fcn.00403520
ret
Function at 0x402ad4
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403520
test esi, esi
jne 0x402b0b
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004035e4
jmp 0x402b2c
call sub.KERNEL32.DLL_CopyFileA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402908
mov dword [esp], eax
test esi, esi
je 0x402b2c
cmp dword [ebx], 0
je 0x402b2c
dec esi
jmp 0x402b13
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x402c9c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40600c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402d34
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402d14
xor eax, eax
push ebp
push 0x402d0d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402d50
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402d14
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40600c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40600c], ax
mov esp, ebp
pop ebp
ret

Function at 0x40339c
Capabilities:
Get thread local storage value

Disassembly:
push ecx
cmp byte [0x407034], 0
je 0x4033fd
cmp word [0x407208], 0xd7b2
jne 0x4033c5
cmp dword [0x407210], 0
jbe 0x4033c5
mov eax, 0x407204
call dword [0x407220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x406054
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_LeaveCriticalSection
push eax
call sub.KERNEL32.DLL_TlsGetValue
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403424
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_LeaveCriticalSection
push eax
call sub.KERNEL32.DLL_TlsGetValue
pop edx
ret
cmp byte [0x406018], 0
jne 0x403419
push 0
push 0x40604c
push 0x406054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret