joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ec28
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0xf
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.0040260b
and byte [ebp - 3], 0
and byte [ebp - 2], 0
add esp, 0xc
mov byte [ebp - 0x10], 0x50
mov byte [ebp - 0xb], 0x73
mov byte [ebp - 6], 0x65
mov byte [ebp - 0xf], 0x72
mov byte [ebp - 0xa], 0x73
mov byte [ebp - 5], 0x78
mov byte [ebp - 0xe], 0x6f
mov byte [ebp - 9], 0x33
mov byte [ebp - 4], 0x74
mov byte [ebp - 0xd], 0x63
mov byte [ebp - 8], 0x32
mov byte [ebp - 0xc], 0x65
mov byte [ebp - 7], 0x4e
call fcn.0040263a
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40ec90
leave
ret
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
mov esi, eax
push 0xf
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.0040260b
add esp, 0xc
mov eax, esi
pop esi
leave
ret
Function at 0x4027b6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x4027c0
repz ret
jmp fcn.00402b93

Function at 0x41b790
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x10000]
push edi
jmp 0x41b7aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41b7b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41b7a0
mov eax, 1
add ebx, ebx
jne 0x41b7c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41b7b8
jne 0x41b7d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41b7b8
xor ecx, ecx
sub eax, 3
jb 0x41b7e8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41b85a
mov ebp, eax
add ebx, ebx
jne 0x41b7f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41b800
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41b824
inc ecx
add ebx, ebx
jne 0x41b810
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41b805
jne 0x41b821
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41b805
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41b844
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41b835
jmp 0x41b7a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41b844
add edi, ecx
jmp 0x41b7a6
pop esi
mov edi, esi
mov ecx, 0x12d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41b862
cmp byte [edi], 2
jne 0x41b862
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41b867
lea edi, [esi + 0x19000]
mov eax, dword [edi]
or eax, eax
je 0x41b8d6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1b638]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1b6cc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41b894
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1b6d4]
or eax, eax
je 0x41b8d0
mov dword [ebx], eax
add ebx, 4
jmp 0x41b8b1
call dword [esi + 0x1b6d0]
mov ebp, dword [esi + 0x1b6d8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41b90a
sub esp, 0xffffff80
jmp 0x405a80
Function at 0x401030
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
test ebp, ebp
push edi
je 0x401043
mov dword [ebp], 0
mov eax, dword [esp + 0x14]
push 0x40b018
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x4011a4
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call edi
add esp, 0xc
test eax, eax
push esi
jne 0x40119b
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
cmp eax, 1
mov dword [esp + 0x18], eax
jl 0x40119a
cmp eax, 0x6400000
jg 0x40119a
push 0
push 0
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x40119a
mov ecx, dword [esp + 0x18]
inc ecx
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov ebx, eax
test ebx, ebx
push esi
je 0x40119b
mov edx, dword [esp + 0x1c]
push edx
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x2c]
add esp, 0x14
cmp eax, 1
jge 0x4010fc
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov byte [eax + ebx], 0
mov edi, str.__TEXT
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__TEXT
push ebx
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x401193
test ebp, ebp
je 0x40112e
mov dword [ebp], 1
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x18]
push eax
push ecx
push ebx
call fcn.00405880
add esp, 0xc
mov ebp, eax
test ebp, ebp
push ebx
jne 0x401158
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
call dword [sym.imp.MSVCRT.dll_free]
mov edx, dword [esp + 0x1c]
inc edx
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [esp + 0x20]
mov ebx, eax
mov eax, ecx
mov esi, ebp
mov edi, ebx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
mov byte [ecx + ebx], 0
call fcn.004058f0
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x401450
Capabilities:
Initialize winsock library

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x190
lea ecx, [esp]
mov dword [0x40b91c], eax
push ecx
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x40148d
mov ax, word [esp]
cmp al, 1
jne 0x401488
xor edx, edx
mov dl, ah
cmp dl, al
jne 0x401488
call fcn.004014a0
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
add esp, 0x190
ret 0x10
Function at 0x4023a0
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
test ebp, ebp
push edi
je 0x4023b3
mov dword [ebp], 0
mov eax, dword [esp + 0x14]
push 0x40b018
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402514
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call edi
add esp, 0xc
test eax, eax
push esi
jne 0x40250b
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
cmp eax, 1
mov dword [esp + 0x18], eax
jl 0x40250a
cmp eax, 0x6400000
jg 0x40250a
push 0
push 0
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x40250a
mov ecx, dword [esp + 0x18]
inc ecx
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov ebx, eax
test ebx, ebx
push esi
je 0x40250b
mov edx, dword [esp + 0x1c]
push edx
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x2c]
add esp, 0x14
cmp eax, 1
jge 0x40246c
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov byte [eax + ebx], 0
mov edi, str.__TEXT
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__TEXT
push ebx
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x402503
test ebp, ebp
je 0x40249e
mov dword [ebp], 1
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x18]
push eax
push ecx
push ebx
call fcn.00405880
add esp, 0xc
mov ebp, eax
test ebp, ebp
push ebx
jne 0x4024c8
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
call dword [sym.imp.MSVCRT.dll_free]
mov edx, dword [esp + 0x1c]
inc edx
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [esp + 0x20]
mov ebx, eax
mov eax, ecx
mov esi, ebp
mov edi, ebx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
mov byte [ecx + ebx], 0
call fcn.004058f0
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x402830
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push eax
push str._install_wwinnt.exe
call fcn.004025f0
mov edi, 0x40b120
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str._install
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WinExec]
and ecx, 3
lea eax, [esp + 0x14]
rep movsb byte es:[edi], byte [esi]
push eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1388
call ebp
lea ecx, [esp + 0x10]
push ecx
push str._install_wwinnt.exe
call fcn.004025f0
mov edi, 0x40b120
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._start
or ecx, 0xffffffff
push eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
push 0x4e20
call ebp
lea ecx, [esp + 0x10]
push ecx
push str._install_wwall.exe
call fcn.004025f0
add esp, 8
lea edx, [esp + 0x10]
push 5
push edx
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x402d70
Capabilities:
Create directory

Disassembly:
sub esp, 0x244
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x258]
test edi, edi
je 0x402e48
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
cmp edx, 1
jl 0x402e48
inc edx
xor ebp, ebp
test edx, edx
mov dword [esp + 0x10], edx
jle 0x402e48
mov bl, byte [esp + ebp + 0x14]
lea esi, [esp + ebp + 0x14]
cmp bl, 0x5c
je 0x402de4
cmp bl, 0x2f
je 0x402de4
test bl, bl
jne 0x402e43
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
mov byte [esi], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x402e3a
cmp byte [esp + ecx + 0x13], 0x3a
je 0x402e3a
lea ecx, [esp + 0x114]
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x402e25
test eax, eax
je 0x402e25
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x402e36
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x402e58
mov edx, dword [esp + 0x10]
mov byte [esi], bl
mov al, byte [esi + 1]
test al, al
je 0x402e48
inc ebp
cmp ebp, edx
jl 0x402dce
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x244
ret
mov byte [esi], bl
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x244
ret

Function at 0x403bc0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x25c
lea eax, [esp + 0x4c]
lea ecx, [esp + 8]
lea edx, [esp + 4]
push esi
mov esi, dword [esp + 0x264]
push 0x105
push eax
push ecx
lea eax, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x16c]
push 0x105
push ecx
push 0x40b1c4
mov byte [esi], 0xb
mov byte [esi + 1], 0xc
mov byte [esi + 2], 0xd
mov byte [esi + 3], 0xe
mov byte [esi + 4], 0xf
mov byte [esi + 5], 0x10
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x403c51
mov edx, dword [esp + 4]
lea eax, [esp + 0x10]
push edx
push 0x40b170
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
push 0x40b01c
lea ecx, [esp + 0x20]
push 0x40b01c
push ecx
call fcn.00403c60
lea edx, [esp + 0x28]
push esi
push edx
call fcn.00403ac0
add esp, 0x20
pop esi
add esp, 0x25c
ret

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

Disassembly:
mov ecx, dword [esp + 4]
push esi
test ecx, ecx
jne 0x405925
or eax, 0xffffffff
pop esi
mov dword [0x40b5f4], eax
not eax
ret
mov esi, dword [esp + 0xc]
mov eax, dword [0x40b5f4]
test esi, esi
je 0x405952
push ebx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x40b1f4]
xor eax, edx
inc ecx
dec esi
jne 0x405933
pop ebx
mov dword [0x40b5f4], eax
pop esi
not eax
ret
Function at 0x405b30
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, 0x2000
xor eax, eax
lea edi, [esi + 0x3efc0]
push 0x10000
rep stosd dword es:[edi], eax
lea edi, [esi + 0x1efc0]
mov eax, 0x80
xor ebx, ebx
push edi
push esi
mov dword [esi + 0x28], 0x10
mov dword [esi + 0x2c], 8
mov dword [esi + 0x30], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 8], ebx
call fcn.00405960
add esp, 0xc
cmp eax, 1
mov dword [esi + 0x20], eax
jge 0x405b92
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], ebx
pop edi
pop esi
pop ebx
ret
cmp eax, 0x106
mov dword [esi + 0x1c], ebx
jae 0x405bb4
cmp dword [esi + 0x1c], ebx
jne 0x405bb4
push esi
call fcn.00405be0
mov eax, dword [esi + 0x20]
add esp, 4
cmp eax, 0x106
jb 0x405b9c
mov dword [esi + 0xc], ebx
xor eax, eax
mov edx, dword [esi + 0xc]
xor ecx, ecx
mov cl, byte [edi + eax]
and edx, 0x1ff
and ecx, 0x3fff
shl edx, 5
xor ecx, edx
inc eax
cmp eax, 2
mov dword [esi + 0xc], ecx
jb 0x405bb9
pop edi
pop esi
pop ebx
ret
Function at 0x408930
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push 0
push ecx
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
ret

Function at 0x408bf0
Capabilities:
Get hostname

Disassembly:
mov eax, dword [esp + 0x18]
test eax, eax
je 0x408bfe
mov dword [eax], 0
push ebx
mov ebx, dword [esp + 8]
push ebp
push ebx
call fcn.00409010
mov ebp, dword [esp + 0x28]
add esp, 4
cmp ebp, 0x493e0
mov dword [0x40bc84], 0
jb 0x408c2b
cmp ebp, 0x6ddd00
jbe 0x408c30
mov ebp, 0x36ee80
push esi
push edi
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x11c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebx + 0x130]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov dword [ebx + 0x118], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebx + 0x1d1]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x24]
mov byte [edx], 0
test edi, edi
je 0x408cb8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebx + 0x151]
push 0x80
push eax
mov byte [eax], 0
call sub.WSOCK32.dll_gethostname
lea esi, [ebx + 0x1e4]
push esi
call fcn.004089e0
push ebx
push 0x408d60
mov dword [ebx], 0
call fcn.00408930
push ebp
push esi
call fcn.00408a00
mov al, byte [ebx]
add esp, 0x14
test al, 2
pop edi
pop esi
mov dword [ebx], 0
je 0x408d3c
push ebp
push ebx
call fcn.00408e90
mov ecx, dword [esp + 0x28]
add esp, 8
test ecx, ecx
je 0x408d15
mov dword [ecx], eax
cmp eax, 1
jne 0x408d28
mov eax, dword [ebx]
pop ebp
or al, 1
mov dword [ebx], eax
mov eax, 1
pop ebx
ret
push ebx
mov dword [ebx], 0
call fcn.00409010
add esp, 4
xor eax, eax
pop ebp
pop ebx
ret
push ebx
call fcn.00409010
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x408d53
mov dword [eax], 2
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x409230
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x14]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x10], esi
mov edx, dword [esp + 0x18]
mov eax, edi
sub eax, esi
push ebx
lea ecx, [esi + ebp]
push eax
push ecx
push edx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x40927a
test eax, eax
jl 0x40927a
add esi, eax
cmp esi, edi
jge 0x409283
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x2023
mov dword [esp + 0x10], eax
jb 0x409247
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4013b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x460646
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov edi, ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x2c]
movzx ecx, word [esp + 0x28]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebp
je 0x40141d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x40141d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
lea edi, [esp + 0x18]
call fcn.00402e60
mov ebp, dword [esp + 0x18]
add esp, 8
mov edi, dword [esp + 0x24]
add edi, 8
push edi
push ebp
call fcn.00401260
mov esi, dword [edi]
add esp, 8
test esi, esi
jne 0x40144d
mov dword [esp + 0x1c], 0xffffffff
test ebp, ebp
je 0x401504
mov edx, dword [ebp]
push ebp
jmp 0x4014ff
mov edx, dword [esi + 4]
lea ecx, [esp + 0x2c]
push ecx
push edx
mov dword [esp + 0x34], 0
call sub.gdiplus.dll_GdipImageGetFrameDimensionsCount
test eax, eax
je 0x40146a
mov dword [esi + 8], eax
mov ebx, dword [esp + 0x2c]
xor ecx, ecx
mov eax, ebx
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00444681
add esp, 4
mov esi, eax
mov byte [esp + 0x1c], 1
mov dword [esp + 0x28], esi
mov byte [esp + 0x1c], 3
mov ebp, dword [edi]
mov eax, dword [ebp + 4]
push ebx
push esi
push eax
call sub.gdiplus.dll_GdipImageGetFrameDimensionsList
test eax, eax
je 0x4014ad
mov dword [ebp + 8], eax
mov edi, dword [edi]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x2c]
push ecx
push esi
push edx
mov dword [esp + 0x38], 0
call sub.gdiplus.dll_GdipImageGetFrameCount
test eax, eax
je 0x4014cd
mov dword [edi + 8], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
or edi, 0xffffffff
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edi
mov byte [esp + 0x1c], 0
test esi, esi
je 0x4014f0
push esi
call fcn.00443340
add esp, 4
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401504
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x401af0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x45ff28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
mov eax, dword [esi + 4]
push edi
mov edi, ecx
mov ebx, dword [edi]
push eax
push ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], 0
mov ecx, dword [esi + 4]
lea eax, [esp + 0x18]
push eax
push 0x10
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov esi, dword [esp + 0x3c]
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov ecx, dword [edi]
push 0
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
sub eax, dword [esp + 0x1c]
mov ecx, dword [edi]
mov ebp, dword [sym.imp.GDI32.dll_LineTo]
push edx
push eax
push ecx
call ebp
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
sub edx, eax
push edx
mov edx, dword [edi]
sub ecx, eax
push ecx
push edx
call ebp
mov eax, dword [esi + 0xc]
sub eax, dword [esp + 0x1c]
mov ecx, dword [esi]
mov edx, dword [edi]
push eax
push ecx
push edx
call ebp
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov edx, dword [edi]
push eax
push ecx
push edx
call ebp
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x14]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8

Function at 0x406b10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x406b29
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406b64
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x406b60
lea ebx, [ebx]
cmp esi, eax
jae 0x406b64
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x406b50
cmp esi, eax
jb 0x406b6a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret