joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2d3f4d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov word [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x7a797867
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0x1d
ja 0x2d3f573
nop
nop
nop
nop
mov ecx, dword [esp + 8]
mov eax, dword [esp + 8]
movzx edx, byte [esp + eax + 0x10]
lea eax, [ecx - 0x304c7791]
add ecx, 0x6f
xor ecx, eax
xor eax, edx
and ecx, edx
sub eax, ecx
mov ecx, eax
xor ecx, 0xf6
and eax, 0x76
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0x1e
jb 0x2d3f530
mov eax, dword [esp + 0x10]
mov edi, dword [0x2d4dd6c]
test edi, edi
je 0x2d3f5cd
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [0x2d4dd70]
nop
cmp dword [esi + ebx*8], 0xea176b69
je 0x2d3f5a0
inc ebx
cmp edi, ebx
jne 0x2d3f590
jmp 0x2d3f5cd
mov edi, dword [esi + ebx*8 + 4]
cmp edi, eax
je 0x2d3f5cd
lea eax, [esp + 8]
push 0
push 0
push edx
push ecx
push eax
push 0
push 0
push 0
push dword [ebp + 8]
push 9
push dword [0x2d4dd74]
push edi
call fcn.02d3c030
add esp, 0x30
mov edi, dword [ebp + 0x14]
cmp eax, 0x103
jne 0x2d3f6c8
mov word [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x7a797867
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x1d
ja 0x2d3f673
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov eax, dword [esp + 4]
movzx edx, byte [esp + eax + 0x10]
lea eax, [ecx - 0x304c7791]
add ecx, 0x6f
xor ecx, eax
xor eax, edx
and ecx, edx
sub eax, ecx
mov ecx, eax
xor ecx, 0xf6
and eax, 0x76
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x1e
jb 0x2d3f630
mov eax, dword [esp + 0x10]
mov ecx, dword [0x2d4dd6c]
test ecx, ecx
je 0x2d3f6c0
xor edx, edx
mov esi, dword [0x2d4dd70]
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x7a1a689f
je 0x2d3f6a0
inc edx
cmp ecx, edx
jne 0x2d3f690
jmp 0x2d3f6c0
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x2d3f6c0
push 0
push 0
push dword [ebp + 8]
push 3
push dword [0x2d4dd74]
push ecx
call fcn.02d3c030
add esp, 0x18
test eax, eax
js 0x2d3f6c8
mov eax, dword [esp + 8]
test edi, edi
je 0x2d3f6d2
mov ecx, dword [esp + 0xc]
mov dword [edi], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x2d3f6e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
xor ecx, ecx
nop
nop
nop
nop
nop
nop
cmp word [edi + ecx], 0
lea ecx, [ecx + 2]
jne 0x2d3f700
add ecx, edi
add ecx, 0xfffffffe
mov ebx, edi
not ebx
and ebx, ecx
xor ecx, edi
add ebx, ebx
sub ebx, ecx
and ebx, 0xfffe
mov word [esp + 8], bx
add ebx, 2
mov word [esp + 0xa], bx
mov dword [esp + 0xc], edi
mov dword [esp + 0x34], 0x18
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], 0x40
lea eax, [esp + 8]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov word [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x7a797867
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x1d
ja 0x2d3f7f3
nop
nop
mov ecx, dword [esp + 4]
mov eax, dword [esp + 4]
movzx edi, byte [esp + eax + 0x10]
lea eax, [ecx - 0x304c7791]
add ecx, 0x6f
xor ecx, eax
xor eax, edi
and ecx, edi
sub eax, ecx
mov ecx, eax
xor ecx, 0xf6
and eax, 0x76
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x1e
jb 0x2d3f7b0
mov eax, dword [esp + 0x10]
mov edi, dword [0x2d4dd6c]
test edi, edi
je 0x2d3f843
xor ebx, ebx
mov ecx, dword [0x2d4dd70]
nop
nop
nop
nop
nop
nop
nop
cmp dword [ecx + ebx*8], 0x8ea7b332
je 0x2d3f820
inc ebx
cmp edi, ebx
jne 0x2d3f810
jmp 0x2d3f843
mov ecx, dword [ecx + ebx*8 + 4]
cmp ecx, eax
je 0x2d3f843
lea eax, [esp + 0x34]
push esi
push eax
push edx
push dword [ebp + 0xc]
push 4
push dword [0x2d4dd74]
push ecx
call fcn.02d3c030
add esp, 0x1c
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403300
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x417ad9
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x421f48]
xor eax, esp
mov dword [esp + 0x38], eax
push esi
push edi
mov eax, dword [0x421f48]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
push 0xe
xor eax, eax
mov dword [esp + 0x14], esi
push 0x41b9f4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call fcn.00406040
lea ecx, [esi + 8]
mov dword [esi], 0x41b9e8
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0xc], esi
mov word [ecx], ax
lea eax, [esp + 0x14]
mov byte [esp + 0x50], 1
cmp ecx, eax
je 0x40339c
push 0xffffffffffffffff
push 0
push eax
call fcn.00405f30
mov byte [esi + 5], 0
cmp dword [esp + 0x28], 8
mov byte [esp + 0x50], 3
jb 0x4033b8
push dword [esp + 0x14]
call fcn.00416598
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
push 0xa
push 0x41ba14
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], eax
mov word [esp + 0x34], ax
call fcn.00406040
lea edi, [esi + 0x20]
xor eax, eax
mov dword [edi], 0x41b9f0
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], 0
mov dword [esp + 0xc], edi
mov word [edi + 4], ax
lea ecx, [edi + 0x20]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], eax
mov word [ecx], ax
lea eax, [esp + 0x2c]
mov byte [esp + 0x50], 6
cmp ecx, eax
je 0x403438
push 0xffffffffffffffff
push 0
push eax
call fcn.00405f30
cmp dword [esp + 0x40], 8
mov byte [edi + 0x1c], 0
jb 0x40344f
push dword [esp + 0x2c]
call fcn.00416598
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00416a6e
add esp, 0x48
ret

Function at 0x4074a0
Capabilities:
Packed with generic packer

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x20]
mov dword [esi], 0x41bdec
call dword [0x41b098]
mov ecx, esi
pop esi
jmp fcn.00412bd0
Function at 0x10031690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x1003169f
pop dword [ebp - 0x44]
mov eax, 0x1003169f
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x64bad5de
sub dword [ebp - 0x54], 0x16689093
mov dword [ebp - 0x50], 0x6acbb11e
add dword [ebp - 0x50], 0xc7679b27
mov dword [ebp - 0x4c], 0x9620b8b2
add dword [ebp - 0x4c], 0xb62b8b7c
mov dword [ebp - 0x48], 0x1a043d28
sub dword [ebp - 0x48], 0x1a043d28
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xc1a7e508
sub dword [ebp - 0x54], 0x4d357bb2
mov dword [ebp - 0x50], 0x618ffb30
sub dword [ebp - 0x50], 0x202399bb
mov dword [ebp - 0x4c], 0x1387d0dd
add dword [ebp - 0x4c], 0x4fe79b8f
mov dword [ebp - 0x48], 0x7987041
add dword [ebp - 0x48], 0xf8678fbf
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0xeec8cab5
add eax, 0x213b15cf
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3f599
push 0
call eax
mov ecx, 0x4c24
mov esi, eax
mov edx, 0x5f84efc6
sub edx, 0x4f7dddc6
add edx, dword [ebp - 0x44]
mov edi, 0xa2fc632
sub edi, 0xda033613
xor dword [ebp - 8], eax
mov ebx, dword [edx]
mov dword [ebp - 0x3c], 0xa0385794
add ebx, edi
xor dword [ebp - 0x1c], 0x341194c
mov dword [esi], ebx
add dword [ebp - 0x1c], ebx
add esi, 0x56ae3c6c
add esi, 0xa951c398
add edx, 4
loop 0x100317b1
add eax, 0xcff986d4
add eax, 0x30079c8f
xor ebx, ebx
add ebx, eax
add eax, 0x260cfa02
add eax, 0xd9f30603
mov ecx, 0x10000000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x406790
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004091a4
test esi, esi
jne 0x4067c6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040932c
jmp 0x4067e4
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004066d4
mov edi, eax
test esi, esi
je 0x4067e4
cmp dword [ebx], 0
je 0x4067e4
dec esi
jmp 0x4067cd
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x407ed0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004082a8
mov byte [esp], al
cmp byte [esp], 0
jne 0x408050
test edi, edi
je 0x408050
mov byte [esp + 1], 0
test ebp, ebp
jle 0x407f90
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x407f6b
cmp edi, 0xffffffff
je 0x407f2f
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407f2f
mov byte [esp], 0
jmp 0x408050
mov ebx, dword [esi]
cmp ebx, 1
jg 0x407f6b
test ebx, ebx
jne 0x407f61
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x407f61
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408050
call 0x4083c8
dec ebp
test ebp, ebp
jg 0x407f14
cmp edi, 0xffffffff
je 0x407f90
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407f8e
mov byte [esp], 0
jmp 0x408050
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x407ede
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407f90
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004080bc
mov edx, eax
mov ebx, dword [0x6868f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x407ff4
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x407ff2
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x407ff4
xor edi, edi
cmp byte [esp], 0
je 0x40801a
mov ebx, dword [esi]
test bl, 1
jne 0x408030
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407ffa
mov byte [esp + 1], 1
jmp 0x408030
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40801a
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x407fa7
cmp byte [esp], 0
je 0x408050
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x408e04
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x686058], 0
je 0x408e6b
cmp word [0x686344], 0xd7b2
jne 0x408e2d
cmp dword [0x68634c], 0
jbe 0x408e2d
mov eax, 0x686340
call dword [0x68635c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x408e98
call fcn.00409bb8
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x669032], 0
jne 0x408e87
push 0
push 0x6699ea
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409064
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x669034], 0
je 0x40908f
mov edx, edi
mov eax, esi
call dword [0x669034]
mov ebx, eax
jmp 0x4090a0
mov eax, 8
call fcn.004063fc
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x686059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40902c
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x4090d0
mov eax, ebx
call fcn.00406418
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40ba24
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40bb89
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004091a4
cmp si, word [0x669a28]
jb 0x40babc
cmp si, word [0x669c28]
ja 0x40babc
mov edi, pe_nt_image_headers32
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40babc
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x669a28]
jae 0x40ba96
mov edi, ebx
dec edi
jmp 0x40bab7
cmp si, word [ebx*8 + 0x669a28]
jbe 0x40baa6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40bab7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x669a2c]
call fcn.0040b944
jmp 0x40babc
cmp edi, dword [ebp - 8]
jae 0x40ba80
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40bb6b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bb6b
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409f5c
push dword [ebp - 0x160]
push 0x40bba4
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00409f5c
push dword [ebp - 0x164]
push 0x40bbb4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409f5c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a194
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bb90
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409204
ret
Function at 0x40bd3c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40be3f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x688b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x688ba0]
jne 0x40bd88
mov eax, esi
mov edx, 0x688ba2
mov ecx, 0x55
call fcn.00409f5c
push 0x688b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40be29
push 0x688b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004091a4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bdf7
cmp byte [0x688b84], 0
je 0x40bdbc
mov edx, esi
mov eax, ebx
call fcn.0040bc20
jmp 0x40bdf7
mov edx, esi
mov eax, ebx
call fcn.0040ba24
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40bdf7
cmp dword [esi], 0
je 0x40bde0
mov eax, esi
mov edx, 0x40be58
call fcn.0040a0b4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040ba24
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a0b4
push 0x688b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x688ba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.00409eb8
push eax
push 0x688ba2
call sub.kernel32.dll_lstrcpynW
push 0x688b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40be46
lea eax, [ebp - 4]
call fcn.004091a4
ret
Function at 0x424324
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x424488
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4242c4]
call fcn.0040b364
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x4242f4]
call fcn.0040b364
add esp, 4
movzx ebx, byte [0x424498]
mov dl, 1
mov eax, esi
call fcn.0042468c
test al, al
jne 0x42439e
mov dl, 1
mov eax, esi
call fcn.004245f4
test al, al
je 0x424428
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.00424b70
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.0042aca8
push 0x104
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x104
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00409eb8
mov esi, eax
push esi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x424423
test byte [ebp - 0x14], 1
je 0x4243ee
or bl, 1
test byte [ebp - 0x14], 2
je 0x4243f7
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x424400
or bl, 0x20
push esi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x424414
dec eax
je 0x424419
dec eax
je 0x42441e
dec eax
jne 0x424449
or bl, 0x10
jmp 0x424449
or bl, 4
jmp 0x424449
or bl, 8
jmp 0x424449
call fcn.0042b43c
lea edx, [ebp - 0x20]
mov eax, dword [0x685250]
call fcn.0040cf84
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x41d724]
call fcn.0042980c
call fcn.00408864
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42448f
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00409204
lea eax, [ebp - 0xc]
mov edx, dword [0x4242f4]
call fcn.0040b488
lea eax, [ebp - 8]
mov edx, dword [0x4242c4]
call fcn.0040b488
lea eax, [ebp - 4]
call fcn.004091a4
ret

Function at 0x4244f4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x424521
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x4296bc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4297e1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004294c4
mov esi, eax
mov eax, dword [0x685180]
cmp byte [eax], 0
je 0x429789
mov eax, dword [0x684e6c]
call fcn.00406f1c
call fcn.00406584
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x42968c]
call fcn.0040b364
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4297fc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4297c5
push pe_nt_image_headers32
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x684ddc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x688c50]
call fcn.0040b578
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4297e8
lea eax, [ebp - 4]
mov edx, dword [0x42968c]
call fcn.0040b488
ret

Function at 0x42a7e8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42a8be
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004095cc
lea eax, [ebp - 4]
call fcn.00409758
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00409eb8
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42a8a8
mov eax, ebx
call fcn.004063fc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x42a8a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00409eb8
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42a88b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42a8d0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42a88b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a8a8
mov eax, dword [ebp - 0x10]
call fcn.00406418
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a8c5
lea eax, [ebp - 4]
call fcn.004091a4
ret
Function at 0x4c0ba8
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c0c46
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x4c0c0a
cmp byte [ebx + 0x10], 0
jne 0x4c0c0a
cmp byte [ebx + 0x3c], 0
jne 0x4c0c0a
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4c0c2b
lea edx, [ebp - 4]
mov eax, dword [0x685100]
call fcn.0040cf84
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x494e8c]
call fcn.0042980c
call fcn.00408864
jmp 0x4c0c2b
lea edx, [ebp - 8]
mov eax, dword [0x685100]
call fcn.0040cf84
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x494e8c]
call fcn.0042980c
call fcn.00408864
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c0c4d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409204
ret

Function at 0x4c15e4
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4c1632
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004c0a28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c164b
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4c1654
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004c0a28
dec esi
jne 0x4c1676
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x4c3d78
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x68b08c
cmp dword [edi], 0
jne 0x4c3df4
push pe_nt_image_headers32
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x68b088]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x66c774
mov ecx, 2
call fcn.004065d4
mov edx, 0x4c3d50
lea eax, [esi + 5]
call fcn.004c3d70
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004c3d70
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4c3dc9
mov dword [0x68b088], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8