joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470a30
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 0x470a83
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 0x470a6a
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

Function at 0x477440
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a446e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00477d60
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x25d94ac
call fcn.00495ce4
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4774d3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00495ce4
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4774cc
push 0
mov ecx, eax
call fcn.0046e5b0
mov dword [esi + 0xc], eax
jmp 0x4774d5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4774d5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x49834a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x498382
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004963fe
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004963d6
jmp 0x49838e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x499a38
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x499a7a
call fcn.0049f4ec
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x499a7a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x499a71
xor eax, eax
jmp 0x499a82
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00499a88
pop edi
pop esi
pop ebx
ret 4
Function at 0x49fa1c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49fa4a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49fa68
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049f982
jmp 0x49fa68
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49fa68
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049f982
test edi, edi
mov eax, edi
jne 0x49fa52
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x408b90
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43af98
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0x16
call fcn.0042d949
mov ebx, eax
xor eax, eax
mov ecx, ebx
mov esi, dword [esp + 0x30]
add esp, 4
mov dword [ecx], eax
push 0x16
push ebx
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov word [ecx + 0x14], ax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x34]
mov ecx, dword [0x4503fc]
add ecx, 0x16
mov dword [0x4503fc], ecx
mov eax, dword [ebx + 6]
test eax, eax
jbe 0x408d89
mov eax, dword [ebx]
inc eax
push eax
call fcn.0042d949
mov edx, dword [esi]
add esp, 4
mov ebp, eax
mov eax, dword [ebx]
push eax
push ebp
mov ecx, esi
call dword [edx + 0x34]
mov ecx, dword [ebx]
mov eax, dword [0x4503fc]
add eax, ecx
mov dword [0x4503fc], eax
mov edx, dword [ebx]
mov byte [edx + ebp], 0
mov eax, dword [ebx + 6]
add eax, 2
push eax
call fcn.0042d949
mov ecx, dword [ebx + 0xa]
mov dword [esp + 0x14], eax
inc ecx
push ecx
call fcn.0042d949
mov edx, dword [esi]
add esp, 8
mov edi, eax
mov eax, dword [ebx + 0xa]
push eax
push edi
mov ecx, esi
mov dword [esp + 0x20], edi
call dword [edx + 0x34]
mov ecx, dword [ebx + 0xa]
mov eax, dword [0x4503fc]
add eax, ecx
lea ecx, [esp + 0x2c]
mov dword [0x4503fc], eax
mov edx, dword [ebx + 6]
mov eax, dword [ebx + 0xa]
add edx, 2
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x10]
push eax
push edi
push ecx
push edx
call fcn.00413380
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408d0d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408c9d
push eax
call fcn.0042d972
add esp, 4
test edi, edi
je 0x408caa
push edi
call fcn.0042d972
add esp, 4
mov eax, dword [0x44c718]
mov dword [esp + 0x14], eax
push esi
push ebp
lea ecx, [esp + 0x1c]
push 0x44a5dc
push ecx
mov dword [esp + 0x34], 0
call fcn.0042c694
add esp, 0x10
test ebp, ebp
je 0x408cdc
push ebp
call fcn.0042d972
add esp, 4
test ebx, ebx
je 0x408ce9
push ebx
call fcn.0042d972
add esp, 4
mov edx, dword [esp + 0x14]
push 0
push 0
push edx
call fcn.00435edd
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call fcn.004318b2
jmp 0x408da4
mov eax, dword [esp + 0x2c]
inc eax
push eax
call fcn.0042d949
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x14]
mov edx, ecx
mov edi, eax
shr ecx, 2
mov dword [0x450400], eax
add esp, 4
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x450400]
mov byte [ecx + eax], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408d57
push eax
call fcn.0042d972
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x408d68
push eax
call fcn.0042d972
add esp, 4
test ebp, ebp
je 0x408d75
push ebp
call fcn.0042d972
add esp, 4
test ebx, ebx
je 0x408d82
push ebx
call fcn.0042d972
add esp, 4
mov eax, 1
jmp 0x408da6
test ebx, ebx
je 0x408d96
push ebx
call fcn.0042d972
add esp, 4
push 0
push 0
push 0x44a5f0
call fcn.00435edd
xor eax, eax
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x412870
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43bbd3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0043424e
lea ebp, [esi + 0x10]
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [ebp + 4], ecx
mov dword [ebp], 0x43d738
mov ebx, dword [esp + 0x2c]
mov dword [esi], 0x43e9f4
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
mov edi, dword [ebx + 0xc]
xor eax, eax
cmp edi, ecx
mov byte [esp + 0x24], 1
sete al
cmp eax, ecx
mov dword [esi + 0x30], eax
je 0x412941
mov eax, dword [ebx]
lea edi, [esi + 0x20]
push edi
mov ecx, ebx
call dword [eax + 0x50]
test ebx, ebx
jne 0x4128e3
xor eax, eax
jmp 0x4128e6
mov eax, dword [ebx + 4]
push eax
call dword [0x43d0f8]
push eax
mov ecx, esi
call fcn.00434305
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 4]
mov edx, dword [edi]
sub eax, ecx
mov ecx, dword [edi + 8]
push eax
sub ecx, edx
push ecx
mov ecx, dword [ebx + 4]
push ecx
call dword [0x43d104]
push eax
mov ecx, ebp
call fcn.00434c0c
test ebp, ebp
je 0x41291f
mov ebp, dword [ebp + 4]
mov edx, dword [esi + 4]
push ebp
push edx
call fcn.00434446
mov ecx, dword [edi]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x24]
lea edx, [esp + 0x14]
push eax
push ecx
push edx
mov ecx, esi
call fcn.004346d5
jmp 0x412953
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [ebx + 4]
mov dword [esi + 4], ecx
mov edx, dword [ebx + 8]
mov dword [esi + 8], edx
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x1000c450
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100424ce
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1005d020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0x34], 0xf
mov dword [ebx + 0x30], 0
mov byte [ebx + 0x20], 0
mov byte [ebp - 4], 1
mov dword [ebx + 0x84], 0xf
mov dword [ebx + 0x80], 0
mov byte [ebx + 0x70], 0
mov byte [ebp - 4], 2
push 0
push 0x1004eca8
call fcn.1000a920
push 0
push 0x1004eca8
lea ecx, [ebx + 0x20]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
call fcn.1000a920
push 0
push 0x1004eca8
lea ecx, [ebx + 0x70]
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], 0
call fcn.1000a920
mov dword [ebx + 0x88], 0
mov dword [ebx + 0x8c], 0
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x58], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001dc60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100429eb
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1005d020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
lea ecx, [edi + 0xc]
push 0xffffffffffffffff
push 0
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
lea eax, [esi + 0xc]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.1000a650
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x24]
mov dword [edi + 0x24], eax
mov eax, dword [esi + 0x28]
mov dword [edi + 0x28], eax
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x2c], eax
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [edi + 0x34], eax
mov eax, dword [esi + 0x38]
mov dword [edi + 0x38], eax
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x1001df10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042adb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1005d020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0xc]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
mov dword [ebp - 4], 0
push 0
push 0x1004eca8
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1000a920
mov dword [esi + 0x24], 0
mov dword [esi + 8], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001f620
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100451ea
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x1005d020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0x10061290
call fcn.10025280
mov dword [ebp - 4], 0
mov dword [0x10061290], 0x1004fdb4
mov dword [0x100613cc], 0
mov dword [0x100613d0], 0
mov dword [0x100613d4], 0
mov byte [ebp - 4], 1
mov ecx, 0x10061434
mov dword [ebp - 0x14], 0x100613d8
call fcn.10004180
mov byte [ebp - 4], 2
push 0
mov dword [0x10061464], 0
mov dword [0x10061458], 0
call dword [0x10048040]
push 0x2c
push 0
push 0x100613d8
mov dword [0x10061454], eax
call fcn.10030a90
push 0x2c
push 0
push 0x10061404
call fcn.10030a90
add esp, 0x18
mov byte [ebp - 4], 3
mov dword [0x1006151c], 0xf
mov dword [0x10061518], 0
mov byte [0x10061508], 0
mov byte [ebp - 4], 4
xorps xmm0, xmm0
mov esi, dword [0x100480f8]
push 0
push 0
push 1
push 0
mov dword [0x10061520], 0
mov dword [0x100614e8], 0
mov dword [0x100614f8], 0
mov dword [0x100614a0], 0
mov dword [0x10061500], 0
mov dword [0x100614a4], 0
movdqa xmmword [0x100614b0], xmm0
mov dword [0x100614c0], 0
mov dword [0x100614c4], 0
mov dword [0x100614cc], 0
mov dword [0x100614c8], 0
mov dword [0x100614e4], 0
mov dword [0x100614ec], 0
mov dword [0x100614f4], 0
call esi
push 0
push 0
push 1
push 0
mov dword [0x10061468], eax
call esi
push 0
push 0
push 1
push 0
mov dword [0x1006146c], eax
call esi
push 0
push 0
push 0
push 0
mov dword [0x10061470], eax
call esi
push 0x1006148c
push 0
push 0x10061290
push 0x1001fb30
mov dword [0x10061474], eax
push 0
push 0
call fcn.1002ff82
push 0x10061494
push 0
push 0x10061290
push 0x1001fcb0
push 0
push 0
mov dword [0x10061478], eax
call fcn.1002ff82
push 0x10061498
push 0
push 0x10061290
push 0x1001fa10
push 0
push 0
mov dword [0x10061480], eax
call fcn.1002ff82
add esp, 0x48
mov dword [0x10061484], eax
push 0x1006149c
push 0
push 0x10061290
push 0x1001fc60
push 0
push 0
call fcn.1002ff82
push 0x100614a0
push 0
push 0x10061290
push 0x10022d90
push 0
push 0
mov dword [0x10061488], eax
call fcn.1002ff82
add esp, 0x30
mov dword [0x1006148c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, 0x10061290
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10070751
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
stc
jmp 0x100f8c58
pushfd
mov dword [ebp - 8], eax
test ch, al
jmp 0x100ef7c9
in al, 0xfc
sub al, 0x4b
push cs
mov dl, 0x4e
or al, 0x57
rcr byte [ecx + 0x41], 0x1d
xor ecx, eax
push 0xe29fa562
scasb al, byte es:[edi]
out 9, eax
sar byte [ebx], cl
sbb byte [esi - 0x39], ah
add al, 0x24
mov edx, 0x8be89cf2
cmp ebx, dword [eax]
mov word [esp], 0xf2ba
pushfd
call fcn.100d7162
out 0xcd, eax
inc esi
test al, 0x9c
dec esp
pop edi
aas
jbe 0x100ef7af
jns 0x100ef7d4
jmp edi
cmp edi, dword [ecx + 0x5f7a9ec0]
xchg esi, eax
dec esi
pop ss
cmpsd dword [esi], dword es:[edi]
xor ch, byte [ebp + eax*2 + 0x69]
aaa
invalid
push ebp
dec bp
shrd bp, ax, 3
sub bp, bx
bsf bp, dx
mov ebp, esp
push 0x44047d70
sub esp, 0x10
clc
push esi
dec si
and si, 0x9c17
clc
mov esi, eax
btc ax, cx
ror al, 1
xor al, 0xf7
movsx ax, dl
mov eax, dword [esi + 0x2c]
stc
bt eax, ebx
jmp 0x100cf824

Function at 0x10111155
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x101167af
pushfd
mov byte [esp], 0x42
lea esp, [esp + 0x14]
je 0x10118255
jmp 0x10111fbb
mov esi, dword [eax + 0x3c]
shl dh, 5
pushal
pushfd
add esi, eax
pushal
bswap dx
mov edx, dword [esi + 0x78]
clc
jmp 0x1010f588
stc
test edx, edx
call fcn.10111109
add byte [eax], al
insb byte es:[edi], dx
jae 0x10116830
jb 0x10116821
jo 0x10116839
inc ecx
add byte [eax - 0x42164e07], al
xchg edi, eax
invalid
mov dword [esp + 0x20], eax
bswap ax
mov dword [esp + 0x1c], 0
push dword [esp + 4]
movsx ax, cl
movzx ax, cl
lea eax, sym.imp.KERNEL32.dll_LocalAlloc
call fcn.10114a5e
add byte [eax], al
dec ecx
outsb dx, byte [esi]
jbe 0x1011686f
insb byte es:[edi], dx
imul esp, dword [ecx + 0x74], 0x63655265
je 0x10116819
lock or dword [eax - 0x7f], ecx
push cs
dec edi
pop edi
dec esi
int3
sar ch, 0x47
push esi
fmul dword [ebp + 0x24dcabf1]
xchg ebp, eax
and al, 0x95
bound edx, qword fs:[edi - 0xc]
call 0xc34802b
inc ebx
imul ebp, dword [ebp + 0x1a], 0x4b
popal
mov dh, 0xcf
push esp
cmp eax, 0xe9fbea84
enter 0xffffffffffffa599, 0xffffffffffffffd4
jge 0x101167e2
and dl, byte [edx]
mov esi, 0xbb9dc6ef
movsb byte es:[edi], byte [esi]
aaa
add bl, byte [edi]
aas
and ch, ah
push ecx
lea esi, [edx + edi + 0x4e]
test al, 0xc1
ffreep st(2)
invalid
Function at 0x401000
Capabilities:
Create process on windows
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x403004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x44
push 0
lea eax, [ebp - 0x78]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x7c], 0x5dc
mov edx, dword [str.TwelveSky22.exe]
mov dword [ebp - 0x24], edx
mov eax, dword [0x402104]
mov dword [ebp - 0x20], eax
mov ecx, dword [0x402108]
mov dword [ebp - 0x1c], ecx
mov edx, dword [0x40210c]
mov dword [ebp - 0x18], edx
mov eax, dword [str.TwelveSky2.exe]
mov dword [ebp - 0x14], eax
mov ecx, dword [0x402114]
mov dword [ebp - 0x10], ecx
mov edx, dword [0x402118]
mov dword [ebp - 0xc], edx
mov ax, word [0x40211c]
mov word [ebp - 8], ax
mov cl, byte [0x40211e]
mov byte [ebp - 6], cl
mov edx, dword [ebp - 0x7c]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
add esp, 8
mov dword [ebp - 0x78], 0x44
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x78]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004010e3
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401919
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401958
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401958
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401958
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401958
cmp dword [ecx + 0x74], 0xe
jbe 0x401958
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x403a90
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x270
jne 0x403aae
mov ecx, dword [ebp - 8]
call fcn.004046c0
jmp 0x403ac1
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4e0
jb 0x403ac1
mov ecx, dword [ebp - 8]
call fcn.00404520
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx], ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shr ecx, 0xb
mov edx, dword [ebp - 8]
and ecx, dword [edx + 0x1384]
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
shl eax, 7
and eax, 0x9d2c5680
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
shr edx, 0x12
xor edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x403cd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0xa
movzx eax, word [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004059f0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00404e10
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x404520
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], ecx
mov dword [ebp - 0x28], 0x26f
mov dword [ebp - 0x2c], 0xe3
mov dword [ebp - 8], 0
jmp 0x404549
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xe3
jae 0x4045b5
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
and edx, 1
je 0x40458d
mov dword [ebp - 0x14], 0x9908b0df
jmp 0x404594
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
shr eax, 1
xor eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx*4 + 0xff8]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 4], eax
jmp 0x404540
mov dword [ebp - 0xc], 0xe3
jmp 0x4045c7
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x26f
jae 0x404633
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
and edx, 1
je 0x40460b
mov dword [ebp - 0x1c], 0x9908b0df
jmp 0x404612
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
shr eax, 1
xor eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 4], eax
jmp 0x4045be
mov dword [ebp - 0x30], 0x26f
mov eax, 4
imul ecx, eax, 0x4df
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx + 4]
and eax, 0x80000000
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + edx + 4]
and edx, 0x7fffffff
or eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
and eax, 1
je 0x40467c
mov dword [ebp - 0x24], 0x9908b0df
jmp 0x404683
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x20]
shr ecx, 1
xor ecx, dword [ebp - 0x24]
mov edx, 4
imul eax, edx, 0x18c
mov edx, dword [ebp - 4]
xor ecx, dword [edx + eax + 4]
mov eax, 4
imul edx, eax, 0x26f
mov eax, dword [ebp - 4]
mov dword [eax + edx + 4], ecx
mov ecx, dword [ebp - 4]
mov dword [ecx], 0
mov esp, ebp
pop ebp
ret
Function at 0x4046c0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0x270
jmp 0x4046db
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x4e0
jae 0x404747
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 - 0x9bc]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 - 0x9b8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
and edx, 1
je 0x40471f
mov dword [ebp - 0x10], 0x9908b0df
jmp 0x404726
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
shr eax, 1
xor eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x4046d2
mov esp, ebp
pop ebp
ret