joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463edc
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x464089
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46406a
mov dl, 1
mov eax, dword [0x416d58]
call fcn.0041b1e8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
xor edx, edx
call fcn.00405400
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x464059
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00453ae0
test al, al
je 0x46404c
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x464098
lea eax, [ebp - 0x394]
call fcn.0040b46c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x46404c
xor eax, eax
push ebp
push 0x464045
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x464108
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x46402e
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.004055b8
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x46402e
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.004055b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46404c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x463f4f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.0041afd4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464090
lea eax, [ebp - 0x3a0]
call fcn.004053f0
ret

Function at 0x464a78
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x48d17c]
cmp byte [eax + 0xa9], 0
jne 0x464aea
cmp dword [0x48d194], 0
jne 0x464aaa
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x487a28]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x48d194], eax
cmp dword [0x48d190], 0
jne 0x464ac5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x48d190], eax
cmp dword [0x48d198], 0
jne 0x464aea
push esp
push 0
push 0
mov eax, dword [0x487a24]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x48d198], eax
pop edx
ret
Function at 0x464d00
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x464d17
add esp, 0xfffffff0
call fcn.00403ef4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041fd9c
mov eax, dword [0x487a94]
cmp byte [eax], 0
jne 0x464d44
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x487cb4]
cmp word [eax + 2], 0
jne 0x464d5e
mov eax, dword [0x487cb4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00466bf0
mov eax, dword [0x487d78]
cmp word [eax + 2], 0
jne 0x464d78
mov eax, dword [0x487d78]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00466e00
mov byte [ebx + 0x31], 0
mov dl, 1
mov eax, dword [0x4241bc]
call fcn.00425c3c
mov esi, eax
mov dword [ebx + 0x38], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x467284
mov dl, 1
mov eax, dword [0x4168e0]
call fcn.00403a8c
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x4168e0]
call fcn.00403a8c
mov dword [ebx + 0xac], eax
xor eax, eax
mov dword [ebx + 0x5c], eax
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x58], 0xff000018
mov dword [ebx + 0x74], 0x1f4
mov byte [ebx + 0x78], 1
xor eax, eax
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x70], 0x9c4
mov byte [ebx + 0x84], 0
mov byte [ebx + 0xa1], 1
mov byte [ebx + 0xb8], 1
mov dl, 1
mov eax, dword [0x424a14]
call fcn.0042b69c
mov esi, eax
mov dword [ebx + 0x9c], esi
push 0x464f54
mov eax, dword [0x487bb0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0042baa0
mov eax, dword [ebx + 0x9c]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x467534
mov dl, 1
mov eax, dword [0x4168e0]
call fcn.00403a8c
mov dword [ebx + 0x94], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x487bb0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0040b2b8
test eax, eax
je 0x464e86
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0040b0b8
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0040b2a0
test eax, eax
je 0x464e9e
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x88]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.004055b8
push ebx
push 0x466604
call fcn.0045b558
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xcc], 0
mov eax, dword [0x487a94]
cmp byte [eax], 0
jne 0x464eef
mov eax, ebx
call fcn.004650c8
mov byte [ebx + 0x55], 1
mov byte [ebx + 0x56], 1
mov byte [ebx + 0x57], 1
mov byte [ebx + 0xa2], 1
mov byte [ebx + 0xcd], 0
mov byte [ebx + 0xd8], 0
xor eax, eax
mov dword [ebx + 0xd0], eax
mov byte [ebx + 0xcf], 0
xor eax, eax
mov dword [ebx + 0xa4], eax
mov eax, ebx
call fcn.0046775c
mov eax, ebx
call fcn.00468320
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x464f4c
call fcn.00403f4c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x465370
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x465412
cmp dword [ebx + 0x90], 0
jne 0x46540c
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4652e8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x8c]
cmp dword [eax + 8], 0
je 0x46540c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x4653d2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x8c]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46540c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x8c]
call fcn.00418f00
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4653e1
inc dword [ebx + 0x90]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x465630
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x48d17c]
cmp dword [eax + 0x170], 0
je 0x465795
test bl, bl
jne 0x4656e3
cmp dword [esi + 0x98], 0
jne 0x4656d8
mov eax, esi
call fcn.00468170
push eax
push 0x46553c
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x40], 0
je 0x4656a9
mov eax, dword [0x48d17c]
cmp byte [eax + 0xcf], 0
je 0x4656a9
mov eax, dword [esi + 0xd4]
call fcn.00406254
mov edi, eax
cmp edi, 0
jl 0x4656a9
push 0
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x465692
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4656d8
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00418f00
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4656b8
inc dword [esi + 0x98]
jmp 0x465795
cmp dword [esi + 0x98], 0
jle 0x465795
dec dword [esi + 0x98]
cmp dword [esi + 0x98], 0
jne 0x465795
cmp dword [esi + 0x40], 0
je 0x465740
mov eax, dword [0x48d17c]
cmp byte [eax + 0xcf], 0
je 0x465740
mov eax, dword [esi + 0xd4]
call fcn.00406254
mov edi, eax
cmp edi, 0
jl 0x465740
push 5
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x465729
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x46576f
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00418f00
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x46574f
mov eax, dword [esi + 0x94]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd4]
mov ecx, 1
mov edx, dword [0x45af64]
call fcn.00406414
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x466350
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa8], 0
je 0x4663bb
cmp byte [ebx + 0xcf], 0
jne 0x4663bb
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040553c
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4663a8
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4663c8
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00405400
jmp 0x4663c8
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00405400
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x467930
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x46799e
mov eax, esi
call fcn.0044e354
test al, al
je 0x46799e
mov eax, dword [ebx + 0x80]
call fcn.0044dfa8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46799e
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x467992
push 0
mov eax, dword [ebx + 0x80]
call fcn.0044dfa8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x80]
call fcn.00445610
jmp 0x46799e
mov cl, 1
mov edx, dword [ebx + 0x70]
mov eax, ebx
call fcn.0046777c
pop esi
pop ebx
ret
Function at 0x4014e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x465040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x410], eax
mov eax, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x408], eax
lea eax, [ebp - 0x404]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov al, byte [ebp - 0x404]
mov byte [esi], al
movsx eax, al
sub eax, 0x40
mov dword [edi], eax
lea eax, [ebp - 0x404]
push eax
push 0x458240
push ebx
call fcn.00401910
push dword [ebp - 0x408]
push dword [ebp - 0x40c]
push str._sSDIR_s_
push dword [ebp - 0x410]
call fcn.00401910
mov ecx, dword [ebp - 4]
add esp, 0x1c
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00408228
mov esp, ebp
pop ebp
ret
Function at 0x4077a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x465040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
push str.TRANSFERN
push 0x4eb3d8
push str._s_s
push 0x4ec7d8
xor ebx, ebx
movsd qword [eax], xmm0
call fcn.00401910
push 0x4584ac
push 0x4ec7d8
call fcn.0042e9cc
add esp, 0x18
mov dword [0x465a94], eax
test eax, eax
je 0x407817
push eax
push 1
lea eax, [ebp - 0x414]
push 0x410
push eax
call fcn.0042ec7e
push dword [0x465a94]
call fcn.0042e6de
add esp, 0x14
mov cx, word [ebp - 0x406]
mov ax, word [ebp - 0x408]
push edi
mov edi, 1
mov word [0x469800], cx
mov word [0x469804], ax
cmp di, cx
jg 0x407856
movzx ecx, cx
lea esi, [ebp - 0x1a]
shr ecx, 1
mov edi, 0x4fcbf2
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov edi, 1
cmp di, ax
jg 0x407877
movzx ecx, ax
lea esi, [ebp - 0xe2]
shr ecx, 1
mov edi, 0x4fcb2a
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov edi, 1
push str.LOADCHARN
push 0x4eb3d8
push str._s_s
push 0x4ec7d8
call fcn.00401910
push 0x4584ac
push 0x4ec7d8
call fcn.0042e9cc
add esp, 0x18
mov dword [0x465a94], eax
test eax, eax
je 0x4078cb
push eax
push 1
push 0x1a54
push 0x4661a8
call fcn.0042ec7e
push dword [0x465a94]
call fcn.0042e6de
add esp, 0x14
cmp word [0x4661ac], 1
mov ax, word [0x4661aa]
mov word [0x46980c], ax
jne 0x407914
mov dx, word [0x469804]
cmp di, dx
jg 0x407914
mov eax, 0x467681
movzx edx, dx
mov ecx, 0x4671d4
nop word [eax + eax]
cmp byte [eax], 1
jne 0x40790b
mov dword [ecx], 0x3f800000
inc eax
add ecx, 4
sub edx, 1
jne 0x407900
push 0x4eabd8
push str.PARAM00
push 0x4eb3d8
push str._s_s_s
push 0x4ec7d8
call fcn.00401910
push 0x4ec7d8
call fcn.00401950
push 0x4584ac
push 0x4ec7d8
call fcn.0042e9cc
push eax
push 1
push 0x150
push 0x4ea6c8
mov dword [0x465a94], eax
call fcn.0042ec7e
mov eax, dword [0x465a94]
add esp, 0x30
test eax, eax
je 0x407977
push eax
call fcn.0042e6de
add esp, 4
mov si, word [0x469804]
mov ecx, 1
cmp di, si
pop edi
jg 0x4079ce
nop dword [eax]
movsx eax, cx
cmp byte [eax + 0x4662d8], 0x41
jne 0x4079c0
movzx edx, word [eax*2 + 0x4669d4]
cmp dx, 1
je 0x4079b4
cmp dx, 0xc
je 0x4079b4
mov dl, 0x54
jmp 0x4079c2
inc ebx
mov dl, 0x57
mov dword [eax*4 + 0x465d58], ebx
jmp 0x4079c2
mov dl, 0x4e
inc ecx
mov byte [eax + 0x466656], dl
cmp cx, si
jle 0x407990
push 0x1a54
push 0x4661a8
push 0x467c00
call fcn.00409700
mov ax, word [0x4ea75a]
add esp, 0xc
mov cx, ax
add ax, ax
add cx, ax
mov eax, 0xbb8
mov word [0x4697e0], cx
pop esi
pop ebx
cmp cx, ax
jle 0x407a0d
mov word [0x4697e0], ax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408228
mov esp, ebp
pop ebp
ret
Function at 0x408020
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x4c
cmp byte [eax], 0
je 0x40818e
push ebx
push esi
push edi
lea ecx, [ebp + 0x10]
push ecx
push 0x507740
push eax
call fcn.00401380
push 0x507791
push 0x458468
push 0x4eabd8
call fcn.00401910
push 0x5077e2
push 0x458468
push 0x507978
call fcn.00401910
push str.SUMN8.EXE
push 0x458468
push 0x4eb7d8
call fcn.00401910
mov edi, dword [ebp + 8]
add esp, 0x30
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x4c], 0x30
mov dword [ebp - 0x48], 3
push 0x7f00
push 0
mov dword [ebp - 0x44], 0x407ef0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], edi
call esi
push 0x7f00
push 0
mov dword [ebp - 0x34], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0
mov dword [ebp - 0x30], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push 0x7f00
push 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], str.BigJob1
call esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push edi
push 0
push 0
push dword [0x465004]
push dword [section..data]
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Summe
push str.BigJob1
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push dword [ebp + 0x14]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [ebp - 0x1c]
push 0
push 0
push 0
push eax
call ebx
test eax, eax
je 0x408182
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call esi
lea eax, [ebp - 0x1c]
push eax
call edi
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call ebx
test eax, eax
jne 0x408166
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0
push str.Fehlende_Eingabe
push str.Die_Kommandozeile_ist_leer_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x408e49
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408e88
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x408e88
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408e88
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x408e88
cmp dword [ecx + 0x74], 0xe
jbe 0x408e88
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x431b3f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x431b7e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x431b7e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x431b7e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x431b7e
cmp dword [ecx + 0x74], 0xe
jbe 0x431b7e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x43a327
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45afb4
push 0x45afac
push str.FlsAlloc
push 0x1f
call fcn.00439ff5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43a35b
push dword [ebp + 8]
mov ecx, esi
call dword [0x4581b8]
call esi
jmp 0x43a361
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43a3a5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45afc4
push 0x45afbc
push str.FlsGetValue
push 0x21
call fcn.00439ff5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43a3dc
push dword [ebp + 8]
mov ecx, esi
call dword [0x4581b8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x43a3e4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45afcc
push 0x45afc4
push str.FlsSetValue
push 0x22
call fcn.00439ff5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43a41e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4581b8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x43be9c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x508b50]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43bedc
cmp byte [ebx], 0xa
jne 0x43bedc
or byte [edi + eax + 0x28], 4
jmp 0x43bee1
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x43bfe0
mov dl, byte [eax]
cmp dl, 0x1a
je 0x43bfc3
inc eax
cmp dl, 0xd
je 0x43bf0d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x43bf33
cmp eax, ecx
jae 0x43bf41
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x43bef5
jmp 0x43bfe0
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 0x43bfbe
cmp dword [ebp - 0x10], 0
je 0x43bfbe
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x508b50]
test byte [eax + edi + 0x28], 0x48
je 0x43bf98
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x43bf83
mov byte [esi], dl
jmp 0x43bf94
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x508b50]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x43bfe0
cmp byte [ebp - 1], 0xa
jne 0x43bfa7
cmp esi, ebx
jne 0x43bfa7
mov byte [esi], 0xa
jmp 0x43bfdf
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043d180
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43bfe0
mov byte [esi], 0xd
jmp 0x43bfdf
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x508b50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43bfdd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43bfe0
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43bfe9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x508b50]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43c02f
cmp word [ebx], dx
jne 0x43c02f
or byte [eax + edi + 0x28], 4
jmp 0x43c034
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x43c197
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x43c177
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x43c075
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43c0ab
cmp eax, edx
jae 0x43c0b9
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x43c050
jmp 0x43c197
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43c172
cmp dword [ebp - 0x18], 0
je 0x43c172
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x508b50]
test byte [eax + edi + 0x28], 0x48
je 0x43c148
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x43c10c
mov word [esi], cx
jmp 0x43c143
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x508b50]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x508b50]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x508b50]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x43c197
pop eax
cmp word [ebp - 4], ax
jne 0x43c158
cmp esi, ebx
jne 0x43c158
mov word [esi], ax
jmp 0x43c194
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0043d180
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x43c197
push 0xd
pop eax
jmp 0x43c153
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x508b50]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x43c191
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x43c197
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret