joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d9fc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40da3f
call fcn.0040e2eb
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40da3f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40da5a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040d5b3
test ebx, ebx
mov esi, eax
je 0x40da58
test edi, edi
je 0x40da58
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40e7ee
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x40e834
call fcn.0040e2eb
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40e834
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40e877
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x40e860
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x40e860
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40e874
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4100ca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x437930
call fcn.00423cce
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0040e2eb
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x410115
call fcn.0040e2eb
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x410126
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x410133
or eax, 0xffffffff
jmp 0x41028f
mov ecx, esi
call fcn.0040fc11
mov dword [ebp - 0x14], eax
call fcn.0040ae80
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x4101b1
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4101b1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4101b1
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00406620
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x4101b1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x4101b1
mov ecx, ebx
call fcn.004104f2
test eax, eax
je 0x4101b1
push 0
mov ecx, ebx
call fcn.0041050d
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0040c7dc
push dword [ebp - 0x14]
call fcn.0040add8
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0040fed2
xor edi, edi
cmp eax, edi
je 0x41020e
test byte [esi + 0x3c], 0x10
je 0x4101f8
push 4
pop edi
mov ecx, esi
call fcn.004103d9
test ax, 0x100
je 0x4101ee
push 5
pop edi
push edi
mov ecx, esi
call fcn.0040a96e
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x41020e
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004106b7
or dword [ebp - 4], 0xffffffff
jmp 0x410239
cmp dword [ebp - 0x28], edi
je 0x410247
push 1
mov ecx, ebx
call fcn.0041050d
cmp dword [ebp - 0x2c], edi
je 0x410257
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x410270
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x410270
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0040fc4b
cmp dword [esi + 0x58], edi
je 0x41028c
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00423d73
ret
Function at 0x411e95
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 0x411ec3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x411ee1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00411dff
jmp 0x411ee1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x411ee1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00411dff
test edi, edi
mov eax, edi
jne 0x411ecb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x44a4a8]
test ecx, ecx
je 0x411fa4
jmp 0x411e94
ret 8

Function at 0x4217b1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4475e0]
jne 0x4217bb
repz ret
jmp fcn.00426fa1

Function at 0x42b7ed
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x448030]
je 0x42b808
inc edi
cmp edi, 0x17
jb 0x42b7f9
cmp edi, 0x17
jae 0x42b988
push ebp
push 3
call fcn.00432808
cmp eax, 1
pop ecx
je 0x42b954
push 3
call fcn.00432808
test eax, eax
pop ecx
jne 0x42b83c
cmp dword [0x447450], 1
je 0x42b954
cmp ebx, 0xfc
je 0x42b987
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x44acf8
push ebp
call fcn.0042216d
add esp, 0xc
test eax, eax
je 0x42b872
push esi
push esi
push esi
push esi
push esi
call fcn.00427891
add esp, 0x14
push 0x104
mov esi, 0x44ad11
push esi
push 0
mov byte [0x44ae15], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42b8b6
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042216d
add esp, 0xc
test eax, eax
je 0x42b8b6
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00427891
add esp, 0x14
push esi
call fcn.00424150
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42b8fb
push esi
call fcn.00424150
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x44b00c
push 0x43c9fc
sub ecx, eax
push ecx
push eax
call fcn.0042469c
add esp, 0x14
test eax, eax
je 0x42b8fb
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00427891
add esp, 0x14
jmp 0x42b8fd
xor esi, esi
push 0x43c9f8
push ebx
push ebp
call fcn.004242e1
add esp, 0xc
test eax, eax
je 0x42b91d
push esi
push esi
push esi
push esi
push esi
call fcn.00427891
add esp, 0x14
push dword [edi*8 + 0x448034]
push ebx
push ebp
call fcn.004242e1
add esp, 0xc
test eax, eax
je 0x42b93f
push esi
push esi
push esi
push esi
push esi
call fcn.00427891
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043264b
add esp, 0xc
jmp 0x42b987
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x42b987
cmp ebp, 0xffffffff
je 0x42b987
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x448034]
push dword [esi]
call fcn.00424150
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x43264b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00427282
xor ebx, ebx
cmp dword [0x44b254], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x432721
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x432801
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43db9c
push edi
call esi
cmp eax, ebx
je 0x432801
push eax
call fcn.00427214
mov dword [esp], 0x43db8c
push edi
mov dword [0x44b254], eax
call esi
push eax
call fcn.00427214
mov dword [esp], 0x43db78
push edi
mov dword [0x44b258], eax
call esi
push eax
call fcn.00427214
mov dword [0x44b25c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00423ed3
test eax, eax
pop ecx
pop ecx
je 0x4326ef
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00427891
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x432721
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00427214
cmp eax, ebx
pop ecx
mov dword [0x44b264], eax
je 0x432721
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00427214
pop ecx
mov dword [0x44b260], eax
mov eax, dword [0x44b260]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4327a6
cmp dword [0x44b264], ecx
je 0x4327a6
push eax
call fcn.0042728b
push dword [0x44b264]
mov esi, eax
call fcn.0042728b
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4327a6
cmp edi, ebx
je 0x4327a6
call esi
cmp eax, ebx
je 0x432773
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x432773
test byte [ebp - 0x18], 1
jne 0x4327a6
lea eax, [ebp - 0x10]
push eax
call fcn.00423f0a
test eax, eax
pop ecx
je 0x43278e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00427891
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43279d
or dword [ebp + 0x10], 0x200000
jmp 0x4327e1
or dword [ebp + 0x10], 0x40000
jmp 0x4327e1
mov eax, dword [0x44b258]
cmp eax, dword [ebp - 8]
je 0x4327e1
push eax
call fcn.0042728b
cmp eax, ebx
pop ecx
je 0x4327e1
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4327e1
mov eax, dword [0x44b25c]
cmp eax, dword [ebp - 8]
je 0x4327e1
push eax
call fcn.0042728b
cmp eax, ebx
pop ecx
je 0x4327e1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44b254]
call fcn.0042728b
cmp eax, ebx
pop ecx
je 0x432801
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x432803
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x437094
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4475e0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00437029
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00423db0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4370e3
cmp dword [ebp - 0x1c], 5
jb 0x4370fb
jmp 0x4370f7
cmp dword [ebp - 0x10], 1
jne 0x4370fb
cmp dword [ebp - 0x1c], 4
ja 0x4370f7
jne 0x4370fb
cmp dword [ebp - 0x18], 0
jbe 0x4370fb
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43e3b0
call fcn.00436f1a
test eax, eax
jge 0x43711c
mov byte [0x44b2f5], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004217b1
add ebp, 0x78
leave
ret
Function at 0x403ba0
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
jne 0x403ba7
xor eax, eax
ret
test ecx, ecx
jbe 0x403ba4
not eax
push esi
mov edi, edi
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x420098]
dec ecx
inc edx
test ecx, ecx
jne 0x403bb0
pop esi
not eax
ret

Function at 0x403bd0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
push ebp
mov ebp, dword [esp + 0x10]
test edx, edx
jne 0x403be1
pop ebp
ret
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jbe 0x403bfb
test ebp, ebp
je 0x403bfb
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x403bfb
cmp dword [ecx], 4
jae 0x403c00
pop edi
xor eax, eax
pop ebp
ret
push ebx
push esi
mov esi, edi
shr esi, 0xf
mov ebx, esi
shl ebx, 0xf
mov ecx, edi
sub ecx, ebx
test esi, esi
jbe 0x403c65
mov ebx, edx
mov edx, esi
jmp 0x403c20
mov esi, 0x8000
mov edi, ebx
test ebx, ebx
jne 0x403c2f
xor eax, eax
jmp 0x403c52
not eax
movzx ebp, byte [edi]
xor ebp, eax
and ebp, 0xff
shr eax, 8
xor eax, dword [ebp*4 + 0x420098]
dec esi
inc edi
test esi, esi
jne 0x403c31
mov ebp, dword [esp + 0x1c]
not eax
add ebx, 0x8000
sub edx, 1
jne 0x403c20
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
pop esi
pop ebx
test ecx, ecx
jbe 0x403c74
sub edx, ecx
add edx, edi
call fcn.00403ba0
mov ecx, eax
shr ecx, 0x18
mov byte [ebp], cl
mov edx, eax
shr edx, 0x10
mov ecx, eax
mov byte [ebp + 1], dl
mov edx, dword [esp + 0x18]
shr ecx, 8
mov byte [ebp + 3], al
mov byte [ebp + 2], cl
pop edi
mov dword [edx], 4
mov eax, 1
pop ebp
ret

Function at 0x404440
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test edi, edi
je 0x404470
push esi
push eax
call fcn.0040a281
add esp, 4
xor esi, esi
test ebx, ebx
jbe 0x40446f
call fcn.0040a293
and eax, 0x800000ff
jns 0x404467
dec eax
or eax, 0xffffff00
inc eax
xor byte [esi + edi], al
inc esi
cmp esi, ebx
jb 0x404454
pop esi
ret
Function at 0x4099cc
Capabilities:
Parse pe header

Disassembly:
push 0x58
push 0x41d0d8
call 0x40bd60
xor esi, esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x68]
sal bh, 1
adc eax, 0x4170ec
push 0xfffffffffffffffe
pop edi
mov dword [ebp - 4], edi
mov eax, 0x5a4d
cmp word [eax + eax], ax
add byte [eax], al
jne 0x409a33
mov eax, dword [0x40023c]
cmp dword [eax + 0x400000], 0x4550
jne 0x409a33
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x409a33
cmp dword [eax + 0x400074], 0x3310760e
leave
cmp dword [eax + 0x4000e8], esi
setne cl
mov dword [ebp - 0x1b], ecx
jmp 0x409a36
mov dword [ebp - 0x1c], esi
xor ebx, ebx
ret
call fcn.0040ed14
jmp 0x4099cc
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x8717985
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x70db5564
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x99677c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x9967a3
call fcn.00938d18
mov dword [eax], esi
call fcn.00938d05
push 0x16
pop esi
mov dword [eax], esi
call fcn.0093995a
mov eax, esi
jmp 0x9967f8
test dword [ebp + 0xc], 0xfffffff9
jne 0x996789
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x9967d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00938d2b
pop ecx
call fcn.00938d05
mov eax, dword [eax]
jmp 0x9967f8
test al, 0x10
jne 0x9967f6
test al, 1
je 0x9967f6
test byte [ebp + 0xc], 2
je 0x9967f6
call fcn.00938d18
mov dword [eax], 5
call fcn.00938d05
mov dword [eax], 0xd
jmp 0x9967c7
xor eax, eax
pop esi
pop ebp
ret

Function at 0x43b646
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x43b3c1
dec ebx
sub edx, 0xf11bf0ec
add ebx, ebx
call fcn.0043b681
inc edx
sub edx, ebx
and ebx, ebx
xor dword [ecx], eax
add edx, ebx
sub edx, edx
sub ebx, edx
inc ecx
and edx, edx
sub ebx, edx
sub edx, 0x3a037eb4
cmp ecx, edi
jne fcn.0043b646
add edx, 0xe671506e
add edx, ebx
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0xb135be6
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x228567f4
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x479e90
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov eax, dword [0x4768a8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x479efd
mov esi, dword [0x46c784]
mov edx, dword [0x477a58]
push 4
push edi
push 0x47687c
push 0x476878
inc esi
push edi
push 0x4768bc
mov dword [0x476d54], edi
mov dword [0x46c784], esi
mov dword [0x476878], edx
mov dword [0x47687c], edi
call fcn.0047be60
cmp ax, di
jne 0x479ef4
mov ecx, dword [0x47687c]
mov edx, dword [0x477a58]
xor ecx, edx
je 0x47a016
pop edi
pop esi
mov eax, 3
pop ebx
ret
mov eax, dword [0x46c788]
mov ebx, 1
cmp eax, ebx
mov dword [0x476d54], ebx
je 0x479f75
mov eax, dword [0x46c784]
mov ecx, dword [0x46c780]
cmp eax, ecx
je 0x479f75
mov ecx, dword [0x477a58]
push 4
push edi
mov esi, eax
push 0x47687c
push 0x476878
inc esi
push edi
push 0x4768bc
mov dword [0x46c784], esi
mov dword [0x476878], ecx
mov dword [0x47687c], edi
call fcn.0047be60
cmp ax, di
jne 0x479f6c
mov edx, dword [0x47687c]
mov ecx, dword [0x477a58]
xor edx, ecx
je 0x47a016
pop edi
pop esi
mov eax, 3
pop ebx
ret
push edi
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 8
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 5
push 4
idiv ecx
mov eax, dword [0x477a58]
push edi
and eax, 0x1f3
push 0x47687c
mov dword [0x476888], eax
push 0x476878
mov dword [0x46c784], ebx
mov dword [0x47687c], edi
inc edx
mov dword [0x46c780], edx
mov edx, dword [eax*4 + 0x469010]
movzx ax, byte [0x46900d]
xor edx, 0xfd0699d6
push eax
push 0x4768bc
mov dword [0x476878], edx
call fcn.0047be60
mov esi, eax
cmp si, di
jne 0x47a01a
mov ecx, dword [0x476888]
mov edx, dword [ecx*4 + 0x4697e0]
mov ecx, dword [0x47687c]
xor edx, ecx
xor edx, 0x7b2309a7
jne 0x47a01a
mov dword [0x46c788], edi
mov ax, si
pop edi
pop esi
pop ebx
ret
mov al, byte [0x46bb96]
cmp al, 0x31
jne 0x47a02a
mov esi, 3
jmp 0x47a034
cmp al, 0x32
je 0x47a032
cmp al, 0x33
jne 0x47a034
xor esi, esi
mov ecx, dword [0x476788]
mov dword [0x46c788], ebx
cmp ecx, edi
jne 0x47a013
cmp al, 0x32
je 0x47a04c
cmp al, 0x33
jne 0x47a013
mov eax, dword [0x4768ac]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x2010
mov dword [0x476884], 0xc
call fcn.00479060
push eax
call fcn.0047aaf0
mov ecx, dword [0x4768ac]
add esp, 8
mov dword [0x476884], edi
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ax, si
pop edi
mov dword [0x476788], ebx
pop esi
pop ebx
ret
Function at 0x47a410
Capabilities:
Suspend thread

Disassembly:
push ecx
push ebx
push esi
push edi
push 0x477a40
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov eax, dword [esi*4 + 0x477a80]
test eax, eax
je 0x47a463
lea ecx, [esp + 0xc]
push ecx
push eax
call ebx
test eax, eax
je 0x47a463
cmp dword [esp + 0xc], 0x103
je 0x47a463
mov edx, dword [esi*4 + 0x477a80]
push edx
call edi
mov dword [esi*4 + 0x477a80], 0
push esi
call fcn.0047a600
mov esi, eax
add esp, 4
cmp esi, 0x64
jl 0x47a42d
mov edi, dword [sym.imp.KERNEL32.dll_SuspendThread]
xor esi, esi
mov eax, dword [esi*4 + 0x477a80]
test eax, eax
je 0x47a489
push eax
call edi
push esi
call fcn.0047a600
mov esi, eax
add esp, 4
cmp esi, 0x64
jl 0x47a47b
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x47a4a0
Capabilities:
Resume thread

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
xor esi, esi
mov eax, dword [esi*4 + 0x477a80]
test eax, eax
je 0x47a4b8
push eax
call edi
push esi
call fcn.0047a600
mov esi, eax
add esp, 4
cmp esi, 0x64
jl 0x47a4aa
push 0x477a40
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
ret

Function at 0x47b750
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
xor eax, eax
mov ecx, 0x25
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov dword [esp + 4], 0x94
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x47b7ae
cmp dword [esp + 0x14], 2
jne 0x47b794
cmp dword [esp + 8], 5
jne 0x47b794
cmp dword [esp + 0xc], 1
mov ax, 1
jae 0x47b798
mov ax, 2
mov word [0x4744e0], ax
cmp ax, 1
jne 0x47b7ae
call fcn.0047b480
call fcn.0047b620
pop edi
add esp, 0x94
ret

Function at 0x47bd20
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x47bd33
mov ax, 0x10
pop edi
pop esi
ret 0xc
push edi
call fcn.0047e970
mov esi, eax
mov ax, word [esi]
cmp ax, 0x7243
jne 0x47bd75
mov word [esi], 0x7242
push esi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push edi
call fcn.0047fd30
push eax
call fcn.0047b7c0
mov word [esi + 6], ax
add esp, 8
mov word [esi], 0x7243
pop edi
mov ax, word [esi + 6]
pop esi
ret 0xc
cmp ax, 0x7242
jne 0x47bd9a
mov eax, dword [esp + 0x14]
push esi
mov ecx, dword [esp + 0x14]
push eax
push ecx
push edi
call fcn.0047fd30
push eax
call fcn.0047b7c0
add esp, 8
pop edi
pop esi
ret 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push edi
call fcn.00480700
pop edi
pop esi
ret 0xc