joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10025a00
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x38c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x3a0]
mov dword [esp + 0x14], 0
mov cx, word [edi + 0x26]
mov eax, dword [edi + 0x30]
cmp cx, 8
mov dword [esp + 0x10], eax
jb 0x10025a34
test eax, eax
jle 0x10025a34
lea ebp, [esp + 0x10]
jmp 0x10025a36
xor ebp, ebp
test cx, cx
jne 0x10025a46
mov eax, dword [edi + 0x2c]
lea ebp, [esp + 0x10]
mov dword [esp + 0x10], eax
mov ebx, dword [edi + 0x3c]
test byte [edi + 0x2a], 0x10
jne 0x10025af8
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 1
call sym.fbclient.dll_gds__thread_exit
push ebp
push 0
lea ecx, [esp + 0x20]
push 0
push ecx
push 0x40
call sub.WS2_32.dll_select
mov esi, eax
cmp esi, 0xffffffff
jne 0x10025aaa
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 4
je 0x10025a92
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2714
jne 0x10025aaa
push ebp
push 0
lea edx, [esp + 0x20]
push 0
push edx
push 0x40
call sub.WS2_32.dll_select
mov esi, eax
cmp esi, 0xffffffff
je 0x10025a7c
call sym.fbclient.dll_gds__thread_enter
cmp esi, 0xffffffff
je 0x10025b44
test esi, esi
jne 0x10025af8
mov ax, word [edi + 0x26]
cmp ax, 8
jb 0x10025aef
lea eax, [esp + 0x11c]
mov dword [esp + 0x11c], 0x47
push eax
push edi
call fcn.10025390
add esp, 8
test eax, eax
je 0x10025b81
jmp 0x10025a49
test ax, ax
je 0x10025b81
call sym.fbclient.dll_gds__thread_exit
movsx ecx, word [esp + 0x3a8]
mov edx, dword [esp + 0x3a4]
mov eax, dword [edi + 0x3c]
push 0
push ecx
push edx
push eax
call sub.WS2_32.dll_recv
mov esi, eax
call sym.fbclient.dll_gds__thread_enter
cmp esi, 0xffffffff
jne 0x10025b68
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 4
je 0x10025a49
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2714
jne 0x10025b6c
jmp 0x10025a49
call sub.WS2_32.dll_WSAGetLastError
push eax
push 0x14000196
push str.select_in_packet_receive
push edi
call fcn.10025610
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38c
ret
test esi, esi
jg 0x10025b8e
mov ax, word [edi + 0x2a]
test al, 0x10
je 0x10025b8e
or al, 8
mov dword [edi + 8], 3
mov word [edi + 0x2a], ax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x38c
ret
cmp esi, 0xffffffff
jne 0x10025bb7
call sub.WS2_32.dll_WSAGetLastError
push eax
push 0x14000196
push str.read
push edi
call fcn.10025610
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38c
ret
test esi, esi
jne 0x10025bda
push esi
push 0x14000196
push str.read_end_of_file
push edi
call fcn.10025610
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38c
ret
mov ecx, dword [esp + 0x3ac]
pop edi
mov eax, 1
mov word [ecx], si
pop esi
pop ebp
pop ebx
add esp, 0x38c
ret
Function at 0x10025c00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x1c]
test di, di
je 0x10025c64
call sym.fbclient.dll_gds__thread_exit
mov ecx, dword [ebx + 0x3c]
push 0
movsx eax, di
push eax
push ebp
push ecx
call sub.WS2_32.dll_send
mov esi, eax
call sym.fbclient.dll_gds__thread_enter
cmp si, di
je 0x10025c64
cmp si, 0xffff
jne 0x10025c58
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 4
je 0x10025c5f
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2714
jne 0x10025d11
jmp 0x10025c5f
movsx edx, si
add ebp, edx
sub edi, esi
test di, di
jne 0x10025c15
mov ax, word [ebx + 0x2a]
test al, 0x10
je 0x10025d2f
test al, 0x20
jne 0x10025d2f
call sym.fbclient.dll_gds__thread_exit
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x3c]
push 1
push 1
push eax
push ecx
xor ebp, ebp
call sub.WS2_32.dll_send
mov esi, eax
cmp si, 0xffff
jne 0x10025ce8
mov edi, dword [sym.imp.KERNEL32.dll_SleepEx]
call sub.WS2_32.dll_WSAGetLastError
test eax, eax
je 0x10025cbe
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 4
je 0x10025cbe
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2714
jne 0x10025ce8
mov dx, bp
inc ebp
cmp dx, 0x14
jg 0x10025ce8
push 1
push 0x32
call edi
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x3c]
push 1
push 1
push eax
push ecx
call sub.WS2_32.dll_send
mov esi, eax
cmp si, 0xffff
je 0x10025c9f
call sym.fbclient.dll_gds__thread_enter
cmp si, 0xffff
jne 0x10025d2f
call sub.WS2_32.dll_WSAGetLastError
push eax
push 0x14000197
push str.send_oob
push ebx
call fcn.10025610
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
call sub.WS2_32.dll_WSAGetLastError
push eax
push 0x14000197
push str.send
push ebx
call fcn.10025610
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
and word [ebx + 0x2a], 0xfffb
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x100313e0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push edi
mov dword [esp + 8], 0
call sym.fbclient.dll_gds__thread_exit
movsx ecx, word [esp + 0x18]
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [edi + 0x3c]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
call sym.fbclient.dll_gds__thread_enter
test si, si
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x10031443
call esi
cmp eax, 0x6d
je 0x10031443
call esi
push eax
push 0x14000196
push str.ReadFile
push edi
call fcn.10030e90
add esp, 0x10
pop edi
pop esi
pop ecx
ret
mov eax, dword [esp + 8]
test eax, eax
jne 0x10031465
call esi
push eax
push 0x14000196
push str.ReadFile_end_of_file
push edi
call fcn.10030e90
add esp, 0x10
pop edi
pop esi
pop ecx
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov word [ecx], ax
mov eax, 1
pop ecx
ret

Function at 0x10031480
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
movsx esi, word [esp + 0x14]
push edi
call sym.fbclient.dll_gds__thread_exit
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 0
mov edx, dword [ebx + 0x3c]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
call sym.fbclient.dll_gds__thread_enter
test di, di
jne 0x100314d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x14000197
push str.WriteFile
push ebx
call fcn.10030e90
add esp, 0x10
pop edi
pop esi
pop ebx
ret
cmp dword [esp + 0x18], esi
je 0x100314f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x14000197
push str.WriteFile_truncated
push ebx
call fcn.10030e90
add esp, 0x10
pop edi
pop esi
pop ebx
ret
and word [ebx + 0x2a], 0xfffb
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x10094ee
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
mov esi, 0x2000
push esi
mov dword [ebp - 0x14], edi
call fcn.0101a762
mov ebx, eax
test ebx, ebx
pop ecx
mov dword [ebp - 0x18], ebx
jne 0x100951d
mov eax, 0x8007000e
jmp 0x1009685
push ebx
mov ecx, edi
call fcn.010093f5
test eax, eax
jge 0x1009530
mov edi, eax
jmp 0x1009676
lea eax, [ebp - 2]
push eax
push ebx
call fcn.0100926b
test eax, eax
jne 0x1009548
mov edi, 0x80020009
jmp 0x1009676
push esi
call fcn.0101a762
mov esi, eax
test esi, esi
pop ecx
mov dword [ebp - 0xc], esi
jne 0x1009562
mov edi, 0x8007000e
jmp 0x1009676
mov ecx, edi
call fcn.010093cc
push esi
mov ecx, edi
call fcn.010093f5
test eax, eax
jl 0x100966d
movzx eax, word [ebp - 2]
sub eax, 8
je 0x1009652
sub eax, 9
je 0x10095b5
dec eax
dec eax
jne 0x100965e
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push esi
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x10]
call fcn.01008f0e
jmp 0x100965e
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
mov dword [ebp - 8], eax
je 0x10095cd
mov edi, 0x80004005
jmp 0x100966f
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.0101a9d0
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov edi, esp
mov dword [ebp - 4], edi
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
cmp esp, edi
je 0x10095c3
cmp dword [ebp - 8], edi
jle 0x1009639
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + edi*2]
push eax
call fcn.010092f5
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x1009603
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push dword [ebp - 4]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x100965e
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
call fcn.01008f31
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.010093f5
test eax, eax
jge 0x1009683
mov edi, eax
push esi
call fcn.0101a77e
pop ecx
push dword [ebp - 0x18]
call fcn.0101a77e
pop ecx
mov eax, edi
jmp 0x1009685
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1009d34
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x102416c]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x78]
push eax
xor ebx, ebx
lea eax, [ebp - 0x70]
push eax
push ebx
push 0x2001d
push ebx
push ebx
push ebx
push 0x1001950
push 0x80000002
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x64], ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x1009eb1
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
call edi
mov esi, eax
cmp esi, ebx
jne 0x1009eb1
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0xe
push 0x100193c
push 2
push ebx
push 0x100191c
push dword [ebp - 0x64]
call edi
mov esi, eax
cmp esi, ebx
jne 0x1009eb1
push 4
lea eax, [ebp - 0x74]
push eax
push 4
push ebx
push 0x100190c
push dword [ebp - 0x64]
mov dword [ebp - 0x74], 1
call edi
mov esi, eax
cmp esi, ebx
jne 0x1009eb1
push 4
lea eax, [ebp - 0x74]
push eax
push 4
push ebx
push 0x10018f0
push dword [ebp - 0x64]
mov dword [ebp - 0x74], 1
call edi
mov esi, eax
cmp esi, ebx
jne 0x1009eb1
mov edi, dword [ebp - 0x68]
cmp edi, ebx
je 0x1009eb1
jmp 0x1009e27
mov edi, dword [ebp - 0x68]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push dword [edi + 8]
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x1009ea4
mov esi, dword [edi + 4]
lea edi, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x50]
push eax
movsd dword es:[edi], dword [esi]
call fcn.01009c58
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x4a
lea eax, [ebp - 0x50]
push eax
push 1
push ebx
push 0x10018e4
push dword [ebp - 0x6c]
call esi
mov edi, dword [ebp - 0x68]
push dword [edi + 0xc]
call fcn.01019d98
pop ecx
shl eax, 1
push eax
push dword [edi + 0xc]
push 1
push ebx
push 0x10018d0
push dword [ebp - 0x6c]
call esi
push dword [ebp - 0x6c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [edi]
cmp edi, ebx
mov dword [ebp - 0x68], edi
jne 0x1009e24
cmp dword [ebp - 0x64], ebx
je 0x1009ebf
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x70], ebx
je 0x1009ecd
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.01019a47
leave
ret 8
Function at 0x100a1cb
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x102416c]
push edi
push 0x47
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x120]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
pop edi
jne 0x100a21e
test byte [0x102407c], 0x10
je 0x100a2ee
push 0x10016d4
push 0x17
jmp 0x100a270
cmp byte [ebp - 6], 1
je 0x100a23a
test byte [0x102407c], 0x10
je 0x100a2ee
push 0x10016d4
push 0x18
jmp 0x100a270
lea eax, [ebp - 0x124]
push eax
push 0x20006
push 0
push 0x10019c8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100a283
test byte [0x102407c], 0x10
je 0x100a2ee
push 0x10016d4
push 0x19
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100335b
jmp 0x100a2ee
push 4
lea eax, [ebp - 0x128]
push eax
push 4
push 0
push 0x10019bc
push dword [ebp - 0x124]
mov dword [ebp - 0x128], 3
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x100a2c1
test byte [0x102407c], 0x10
je 0x100a2e2
push 0x10016d4
push 0x1a
jmp 0x100a2d1
test byte [0x102407c], 0x10
je 0x100a2e2
push 0x10016d4
push 0x1b
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100335b
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
call fcn.01019a47
leave
ret

Function at 0x100a2fd
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x32c
mov eax, dword [0x102416c]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x32c]
push eax
push 0x20006
push 0
push 0x10019c8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100a3f4
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov ecx, 0xc8
lea edi, [ebp - 0x328]
rep stosd dword es:[edi], eax
push 0x190
stosw word es:[edi], ax
lea eax, [ebp - 0x328]
push eax
push 0x65
push dword [0x102501c]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x328]
push eax
call ebx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x328]
push eax
push 1
push 0
push 0x1001a40
push dword [ebp - 0x32c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor eax, eax
mov ecx, 0xc8
lea edi, [ebp - 0x328]
rep stosd dword es:[edi], eax
push 0x190
stosw word es:[edi], ax
lea eax, [ebp - 0x328]
push eax
push 0x66
push dword [0x102501c]
call esi
lea eax, [ebp - 0x328]
push eax
call ebx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x328]
push eax
push 1
push 0
push 0x1001a28
push dword [ebp - 0x32c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x32c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.01019a47
leave
ret
Function at 0x100a752
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x102416c]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x208], esi
call fcn.01008ed2
cmp eax, esi
jne 0x100a7f3
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x100a7aa
lea eax, [ebp - 0x204]
push eax
call fcn.0100a752
cmp eax, esi
jne 0x100a7f2
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x208]
je 0x100a79a
call fcn.01008e5f
push dword [ebp - 0x210]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x208]
mov esi, eax
call fcn.01008e5f
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
call fcn.01019a47
leave
ret 4
Function at 0x100b011
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, esi
mov dword [edi + 0x88], eax
jne 0x100b035
xor al, al
jmp 0x100b04e
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x100aff9
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
leave
ret

Function at 0x100bd47
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
push 2
push 0
push dword [ebp + 8]
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 4], ebx
jne 0x100bd99
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100bd84
call esi
mov esi, eax
jmp 0x100be5f
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x100be5f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x100bdba
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x100bddf
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100bdcd
call esi
jmp 0x100be54
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x100be56
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp byte [ebx + esi], 0
mov edi, esi
je 0x100be1e
lea edi, [ebx + 1]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.0101a9d0
mov ecx, edi
mov edx, ecx
mov eax, esp
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 8], eax
mov byte [eax + ebx], 0
mov edi, esp
test edi, edi
jne 0x100be26
xor eax, eax
jmp 0x100be48
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.0101a9d0
mov eax, esp
push esi
push edi
push eax
call fcn.01008d96
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push eax
call fcn.0100b847
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1012af0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
test byte [0x102407c], 0x10
mov eax, dword [0x102416c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ebx, ecx
je 0x1012b2c
push ebx
push 0x1002118
push 0x10
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003493
push edi
xor eax, eax
push 7
pop ecx
mov byte [ebp - 0x44], 0
lea edi, [ebp - 0x43]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
push 7
pop ecx
mov byte [ebp - 0x64], 0
lea edi, [ebp - 0x63]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
and dword [ebp - 0x80], 0
stosb byte es:[edi], al
xor eax, eax
push 7
mov byte [ebp - 0x24], 0
pop ecx
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xac], eax
add eax, 2
push eax
call fcn.0101a53c
mov edi, eax
test edi, edi
pop ecx
mov dword [ebx + 0xa8], edi
jne 0x1012b95
and dword [ebx + 0xac], eax
mov dword [ebp - 0x80], 0x8007000e
jmp 0x1012cc1
mov ecx, dword [ebx + 0xac]
mov eax, dword [ebp + 0x10]
inc ecx
inc ecx
mov edx, ecx
mov dword [ebx + 0x94], eax
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebx + 0xac]
mov edi, dword [ebx + 0xa8]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 9
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop ecx
xor eax, eax
lea esi, [ebx + 0x24]
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [ebx + 0x4c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x44]
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebx + 0x28], 0x24
push dword [ebx + 0xa8]
call fcn.01017150
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x84], eax
je 0x1012c39
mov eax, dword [ebx + 0x44]
cmp eax, edi
mov dword [ebp - 0x80], 0x80040214
je 0x1012cc1
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x84]
push ecx
push eax
call fcn.01015fce
mov dword [ebp - 0x80], eax
jmp 0x1012cc1
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x44]
push eax
mov ecx, ebx
call fcn.010127be
test al, al
jne 0x1012c59
mov dword [ebp - 0x80], 0x80040214
jmp 0x1012cc1
mov ecx, dword [esi]
test cl, 1
lea eax, [ebx + 0xa4]
mov dword [eax], edi
je 0x1012c6e
mov dword [eax], 1
test cl, 0x10
je 0x1012c79
mov dword [eax], 2
cmp dword [eax], edi
jne 0x1012ca1
test byte [0x102407c], 0x10
je 0x1012c50
push ecx
push 0x1002118
push 0x11
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003493
jmp 0x1012c50
lea eax, [ebx + 0xb4]
push eax
push edi
push ebx
push 0x1011523
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0xb0], eax
mov byte [ebx + 0x60], 1
test byte [0x102407c], 0x10
pop edi
je 0x1012ce7
push dword [ebp - 0x80]
push ebx
push 0x1002118
push 0x12
push dword [0x1024074]
push dword [0x1024070]
call fcn.010033e2
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x80]
pop esi
pop ebx
call fcn.01019a47
leave
ret 0xc
Function at 0x1012e9a
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x1012ebd
mov esi, 0x8004020b
jmp 0x1012f7a
cmp eax, dword [ebp + 8]
je 0x1012ef4
test byte [0x102407c], 0x10
mov eax, 0x8004021e
mov esi, eax
je 0x1012f7a
push eax
push 0x10021bc
push 0x36
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003493
jmp 0x1012f7a
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1012f4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
je 0x1012f20
cmp eax, 0x27
mov esi, 0x80040218
jne 0x1012f25
mov esi, 0x8004022a
test byte [0x102407c], 0x10
je 0x1012f7a
push eax
push esi
push 0x10021bc
push 0x37
push dword [0x1024074]
push dword [0x1024070]
call fcn.010033e2
jmp 0x1012f7a
mov eax, dword [ebp - 8]
cmp dword [ebp + 0x10], eax
je 0x1012f6f
test byte [0x102407c], 0x10
mov eax, 0x8004021e
mov esi, eax
je 0x1012f7a
push eax
push 0x10021bc
push 0x38
jmp 0x1012ede
add dword [esi + 8], eax
mov eax, dword [ebp - 4]
adc dword [esi + 0xc], eax
xor esi, esi
mov eax, esi
pop esi
leave
ret 0xc