joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44cabb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x45ed40]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x44cafd
cmp byte [ebx], 0xa
jne 0x44cafd
or byte [edi + eax + 0x28], 4
jmp 0x44cb02
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x44cc05
mov cl, byte [eax]
cmp cl, 0x1a
je 0x44cbe0
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x44cb31
mov eax, dword [ebp - 8]
jmp 0x44cb51
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x44cb6d
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x44cb4b
add eax, 2
mov cl, 0xa
jmp 0x44cb4e
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x44cb13
jmp 0x44cc05
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44cbdb
cmp dword [ebp - 0x10], 0
je 0x44cbdb
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x45ed40]
test byte [eax + edi + 0x28], 0x48
je 0x44cbba
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x44cbaa
mov byte [esi], 0xa
jmp 0x44cc04
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x45ed40]
mov byte [eax + edi + 0x2a], cl
jmp 0x44cc04
cmp byte [ebp - 1], 0xa
jne 0x44cbc4
cmp esi, ebx
je 0x44cba5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0044c082
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44cc05
mov byte [esi], 0xd
jmp 0x44cc04
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x45ed40]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x44cc02
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x44cc05
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44cc0e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x45ed40]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x44cc52
push 0xa
pop esi
cmp word [ebx], si
jne 0x44cc52
or byte [eax + edi + 0x28], 4
jmp 0x44cc57
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x44cdc2
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x44cd9a
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x44cca4
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x44ccce
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x44cced
push 0xa
pop ebx
cmp word [edx], bx
jne 0x44ccbb
push ebx
add eax, 4
pop edx
jmp 0x44ccc3
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x44cc69
jmp 0x44cdc2
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44cd95
cmp dword [ebp - 0x14], 0
je 0x44cd95
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x45ed40]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x44cd71
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x44cd39
mov word [esi], ax
jmp 0x44cdbf
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x45ed40]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x45ed40]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x45ed40]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x44cdbf
cmp word [ebp - 4], ax
jne 0x44cd7b
cmp esi, ebx
je 0x44cd31
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0044c082
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x44cdc2
push 0xd
pop eax
jmp 0x44cd31
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x45ed40]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x44cdbc
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x44cdc2
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x450d40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x450d6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x450d6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40801b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417400]
jne 0x408025
repz ret
jmp fcn.0040dca7

Function at 0x40ae2c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417400]
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.00406439
and dword [ebp - 0x14], 0
cmp dword [0x43a454], 0
mov dword [ebp - 0x18], eax
jne 0x40aedf
push 0x402228
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40af87
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40221c
push ebx
call edi
test eax, eax
je 0x40af87
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40220c
push ebx
mov dword [0x43a454], eax
call edi
push eax
call esi
push 0x4021f8
push ebx
mov dword [0x43a458], eax
call edi
push eax
call esi
push 0x4021dc
push ebx
mov dword [0x43a45c], eax
call edi
push eax
call esi
mov dword [0x43a464], eax
test eax, eax
je 0x40aedf
push 0x4021c4
push ebx
call edi
push eax
call esi
mov dword [0x43a460], eax
mov eax, dword [0x43a460]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40af38
cmp dword [0x43a464], ecx
je 0x40af38
push eax
call esi
push dword [0x43a464]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40af38
test ebx, ebx
je 0x40af38
call edi
test eax, eax
je 0x40af2f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40af2f
test byte [ebp - 8], 1
jne 0x40af38
or dword [ebp + 0x10], 0x200000
jmp 0x40af6b
mov eax, dword [0x43a458]
cmp eax, dword [ebp - 0x18]
je 0x40af6b
push eax
call esi
test eax, eax
je 0x40af6b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40af6b
mov eax, dword [0x43a45c]
cmp eax, dword [ebp - 0x18]
je 0x40af6b
push eax
call esi
test eax, eax
je 0x40af6b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43a454]
call esi
test eax, eax
je 0x40af87
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40af89
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040801b
leave
ret
Function at 0x4147c0
Capabilities:
Access the windows event log
Connect pipe
Delete directory
Delete file
Get common file path
Manipulate console buffer
Read pipe
Write pipe

Disassembly:
mov eax, 0x1414
call fcn.0040eb80
cmp dword [0x7e9f34], 0x37
jne 0x414894
push 0x40347c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoA]
push 0
lea eax, [esp + 0xc18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0
lea ecx, [esp + 8]
push ecx
push 0
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [esp + 0x818]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x40348c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTapePosition]
push 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push 0
lea edx, [esp + 0x418]
push edx
push 0x4034a0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
mov eax, dword [0x7ea348]
mov edx, dword [0x7e9a18]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1414
ret
Function at 0x414ef0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x7e9f34]
sub esp, 0x484
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetDateFormatA]
mov ebp, 0x2443831
cmp eax, 0x47
jne 0x414f76
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x78]
push ecx
push 0x403770
mov dword [esp + 0x6c], 0
call esi
xor eax, eax
push eax
mov dword [esp + 0x56], eax
mov dword [esp + 0x5a], eax
mov dword [esp + 0x5e], eax
mov word [esp + 0x62], ax
lea eax, [esp + 0x94]
push eax
push 0x4037c4
xor edx, edx
lea ecx, [esp + 0x5c]
push ecx
push edx
push edx
mov word [esp + 0x68], dx
call edi
dec ebp
mov eax, dword [0x439b10]
mov dword [0x7e9f34], eax
jne 0x414f15
mov dword [esp + 0x20], 0x764d11c7
mov dword [esp + 0x4c], 0x26b44f20
mov dword [esp + 0x24], 0x1f33c7de
mov dword [esp + 0x10], 0x2e56cff9
mov dword [esp + 0x28], 0x6cde8df8
mov dword [esp + 0x14], 0x796abd53
mov dword [esp + 0x34], 0x3ce56ad4
mov dword [esp + 0x1c], 0x581868fc
mov dword [esp + 0x18], 0xc596c70
mov dword [esp + 0x3c], 0x6d5e9115
mov dword [esp + 0x30], 0x22f372d9
mov dword [esp + 0x40], 0x2ad541d0
mov dword [esp + 0x38], 0x7a5f7c43
mov dword [esp + 0x2c], 0x28d520e
mov dword [esp + 0x48], 0x73f3bc07
mov dword [esp + 0x44], 0x51f578e1
add dword [esp + 0x4c], 0x73e38130
mov eax, 0x3a9c3a87
mul dword [esp + 0x20]
mov eax, dword [esp + 0x20]
add dword [esp + 0x24], 0x6b053f58
add dword [esp + 0x20], 0x2818faf9
add dword [esp + 0x4c], 0x3ab2fc3
sub dword [esp + 0x20], 0x30ad2d47
sub dword [esp + 0x20], 0x4442fc9b
sub dword [esp + 0x28], 0x2285667
add dword [esp + 0x4c], 0x262c99c6
sub dword [esp + 0x14], 0x4dc74448
mov eax, 0x53cf4e1b
mul dword [esp + 0x24]
mov eax, dword [esp + 0x24]
add dword [esp + 0x24], 0x1b067f32
mov eax, 0x67698c83
mul dword [esp + 0x14]
mov eax, dword [esp + 0x14]
sub dword [esp + 0x28], 0x7674af1e
mov eax, 0x173863dd
mul dword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov eax, 0x3d786fdd
mul dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
mov eax, 0x38471b91
mul dword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov eax, 0x45f07edf
mul dword [esp + 0x4c]
mov eax, dword [esp + 0x4c]
add dword [esp + 0x18], 0x6fea1ecd
sub dword [esp + 0x34], 0x32f1f16e
add dword [esp + 0x34], 0x6e380599
sub dword [esp + 0x18], 0x3ca08c1e
add dword [esp + 0x30], 0x154e8e1
add dword [esp + 0x14], 0x53bb032d
sub dword [esp + 0x14], 0x11166d6c
sub dword [esp + 0x18], 0x2a6a1594
add dword [esp + 0x14], 0x4fb1fe05
mov eax, 0x4b3ce8e6
mul dword [esp + 0x34]
mov eax, dword [esp + 0x34]
add dword [esp + 0x3c], 0x1bc84bb6
sub dword [esp + 0x30], 0x687c0c2b
add dword [esp + 0x48], 0x36e578c2
sub dword [esp + 0x10], 0x7b5e58ec
mov eax, 0x38d0a1fb
mul dword [esp + 0x48]
mov eax, dword [esp + 0x48]
sub dword [esp + 0x40], 0x15793cf4
mov edx, dword [0x439b04]
mov dword [0x7ea348], edx
call fcn.00414b20
pop edi
xor eax, eax
pop esi
pop ebp
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406a26
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406a4a
xor eax, eax
test eax, eax
je 0x406a5d
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406a5d
xor ecx, ecx
jmp 0x406a60
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b83
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x45bdec], 0
push esi
jne 0x406bba
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b94
mov dword [ecx*4 + 0x45bde8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b8f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406beb
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x45bde8]
xor eax, esi
inc ecx
dec edx
jne 0x406bcd
pop edi
not eax
pop esi
ret 0xc

Function at 0x69a290
Capabilities:
Encode data using xor

Disassembly:
sbb al, 0x8b
inc ebp
or al, 0x8b
ror dword [ebp - 0x37c4befc], 1
je 0x69a270
xor edi, edi
cmp word [edx], di
je 0x69a270
add edx, 2
cmp edx, eax
jne 0x69a264
sub edx, ecx
sar edx, 1
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
push ebp
add ch, ch
and eax, 0x79e5151
jb 0x69a2f7
mov bl, 0xb7
test byte [edi - 0x78], dl
mov cl, 0x89
aam 0xf5
sub eax, 0xaefe21e8
lodsb al, byte [esi]
inc esp
aam 0x23
loope 0x69a255
add esi, ebx
insb byte es:[edi], dx
add byte [esi + ecx*2 + 0x36], bh
popal
int1
ficom dword [ecx + 0x38]
inc eax
and eax, edx
push ecx
nop
mov dl, 0xf0
mov dl, 0xce
test eax, 0x51cdd13b
and eax, 0x9f8a76b2
lahf
add esp, edi
hlt
sub byte [edi], ch
push esi
dec ebp
invalid
Function at 0x4033d0
Capabilities:
Enumerate gui resources
Get hostname

Disassembly:
mov eax, 0x240c
call fcn.0040c3a0
mov eax, dword [0x2b87bbc]
mov ecx, dword [0x2b87b30]
shr eax, 3
test eax, eax
jbe 0x403502
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x403420
cmp dword [0x2b87bbc], 0x959
jne 0x4034e4
push 0
lea eax, [esp + 0x1420]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
lea ecx, [esp + 0x420]
push ecx
push 0
call ebx
push 0
push 0
call esi
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push 0
push 0
lea edx, [esp + 0xc24]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push 0
lea eax, [esp + 0x1c20]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0x402d3c
push 0x402d4c
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov eax, dword [esp + 0x10]
push eax
call fcn.00403220
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x403420
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x240c
ret
Function at 0x40901b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42fa00]
jne 0x409025
repz ret
jmp fcn.0040b2ec

Function at 0x40aa3e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405d7d
and dword [ebp - 4], 0
cmp dword [0x430d88], 0
mov ebx, eax
jne 0x40aaef
push 0x402c1c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40aba0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402c10
push edi
call esi
test eax, eax
je 0x40aba0
push eax
call fcn.00405d0b
mov dword [esp], 0x402c00
push edi
mov dword [0x430d88], eax
call esi
push eax
call fcn.00405d0b
mov dword [esp], 0x402bec
push edi
mov dword [0x430d8c], eax
call esi
push eax
call fcn.00405d0b
mov dword [esp], 0x402bd0
push edi
mov dword [0x430d90], eax
call esi
push eax
call fcn.00405d0b
pop ecx
mov dword [0x430d98], eax
test eax, eax
je 0x40aaef
push 0x402bb8
push edi
call esi
push eax
call fcn.00405d0b
pop ecx
mov dword [0x430d94], eax
mov eax, dword [0x430d94]
cmp eax, ebx
je 0x40ab47
cmp dword [0x430d98], ebx
je 0x40ab47
push eax
call fcn.00405d86
push dword [0x430d98]
mov esi, eax
call fcn.00405d86
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ab47
test edi, edi
je 0x40ab47
call esi
test eax, eax
je 0x40ab3e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ab3e
test byte [ebp - 0xc], 1
jne 0x40ab47
or dword [ebp + 0x10], 0x200000
jmp 0x40ab80
mov eax, dword [0x430d8c]
cmp eax, ebx
je 0x40ab80
push eax
call fcn.00405d86
pop ecx
test eax, eax
je 0x40ab80
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ab80
mov eax, dword [0x430d90]
cmp eax, ebx
je 0x40ab80
push eax
call fcn.00405d86
pop ecx
test eax, eax
je 0x40ab80
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x430d88]
call fcn.00405d86
pop ecx
test eax, eax
je 0x40aba0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40aba2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402750
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x34
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call sub.KERNEL32.DLL_GetCurrentProcessId
mov ecx, 0x100001
xor edx, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esi, esp
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], 0x100001
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
call sub.KERNEL32.DLL_OpenProcess
sub esp, 0xc
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, esp
mov dword [edx], eax
mov dword [edx + 4], 0
mov dword [ebp - 0x1c], ecx
call sub.KERNEL32.DLL_TerminateProcess
sub esp, 8
mov dword [ebp - 0x20], eax
add esp, 0x34
pop esi
pop ebp
ret

Function at 0x405abc
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0xffffffff
mov esi, 0x6c078965
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp], edi
mov dword [esp + 4], ebx
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0xc], 0x6c078965
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
call fcn.00405b0c
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40ba08
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 0x1c], 4
jae 0x40ba67
xor eax, eax
mov ecx, 4
lea edx, [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
shl esi, 2
add edx, esi
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 4
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
call fcn.00540e93
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
jmp 0x40ba23
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], 4
jae 0x40bb0b
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x24], 4
jae 0x40bafb
mov dword [ebp - 0x28], 0
cmp dword [ebp - 0x28], 4
jae 0x40baee
lea eax, [ebp - 0x18]
lea ecx, [0x555777]
lea edx, [0x556777]
mov esi, dword [ebp - 0x20]
shl esi, 2
add edx, esi
mov esi, dword [ebp - 0x24]
movzx edx, byte [edx + esi]
shl edx, 8
add ecx, edx
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x24]
shl esi, 2
add edx, esi
mov esi, dword [ebp - 0x28]
movzx edx, byte [edx + esi]
movzx ecx, byte [ecx + edx]
mov edx, dword [ebp - 0x20]
shl edx, 2
add eax, edx
mov edx, dword [ebp - 0x28]
movzx esi, byte [eax + edx]
xor esi, ecx
mov ecx, esi
mov bl, cl
mov byte [eax + edx], bl
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
jmp 0x40ba8c
jmp 0x40baf0
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
jmp 0x40ba7f
jmp 0x40bafd
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
jmp 0x40ba6e
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 0x2c], 4
jae 0x40bb58
mov eax, 4
lea ecx, [ebp - 0x18]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x2c]
shl esi, 2
add edx, esi
mov esi, dword [ebp - 0x2c]
shl esi, 2
add ecx, esi
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], 4
mov dword [ebp - 0x44], eax
call fcn.00540cc8
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
jmp 0x40bb12
add esp, 0x50
pop esi
pop ebx
pop ebp
ret
Function at 0x4304c8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
mov dword [ebp - 8], eax
call fcn.004057a0
mov ecx, esp
mov dword [ecx], eax
call sub.KERNEL32.DLL_GetFileAttributesA
sub esp, 4
xor ecx, ecx
mov dl, cl
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
mov byte [ebp - 9], dl
je 0x43050d
mov eax, dword [ebp - 4]
and eax, 0x10
cmp eax, 0
setne cl
xor cl, 0xff
mov byte [ebp - 9], cl
mov al, byte [ebp - 9]
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0xa]
and al, 1
movzx eax, al
add esp, 0x18
pop ebp
ret
Function at 0x430b48
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
mov dword [ebp - 0x1c], eax
call fcn.004057a0
mov ecx, SysReAllocStringLen
mov edx, 1
xor esi, esi
mov edi, 3
mov ebx, 0x80
mov dword [ebp - 0x20], eax
mov eax, esp
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov dword [eax + 0x18], 0
mov dword [eax + 0x14], 0x80
mov dword [eax + 0x10], 3
mov dword [eax + 0xc], 0
mov dword [eax + 8], 1
mov dword [eax + 4], SysStringLen
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edi
call sub.KERNEL32.DLL_CreateFileA
sub esp, 0x1c
mov ecx, 0xffffffff
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], ecx
jne 0x430bda
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0x10], eax
jmp 0x430c32
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov edx, esp
mov dword [edx], ecx
mov dword [edx + 4], 0
mov dword [ebp - 0x38], eax
call sub.KERNEL32.DLL_GetFileSize
sub esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x430c1a
mov eax, dword [ebp - 0x14]
mov ecx, esp
mov dword [ecx], eax
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov dword [ebp - 0x3c], eax
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0x10], eax
jmp 0x430c32
mov eax, dword [ebp - 0x14]
mov ecx, esp
mov dword [ecx], eax
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x10]
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret